Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with dynamic text and load movie

Status
Not open for further replies.

HumanBean

Technical User
Oct 1, 2004
13
AR
Hi, I need help with a flash site I'm making
I have a dynamic text that has a scrollbar component, and I need some parts of that text to trigger some loadmovie's.

For example, a certain part of text must link to something like this:

loadMovieNum("G2_7.swf", 1);

I thought that maybe rendering the text as html, there might be a way to tell the text to load a movie inside that same flash movie, but I haven't been able to do it yet...

Is there any way to do this or is it just impossible? in that case, could you suggest me a solution?

Making the text static is not an option as I need it to run under a scrollbar component.

Thanks in advance


 
Yes, you would have to html text and "a href" tags calling up an asfunction (within your Flash movie, on it's first frame...), which will in turn, holding your loadMovie actions, load the re1quested movie...


// asfunction explained

EDIT: Ummmmmmmh! That last link seems down at post time...
Don't know if this is permanent or not...

Meanwhile, maybe check this one...



Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Sorry, but that wasnt so clear to me ,maybe because my native language is spanish so it's a bit confusing... maybe we can set a more clear example for what I need, so I try it with my flash movie...

example: I have this text (dynamic text; multiline, render as html; instance name: mytext)


"Cámara testigo registró las accidentadas instancias de un Campeonato Mundial de Perros que se realizó en Buenos Aires. Una bomba de gas lacrimógeno provocó una evacuación del certamen. Todos apuntaron a los criadores de nuestro perro nacional: el dogo argentino"

(this is just random text I took from a newspaper site.)


for example, If I need "Buenos Aires" (I added the bold code only so it's more clearly visible) to load a movie inside flash, let´s say "myimage.swf", how should I create a code for that?

as far as I understood, I have to first set a function at the beginning of the movie and then a link to the swf in the URL Link propierty of the text, but I'm not sure about how to do it.... If you could help me, I would really appreciate it

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top