View Full Version : Editing in another movie clip
webmigit
03-14-2006, 07:01 PM
Thanks to OldNewbie and ScottAE, my flash application is working nearly perfectly with a preloader.
I just have one question... Before using the external flash pre-loader.. I was using FlashVars to set text fields.
I'll still have to use FlashVars to load into my preloader.. but how do I load from my preloader into my movie clip containing my actual movie once the loading is done.
Is it as simple as MyMC.variable = "value"..? Or MyMC._global.variable?
Thanks for any help... As this is two flash movies, its very difficult to debug when I'm not sure which side the miscommunication may be on.
oldnewbie
03-14-2006, 07:16 PM
Have you used my external preloader only movie?
If so, aren't you re-loading your movie on level 0 at the end of the preloading?
Thus clearing out the preloader movie, and all of it's variables unless they were gllobal ones?
webmigit
03-14-2006, 08:51 PM
I used it exactly.
I only changed the url on the two lines it said to change the url, and moved some elements around..
Maybe there's something wrong with my actionscript reading flashvars.
This works directly, but not when loaded through that absolutely great (seriously) preloader.
if (_root.pPhoneNumber.length > 0) {
_root.PhoneNumber.text = _root.pPhoneNumber
_root.ActCode.text = _root.pActCode
}
oldnewbie
03-14-2006, 08:58 PM
Although I'm sure if MichaelxxOA sees this, he'll post something against global variables, have you tried setting the FlashVars variables as global ones in the preloader .swf so that they're retained and are still available (as global variables) in your own loaded .swf?
webmigit
03-15-2006, 04:04 PM
So you're saying..
My preloader should say
if (_root.pPhoneNumber.length > 0) {
_global.PhoneNumber = _root.pPhoneNumber
_global.ActCode = _root.pActCode
}
and then my main should say?
if (_global.PhoneNumber.length > 0) {
_root.PhoneNumber.text = _global.PhoneNumber
_root.ActCode.text = _global.ActCode
}
oldnewbie
03-15-2006, 04:42 PM
Did you try it?
webmigit
03-15-2006, 05:04 PM
Yeah, it didn't work so I reverted and tried again and it works perfect. Thanks.
oldnewbie
03-15-2006, 05:29 PM
Well grrrrrrrrrrrrrrrreat! ;)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.