Re: [Flashcoders] MovieClip Opacity
Definitely do that:). Are you using as2 or as3? In any case reading through a book such as essential actionscript or a similar book, covers all of this stuff and saves you many headaches. TO get you started: http://www.google.com/search?q=flash+embed+font+examplerls=com.microsoft:en-us:IE-SearchBoxie=UTF-8oe=UTF-8sourceid=ie7rlz=1I7GFRC On Thu, Feb 5, 2009 at 2:32 AM, K-Dawg kdaw...@gmail.com wrote: On Wed, Feb 4, 2009 at 8:59 PM, -whispers- whispers...@hotmail.com wrote: are you embedding the fonts? No. Though when I do and then try to enumerate the fonts, I get 0 fonts and no text shows up. I guess I don't understand what the embedding fonts do. I'll have to read more on that. Thanks. Kevin ___ 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] jpeg enhancement
Hi, assuming you are using as2? http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Besides that make sure that the source jpeg is a high quality one of course, smoothing a crappy jpeg is not going to make it better:) hth JC On Wed, Feb 4, 2009 at 7:18 PM, [p e r c e p t i c o n] percepti...@gmail.com wrote: Hi, I'm loading them...appreciate all the tips... cheers percy On Wed, Feb 4, 2009 at 12:05 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, are you loading them or are they in the library? greetz JC On Tue, Feb 3, 2009 at 3:45 PM, Matt S. mattsp...@gmail.com wrote: As Laurent said, check the smoothing, eg image.smoothing = true; , that's almost always the issue, especially if they're being scaled down and appearing jaggy. This is assuming you're not scaling your JPG's 100%, for which there's not much you can do, although smoothing helps somewhat. .m On Mon, Feb 2, 2009 at 7:21 PM, [p e r c e p t i c o n] percepti...@gmail.com wrote: Hi All,I have some JPEGs that I display in my app...the problem is that the quality isn't so great...does anyone know of a way to enhance the quality of a jpeg once you load it or am i skrewed thanks percy ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Does Flash fire any event(s) when...
I don't know Javascript. And also ExternalInterface is a new one. Can you give me a hand on this one? Thanks! -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck Sent: woensdag 4 februari 2009 18:05 To: Flash Coders List Subject: Re: [Flashcoders] Does Flash fire any event(s) when... Use ExternalInterface and close out the browser using Javascript. On Wed, Feb 4, 2009 at 7:31 AM, Cor c...@chello.nl wrote: I have my swf in a html-page, but it is set to fullscreen. I create a close button. But I can't seem to figure out how to close the swf and at the same time the html page correctly with AS3. Any ideas? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: woensdag 4 februari 2009 16:26 To: Flash Coders List Subject: Re: [Flashcoders] Does Flash fire any event(s) when... Ya, too bad there isn't something akin to what AIR has (NativeApplication.nativeApplication.addEventListener( Event.EXITING,... ) On Wed, Feb 4, 2009 at 9:58 AM, Andrew Murphy amur...@delvinia.com wrote: Hi Eric. :) Unfortunately Event.DEACTIVATE also fires if a user clicks on a different tab in their browser or a different application in their desktop. Andrew Murphy Interactive Media Specialist amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Wednesday, February 04, 2009 8:50 AM To: Flash Coders List Subject: Re: [Flashcoders] Does Flash fire any event(s) when... There is stage.addEventListener( Event.DEACTIVATE, method ); stage.addEventListener( Event.ACTIVATE, method ); - eric 2009/2/4 Andrew Murphy amur...@delvinia.com Hi. :) I was wondering if a .swf embedded in a web page fires and event(s) when... 1) ...the user navigates away from the page. 2) ...the user closes the browser window. I doubt that it does but thought I'd check with the experts here first. Thank you. :) Andrew Murphy Interactive Media Specialist mailto:amur...@delvinia.com amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. ___ 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 ___ 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.17/1934 - Release Date: 4-2-2009 8:24
[Flashcoders] Does Flash fire any event(s) when...
I think my challence is bigger. :-) When a user clicks my close button, the Flash-app writes some data to a LMS. But this writing action should also happen when the user closes the browser with its menu, its close-cross or ALT-F4. Help is much appreciated!! -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor Sent: donderdag 5 februari 2009 10:13 To: 'Flash Coders List' Subject: RE: [Flashcoders] Does Flash fire any event(s) when... I don't know Javascript. And also ExternalInterface is a new one. Can you give me a hand on this one? Thanks! -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck Sent: woensdag 4 februari 2009 18:05 To: Flash Coders List Subject: Re: [Flashcoders] Does Flash fire any event(s) when... Use ExternalInterface and close out the browser using Javascript. On Wed, Feb 4, 2009 at 7:31 AM, Cor c...@chello.nl wrote: I have my swf in a html-page, but it is set to fullscreen. I create a close button. But I can't seem to figure out how to close the swf and at the same time the html page correctly with AS3. Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Does Flash fire any event(s) when...
Hi, I was wondering if it is possible to action script a slider to increase and decrease the size of a video component that plays flv or a for swf video on a higher level than main movie. Any ideas? tanks, R. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Full screen video in a full screen Flash..?
if you're using flvplayback, set the property fullScreenTakeOver to false On Mon, Feb 2, 2009 at 3:41 PM, Matt S. mattsp...@gmail.com wrote: Are you loading the video player into its own holder mc? If you do that, then place that holder on the display list, then set if (stage.displayState == StageDisplayState.NORMAL) { stage.displayState = StageDisplayState.FULL_SCREEN; } it should go full screen without FS'ing the video. .m On Mon, Feb 2, 2009 at 8:23 AM, Andrew Murphy amur...@delvinia.com wrote: Hello. :) Is there a way to have a full screen Flash (not a video) which has a video player in it, without having the video itself jump to full screen? What I'd like to do is have a Flash piece which goes full screen, then at some points in the user's interaction with it there may be a video player in this Flash piece. The user would then have the option to view the video full screen within the already full screen Flash piece. Currently whenever I load a video player into a full screen non-video Flash the video jumps to full screen the moment it loads. Andrew Murphy Interactive Media Specialist mailto:amur...@delvinia.com amur...@delvinia.com Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. ___ 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 -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MovieClip Opacity
On Thu, Feb 5, 2009 at 3:12 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Definitely do that:). Are you using as2 or as3? In any case reading through a book such as essential actionscript or a similar book, covers all of this stuff and saves you many headaches. TO get you started: http://www.google.com/search?q=flash+embed+font+examplerls=com.microsoft:en-us:IE-SearchBoxie=UTF-8oe=UTF-8sourceid=ie7rlz=1I7GFRC I am working in AS 3. I actually have the essential actionscript book and will reference that, I didn't have it at the time and I was trying to make use of my three hour marketing class. :) Thanks and thanks for the link! Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash CS3 DataGrid wordWraping in a cell
Hi List, Is it possible to have a the DataGrid component in Flash CS3 wrap its text in a cell? So i have one block of text in stead of one long sentence that falls out of screen? I saw some references online that with Flex it is possible, by using the wordWrap property (but im not using Flex). If it is possible, can sombody please tell me how... Thanks in advance, Sid Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] maths query
hi guys I'm working on a carousel and i have a quick question about adding a non-active area in the middle at the moment, the carousel will move forward and backward based on the mouse's position in relation to the center of the carousel but I'd like to widen that by nDeadzoneRadius here is the way that i'm doing it at the moment - it seems very clunky to me but it's doing the job this is on the onMouseMove listener private function adjustSpeed():Void { var nMousePos:Number = _root._xmouse - nCenterX; // !HACK! this is the bit i'm querying if (Math.abs(nMousePos) nDeadzoneRadius) nMousePos = 0; else nMousePos = (nMousePos 0) ? nMousePos - nDeadzoneRadius : nMousePos + nDeadzoneRadius; // end of !HACK! nSpeed = nMousePos / ((36 / _nNumberOfItems) * 1000); //4:800, 8:4000, 12:3000, 24:1500 } so i guess my question is, is there a more elegant solution to this, please? ta a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] MovieClip Opacity
you need to embed fonts to change the alpha / rotation of a textfield (even if it's the containing clip that's being alpha'd / rotated so the real question is how to embed the fonts in your doc how have you tried doing it so far? On Thu, Feb 5, 2009 at 2:09 PM, K-Dawg kdaw...@gmail.com wrote: On Thu, Feb 5, 2009 at 3:12 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Definitely do that:). Are you using as2 or as3? In any case reading through a book such as essential actionscript or a similar book, covers all of this stuff and saves you many headaches. TO get you started: http://www.google.com/search?q=flash+embed+font+examplerls=com.microsoft:en-us:IE-SearchBoxie=UTF-8oe=UTF-8sourceid=ie7rlz=1I7GFRC I am working in AS 3. I actually have the essential actionscript book and will reference that, I didn't have it at the time and I was trying to make use of my three hour marketing class. :) Thanks and thanks for the link! Kevin ___ 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] Does Flash fire any event(s) when...
you could certainly increase / decrease the scale of a clip/sprite containing a video playing flv could you start a new thread in future, please? - i find these hijacked threads really hard to follow thanks On Thu, Feb 5, 2009 at 1:12 PM, Ricardo M. Portilho ricardo.monteiro.porti...@gmail.com wrote: Hi, I was wondering if it is possible to action script a slider to increase and decrease the size of a video component that plays flv or a for swf video on a higher level than main movie. Any ideas? tanks, R. ___ 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] jpeg enhancement
just the sort of thing i'm looking to do...perfect thanks percy On Thu, Feb 5, 2009 at 12:17 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, assuming you are using as2? http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Besides that make sure that the source jpeg is a high quality one of course, smoothing a crappy jpeg is not going to make it better:) hth JC On Wed, Feb 4, 2009 at 7:18 PM, [p e r c e p t i c o n] percepti...@gmail.com wrote: Hi, I'm loading them...appreciate all the tips... cheers percy On Wed, Feb 4, 2009 at 12:05 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, are you loading them or are they in the library? greetz JC On Tue, Feb 3, 2009 at 3:45 PM, Matt S. mattsp...@gmail.com wrote: As Laurent said, check the smoothing, eg image.smoothing = true; , that's almost always the issue, especially if they're being scaled down and appearing jaggy. This is assuming you're not scaling your JPG's 100%, for which there's not much you can do, although smoothing helps somewhat. .m On Mon, Feb 2, 2009 at 7:21 PM, [p e r c e p t i c o n] percepti...@gmail.com wrote: Hi All,I have some JPEGs that I display in my app...the problem is that the quality isn't so great...does anyone know of a way to enhance the quality of a jpeg once you load it or am i skrewed thanks percy ___ 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 ___ 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] Best way to access my main class?
Hey, FlashCoders. I'm wondering if you can help me out with a general style question that I keep running into. Let's say I've got a setup like this... class MyGame extends MovieClip - It creates a camera sprite that I can add children into - It then creates a Bouncing Ball object with the camera sprite as the parent to use. class BouncingBall { public function BouncingBall(parentToUse:DisplayObjectContainer) { // Create member variable _mySprite:Sprite and add it to my parentToUse //... } } For reasons I won't get into unless you're really interested, BouncingBall does NOT extend Sprite, it simply contains a sprite. So MyGame has a camera as a child. That camera has my bouncingBall._mySprite as a child. The question is this: I want the BouncingBall sprite to occasionally call a function in MyGame. What's the best way to do this? *Option 1:* Within BouncingBall, just call... MyGame(_mySprite.root).foo(_myVar); This works, but it strikes me as a little unnatural, since I have to dig into my member variable and get its root. Also, I'm not sure this works if my game were to be imported by some larger, wrapper class. *Option 2: *My constructor for BouncingBall should contain two variables public function BouncingBall (var parentToUse:DisplayObjectContainer, var gameApplication:MyGame) I store gameApplication as a member variable, and use it later... _myGame.foo(_myVar); This is my current solution, but the idea of passing a parent and the game application to the constructor strikes me as slightly redundant, and, like Option 1, it tightly couples my BouncingBall object to my main application. *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. I'm sure all of you have encountered this situation before. So what do you generally do? Is there a fourth, totally obvious option that I'm overlooking? Thanks! --Todd ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best way to access my main class?
*Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way to access my main class?
Option 3! Always opt to use event based architecture. It promotes loose coupling of your components. Although it might be a bit more code, you will be able to use BouncingBall within many games, or other applications. On Thu, Feb 5, 2009 at 10:02 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Cheers, Nate http://blog.natebeck.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] maths query
Hi, It looks better than my deadzone calc's which take up a lot more code (I have 2 directions and a deadzone area in the middle and around the outside of the mouse area controlling the velocity), but you are welcome to compare below - I think mine is a bit more verbose, but I was trying to make sure I could debug and come back to it in a few months time and understand. Whatever works for you I guess. Glen private function _mouseMoveHandler(event:MouseEvent):void { var tmpX:Number; var tmpY:Number; //Get x, y in relation to centre of stage - need to clamp tmpX = this.mouseX - WIDTH / 2;//event.stageX - this.stage.stageWidth / 2; tmpY = this.mouseY - HEIGHT / 2;//event.stageY - this.stage.stageHeight / 2; var absX:uint = Math.abs(tmpX); var absY:uint = Math.abs(tmpY); var dirX:int = tmpX / absX; var dirY:int = tmpY / absY; //clamp the movement to a maximum; tmpX = Math.min(_clampMax, absX) * dirX; tmpY = Math.min(_clampMax, absY) * dirY; //App.debug(mouse + this.mouseX + , + this.mouseY + tmp + tmpX + , + tmpY + abs + absX + , + absY); //only respond to a minimum position from centre within our square.. if (_clampMax = absX || _clampMax = absY) { _mouseClamp = true; return; } _mouseClamp = false; if(_clampMin absY) { _velX = (absY * dirY) / _mouseDamping; } else { _velX = 0; } if(_clampMin absX) { _velY = -((absX * dirX) / _mouseDamping); } else { _velY = 0; } //App.debug(mouse Move + _velX + , + _velY); } allandt bik-elliott (thefieldcomic.com) wrote: hi guys I'm working on a carousel and i have a quick question about adding a non-active area in the middle at the moment, the carousel will move forward and backward based on the mouse's position in relation to the center of the carousel but I'd like to widen that by nDeadzoneRadius here is the way that i'm doing it at the moment - it seems very clunky to me but it's doing the job this is on the onMouseMove listener private function adjustSpeed():Void { var nMousePos:Number = _root._xmouse - nCenterX; // !HACK! this is the bit i'm querying if (Math.abs(nMousePos) nDeadzoneRadius) nMousePos = 0; else nMousePos = (nMousePos 0) ? nMousePos - nDeadzoneRadius : nMousePos + nDeadzoneRadius; // end of !HACK! nSpeed = nMousePos / ((36 / _nNumberOfItems) * 1000); //4:800, 8:4000, 12:3000, 24:1500 } so i guess my question is, is there a more elegant solution to this, please? ta a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way to access my main class?
My preference is usually option 3, using an event. It means you can use your ball in other situations, where that call back to the root may or may not be necessary. Regarding cleaning up references in event listeners, you can use a weak reference when you call addEventListener(). Also, I often find that existing flash or flex events match the nature of what I want to express, so I re-use theirs sometimes which saves writing a new event class. Option 4 would be to make MyGame implement some interface (Game? IGame?) which specifies that function. Then the BouncingBall constructor is passed a reference to the interface instead of the whole MyGame class. Same as option 2, really, but this way it's plausible that you would implement the interface with some other game-like class and use BouncingBall in that. Option 5 would be to pass a Function reference into the constructor of BouncingBall. This is very generic, like the event solution, but has a few downsides: 1) function specifications are not maintained by the compiler when you pass Function references, so if you write a bug into the call of the function, you'll get a run-time error instead of a compile-time error. 2) Exactly one object can listen for this function call, unlike an event, which can be listened for by any number of clients. I often use Option 5 for success and failure callbacks when something won't complete right away. Dave On Thu, Feb 5, 2009 at 9:44 AM, Todd Kerpelman t...@kerp.net wrote: Hey, FlashCoders. I'm wondering if you can help me out with a general style question that I keep running into. Let's say I've got a setup like this... class MyGame extends MovieClip - It creates a camera sprite that I can add children into - It then creates a Bouncing Ball object with the camera sprite as the parent to use. class BouncingBall { public function BouncingBall(parentToUse:DisplayObjectContainer) { // Create member variable _mySprite:Sprite and add it to my parentToUse //... } } For reasons I won't get into unless you're really interested, BouncingBall does NOT extend Sprite, it simply contains a sprite. So MyGame has a camera as a child. That camera has my bouncingBall._mySprite as a child. The question is this: I want the BouncingBall sprite to occasionally call a function in MyGame. What's the best way to do this? *Option 1:* Within BouncingBall, just call... MyGame(_mySprite.root).foo(_myVar); This works, but it strikes me as a little unnatural, since I have to dig into my member variable and get its root. Also, I'm not sure this works if my game were to be imported by some larger, wrapper class. *Option 2: *My constructor for BouncingBall should contain two variables public function BouncingBall (var parentToUse:DisplayObjectContainer, var gameApplication:MyGame) I store gameApplication as a member variable, and use it later... _myGame.foo(_myVar); This is my current solution, but the idea of passing a parent and the game application to the constructor strikes me as slightly redundant, and, like Option 1, it tightly couples my BouncingBall object to my main application. *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. I'm sure all of you have encountered this situation before. So what do you generally do? Is there a fourth, totally obvious option that I'm overlooking? Thanks! --Todd ___ 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] Best way to access my main class?
Agreed on Option 3. Custom event inclusive of whatever kind of data you want to send to the associated listening method. I think I whip up custom events more than almost anything else. - Eric On Thu, Feb 5, 2009 at 1:30 PM, Nate Beck n...@tldstudio.com wrote: Option 3! Always opt to use event based architecture. It promotes loose coupling of your components. Although it might be a bit more code, you will be able to use BouncingBall within many games, or other applications. On Thu, Feb 5, 2009 at 10:02 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Cheers, Nate http://blog.natebeck.net ___ 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
[Flashcoders] Re: Flash CS3 DataGrid wordWraping in a cell (Sidney de Koning)
Sid: Make a class that extends the CellRenderer class and. ..ack its quicker to show you the code. See below. This will do it for you. package { import fl.controls.listClasses.CellRenderer; // make a cell renderer class that allow wrapping of text public class MultiLineCell extends CellRenderer { public function MultiLineCell() { // constructor textField.wordWrap = true; textField.multiline = true; textField.autoSize = left; } override protected function drawLayout():void { // allow text to flow according to column width textField.width = this.width; super.drawLayout(); } } // end of class } // end of package Now just assign it to the required column. Ie: myDataGrid.getColumnAt(5).cellRenderer=MultiLineCell; Cheers, Craig Bowman ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best way to access my main class?
I think I whip up custom events more than almost anything else. Yup - me too - in fact, in FlashDevelop, I have a nice event template in the form of a code snippet for a new custom events I use all the time: package { import flash.events.Event; public class extends Event { public static var :String = ; public function (type:String, bubbles:Boolean=false, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way to access my main class?
Additionally, you should take a look at what the code is doing. Why does Bouncing Ball have to call something in the parent? Is it some sort of notification? (I've finished animating/I've hit a wall!). In which case an event is definitely the right solution. Is it to gain information of some sort? In which case, an event won't do it. Consider passing that information in at creation of the ball. If that doesn't make sense - you need to query something in the parent at regular intervals - consider whether the code inside BouncingBall really belongs in BouncingBall. Are you sure whatever it's doing shouldn't be in the parent class instead? Think about black box models - for example, if it's calling the parent to query about collision detection or some such, it's not the ball's _job_ to know whether it's collided with anything; it's the parent's. If you really need to talk to the parent/regularly fetch changing information from the parent and it _is_ the ball's business to do it, I'd be looking at using interfaces if I wanted everything to be properly decoupled. Hope that helps, Ian On Thu, Feb 5, 2009 at 7:07 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I think I whip up custom events more than almost anything else. Yup - me too - in fact, in FlashDevelop, I have a nice event template in the form of a code snippet for a new custom events I use all the time: package { import flash.events.Event; public class extends Event { public static var :String = ; public function (type:String, bubbles:Boolean=false, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way to access my main class?
Look up event bubbling. Essentially if you dispatch your event with bubble=true (the second parameter to an Event constructor), then the event will 'bubble' all the way up the display hierarchy. So your document class will only have to listen to itself for a given event - if any of its children dispatch that event, it'll be notified. HTH, Ian On Thu, Feb 5, 2009 at 7:14 PM, Lehr, Ross (N-SGIS) ross.l...@lmco.com wrote: This brings up a question I had about events. Is there a way to send an event all the way to the document class, no matter where it's been dispatched from? For instance, I have a document class that creates a menu class, which creates several icon button classes. I want the document class to be able to receive the event dispatched from the icon button. Currently, the only way I know how to do it is have the icon button send it to the menu and then the menu send it to the document. So, my question is, can the document class receive an event directly sent from the icon button? Thanks, Ross -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 05, 2009 1:03 PM To: Flash Coders List Subject: RE: [Flashcoders] Best way to access my main class? *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ 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] Best way to access my main class?
This brings up a question I had about events. Is there a way to send an event all the way to the document class, no matter where it's been dispatched from? For instance, I have a document class that creates a menu class, which creates several icon button classes. I want the document class to be able to receive the event dispatched from the icon button. Currently, the only way I know how to do it is have the icon button send it to the menu and then the menu send it to the document. So, my question is, can the document class receive an event directly sent from the icon button? Thanks, Ross -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 05, 2009 1:03 PM To: Flash Coders List Subject: RE: [Flashcoders] Best way to access my main class? *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ 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] Best way to access my main class?
Yes - just turn event bubbling on - then any DisplayObject like sprite or movie clip will pass the event up the display list. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Ross (N-SGIS) Sent: Thursday, February 05, 2009 2:15 PM To: Flash Coders List Subject: RE: [Flashcoders] Best way to access my main class? This brings up a question I had about events. Is there a way to send an event all the way to the document class, no matter where it's been dispatched from? For instance, I have a document class that creates a menu class, which creates several icon button classes. I want the document class to be able to receive the event dispatched from the icon button. Currently, the only way I know how to do it is have the icon button send it to the menu and then the menu send it to the document. So, my question is, can the document class receive an event directly sent from the icon button? Thanks, Ross -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 05, 2009 1:03 PM To: Flash Coders List Subject: RE: [Flashcoders] Best way to access my main class? *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ 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] Broadband speed test app
Hi, does anyone know what a good approach is to measuring broadband speed like they do here http://www.speedtest.net/ Thanks, MaTT ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] my component not instancing properly on timeline
Hi list... I have a class that extends MovieClip. I made a component definition for it with two vars, each with same name/type as defined in the class file. If I instance a new Cat() through code, there are no problems. But, it doesn't work when I want to instance this component on a timeline and set params through the tool palette. I set the class field in the linkage dialog to Cat. In the component definition dialog, I leave the class field empty, but the vars are identical to what are declared in the class file. What am I missing? Thanks, - Michael M. package { import flash.display.MovieClip; public class Cat extends MovieClip { public var catName:String; public var showPole:Boolean; public function Cat(catName:String, showPole:Boolean) { if (showPole==false) { pole.visible = false; } trace(catName); } } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best way to access my main class?
Thanks, everybody! Sounds like creating custom events is the way to go (and yes, it's for Send an alert of some kind to MyGame kind of functionality). I don't have a lot of experience with 'em, so I was probably going through more trouble to avoid them than would actually be required to just suck it up and do things the right way. :) --T On Thu, Feb 5, 2009 at 11:31 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Yes - just turn event bubbling on - then any DisplayObject like sprite or movie clip will pass the event up the display list. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Ross (N-SGIS) Sent: Thursday, February 05, 2009 2:15 PM To: Flash Coders List Subject: RE: [Flashcoders] Best way to access my main class? This brings up a question I had about events. Is there a way to send an event all the way to the document class, no matter where it's been dispatched from? For instance, I have a document class that creates a menu class, which creates several icon button classes. I want the document class to be able to receive the event dispatched from the icon button. Currently, the only way I know how to do it is have the icon button send it to the menu and then the menu send it to the document. So, my question is, can the document class receive an event directly sent from the icon button? Thanks, Ross -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 05, 2009 1:03 PM To: Flash Coders List Subject: RE: [Flashcoders] Best way to access my main class? *Option 3:* I create a custom event, dispatch that event, and create a listener in MyGame rather than call a function directly. I'm guessing this is the best way to go theoretically, and will allow me to reuse my BouncingBall object in other applications, but it's a lot of extra code, and I constantly worry about not property cleaning up event listeners. Hands down, your option 3 is what you should do. So what if it's some extra code? It's the right way to accomplish this. Your object should not target and call methods in other classes outside of it, that's extremely tight coupling, which is bad. So have your bouncing ball sprite dispatch a custom event, have the other class listen for that same custom event and do whatever logic you want, like call another method. It's not messy if you keep your code clean. It just takes practice of doing this a lot before you realize an architecture emerges in your coding you are familiar with. I think its even messier to do option 1 or 2, if that makes you feel any better. Jason Merrill Bank of America Instructional Technology Media · Learning Performance Solutions LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ 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] How to turn off the DEBUG mode with Google Analytics
I appreciate your input. thank u so much!! it works great~ On Wed, Feb 4, 2009 at 6:12 PM, ekameleon ekamel...@gmail.com wrote: Hello :) ?? use the value false in the last argument of the constructor ? Read the documentation of the class : http://code.google.com/p/gaforflash/wiki/API search the GATracker class reference ;) The full signature of the constructor is : GATracker http://gaforflash.googlecode.com/svn/documentation/com/google/analytics/GATracker.html#GATracker%28%29 (display:DisplayObject, account:String, mode:String = AS3, visualDebug:Boolean = false, config: Configuration http://gaforflash.googlecode.com/svn/documentation/com/google/analytics/v4/Configuration.html = null, debug: DebugConfiguration http://gaforflash.googlecode.com/svn/documentation/com/google/analytics/debug/DebugConfiguration.html = null) You can disable the visual debug with the parameter visualDebug : var tracker:AnalyticsTracker = new GATracker( this, UA-111-222, AS3, false ); or not use the last arguments : var tracker:AnalyticsTracker = new GATracker( this, UA-111-222, AS3 ) ; PS : you can use the constructor with only two arguments if you want use the default AS3 mode : var tracker:AnalyticsTracker = new GATracker( this, UA-111-222 ) ; EKA + :) 2009/2/4 ACE Flash acefl...@gmail.com Hey there, How can I turn off the debug mode by as3? so I am able to run it on the production server. thanks === import com.google.analytics.AnalyticsTracker; import com.google.analytics.GATracker; import com.google.analytics.debug.*; var tracker:AnalyticsTracker = new GATracker( this, UA-111-222, AS3, true ); playGame.addEventListener( MouseEvent.CLICK, onButtonClick ); function onButtonClick( event:Event ):void { trace(test); tracker.trackPageview(/myGame1); } ___ 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] Best way to access my main class?
Look into Event bubbling http://www.google.com/search?hl=enq=AS3+event+bubblingmeta= - Original Message - From: Lehr, Ross (N-SGIS) ross.l...@lmco.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, February 05, 2009 8:14 PM Subject: RE: [Flashcoders] Best way to access my main class? This brings up a question I had about events. Is there a way to send an event all the way to the document class, no matter where it's been dispatched from? For instance, I have a document class that creates a menu class, which creates several icon button classes. I want the document class to be able to receive the event dispatched from the icon button. Currently, the only way I know how to do it is have the icon button send it to the menu and then the menu send it to the document. So, my question is, can the document class receive an event directly sent from the icon button? Thanks, Ross ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders