PDA

View Full Version : Load external images..how?


MecaDesigns
03-05-2007, 04:01 PM
hi ppl..i've got i little problem here...

in a folder i've got some .jpg images..and i want a link on a button to open a new window with the image i want it to open..just like open another webpage..but an image! how do i do that??:confused:

and other thing is...in the main timeline i've got 2 labels..one has one movieclip(1) that has labels inside, and the other label in the maintimeline has a button(2), that i want to link inside the other mc(1), and go to a label inside that movieclip(1)...how do i do??:confused:

peace and thank's :rolleyes:

Noct
03-05-2007, 06:09 PM
//Declare a function for your button
myBtn.onRelease=function(){
//Create an empty movieClip on the depth above this button (_parent)
this._parent.createEmptyMovieClip("emptyClip", this.getNextHighestDepth());
//Load the image into the emptyClip
this._parent.emptyClip.loadMovie("img1.jpg");
}

Not sure I understand the second part of your question...
What is a label?

MecaDesigns
03-06-2007, 01:35 PM
oh..a label is the frame label! the name!! hehe!!:rolleyes: