Code explanation

  • flashkicks
  • Beginner
  • Beginner
  • flashkicks
  • Posts: 37

Post 3+ Months Ago

I am creating a website in a frameset with a flash header in which has a navigation bar. I need to simulate an action where as a button is clicked a html page opens in a frame below the flash header. I was given the code below and tried to use it how I though but the html document that was supposed to load in the below frame instead loaded in the frame that the flash header was in thereby replacing it. Where you can see the “_mainFrame” this was the name given (by dreamweaver) to the frame directly under the frame that the flash header was in and was the frame that I wanted the “testfile.htm” to appear in.

what have I done wrong?

myButton.onPress=function() {
getURL("myPage.html", "_myContentFrame");
}

I used this code in my website

myButton.onPress=function() {
getURL("http://mywebsite/testfile.htm", "_mainFrame");
}

*please note: “http://mywebsite/testfile.htm” represents accurately what I put but was not actually what I put*
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

You named your frames with underscores?

Try removing the underscores from the frame names and from the actionscript.

This method does work for frames, and I've never seen it done with underscores for custom names, so that is the only issue I can see wrong here.
  • flashkicks
  • Beginner
  • Beginner
  • flashkicks
  • Posts: 37

Post 3+ Months Ago

thanks man, i will let you know if that works because this is the only thing stopping me

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 19 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.