LoadMovie with dynamic text in Parent Movie. Please HELP!

Hi.

(I previously posted this thread in Flash MX Forum but I think it should be here instead. Sorry)

Funny behaviour…I’m trying to load an external MC containing dynamic text (MC-Clip.swf) to a MC empty holder (MCimport) within my main/parent movie.

This piece of AS is attached to a button (to call the dyn. txt clip):

on (release) {
_root.loadMovie (“MC-Clip.swf”, “MCimport”);
}

With this, the dynamic text gets loaded indeed… but Fullscreen into the parent movie, and not into MCimport (where it should be).

Now… I don’t understand why, but the thing is that if MC-Clip.swf contains just static text (and change accordingly the text properties to static text in the holder MC), it gets loaded in the right place (MCimport) within the main/parent movie. (!!!)

And this is the piece of AS attached to the button (to call the MC containing the static txt):

on (release) {
loadMovie (“MC-Clip.swf”, “MCimport”);
}

In order to get loaded the dynamic text into the target MC inside the parent movie, I’ve tried many different combinations (some of them even absurd I think)…the result? same behaviour or even worse. Some of them are:

// loadMovie(“MC-Clip.swf”,_root);
// _level0.loadMovie(“MC-Clip.swf”, MCimport);
// this.loadMovie (“MC-Clip.swf”, “MCimport”);
// loadMovie (“MC-Clip.swf”, this);
// _root.MCimport.loadMovie(“MC-Clip.swf”,this);

// clip=“Mcimport”;
// loadMovie(“MC-Clip.swf”, this.clip);
or // loadMovie(“MC-Clip.swf”,_root.clip);
or // loadMovie(“MC-Clip.swf”,_parent.clip);

Is it strange indeed or am I doing something wrong? Can somebody help me please?? I’m going mad with this silly thing and I’ve run out of ideas!!

If anybody wants to have a look at it all, here’s the zipped fla (12Kb): Load Movie Fla (Unzip all files to a folder and double click on Loading Dyn TXT.swf to start the party…).

Thank you!
Manare

:slight_smile:
tried almost all possible combinations, just not the right one, lol
if you have mc_clipname.loadMovie(otherMovie, whatever);
the content will load into mc_clipname!
(as in “_root.loadMovie (“MC-Clip.swf”, “MCimport”);” => loads into _root)
so the 2nd one was correct: loadMovie (“MC-Clip.swf”, “MCimport”); and should work with dynamic and static text, the path to the dynamic textfield is then _root.MCimport.textfieldName.text …

so you have
// loadMovie(“MC-Clip.swf”,_root);
=>loads into _root
// _level0.loadMovie(“MC-Clip.swf”, MCimport);
loads into _level0
// this.loadMovie (“MC-Clip.swf”, “MCimport”);
this, called from _root, is _root again
// loadMovie (“MC-Clip.swf”, this);
same here, this = _root
// _root.MCimport.loadMovie(“MC-Clip.swf”,this);
yup…

ah, paths…

Pffff…I get the general idea of what you say, but I’m too thick as I still can’t make it work…
Any other hint?? :wink:

Thanks,
Manare

I really don’t get it… :block:
The MC holder (named MCimport in my fla) is the empty target MC which will hold the dynamic or the static text.

You say it should load whatever type of text when using: **loadMovie (“MC-Clip.swf”, “MCimport”); ** but it only works when static text is used in MC-Clip.swf. After trying different combinations I found out that by adding _root.**loadMovie (“MC-Clip.swf”, “MCimport”); ** the target MC-Clip.swf was loaded…but not into destination MCimport but in fullscreen and overlapping the main movie. (!!!)
…I really can’t understand why it is not loaded where I tell Flash to load it…

I’ll wait for more suggestions…the more I think about it the least I understand it…

Thanks!
Manare

THIS IS AMAZING GUYS!!!

…I’ve been able to see that it was a problem of Windows FLASH PLAYER!!!..
I normally work with Flash 5 but I also had a demo version of FlashMX coexisting in the same computer.
For any strange reason default player in my Windows XP was Flash Player 5 r30. After reinstalling the Flash MX demo, the player is now Version 6 r23…and now it works…
…and the most amazing thing (GOD give me patience…but NOW! ) is that if it wasn’t for that thing on version players, I would have done it well since the beginning -as you can see in my first post above- I firstly wrote:

on (release) {
loadMovie(“MC-Clip.swf”, “MCimport”);
}

and seeing it didn’t work for dynamic text, I started all that mess about adding _root’s and _this and _parent’s and other desperate nonsenses of mine…(as seen in my AS-fla with many // of “non-working” and “already tried” code)

OK, nevertheless…now I’m a happy guy!
Just watch out everybody with such silly things which can bring you many headaches for details which are in a first instance, out of reach…

Specially thanks to eyezberg for the “brainstorming” exercise! :stuck_out_tongue:

Happy Flashing!
Manare