html - Flash AS3 url link to open separate swf in an iFrame -


I'm trying to use the swf menu to change the content swf below in an iframe so that the menu There is no problem in loading it, but adding the button is having trouble.

My flash code is:

  homeButton.addEventListener (MouseEvent.CLICK, HomeButtonFunction); Function Home Button Function (Event: Mouse Event) {var targetURL: URLRequest = New URLRequest ("http: // SiteTiltload"); NavigateToURL (targetURL, "_iframe"); The html code for iframe is:  

& lt; Iframe src = home.html name = "iframe" width = "630" height =

"300" frameborder = "0" scrolling = "no" & gt; & Lt; / Iframe & gt;

Thanks for any help :)

menuIframe or just something other than iframe .

  & lt; Iframe src = home.html name = "menuIframe" width = "630" height = "300" frameborder = "0" scrolling = "no" & gt; & Lt; / Iframe & gt;  

I can not really tell that this is the only problem, but to navigate you the URL will need URLRequest (which you have correctly) and the goal. In this case your goal should be the name of iframe, not just try _iframe :

  navigate to URL (targetURL, "menuIframe");  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -