PDA

View Full Version : Nextframe from html?!


alsvik
04-03-2005, 10:57 PM
Is it possible to load dynamic text (rendered as html), and within the text having a link, that goes to next frame in the movie (or to a framelabel)?

And if, how?

Sorry for the lousy title :cool:

badlorry
04-04-2005, 12:15 PM
so what you're saying is that you want HTML embedded within flash to call a nextframe function within flash

I know that it's possible to place hyperlinks within HTML text for a dynamic text field. But I've never come across an internal call from HTML code embedded within

A quick and easy fix could be to place an invisible hitspot over the 'hyperlink' that calls nextFrame within Flash, unless you have dynamic text that changes often, in which case you could make the hitspot sit over the whole text box

alsvik
04-04-2005, 01:05 PM
The content of the html changes often...

And i guess it should be possibel with some javascript perhaps.
This could be done in Flash 4 (i found and page on this topic, that referes to a page on Macromedia's site - but that page has moved noW)

alsvik
04-04-2005, 10:18 PM
Well - it IS possible:

See this: www.permedia.com - Tutorials (http://www.permadi.com/tutorial/flashjscommand/)
and at Macromedia:
Flash Methods (http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html)
and...
more at Macromedia (http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14253)

But i'm not really able to boil it down to anything usefull :o

badlorry
04-05-2005, 10:42 AM
yeah, I think the issue with this is not the communication between flash and the HTML, but rather getting the HTML within the flash, to talk to either the Flash or the HTML, preferably the former.

those links refer to the ability to communicate with flash from the HTML page that the flash movie is embedded in rather than the HTML that is embedded in the flash textfield.

it might be worth investigating the ability to place scripting within the HTML code of the textfield, but this may have browser-specific problems, as with any other javascript or vbscript calls from HTML