Difficulty: Moderately Challenging
Things You’ll Need:
- a knowledge of Flash (this tutorial assumes intermediate experience in this Adobe product)
- a knowledge of HTML (enough to make minor changes)
Step1
Open your source FLA or Flash file and, if you have not already, save it as a recognizable name. Keep in mind that this file will be referenced later.
Step2
Create a button instance with at least an up and down state.
Step3
As the Action for this new button, type the following three lines:
1.) on (release){
2.) get URL("NAMEOFFILE.swf");
3.) }
Step4
Publish your FLA file - Shift + F12 will publish, but BEFORE you do, ensure that your publish settings dialog box accessed from the File menu has the SWF and HTML files/options selected - so that these files are auto-published.
Step5
Navigate to your save location and open the HTML file that you just published in step 4.
Step6
In the HTML file, in the BODY tag, add the following: onUnload="top.close()"
Comments
sora120592 said
on 4/21/2008 Hi i just wanted to let you know that you can controle a object in the first frame like with your button(we will give it the instance name "sally"):
this.sally.onRelease = function ()
{
get URL("NAMEOFFILE.swf");
};