all groups > flash actionscript > november 2006 >
You're in the

flash actionscript

group:

Java Script in Variables using loadVariables



Java Script in Variables using loadVariables yuvic
11/25/2006 11:53:31 PM
flash actionscript: Hey Guys!
I have a problem, I'm loading variables into a dynamic text box in Flash that
has HTML enabled in it (so that HTML code like A HREF appears as a URL in it) -
one problem though, I was trying to pass a A Href onClick command to it, and it
didn't work, something like this:
&myvar=<a href = "http://www.myspace.com" onclick="alert('A Place For
Friends!')">A Place For Friends!!!</a>
The url itself works well, but the on click command does not work. Yes, I
tested it in a browser and on a server, so I have no idea why it's not working.
I would also like to know how I can enable JavaScript in addition to HTML in
the dynamic text box.
Thank you so much,
Yours truly,
Yuval Karmi
Re: Java Script in Variables using loadVariables kglad
11/26/2006 6:15:25 AM
you can't enable javascript for a textfield.

but you can use the asfunction() to call a function in flash and you can then
use that flash function to call some javascript (using the externalinterface
class is recommended, if you have flash 8).
AddThis Social Bookmark Button