A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [F8] Html Controlling Flash....

Hybrid View

  1. #1
    Member
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    64

    [F8] Html Controlling Flash....

    I am loading XML childNodes like these

    Code:
    <p><a class="link" href="external/img07.jpg">Picture 07</a></p>
    into the htmlText dynamic boxes.

    Is there a way to click on the link inside the textbox, and display this image in the link in a separate movieClip (that's next to the textbox) ALL in the same Flash Movie. Or at least display outside in a pop up html window

    Hope it all makes sense...

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    use asfunction -
    Code:
    <a href='asfunction:myFunction,external/img07.jpg'>Picture 07</a>
    in Flash -
    Code:
    function myFunction(param){
    myClip.loadMovie(param);
    };

  3. #3
    Member
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    64
    Quote Originally Posted by a_modified_dog
    use asfunction -
    Code:
    <a href='asfunction:myFunction,external/img07.jpg'>Picture 07</a>
    in Flash -
    Code:
    function myFunction(param){
    myClip.loadMovie(param);
    };
    You are incredible! You saved me a lifetime looking for this. Thanks man

  4. #4
    Senior Member
    Join Date
    Jun 2001
    Posts
    169
    How are you using links within the xml? I can never seem to get that to work.. the xml just things its a new element when it sees the <a> tag. Do you have some script checking that?

  5. #5
    Member
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    64
    Quote Originally Posted by whoa002
    How are you using links within the xml? I can never seem to get that to work.. the xml just things its a new element when it sees the <a> tag. Do you have some script checking that?
    Set your dynamic textbox to html (textbox.html = true)
    Then, instead of using a nodeValue, get the textBox to display the element itself, thus the <a> tag will become a link....

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