Help - loading HTML page in iframe via actionscript 3

  • chin-shan
  • Born
  • Born
  • chin-shan
  • Posts: 1

Post 3+ Months Ago

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 !!!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23454
  • Loc: Woodbridge VA

Post 3+ Months Ago

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

Post Information

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

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