PDA

View Full Version : from dynamically loaded hyperlink to Flash



jerryj
June 18th, 2005, 12:09 PM
Hi,
I have a dynamically loaded text file. In this file I want to make a hyperlink, by adding the HTML code to the file. I wonder if it is possible to make that hyperlink do something in a Flash Movie (like got to a certain frame making certain levels visible or invisible).
Maybe with the help of javascript.

I would be amazed, but also pleased if this turns out to be possible!

I can't make a button in Flash, because the textfield is scrollable, and the button won't move with the loaded text (although, writing this it occurs to me , that it maybe possible; make the position of the button respond to the position of the scrollbar, mmm)

Thank you,

Jerryj.

stringy
June 18th, 2005, 02:00 PM
Hi,
I have a dynamically loaded text file. In this file I want to make a hyperlink, by adding the HTML code to the file. I wonder if it is possible to make that hyperlink do something in a Flash Movie (like got to a certain frame making certain levels visible or invisible).
Maybe with the help of javascript.

I would be amazed, but also pleased if this turns out to be possible!

I can't make a button in Flash, because the textfield is scrollable, and the button won't move with the loaded text (although, writing this it occurs to me , that it maybe possible; make the position of the button respond to the position of the scrollbar, mmm)

Thank you,

Jerryj.

http://www.kirupa.com/forum/showthread.php?t=99244

jerryj
June 18th, 2005, 02:14 PM
Very interesting.

I'll try that,

thanks!

Jerryj.

jerryj
June 18th, 2005, 02:50 PM
Amazind, didn't know this asfunction thing,

thanks!!

Jerrryj.

stringy
June 18th, 2005, 02:51 PM
Very interesting.

I'll try that,

thanks!

Jerryj.
welcome, just change the "load" function to a "gotoAndStop()" function :)

jerryj
June 18th, 2005, 03:14 PM
Yes, well, what I needed was to pass data to a function, like this, and it works:


<a href='asfunction:_level11.playText, adverteren.txt'>Adverteren >>></a>

:)

Krilnon
June 18th, 2005, 03:29 PM
I haven't seen anyone use the word hyperlink in a long time.

jerryj
June 18th, 2005, 04:14 PM
do a search for it and you'll be surpr:huh:sed !

jerryj.

jerryj
June 18th, 2005, 04:42 PM
mmm, there is one problem though: it doesn't seem to work in Mozilla Firefox and Netscape (on pc)! It works in IE.

Does this sound familiar to you?

thanks,
Jerryj.

jerryj
June 18th, 2005, 05:12 PM
Thank God, I found it. There should be no space between the comma and the parameter!

<a href='asfunction:_level11.playText,adverteren.txt'>Adverteren >>></a>
Jerryj. :snooze:

jerryj
June 18th, 2005, 05:13 PM
and probably no space behind the > symbol, but I didn't do that, this board did! :run: