PDA

View Full Version : Load Movie actionscript Problems.


kristoff
08-10-2007, 07:13 PM
Hi, I am a self-taught flash developer and am picking it up quite nicely, however, I am trying to contsruct a portfolio using the set-up of having a main flash file which loads in all external pages using the "loadMovie" function. When I test one of the pages on its own, it works fine. I have various scripts,but the one I am having problems with is getting the dynamic text action to work. When testing the external page on its on, it works fine, and when i roll over certain buttons, it displays the dynamic text as it should.
However, when I load this movie into the main flash file and test it, everything works (in terms of buttons, drag functions etc) apart from the dynamic text scripts. I stumbled upon the _lockroot function which I have tried to apply to the movieclip loader in the main flash, and have also tried applying the _lockroot to the first frame of the .swf I am loading in. No matter which variation I use it doesnt seem to work.
I have also tried playing around with absolute and relative paths when trying to target the dynamic text, however this doesnt seem to make any difference.

Please HELP!!!

kristoff
08-10-2007, 07:17 PM
Hi, I am a self-taught flash developer and am picking it up quite nicely, however, I am trying to contsruct a portfolio using the set-up of having a main flash file which loads in all external pages using the "loadMovie" function.

When I test one of the pages on its own, it works fine. I have various scripts,but the one I am having problems with is getting the dynamic text action to work. When testing the external page on its on, it works fine, and when i roll over certain buttons, it displays the dynamic text as it should.

However, when I load this movie into the main flash file and test it, everything works (in terms of buttons, drag functions etc) apart from the dynamic text scripts.

I stumbled upon the _lockroot function which I have tried to apply to the movieclip loader in the main flash, and have also tried applying the _lockroot to the first frame of the .swf I am loading in. No matter which variation I use it doesnt seem to work.

I have also tried playing around with absolute and relative paths when trying to target the dynamic text, however this doesnt seem to make any difference.

Please HELP!!!

CyanBlue
08-10-2007, 07:34 PM
Howdy and Welcome... :)

I think you simply need to embed the font that you use on the child movie into the main movie... See if that helps...

kristoff
08-10-2007, 09:41 PM
It worked!!! Thanks. Is it only dynamic text you need to embed when using a loadMovie setup? or is it all text types?

Also, I'v been using the startDrag function restricting the vertical movement, however when I have wide movieClip (over 1200px wide) the values for Left,Top,Right,Bottom seem to not work as they do with movieClips under 1200px. Also, if I make the Top and Bottom values 0 the movieclip disappears, so I have to add a 1pixel value to the bottom which adds a slight jump to the movieClip when you first click on it. Any suggestions?

CyanBlue
08-13-2007, 01:34 PM
Flash embeds the font automatically for the Static textField... But you've got to do that yourself for the Dynamic and Input textFields...

Please post that startDrag question to a separate thread... That's whole lot easier for those who search the forum... ;)