[Flashcoders] AS 3.0 - Typecast a new Obj instantiated from a library linked class to a 'displayObject'
Hello, So I have a movieClip in the library that is set to Export as a class with the Auto Create Class feature, with the name rotate_sphere. rotate_sphere basically contains a .png that I would like to copy as bitmapData to a new bitmap Object so that I can take advantage of the smoothing parameter on 'New Bitmap(bitmapData,snapping,SMOOTHING)'. Because this object needs to scale and I would like to keep it looking smooth with keeping the edges anti aliased. I am getting a Type Coercion error which reads: cannot convert rotate_sphere$ to flash.display.DisplayObject when I am trying to get the bitmapData. I figured that any class instantiated from the library at least extends type DisplayObject since whenever I instantiate a class from the library I can add it as a child, which requires the obj at least extend DisplayObject. Im not sure if Im even going about this right way. Any thoughts or comments would be awesome! and thanks for your time to at least read through this! -Dave Geurts ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flashloaded.com Service
I have purchased a few items from them and I have had nothing but great experiences. -Original Message- From: [EMAIL PROTECTED] on behalf of Kevin Aebig Sent: Thu 11/9/2006 1:54 PM To: 'Flashcoders mailing list' Cc: Subject:[Flashcoders] Flashloaded.com Service Hey all, I'm thinking about purchasing some items from Flashloaded and I'd like to hear what everyone has to say about their work and their support. Any comments welcome. Cheers, !k ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS 3.0 - dynamically create object from libraryclass
Awesome, worked like a charm. thanks! -Original Message- From: [EMAIL PROTECTED] on behalf of Juan Carlos Anorga Sent: Mon 11/6/2006 10:29 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] AS 3.0 - dynamically create object from libraryclass I think you are looking for getDefinitionByName(name:String) in the flash.utils package. - juan On Nov 6, 2006, at 3:15 PM, Dave Geurts wrote: I am trying to dynamical attach or create new objects from Classes that are linked in the library. In the library I did the linkage properties and it is using the Auto Generated Class feature. Before AS 3 days I would use attach and eval to get this working. any ideas? Working Code: var questionObj:MovieClip = new set1_1(); inventoryPanel.addChild(questionObj); Dynamic Code does not work on creating a new class from the library var questionObj:MovieClip = new [set+1+_+1](); inventoryPanel.addChild(questionObj); returns- TypeError: Error #1007: Instantiation attempted on a non-constructor THANKS -Dave Geurts ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS 3.0 - dynamically create object from library class
I am trying to dynamical attach or create new objects from Classes that are linked in the library. In the library I did the linkage properties and it is using the Auto Generated Class feature. Before AS 3 days I would use attach and eval to get this working. any ideas? Working Code: var questionObj:MovieClip = new set1_1(); inventoryPanel.addChild(questionObj); Dynamic Code does not work on creating a new class from the library var questionObj:MovieClip = new [set+1+_+1](); inventoryPanel.addChild(questionObj); returns- TypeError: Error #1007: Instantiation attempted on a non-constructor THANKS -Dave Geurts ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS 3 - lockroot
Does anybody know anything about implementing something similar as lockroot for as3. The only thing I have found in my searches is in the migration guide it says lockroot has been removed. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] XML.onData parse xml in chunks
I am up against the infamous xml parser freezing up flash for a couple seconds. I have searched and searched and have found plenty of posts about saying live with it or overwrite the XML.onData and split up the xml into chunks to parse. I cannot find a single example of this. :S Does anybody know how or know of a example. I know how to edit the onData to point to a custom parser, but I am lost when it comes to the parsing or splitting up of the data. thanks -Dave Geurts ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it
Oh wow that would be nice, does anybody know of this class? I cant seem to find anything but, people saying you have no control of a AS 2 movie. -Original Message- From: [EMAIL PROTECTED] on behalf of David Buff Sent: Thu 10/19/2006 2:42 AM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it I'm a little confused also about loading swf a control it. I didn't succeeded. But I've readed somewhere that you can not import swf compiled in as2 in a as3 loader, because the classes witch define the movieclip is different. But I remember there is another class especially for as2 movieclip... sorry, my licence expired, and I didn't recept the Flex 2.0 I by... Speak again about that when I get my new licence David Buff - Original Message - From: Dave Geurts [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 18, 2006 10:31 PM Subject: [Flashcoders] AS 3.0 - Loader.load() a .swf and than control it I am a little confused with loading media into the loader object. I can load a swf in fine but than how do you control that swf's timline? I think that the swf gets loaded into a loader object, that has a display container? Im a little lost with the loader object concept. I assumend it would be loader.getChildAt(0) i saw loader.content in there but not sure what that does. --- var introLoader:Loader = new Loader(); var request:URLRequest = new URLRequest(intro.swf); introLoader.load(request); trace(introLoader.content); --- Intro loads fine and starts playing Trace returns null Another question is can you load in a .swf that was compiled in 2.0 even if it has no AS in it and control its timeline? thanks for your time! -Dave ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS 3.0 - Loader.load() a .swf and than control it
I am a little confused with loading media into the loader object. I can load a swf in fine but than how do you control that swf's timline? I think that the swf gets loaded into a loader object, that has a display container? Im a little lost with the loader object concept. I assumend it would be loader.getChildAt(0) i saw loader.content in there but not sure what that does. --- var introLoader:Loader = new Loader(); var request:URLRequest = new URLRequest(intro.swf); introLoader.load(request); trace(introLoader.content); --- Intro loads fine and starts playing Trace returns null Another question is can you load in a .swf that was compiled in 2.0 even if it has no AS in it and control its timeline? thanks for your time! -Dave ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Tree component onLoad select leaf
Does anybody know how to set the default selected node in a tree component. Not only set it to open but get it to visually appear selected. -Dave ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] My First oop AS 2.0 project, any tips or comments?
Ok Im taking the plunge, I just got Colin Mooks Book Essential ActionScript 2.0 Started reading it last night as my first exposure to OOP. I have coded something very simple that display 3 buttons in a menu for a game. If anybody has time to look over my organization and code that would be Awesome. I would like to correct bad habits before they are formed!!! THANK you to anyone that has time to check this out!!! source code: http://www.davegeurts.com/MiniGame.zip -Dave Geurts ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com