To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-07-2006, 12:22 AM   #1
Skulky
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...
Skulky is offline   Reply With Quote
Old 10-07-2006, 07:35 AM   #2
a_modified_dog
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);
};
a_modified_dog is offline   Reply With Quote
Old 10-07-2006, 07:54 PM   #3
Skulky
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
Skulky is offline   Reply With Quote
Old 10-08-2006, 11:18 PM   #4
whoa002
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?
whoa002 is offline   Reply With Quote
Old 10-09-2006, 10:59 AM   #5
Skulky
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....
Skulky is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:49 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.