[Flashcoders] stop() not working

2009-05-24 Thread Alexander Farber
Hello,

if I create a new Flash file (AS3), press F9 and enter

stop();
trace(-);

then it will print that line just once as expected.

But if I enter:

stop();
trace(-);

var user:User = new User();
addChild(user);

user.x = user.y = 200;
user.userid = 53;
user.username = 'Алекс';
user.trix = 4;
user.bid = 117;
user.scaleX = user.scaleY = 0.8;
user.avatar = '2_1211369175.jpg';
user.avatar = '458_1211369175.jpg';

Then I will see - being printed again and again.

I wonder what's happening here.

My class User uses a Loader and is listed at http://pastebin.com/m60cbb775

Thank you for any hints
Alex

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] stop() not working

2009-05-24 Thread jonathan howe
Any chance that you are actually putting the code on the symbol definition
instead of a frame on the main timeline, thereby creating User within User
within ... ? You'd probably get a recursion crash, but it's possible.

I would at this point try to isolate the problem a little more. If you think
it's the loader, what happens when you comment out the loader? What about if
user is an empty class?

-jonathan

2009/5/24 Alexander Farber alexander.far...@gmail.com

 Hello,

 if I create a new Flash file (AS3), press F9 and enter

 stop();
 trace(-);

 then it will print that line just once as expected.

 But if I enter:

 stop();
 trace(-);

 var user:User = new User();
 addChild(user);

 user.x = user.y = 200;
 user.userid = 53;
 user.username = 'Алекс';
 user.trix = 4;
 user.bid = 117;
 user.scaleX = user.scaleY = 0.8;
 user.avatar = '2_1211369175.jpg';
 user.avatar = '458_1211369175.jpg';

 Then I will see - being printed again and again.

 I wonder what's happening here.

 My class User uses a Loader and is listed at http://pastebin.com/m60cbb775

 Thank you for any hints
 Alex

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] stop() not working

2009-05-24 Thread Alexander Farber
Thank you. Yes, I should investigate more myself.
I was just hoping that maybe it's some known issue
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] stop() not working

2009-05-24 Thread Paul Andrews
I suspect you have some code somewhere that you've forgotten about - a 
gotoAndPlay hidden on a component someplace.


- Original Message - 
From: Alexander Farber alexander.far...@gmail.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 24, 2009 8:49 PM
Subject: Re: [Flashcoders] stop() not working



Thank you. Yes, I should investigate more myself.
I was just hoping that maybe it's some known issue
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders