A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: URl in a new window.

  1. #1
    Senior Member
    Join Date
    Apr 2003
    Posts
    138

    URl in a new window.

    My friend asked me this question but I don't know anything about as3. Here is the code he is using:
    Code:
    onClipEvent (load) {
    imageNumber=1;
    imageProperties=_root.getCurrentImageName(imageNumber);
    loadMovie(_root.url+imageProperties['name'], this.cont.cont1);
    url=imageProperties['linkToOpen'];
    }
    
    
    It reads to the xml file:
    
    
    <page name="ABOUT">
    <image imageUrl="_pic1.jpg" link="http://www.adirondackgraphics.com"/>
    <image imageUrl="_pic2.jpg" link="http://www.susanstotthomes.com"/>
    <image imageUrl="_pic3.jpg" link="http://www.herestoyourhealth.us"/>
    <image imageUrl="_pic4.jpg" link="http://www.crosscreekcc.com"/>
    <image imageUrl="_pic5.jpg" link="http://http://www.blueridgeinnandsuites.com"/>
    <image imageUrl="_pic6.jpg" link=""/>
    <image imageUrl="_pic7.jpg" link="http://www.adirondackgraphics.com/folio/print/sample.html"/>
    <image imageUrl="_pic8.jpg" link="http://www.adirondackgraphics.com/folio/ads/sample.html"/>
    <image imageUrl="_pic9.jpg" link=""/>
    <texts>
    He is trying to make it so when you click on a link it opens in a new window but can't get it to work.

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    That's not AS3.

  3. #3
    Senior Member
    Join Date
    Apr 2003
    Posts
    138
    idk. He told me he was using cs3 and as3. I went thru a lot trying to figure it out and then he sent me that code snippet. Personally, i thought you could just:
    Code:
    <image imageUrl="_pic1.jpg" link="http://www.adirondackgraphics.com" target="_blank"/>
    He said it didn't work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center