loading link image

  • vanbasten
  • Born
  • Born
  • vanbasten
  • Posts: 3

Post 3+ Months Ago

Hi all

I create this script for to load images dynamically.
Therefore I want click to this image as a link
I create this script , the image is loaded but I can't click it!
Where am I wrong?
thanks

createEmptyMovieClip("photo", 1);
createEmptyMovieClip("photo2", 2);
photo2._x=160;
photo.loadMovie("img1.jpg");
photo2.loadMovie("img2.jpg");

photo.onPress = function() {
//code
};
photo2.onPress = function() {
//code
};
  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

try
Code: [ Select ]
photo.onRelease = function() {
//code
};
  1. photo.onRelease = function() {
  2. //code
  3. };
  • vanbasten
  • Born
  • Born
  • vanbasten
  • Posts: 3

Post 3+ Months Ago

Hi
it doesn't work, when the mouse is over the photo it doesn't become an hand.
Maybe the player don't recognize the photoes like movieclip, I think i need change the code for the mc creation but I don't know how :-(

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.