How do i make it so if I click a button in a box, on the other side of it a picture appears??
-
Make a new, empty movieclip by pressing CTRL+F8, give it any name and drag it from the library (F11) to the stage so that is is at the place where the image should come.
-
Now give it the instance name (on the left in the Property Inspector) [COLOR=BLUE]showpic[/COLOR].
-
Right click the movieclip’s icon (the circle with the cross in it) and select [COLOR=BLUE]Edit in Place[/COLOR].
-
Select the first frame in the timeline, right click it and select [COLOR=BLUE]Actions[/COLOR]. This will bring up the Actions Window.
-
Click the blue icon above the white text field and select [COLOR=BLUE]Expert Mode[/COLOR]. Now type in the white textfield [COLOR=BLUE]stop();[/COLOR].
-
Select the second frame, then choose [COLOR=BLUE]Import[/COLOR] from the File menu. Double-click your picture (it will now be on the stage) and resize it to your needs (using the Transform tool, Transform Window or Info Window).
-
Do the exact same as in step 4 - 5, except now for frame two instead of frame one.
-
Now add this code to your button:
[AS]
on (release){
_root.showpic.gotoAndStop(2);
}
[/AS]
There ya go, a complete user guide By the way, why is this in Footer Contest ?
this belongs in the flash sections, not a footer contest.
Voetsjoeba, i had nothin to do wid d problm or solutn
just wanted to congratulate on this great explaination :thumb:
u should exploit and write tute.i m not kiddin:P or am i:P hahaha
no seriously, i like the way u explained it.
Thx Flasherjaz I do my best
[EDIT] So did it work out for ya ? [/EDIT]