Flash Trouble

  • Thread starter Thread starter Shannon
  • 4 comments
  • 665 views
Messages
15,799
I've ran into some trouble here. I've got my Flash navigation bar with all mah links to my pages. Now, when the user clicks on the link I want the pages to load in an IFrame labelled content.

Now, I've added the following Actionscript to my buttons:
Code:
on (release) {
    getURL("./home.htm", "_content");
}
When I embed the Flash file into my HTML and try the links it won't load my pages up in the IFrame. :(
 
Can you post some sourcefiles so I can get a beter idea of what is going on.

Treat the link exactly as you would with a normal iframe. - If thats not what you are doing already.
 
I found out the problem:

Code:
<iframe [b]name="_content1"[/b] id="content" height="374" width="620" src="./home.htm" frameborder="0">
I forgot to add a name attribute to my IFrame. In this case I named it _content1. The name attribute is the part Flash looks for to load the file.

Thus, I add the following actionscript to my buttons in Flash:
Code:
on (release) {
    getURL("./home.htm", "_content1");
}
 
I am having trouble getting my Flash movie to return to my home page after it plays. I tried get URL but when I place it in the dialogue box it doubles the address and I get an unknown address message after it runs? It can't find it ?
 
Back