Actionscript 2 Question

This is a discussion on Actionscript 2 Question within the Macromedia Flash forums in Adobe Tools category; Hi All, I am having problems with a project I am working on. If I target Flash Player 6 in the Publish Settings the following code works. If I target Flash Player 8 the jpg's don't load. Anyone have any ideas on why this is happening? if(_global.ref == 1) { loadMovie("web/"+_global.referenz+".jpg",_root.referenz_main.pic_ container); } if(_global.ref == 2) { loadMovie("3d/"+_global.referenz+".jpg",_root.referenz_main.pic_ container); } Many Thanks, Scott...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-12-2008, 11:50 PM
ScottE
Guest
 
Default Actionscript 2 Question

Hi All,

I am having problems with a project I am working on. If I target Flash Player
6 in the Publish Settings the following code works. If I target Flash Player 8
the jpg's don't load. Anyone have any ideas on why this is happening?

if(_global.ref == 1)
{
loadMovie("web/"+_global.referenz+".jpg",_root.referenz_main.pic_ container);
}

if(_global.ref == 2)
{
loadMovie("3d/"+_global.referenz+".jpg",_root.referenz_main.pic_ container);
}

Many Thanks,
Scott

Reply With Quote
  #2  
Old 10-13-2008, 01:00 AM
kglad
Guest
 
Default Re: Actionscript 2 Question

you probably have a typo in one of your variable names. in flash 6, _root.referenz_main.pic was the same as _root.referenz_Main.pic but not in flash 7+.
Reply With Quote
  #3  
Old 10-13-2008, 03:00 PM
ScottE
Guest
 
Default Re: Actionscript 2 Question

Hi Keith,

Thanks for the reply. The only other code I can find is in a framescript that
reads:

main = 1;
_global.referenz = 1;
_global.ref = 1;

I'm not sure is this is Flash Player 8 compatible or not but your help would
be greatly appreciated.

Thanks

Reply With Quote
  #4  
Old 10-13-2008, 05:29 PM
kglad
Guest
 
Default Re: Actionscript 2 Question

if referenz is always 1, you may as well hard-code it. and there must be code that assigns a value to _root.referenz_main.pic_container and there's a stage instance that referenced by this code..
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:15 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.