PDA

View Full Version : Loadvariables and sent to an MC


Lynx75
02-04-2003, 04:16 PM
Hi,
ive got a simple quiz for all of you:

Ive got on frame 1 an mc where I load a variable:

_level0.newsinternal.title.loadVariables("http://66.78.26.5/~sergiodr/readnews.php?id="+id, "GET");

then it jump on frame 5 and ive got this MC newsinternal with a text field named title,which is the same var at the top of the file readnews (title= etc etc etc...).

but it seem it doesnt works.
If I place a simple text field on frame 5 named title and I use

_level0.loadVariables("http://66.78.26.5/~sergiodr/readnews.php?id="+id, "GET");

it works.My prb is : how do I redirect this variable inside of an mc on another frame?

thanks...bye

jimburton
02-04-2003, 04:36 PM
when your data is loaded into an mc it only exists as long as that mc is on the stage...if you go to another frame, nothing remains...you could copy the data up to main timeline or the timeline that both these clips sit on though...

freddycodes
02-04-2003, 04:36 PM
_level0.newsinternal.title.loadVariables("http://66.78.26.5/~sergiodr/readnews.php?id="+id, "GET");


Well you are laoding it into newsinterval not newsinterval.title so first change

_level0.newsinternal.loadVariables("http://66.78.26.5/~sergiodr/readnews.php?id="+id, "GET");


Also you can't reference a movie clip until it appears in the timeline. So you either have to put the movie clip newsinterval strating at frame 1 also or rethink your strategy. You using Flash MX or Flash 5.

Lynx75
02-04-2003, 06:44 PM
ive found a solution: I placed my MC newsinternal from frame 1 to 5 on a top layer and set a _root.newsinternal._visible=0 or 1!!
8)

done the job in less then 15sec! 8)

millions of tnx anw!

bye