Code explanation

  • flashkicks
  • Beginner
  • Beginner
  • No Avatar
  • Joined: May 21, 2005
  • Posts: 37
  • Status: Offline

Post July 9th, 2005, 2:53 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 9th, 2005, 2:53 pm

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post July 9th, 2005, 3:47 pm

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
  • No Avatar
  • Joined: May 21, 2005
  • Posts: 37
  • Status: Offline

Post July 9th, 2005, 4:15 pm

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 70 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.