Help - loading HTML page in iframe via actionscript 3

  • chin-shan
  • Born
  • Born
  • No Avatar
  • Joined: May 30, 2009
  • Posts: 1
  • Status: Offline

Post May 30th, 2009, 3:50 am

Hi,

I have a base page, containing a flash object and an iframe object (named - "myframe"). The flash object contains a button. Clicking on this button should load a page (for eg: http://www.google.com") in the iframe object - myframe.

I've used the following function:

var request:URLRequest = new URLRequest("http://www.google.com");
navigateToURL(request, "myframe");


However, when i open the base page and click on the button, it is opening the page in a new window, instead of the iframe.

Need help, very urgent !!!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 30th, 2009, 3:50 am

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23407
  • Loc: Woodbridge VA
  • Status: Offline

Post May 30th, 2009, 6:21 am

Never tried this and there's no indication if it worked. Check the second answer here
http://stackoverflow.com/questions/1760 ... stom-frame

//to get it to work with javascript you'll probably have to import and use the ExternalInferface class
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 35 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
 
 

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