Friday, January 8, 2010

How do i edit something in flash macromedia?

I just made a website using macromedia flash. It works perfectly apart from i have no idea how i put the interactive buttons that ive used on the website to become hyper links if you know what i mean. I tried using dreamweaver but i cannot click on the interactive buttons.





anyone got any ideas and can you please go into a little bit detail explaining thanks.How do i edit something in flash macromedia?
You have to add Actionscript code to your buttons. The code is different depending on whether you are using AS2 or AS3.





for AS2, it's very simple. Open the FLA file in the Flash authoring environment and click the button you want to add code to. Make sure it says Actions - Button in the top title area of the Actions panel and then add your code.


on(release){


getURL(';http://www.website.com/newpage鈥?br>

}





If you want the new web page to open in a new browser window add the ';_blank'; parameter after the URL separated by a comma inside the parenthesis.





AS3 is more complicated


You have to create a listener and add a function to open a web page


The code doesn't go on the button anymore, but on the actions layer, usually first frame of your movie. This Yahoo software will probably truncate the code, so check your help files for complete info on this in Flash CS3.





function gotoNextPage(event:MouseEvent):void


{


var nextURL:URLRequest = new URLRequest(';http://www.yourwebsite.com/n鈥?br>

navigateToURL(nextURL);


}





linkButton.addEventListener(MouseEvent鈥?gotoNextPage);

No comments:

Post a Comment