URLRequest - targetting an iFrame

  • elBurroDiablo
  • Novice
  • Novice
  • User avatar
  • Posts: 16

Post 3+ Months Ago

I'm in the process of converting a website from AS 2.0 to AS 3.0, and am having trouble with a button that is supposed to load an HTML page into an iFrame. The name of the iFrame is "sideinfo" - am I targetting the iFrame incorrectly?

Code: [ Select ]
function playMovie01(evt:Event):void{
    root.gotoAndPlay("movieFrame01")
    var SideURL:URLRequest = new URLRequest("iframes/dropdown_hyster2.html","sideinfo");
    navigateToURL(SideURL);
}
b01.addEventListener(MouseEvent.CLICK, playMovie01);
  1. function playMovie01(evt:Event):void{
  2.     root.gotoAndPlay("movieFrame01")
  3.     var SideURL:URLRequest = new URLRequest("iframes/dropdown_hyster2.html","sideinfo");
  4.     navigateToURL(SideURL);
  5. }
  6. b01.addEventListener(MouseEvent.CLICK, playMovie01);


Thanks for your help!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • elBurroDiablo
  • Novice
  • Novice
  • User avatar
  • Posts: 16

Post 3+ Months Ago

...or thanks for not helping!
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Patience is a virtue, young grasshopper.
Code: [ Select ]
var SideURL:URLRequest = new URLRequest("iframes/dropdown_hyster2.html");
navigateToURL(SideURL, 'sideinfo');
  1. var SideURL:URLRequest = new URLRequest("iframes/dropdown_hyster2.html");
  2. navigateToURL(SideURL, 'sideinfo');

The URLRequest constructor only takes one argument: the URL. You specify the target when you call navigateToURL(). At least this is how I've always done it in Flex projects.

http://livedocs.adobe.com/flex/201/lang ... quest.html
  • elBurroDiablo
  • Novice
  • Novice
  • User avatar
  • Posts: 16

Post 3+ Months Ago

EXCELLENT! That worked perfectly. Thanks a million...

Flex...not familiar with it whatsoever, but see mentions of it all over the net, and in a few books I've bought. What exactly are you doing with Flex, and why might one use it as opposed to Flash? I'm assuming its more so a development tool in comparison with Flash, as opposed to a "bells & whistles" app?

You're in Rochester? I'm actually working in Clarence...live in Buffalo.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

I was just in Buffalo last night to pick a friend up from the airport.

Flex is a development framework for building Rich Internet Applications. It allows you to build cross-platform applications that can be run in any browser that has Flash player installed. Adobe is also going to be releasing AIR soon (Adobe Integrated Runtime) that will allow Flex applications to be run on the desktop.

http://www.adobe.com/products/flex/
  • elBurroDiablo
  • Novice
  • Novice
  • User avatar
  • Posts: 16

Post 3+ Months Ago

Very cool...but something I'll refrain from digging into just yet, until I'm a bonafied AS guru.

Post Information

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