Jump to content
Washington Football Team Logo
Extremeskins

Anyone here that knows/works with Flash (specifically actionscript)?


ImmortalDragon

Recommended Posts

you can look online for some tutorials, my skills are rusty but you can try:

button_btn.onRelease = function()

{

test_mc.loadMovie(“movie.swf”);

}

this is assuming your button is called "button_btn" and you have a blank movie clip named "test_mc" and your swf is called "movie.swf

hope this helps

Link to comment
Share on other sites

Assuming the movie is inert until someone presses the button.. and assuming that you have the movie held at frame 1 waiting for the button to be pressed..

make a layer, and in the first frame put a keyframe. Highlight that keyframe and bring up the action script window and write

stop()

Highlight the button symbol, open the action script window, put in the following script

on (release) {gotoAndPlay(2);}

gotoandplay will move the movie to the frame number you put between the () .. I put in 2 for demo.. you put in whatever frame your content begins on.

If you don't want the movie to loop, go to the final frame, put a keyframe on an empty layer, highlight it, open action script and write

stop()

Or, let it loop back and it will stop at frame 1 again after loading the button up.

Simple as that.

~Bang

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...