PDA

View Full Version : Flash question



Atty
March 10th, 2008, 05:28 PM
My friend is working in flash and needs some help.

He's got a basic flash page, for myspace, and wants to open a new window within it.

Basically you are clicking on the text, "About Me", and he's wanting it to open a new window to display new information (either a new flash or text) but he doesn't know how to do it. Any help?

Will rep for help. :awesome:

beele
March 11th, 2008, 05:07 AM
If you mean a popup window(html), that can be done quite easily.

first make the text you want to click a button and add the following code:

on (release){
getURL("http://www.yoururl.yourdomain (http://www.yoururl.yourdomain)", _Blank);
}

It will now open a new page showing the webiste you entered in the code.

If you want a popup in the flash itself, make a new button and a movieclip that will contain your popup. In the movieclip, leave the first frame blanc and add the stop(); code to it. Put your popup on the second frame (can be more than one frame, if your popup will be animated.) Make sure you give your movieclip an instance name. Then add the code below to the button on your main timeline.

on (release){
instancenamemc.gotoAndPlay(##);
}

or add this one:

on (release){
instancenamemc.gotoAndStop(##);
}

The first one makes you go to a given frame (## is the frame number) and play the timeline from then on, the second one makes you go to the set frame and stop there.

If you want a html window to open in the flash file, that can't be done.

If you need any more help, feel free to pm me.

MNC
March 11th, 2008, 07:32 PM
^^^ Couldn't have explained it better.