RE: [Flashcoders] vars with $
Curious, what does, mechanically generated code mean? Space robots? Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vars with $
I disagree. We use them to denote class members, and I've found it very effective. Alias On 8/18/06, Greg Burch [EMAIL PROTECTED] wrote: Using $ in flash is just wierd :). There is no special meaning - I don't think it should even be valid. On 8/18/06, Tom Lee [EMAIL PROTECTED] wrote: I've used it to indicate arguments in a function to clarify the origin of the variable, like this: function myFunc($arg1,$arg2){ trace($arg1+ : +$arg2); } I don't know where I picked that up, but for me it makes the code easier to read since you know immediately they are arguments. I've seen people use the underscore for the same purpose, but that can confuse things since ActionScript uses that for some native properties (_x,_y). Does anyone else do this, or am I just in my own little universe? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, August 18, 2006 4:27 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] vars with $ In addition, some programmers also use $ to indicate a string. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Paul Venton Sent: Friday, August 18, 2006 2:49 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I know PHP uses it and TorqueScript use $ and % to differentiate between global ($) and local (%) variables but it has no special meaning in Flash. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 18 August 2006 19:27 To: Flashcoders mailing list Subject: [Flashcoders] vars with $ Hi, Can anyone tell me what special meaning vars with $ have... thanks b ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vars with $
Curious, what does, mechanically generated code mean? Space robots? ...with the kicking and the biting with the metal teeth and the hurting and shoving. ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vars with $
Another relatively useful use is for flash getters/setters: class MyClass{ // you can't call this property id // because of the name of the get/set functions private var $id:Number; public function get id():Number { return $id; } // use of p_xx for parametrical variables public function set id(p_id:Number):Void { $id = p_id; } } It's up to you to choose between $, p_, _, or mc, txt, or whatever prefix you like to distinguish things more easily in your code. For my part, I don't use any prefix except for ui elements ('mc' for MovieClip, 'txt' for TextField, etc...) Tom Lee a écrit : The real benefit to marking parameters is when you use variables within a function that are defined outside the function. You could make an argument that it's poor practice to do so, but there it is. I guess you could prefix every other kind of variable instead. Also, when you are choosing names for your parameters marking them with some universal prefix is an easy way to avoid naming collisions. Does anyone really port ActionScript to PHP and Perl or did you just mean working in both languages individually? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: Friday, August 18, 2006 8:25 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I have seen others do it, or mark parameters with a p_. I prefer not to mark parameters in any special way. I mark private variables with _, so those are already distinct. And if I have a function that's so long that I can't see the top from somewhere in the body, it's well past time to cut it down into more manageable chunks. Plus, using $ makes it more confusing when switching between PHP or Perl (or another language that uses $ to mark all variables) and ActionScript. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee Sent: Friday, August 18, 2006 1:38 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I've used it to indicate arguments in a function to clarify the origin of the variable, like this: function myFunc($arg1,$arg2){ trace($arg1+ : +$arg2); } I don't know where I picked that up, but for me it makes the code easier to read since you know immediately they are arguments. I've seen people use the underscore for the same purpose, but that can confuse things since ActionScript uses that for some native properties (_x,_y). Does anyone else do this, or am I just in my own little universe? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] vars with $
I know PHP uses it and TorqueScript use $ and % to differentiate between global ($) and local (%) variables but it has no special meaning in Flash. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 18 August 2006 19:27 To: Flashcoders mailing list Subject: [Flashcoders] vars with $ Hi, Can anyone tell me what special meaning vars with $ have... thanks b ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] vars with $
In addition, some programmers also use $ to indicate a string. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Paul Venton Sent: Friday, August 18, 2006 2:49 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I know PHP uses it and TorqueScript use $ and % to differentiate between global ($) and local (%) variables but it has no special meaning in Flash. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 18 August 2006 19:27 To: Flashcoders mailing list Subject: [Flashcoders] vars with $ Hi, Can anyone tell me what special meaning vars with $ have... thanks b ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] vars with $
I've used it to indicate arguments in a function to clarify the origin of the variable, like this: function myFunc($arg1,$arg2){ trace($arg1+ : +$arg2); } I don't know where I picked that up, but for me it makes the code easier to read since you know immediately they are arguments. I've seen people use the underscore for the same purpose, but that can confuse things since ActionScript uses that for some native properties (_x,_y). Does anyone else do this, or am I just in my own little universe? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, August 18, 2006 4:27 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] vars with $ In addition, some programmers also use $ to indicate a string. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Paul Venton Sent: Friday, August 18, 2006 2:49 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I know PHP uses it and TorqueScript use $ and % to differentiate between global ($) and local (%) variables but it has no special meaning in Flash. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 18 August 2006 19:27 To: Flashcoders mailing list Subject: [Flashcoders] vars with $ Hi, Can anyone tell me what special meaning vars with $ have... thanks b ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vars with $
Using $ in flash is just wierd :). There is no special meaning - I don't think it should even be valid. On 8/18/06, Tom Lee [EMAIL PROTECTED] wrote: I've used it to indicate arguments in a function to clarify the origin of the variable, like this: function myFunc($arg1,$arg2){ trace($arg1+ : +$arg2); } I don't know where I picked that up, but for me it makes the code easier to read since you know immediately they are arguments. I've seen people use the underscore for the same purpose, but that can confuse things since ActionScript uses that for some native properties (_x,_y). Does anyone else do this, or am I just in my own little universe? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, August 18, 2006 4:27 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] vars with $ In addition, some programmers also use $ to indicate a string. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Paul Venton Sent: Friday, August 18, 2006 2:49 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I know PHP uses it and TorqueScript use $ and % to differentiate between global ($) and local (%) variables but it has no special meaning in Flash. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 18 August 2006 19:27 To: Flashcoders mailing list Subject: [Flashcoders] vars with $ Hi, Can anyone tell me what special meaning vars with $ have... thanks b ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] vars with $
I have seen others do it, or mark parameters with a p_. I prefer not to mark parameters in any special way. I mark private variables with _, so those are already distinct. And if I have a function that's so long that I can't see the top from somewhere in the body, it's well past time to cut it down into more manageable chunks. Plus, using $ makes it more confusing when switching between PHP or Perl (or another language that uses $ to mark all variables) and ActionScript. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee Sent: Friday, August 18, 2006 1:38 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I've used it to indicate arguments in a function to clarify the origin of the variable, like this: function myFunc($arg1,$arg2){ trace($arg1+ : +$arg2); } I don't know where I picked that up, but for me it makes the code easier to read since you know immediately they are arguments. I've seen people use the underscore for the same purpose, but that can confuse things since ActionScript uses that for some native properties (_x,_y). Does anyone else do this, or am I just in my own little universe? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] vars with $
So I really am in my own little universe. Far out, moon doggie! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Burch Sent: Friday, August 18, 2006 5:58 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] vars with $ Using $ in flash is just wierd :). There is no special meaning - I don't think it should even be valid. On 8/18/06, Tom Lee [EMAIL PROTECTED] wrote: I've used it to indicate arguments in a function to clarify the origin of the variable, like this: function myFunc($arg1,$arg2){ trace($arg1+ : +$arg2); } I don't know where I picked that up, but for me it makes the code easier to read since you know immediately they are arguments. I've seen people use the underscore for the same purpose, but that can confuse things since ActionScript uses that for some native properties (_x,_y). Does anyone else do this, or am I just in my own little universe? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, August 18, 2006 4:27 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] vars with $ In addition, some programmers also use $ to indicate a string. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Paul Venton Sent: Friday, August 18, 2006 2:49 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I know PHP uses it and TorqueScript use $ and % to differentiate between global ($) and local (%) variables but it has no special meaning in Flash. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 18 August 2006 19:27 To: Flashcoders mailing list Subject: [Flashcoders] vars with $ Hi, Can anyone tell me what special meaning vars with $ have... thanks b ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] vars with $
The real benefit to marking parameters is when you use variables within a function that are defined outside the function. You could make an argument that it's poor practice to do so, but there it is. I guess you could prefix every other kind of variable instead. Also, when you are choosing names for your parameters marking them with some universal prefix is an easy way to avoid naming collisions. Does anyone really port ActionScript to PHP and Perl or did you just mean working in both languages individually? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: Friday, August 18, 2006 8:25 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I have seen others do it, or mark parameters with a p_. I prefer not to mark parameters in any special way. I mark private variables with _, so those are already distinct. And if I have a function that's so long that I can't see the top from somewhere in the body, it's well past time to cut it down into more manageable chunks. Plus, using $ makes it more confusing when switching between PHP or Perl (or another language that uses $ to mark all variables) and ActionScript. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee Sent: Friday, August 18, 2006 1:38 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] vars with $ I've used it to indicate arguments in a function to clarify the origin of the variable, like this: function myFunc($arg1,$arg2){ trace($arg1+ : +$arg2); } I don't know where I picked that up, but for me it makes the code easier to read since you know immediately they are arguments. I've seen people use the underscore for the same purpose, but that can confuse things since ActionScript uses that for some native properties (_x,_y). Does anyone else do this, or am I just in my own little universe? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vars with $
So I really am in my own little universe. Far out, moon doggie! I use p_ for parameters, _ for private properties, and $ for (almost) everything temporary (ie, var functions). Like $tmc for a movieclip. I think we're each other on our very own universe. :) Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] vars with $
I used to use $ to mark private vars back when doing AS1, before there were explicit privates. I alwys preferred it to the _, because it's a easier to see, and shows that those vars are special -- not to be [EMAIL PROTECTED] with! But nobody else did this, so I stopped because I figured it would confuse people who looked at my code. -Adam On 8/18/06, Zeh Fernando [EMAIL PROTECTED] wrote: So I really am in my own little universe. Far out, moon doggie! I use p_ for parameters, _ for private properties, and $ for (almost) everything temporary (ie, var functions). Like $tmc for a movieclip. I think we're each other on our very own universe. :) Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Vars between game levels
On 6/19/06, Helios Pregioni Bayma [EMAIL PROTECTED] wrote: I tried so, to use Shared Objects to keep the vars (points, level, energy), but it can´t be read by different swf. So, I tried using an empty swf, and use LocalConnection to send vars to it. It worked in sending the vars, but didn´t when I had to load those vars from other swf, I just had succes sending them, not loading. For a quick fix, you might try storing your values as _global variables, since those values do not get reset when loading additional swfs. For example, if you store the var _global.currentScore, and then do a loadMovie on the current SWF, you can have the incoming SWF check _global.currentScore and the var should still be there. -- andy makely ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Vars between game levels
I don't see why using a holder clip would cause you to lose a significant amount of performance. Could it be there was some code in your holder clip that was causing the problem? On 6/19/06, Andy Makely [EMAIL PROTECTED] wrote: On 6/19/06, Helios Pregioni Bayma [EMAIL PROTECTED] wrote: I tried so, to use Shared Objects to keep the vars (points, level, energy), but it can´t be read by different swf. So, I tried using an empty swf, and use LocalConnection to send vars to it. It worked in sending the vars, but didn´t when I had to load those vars from other swf, I just had succes sending them, not loading. For a quick fix, you might try storing your values as _global variables, since those values do not get reset when loading additional swfs. For example, if you store the var _global.currentScore, and then do a loadMovie on the current SWF, you can have the incoming SWF check _global.currentScore and the var should still be there. -- andy makely ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Vars between game levels
Thanks for the idea Andy, I´ll try that. Adam, I know it´s strange. What I do in the base file is to define the 4 vars I need, create the sound objects - one for each level plus one for the base screen, and the screens to be showed before entering and while exiting each level. It works online and the performance problem doesnt happen all the time, but only when I move the player. But this doesn´t happen when I am running it directly on it´s html. A strange fact is that it takes too much time to export the swf, what doesn happen even in the levels files. It´s a pitty, cause I don´t have time to keep looking for what´s wrong and using a base swf is perfect for this game. Thanks, Helios -- Helios Pregioni Bayma Macromedia Certified FlashMX Designer [EMAIL PROTECTED] | www.heliospb.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com