Saturday, July 11, 2009

WEB DESIGN/FLASH, ACTIONSCRIPT/DREAMWEAVER EXPERTS! I have a questions about flash buttons and html

Here is the deal..



I have created buttons in Flash. And I%26#039;ve also created an HTML page using frames (topFrame,leftFrame, and mainFrame)



I have the buttons in the left frame. And I want the actual page to open in the %26quot;mainFrame%26quot;.



I%26#039;ve surfed the web and always come up with:



%26quot;in your actionscript, use



on (release) {



getURL(%26quot;Page.html%26quot;, %26quot;mainFrame%26quot;);



}



So if thats your solution-it is not working. I%26#039;ve tried that.



How can I get the flash buttons to open up pages in the mainFrame???



WEB DESIGN/FLASH, ACTIONSCRIPT/DREAMWEAVER EXPERTS! I have a questions about flash buttons and html frames...





If your frames are nested you can try _top.mainFrame or _parent.mainFrame instead of just mainFrame.



Lets troubleshoot:



1) Does the button get released? Is the actionscript in the correct place? Add some extra functionality in your on(release) code to test it. ie. trace (%26#039;this button is pressed%26#039;) and test it while developing.



2) Does the button opens anything at all? If a new window is created but not the correct frame, this means that your frames are named wrong. You can use Web Developer extension in Firefox to outline iframes and see if something is wrong with them.



Thats all I can think of.

No comments:

Post a Comment