Re: [Flashcoders] removeChild Question
Susan, have a look at these examples: http://www.actionscript.org/resources/categories/Tutorials/ http://www.kirupa.com/developer/flash/index.htm http://www.flashandmath.com/ http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/#contents John Susan Day wrote: There is nothing in your response that indicates what I should research, other than property and function, which I feel is way too general. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Using parent Sprites coordinates
hmmm unless I am misunderstanding localToGlobal seems to relate to points - not sprites From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [he...@henke37.cjb.net] Sent: Tuesday, February 23, 2010 4:03 PM To: Flash Coders List Subject: Re: [Flashcoders] Using parent Sprites coordinates Lehr, Theodore wrote: Is there a way to have a child sprite reference the parent sprite when seeting it's x and y say I have a Sprite: You must have missed localToGlobal and globalToLocal. ___ 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
[Flashcoders] finding x of sprite
given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] finding x of sprite
Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] finding x of sprite
No, mSprite.x = 0 refers to the x-position of mSprite in the coordinate space of mSprite's parent (which is (0,0) by default if you never set it). The expected x=15 is the position of the newly drawn rectangle in the coordinate space of mSprite. localToGlobal does not refer to Points per se (as mentioned in your earlier post) but it lets you swap the local coordinate space of an object with the global coordinate space (i.e. the coordinate space of the stage) Willem On 25-feb-2010, at 13:28, Lehr, Theodore wrote: given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
Open your script in Flash and you can place debug break points to stop code execution at specific points. If you have no clue where the error occurs especially since Flash's output window errors can be vague, then if you run in debug mode, again ctrl-shift-enter, the debugger will stop at the first occurence of an error. On Feb 24, 2010, at 11:17 AM, Henrik Andersson wrote: Victor Subervi wrote: On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Dasdeepanjan@gmail.com wrote: Hey, I have not seen your debugger error. So how do I debug? I downloaded what I thought was the debugger and it was just another copy of Flash! Flash IS the debugger. Just hit ctrl-shift-enter on your keyboard and there you have it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders David Benman Interactive Developer d...@dbenman.com http://www.dbenman.com (508) 954-1202 (cell) (315) 637-8487 (home office) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] finding x of sprite
wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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
RE: [Flashcoders] finding x of sprite
Correct: drawrect(0,0, yourwidth, yourheight); Unless you would like to add more then one thing in the sprite. Look at the sprite as a container/holder/box. You can move the thing in the box around without moving the position of the box itself. HTH Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:58 To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] finding x of sprite
Play around with this: var mSprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(0,0,200,100); mSprite.graphics.endFill(); mSprite.graphics.beginFill(0x99,.3); mSprite.graphics.drawRect(100,50,200,100); mSprite.graphics.endFill(); mSprite.x = (stage.stageWidth-mSprite.width)*.5; mSprite.y = (stage.stageHeight-mSprite.height)*.5; addChild(mSprite); -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:58 To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] finding x of sprite
In the code example below it looks like you set the x,y of the rectangle that is IN the sprite to 15,337. The sprite default position of the sprite is 0,0 Sprite.x = 0; Sprite.rectangle.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 7:58 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] finding x of sprite
Lehr, Theodore wrote: wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be No, you set the rectangle that you drew INSIDE the sprite to be at (15,337). You didn't move the sprite from (0,0). The rectangle and sprite are different things. You can draw the rectangle inside the sprite wherever you wish. Then you can move the sprite if you wish. The sprite is a container for the rectangle. Paul From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] pie chart 3d
Hi there, got any idea about making a pie chart 3d, is there some kind of open source library to do something like it? I ve been trying doin it via papervision but it s a bit complicated! Cheers Date: Thu, 25 Feb 2010 13:13:19 + From: p...@ipauland.com To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] finding x of sprite Lehr, Theodore wrote: wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be No, you set the rectangle that you drew INSIDE the sprite to be at (15,337). You didn't move the sprite from (0,0). The rectangle and sprite are different things. You can draw the rectangle inside the sprite wherever you wish. Then you can move the sprite if you wish. The sprite is a container for the rectangle. Paul From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Découvrez Windows 7 en 7 secondes ! http://clk.atdmt.com/FRM/go/181574577/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Using parent Sprites coordinates
Yep. You will have to instantiate a point object with the x and y properties of your sprite, apply any localToGlobal/globalToLocal changes*, and then set your sprite's x (and y) to the new point's x and y. Once you do this a few times it might be time to write yourself a few helper functions - ex. a function that takes a sprite and global x and global y and positions the sprite, for example. -jonathan *The way I'm writing this makes it sound like the localToGlobal() function alters the point it's passed, when actually I think it returns a new altered point. Don't get caught by this. On Thu, Feb 25, 2010 at 7:04 AM, Lehr, Theodore ted_l...@federal.dell.comwrote: hmmm unless I am misunderstanding localToGlobal seems to relate to points - not sprites From: flashcoders-boun...@chattyfig.figleaf.com [ flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [ he...@henke37.cjb.net] Sent: Tuesday, February 23, 2010 4:03 PM To: Flash Coders List Subject: Re: [Flashcoders] Using parent Sprites coordinates Lehr, Theodore wrote: Is there a way to have a child sprite reference the parent sprite when seeting it's x and y say I have a Sprite: You must have missed localToGlobal and globalToLocal. ___ 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 -- -jonathan howe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] finding x of sprite
yeah - but the goofy thing is that when I trace the height and width I get the height and width of the rectangle IN the sprite... my assumption would be that I would basically get back the dimensions of the stage if that is how big the sprite is From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Ross (N-SGIS) [ross.l...@lmco.com] Sent: Thursday, February 25, 2010 8:12 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite In the code example below it looks like you set the x,y of the rectangle that is IN the sprite to 15,337. The sprite default position of the sprite is 0,0 Sprite.x = 0; Sprite.rectangle.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 7:58 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 ___ 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
RE: [Flashcoders] finding x of sprite
the sprite width and also the height is the max width/height of all its content -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 14:27 To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite yeah - but the goofy thing is that when I trace the height and width I get the height and width of the rectangle IN the sprite... my assumption would be that I would basically get back the dimensions of the stage if that is how big the sprite is From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Ross (N-SGIS) [ross.l...@lmco.com] Sent: Thursday, February 25, 2010 8:12 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite In the code example below it looks like you set the x,y of the rectangle that is IN the sprite to 15,337. The sprite default position of the sprite is 0,0 Sprite.x = 0; Sprite.rectangle.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 7:58 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 ___ 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] finding x of sprite
Lehr, try this code, hopefully it should explain... function drawDot(targetSprite:Sprite, size:int):void { targetSprite.graphics.beginFill(0); targetSprite.graphics.drawCircle(0,0,size/2); targetSprite.graphics.beginFill(0); } var originOfStage:Sprite = new Sprite(); addChild(originOfStage); drawDot(originOfStage,5); var spriteAt100x100y:Sprite = new Sprite(); spriteAt100x100y.x = 100; spriteAt100x100y.y = 100; addChild(spriteAt100x100y); drawDot(spriteAt100x100y,5); var childSpriteAt100x100y:Sprite = new Sprite(); childSpriteAt100x100y.x = 100; childSpriteAt100x100y.y = 100; spriteAt100x100y.addChild(childSpriteAt100x100y); drawDot(childSpriteAt100x100y,5); you will see a dot at 0,0, another one at 100,100 and a third at 200,200. a child's position is automatically relative to it's parents position, the child of the spriteAt100x100y has it's x and y set to 100, but seeing as it's parent is at 100,100 relative to the origin it appears at 200,200. hth. On 25 February 2010 14:35, Cor c...@chello.nl wrote: the sprite width and also the height is the max width/height of all its content -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 14:27 To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite yeah - but the goofy thing is that when I trace the height and width I get the height and width of the rectangle IN the sprite... my assumption would be that I would basically get back the dimensions of the stage if that is how big the sprite is From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Ross (N-SGIS) [ross.l...@lmco.com] Sent: Thursday, February 25, 2010 8:12 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite In the code example below it looks like you set the x,y of the rectangle that is IN the sprite to 15,337. The sprite default position of the sprite is 0,0 Sprite.x = 0; Sprite.rectangle.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 7:58 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 ___ 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 No virus found in this incoming message. Checked by AVG - www.avg.com
RE: [Flashcoders] finding x of sprite
thanks! From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of tom rhodes [tom.rho...@gmail.com] Sent: Thursday, February 25, 2010 8:54 AM To: Flash Coders List Subject: Re: [Flashcoders] finding x of sprite Lehr, try this code, hopefully it should explain... function drawDot(targetSprite:Sprite, size:int):void { targetSprite.graphics.beginFill(0); targetSprite.graphics.drawCircle(0,0,size/2); targetSprite.graphics.beginFill(0); } var originOfStage:Sprite = new Sprite(); addChild(originOfStage); drawDot(originOfStage,5); var spriteAt100x100y:Sprite = new Sprite(); spriteAt100x100y.x = 100; spriteAt100x100y.y = 100; addChild(spriteAt100x100y); drawDot(spriteAt100x100y,5); var childSpriteAt100x100y:Sprite = new Sprite(); childSpriteAt100x100y.x = 100; childSpriteAt100x100y.y = 100; spriteAt100x100y.addChild(childSpriteAt100x100y); drawDot(childSpriteAt100x100y,5); you will see a dot at 0,0, another one at 100,100 and a third at 200,200. a child's position is automatically relative to it's parents position, the child of the spriteAt100x100y has it's x and y set to 100, but seeing as it's parent is at 100,100 relative to the origin it appears at 200,200. hth. On 25 February 2010 14:35, Cor c...@chello.nl wrote: the sprite width and also the height is the max width/height of all its content -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 14:27 To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite yeah - but the goofy thing is that when I trace the height and width I get the height and width of the rectangle IN the sprite... my assumption would be that I would basically get back the dimensions of the stage if that is how big the sprite is From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Ross (N-SGIS) [ross.l...@lmco.com] Sent: Thursday, February 25, 2010 8:12 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite In the code example below it looks like you set the x,y of the rectangle that is IN the sprite to 15,337. The sprite default position of the sprite is 0,0 Sprite.x = 0; Sprite.rectangle.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 7:58 AM To: Flash Coders List Subject: RE: [Flashcoders] finding x of sprite wow - this is something I am ging to have to wrapped my head around I set the x,y of the sprite at creation to: 15, 337 (with a w,h of 646,207) BUT the x/y traces as 0,0 if I do: spret.x = 15; it moves it 15 as related to the original 15... so it is REALLY at 30 on the stage AND then when I move it 15 (which should really be 30) it traces to 15 It just occired to me that maybe I should create it at 0,0 and then move it to where I want it to be From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor [c...@chello.nl] Sent: Thursday, February 25, 2010 7:38 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] finding x of sprite Your sprite position is 0 and IN there, there is the rectangle at 15 px. trace(mSprite.width); // //set mSprite's x mSprite.x = 15; -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: donderdag 25 februari 2010 13:29 To: Flash Coders List Subject: [Flashcoders] finding x of sprite given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2707 - Release Date: 02/24/10 08:34:00 ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] finding x of sprite
Lehr, Theodore wrote: given the following: var msprite:Sprite = new Sprite(); mSprite.graphics.beginFill(0x00,.1); mSprite.graphics.drawRect(15,337,646,207); mSprite.graphics.endFill(); addChild(mSprite); trace(mSprite.x = +mSprite.x); I would think that I should be tracing mSprite.x = 15 instead I get mSprite = 0 Anyone know why? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Check out the getBounds method. It will really help you here. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] drawing lines
I would like to draw a line that fluctuates color. For instance - the line would be 6px think and it would go along 30px with a 0x262e3b color and then 3px of 0xff and the repeat for a gven width... is it possible to make such a customized dashed line? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] drawing lines
Hello, http://bezier.ru/wp-content/uploads/2008/06/bezier.swf?demo=9 http://code.google.com/p/bezier/ -- iv http://www.bezier.ru http://bezier.googlecode.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] drawing lines
look at lineGradientStyle, or use your dotted line to mask a shape with the diff colours in the right places, or draw different lines, one with one colour and one in another colour... On 25 February 2010 16:28, Lehr, Theodore ted_l...@federal.dell.com wrote: I would like to draw a line that fluctuates color. For instance - the line would be 6px think and it would go along 30px with a 0x262e3b color and then 3px of 0xff and the repeat for a gven width... is it possible to make such a customized dashed line? ___ 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
RE: [Flashcoders] drawing lines
Sure, you can certainly draw that dashed line with a series of lines and the result will look the same to the end users - but there is no way to do it in a single lineTo() method call. You just need to do some simple divisional math, using a for loop to calculate the next X and Y points for the next line and swapping out the color. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 10:28 AM To: Flash Coders List Subject: [Flashcoders] drawing lines I would like to draw a line that fluctuates color. For instance - the line would be 6px think and it would go along 30px with a 0x262e3b color and then 3px of 0xff and the repeat for a gven width... is it possible to make such a customized dashed line? ___ 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
[Flashcoders] Can't Find Libraries
Hi; Forgive me asking this question here. I tried the newbies list an hour ago, but I'm just sitting here twiddling my thumbs until I get this resolved...can't do a thing. And it's an easy question. I just had to wipe and rebuild my HD. Now, Flash can't find my libraries. I've gone into Preferences/AS3 Scripts and updated libraries to include the path where my com folder is. I've gone to Publish Settings / Flash / AS3 Scripts and done the same, all to no avail. Please advise. TIA, Victor -- The Logos has come to bear http://logos.13gems.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] corporate history timeline examples
Hi all... Can anyone suggest some really cool Flash timeline examples showing a history of something like a business? I'm looking for some dazzling examples to share with others in my company. We're in the conceptual stages. Here are a few... http://www.ge.com/innovation/timeline/index.html http://www.gm.com/corporate/about/history/ http://www.hallmark100years.com/ Thanks! - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] corporate history timeline examples
http://www.adobe.com/aboutadobe/history/timeline/ https://www.adbusters.org/files/media/flash/hope_and_memory/timeline.swf http://www.open2.net/ictportal/timeline/timeline.swf and try searching for timeline filetype:swf in Google (without ) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] corporate history timeline examples
A few more: http://www.forestcity.net/company/history/Documents/HISTORYflash2.swf http://newsroom.cisco.com/dlls/timeline/index.swf http://www.levistrauss.com/swf/swf/timeline.swf On 25 February 2010 17:50, Pedro Kostelec pedrok...@gmail.com wrote: http://www.adobe.com/aboutadobe/history/timeline/ https://www.adbusters.org/files/media/flash/hope_and_memory/timeline.swf http://www.open2.net/ictportal/timeline/timeline.swf and try searching for timeline filetype:swf in Google (without ) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash IDE localhost problem
Hi, I'm just wondering if anybody can help me with my simple but frustrating problem. I have created an SWF that loads an XML file from http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml, but I get this error when running the movie using Test Movie in the Flash IDE. Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml at Main/loadConfig()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main.as:12 6] at Main/configLoadError()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main. as:143] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() Trouble is running the SWF in a browser locally does work, it only throws these errors in the Flash IDE. I have tried a adding wildcard crossdomain.xml file in my root web directory and setting the SWF publish properties to Allow network only, but neither of these have solved my problem. I know Windows 7 handles localhost name resolution differently compared to previous versions of Windows but I have even added 127.0.0.1 localhost to my hosts file to no avail. Can anyone shed any light on this issue? Thanks, Dav ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] targeting sprite
How would I do the following: function fname(sparent:Sprite) { sparent.addChildAt(childSprite,2); } fname(spriteParent); It does not seem to like this ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Can't Find Libraries
could you reinstall? On Thu, Feb 25, 2010 at 4:09 PM, Victor Subervi victorsube...@gmail.comwrote: Hi; Forgive me asking this question here. I tried the newbies list an hour ago, but I'm just sitting here twiddling my thumbs until I get this resolved...can't do a thing. And it's an easy question. I just had to wipe and rebuild my HD. Now, Flash can't find my libraries. I've gone into Preferences/AS3 Scripts and updated libraries to include the path where my com folder is. I've gone to Publish Settings / Flash / AS3 Scripts and done the same, all to no avail. Please advise. TIA, Victor -- The Logos has come to bear http://logos.13gems.com/ ___ 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
Re: [Flashcoders] Can't Find Libraries
On Thu, Feb 25, 2010 at 1:11 PM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: could you reinstall? Huh? I just wiped the HD and installed Flash. You're telling me to reinstall Flash again? V On Thu, Feb 25, 2010 at 4:09 PM, Victor Subervi victorsube...@gmail.com wrote: Hi; Forgive me asking this question here. I tried the newbies list an hour ago, but I'm just sitting here twiddling my thumbs until I get this resolved...can't do a thing. And it's an easy question. I just had to wipe and rebuild my HD. Now, Flash can't find my libraries. I've gone into Preferences/AS3 Scripts and updated libraries to include the path where my com folder is. I've gone to Publish Settings / Flash / AS3 Scripts and done the same, all to no avail. Please advise. TIA, Victor -- The Logos has come to bear http://logos.13gems.com/ ___ 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 -- The Logos has come to bear http://logos.13gems.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] targeting sprite
Lehr, Theodore wrote: How would I do the following: function fname(sparent:Sprite) { sparent.addChildAt(childSprite,2); } fname(spriteParent); It does not seem to like this Not like is a very vague description. Your error can be anything. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
Thank you everyone for your replies. Turns out the culprit was that I called a certain function iteratively and I had placed those children in that fn. Therefore, when I removed the children, I presumably only removed the final iteration. So, I took the children out of that loop and they were removed with no problem. My bad. Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Question in regards to NetStream
1. Since there doesn't seem to be an playing event for a NetStream, is it best practice to run an interval and check the time property? Begin on the Play.Start and stop it on the Play.Stop? What about a pause - handle that internally? 2. After seeking, the time property seems wonky (inaccurate) - is there a workaround for this? Thanks for insights, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question in regards to NetStream
AFAIK YouTube uses lighttpd http://redmine.lighttpd.net/ On 25 Feb 2010, at 19:09, Merrill, Jason wrote: How is YouTube able to provide such accurate seeking? I would guess it's because they are using Adobe Media Server which has more robust seeking features like what they call Timeshifting seek and stream data access. That's just my guess though. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ 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
Re: [Flashcoders] Error 1009
On Thu, Feb 25, 2010 at 10:46 AM, Keith Reinfeld keithreinf...@comcast.netwrote: Yes, except instead of referencing a problem with the preloader, it references a problem with the *.as that will load after the preloader. I think you need to examine '*.as' then. Yeah, that's what I thought too. That file executes without error by itself. What should I be looking for? TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Error 1009
Yes, except instead of referencing a problem with the preloader, it references a problem with the *.as that will load after the preloader. I think you need to examine '*.as' then. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Victor Subervi Sent: Wednesday, February 24, 2010 9:38 AM To: Deepanjan Das Cc: Flash Coders List Subject: Re: [Flashcoders] Error 1009 On Wed, Feb 24, 2010 at 10:35 AM, Deepanjan Das deepanjan@gmail.comwrote: Are you getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Preloader/init() at Preloader() at test_fla::MainTimeline/frame1() Yes, except instead of referencing a problem with the preloader, it references a problem with the *.as that will load after the preloader. Also, the last line of the above doesn't come up. TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2705 - Release Date: 02/24/10 01:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] targeting sprite
Please clarify. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore Sent: Thursday, February 25, 2010 12:09 PM To: Flash Coders List Subject: [Flashcoders] targeting sprite How would I do the following: function fname(sparent:Sprite) { sparent.addChildAt(childSprite,2); } fname(spriteParent); It does not seem to like this ___ 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
Re: [Flashcoders] Question in regards to NetStream
I wish NetStream had more events then :) I have to run a timer to update a time placement UI. That's too bad. How is YouTube able to provide such accurate seeking? I'm transferring video from one SWF to another - mainly by transferring the URL to the video to stream and trying to match as closely as possible (buffering not withstanding) the playhead time. It seems like this is next to impossible with video that is out of my control to encode keyframes every second. E On Thu, Feb 25, 2010 at 1:31 PM, Steven Sacks flash...@stevensacks.netwrote: https://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/events/NetStatusEvent.html NetStream.Play.Start NetStream.Play.Stophttp://livedocs.adobe.com/fms/2/docs/0592.html NetStream.Pause.Notify NetStream.Unpause.Notify http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#seek() In normal seek mode, the server starts streaming from the nearest keyframe. For example, if a video has keyframes at 0 and 10 seconds, a seek to 4 seconds causes playback to start at 4 seconds using the keyframe at 0 seconds. In laymen's terms, seek doesn't jump to an exact time, it jumps to the nearest keyframe time prior to the time you told it to seek to. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] corporate history timeline examples
You might find http://underworldicons.com/ interesting. (Click 'Lifeline' and drag the .45 cartridge) - Original Message - From: Pedro Kostelec pedrok...@gmail.com Date: Thursday, February 25, 2010 10:50 am Subject: Re: [Flashcoders] corporate history timeline examples To: Flash Coders List flashcoders@chattyfig.figleaf.com http://www.adobe.com/aboutadobe/history/timeline/ https://www.adbusters.org/files/media/flash/hope_and_memory/timeline.swf http://www.open2.net/ictportal/timeline/timeline.swf and try searching for timeline filetype:swf in Google (without ) ___ 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
Re: [Flashcoders] Error 1009
On Thu, Feb 25, 2010 at 8:52 AM, David Benman d...@dbenman.com wrote: Open your script in Flash and you can place debug break points to stop code execution at specific points. If you have no clue where the error occurs especially since Flash's output window errors can be vague, then if you run in debug mode, again ctrl-shift-enter, the debugger will stop at the first occurence of an error. I did that. I don't know how to use the debugger well (you guessed that, I'm sure). It put up a red dot with an arrow pointing at this line of code: l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop); Please tell me what it's trying to say. TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Question in regards to NetStream
How is YouTube able to provide such accurate seeking? I would guess it's because they are using Adobe Media Server which has more robust seeking features like what they call Timeshifting seek and stream data access. That's just my guess though. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Error 1009
What should I be looking for? I have no idea without some code or reading the literal text of the error. Is this '*.as' associated with the 'Splash.swf' you are loading? Going back to the preloader, I noticed that, in the code you posted at the beginning of this thread, you do not have 'addChild(l)' anywhere. This omission could very well be the cause of a null reference error. Try that. If that doesn't work then I guess you have more digging to do. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Victor Subervi Sent: Thursday, February 25, 2010 1:37 PM To: Flash Coders List Subject: Re: [Flashcoders] Error 1009 On Thu, Feb 25, 2010 at 10:46 AM, Keith Reinfeld keithreinf...@comcast.netwrote: Yes, except instead of referencing a problem with the preloader, it references a problem with the *.as that will load after the preloader. I think you need to examine '*.as' then. Yeah, that's what I thought too. That file executes without error by itself. What should I be looking for? TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2709 - Release Date: 02/25/10 01:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] corporate history timeline examples
Thanks for the timeline examples everyone! Much appreciated. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
Victor Subervi wrote: On Thu, Feb 25, 2010 at 8:52 AM, David Benmand...@dbenman.com wrote: Open your script in Flash and you can place debug break points to stop code execution at specific points. If you have no clue where the error occurs especially since Flash's output window errors can be vague, then if you run in debug mode, again ctrl-shift-enter, the debugger will stop at the first occurence of an error. I did that. I don't know how to use the debugger well (you guessed that, I'm sure). It put up a red dot with an arrow pointing at this line of code: That's a breakpoint. It just means that you requested that the execution should be broken there. Just click at it (or where it should be) to toggle it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Netstream time after seek...
I am doing a seek - to the same spot in a streaming video stream.seek( 10 ); trace( stream.time ); I get numbers like this each time it's run: 3.57 15.778 15.882 15.386 16.013 13.923 14.132 14.681 14.576 14.08 ... ?!?!? How can it be off that much? This is a YouTube video. -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Question in regards to NetStream
https://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/events/NetStatusEvent.html NetStream.Play.Start NetStream.Play.Stophttp://livedocs.adobe.com/fms/2/docs/0592.html NetStream.Pause.Notify NetStream.Unpause.Notify http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#seek() In normal seek mode, the server starts streaming from the nearest keyframe. For example, if a video has keyframes at 0 and 10 seconds, a seek to 4 seconds causes playback to start at 4 seconds using the keyframe at 0 seconds. In laymen's terms, seek doesn't jump to an exact time, it jumps to the nearest keyframe time prior to the time you told it to seek to. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] corporate history timeline examples
one that i remember from um years and years ago is the motown one. probably not all that amazing now but was probably one of the first and did it well. google should dig it up for you... On 25 February 2010 19:16, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Thanks for the timeline examples everyone! Much appreciated. - MM ___ 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
Re: [Flashcoders] targeting sprite
I'm not entirely sure what error you're getting, but if I were to take a wild guess, I'd say the problem is that your sprite doesn't have enough children for you to add anything at index 2. For instance, if your sprite only had 1 child, it would occupy index 0 of your sprite, meaning you'd only be allowed to add children at index 0 and 1. (Don't forget that Flash starts counting at 0) If you're looking to add a child to the top layer of your sprite, probably the better way of doing this would be... sparent.addChildAt(childSprite, sparent.numChildren - 1); Good luck! --Todd On Thu, Feb 25, 2010 at 9:09 AM, Lehr, Theodore ted_l...@federal.dell.comwrote: How would I do the following: function fname(sparent:Sprite) { sparent.addChildAt(childSprite,2); } fname(spriteParent); It does not seem to like this ___ 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