Re: [Flashcoders] FLV (like youtube)
Hi, you can try http://www.flash-video-mx.com/video_to_flash_web/ or the sdk version at http://www.flash-video-mx.com/flv_encoder_sdk/ Best regards! master 2007-04-05 From: Tom Huynen Sent: 2007-04-04 21:37:14 To: flashcoders@chattyfig.figleaf.com CC: Subject: [Flashcoders] FLV (like youtube) Hi there, A project requires me to create an app that enables people to upload .avi and mov's. These movies must be visible in the frontoffice. Does anybody know how to convert .avi and .mov into FLV? Or is there a better alternative? Kind regards, Tom ___ 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] games dev books
Hi, All of a sudden I get a lot of games requests from clients, and since I haven't really done much games development I am looking for good resources. I know there's a lot on-line, but are also good books you could recommend (possibly with either on-line or CD resources)? Thanks guys, Nik Crosina ___ 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] MovieClipLoader ...
That was already in the sample code I posted. Here's another example: import mx.events.EventDispatcher; class com.muzakdeezign.samples.Test extends MovieClip { // decorate class with EventDispatcher private static var dispatcherInit = EventDispatcher.initialize(com.muzakdeezign.samples.Test.prototype); // declare EvenDispatcher methods public var addEventListener:Function; public var removeEventListener:Function; public var dispatchEvent:Function; } regards, Muzak - Original Message - From: Stephen Ford [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, April 05, 2007 4:48 AM Subject: Re: [Flashcoders] MovieClipLoader ... Thanks Muzak,How to best initialize EventDispatcher outside the constructor via a static property ?How would you do this?___ ___ 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] Flash 9 CS 3 and Flex framework
The way I see it the following is just bad OOP: var text:TextArea = myflashmovie.myClass.getText(); regards, Muzak - Original Message - From: Austin Kottke [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, April 05, 2007 4:23 AM Subject: Re: [Flashcoders] Flash 9 CS 3 and Flex framework The main thing on this is if I load in a flash 9 cs3 swf with a textarea created. var t:TextArea; I then try and reference this same text area from flex var text:TextArea = myflashmovie.myClass.getText(); This would create a compiler error as the textarea would be the flex framework and the flash textarea would be the flash components. Not the same object. (This is an assumption as I dont have flash 9 cs3). Of course you can make a wrapper around the textarea object to return only the data you want such as a string, etc. But this is just an extra pain. As an example something in the flex framework's text area has methods that are not in the flash text area. Now you have to write code to accomodate for this. Does this make sense? Best, Austin ___ 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] games dev books
Thanks Anggie, I saw it on amazon, it doesn't haev any ratings - do you find yourself using it a lot? thanks, nik On 4/5/07, Anggie Bratadinata [EMAIL PROTECTED] wrote: 'Flash 8 Professional Game Development' by Glenn Rhodes, Charles River Media. -- Anggie Bratadinata www.masputih.com I N D O N E S I A nik crosina wrote: Hi, All of a sudden I get a lot of games requests from clients, and since I haven't really done much games development I am looking for good resources. I know there's a lot on-line, but are also good books you could recommend (possibly with either on-line or CD resources)? Thanks guys, Nik Crosina ___ 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 -- Nik C ___ 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] manipulate 32bit integer
On 4/5/07, Oliver Müller [EMAIL PROTECTED] wrote: Hi, I want to change the alpha channel of an 32bit integer. At the moment I extract every color channel, change the alpha and then put them together at the end. (alpha 24) | (red 16) | (green 8) | blue ) How can I change the alpha channel directly ? You could...: color = (color (-1 8)) | (alpha 24); ...but I'm not sure if that would be better. Mark ___ 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] games dev books
I have added it to the list of books on Flash Game development at the Yahoo Script_in_Action forum. If there are any other suggestions please add them there. Anggie Bratadinata wrote: 'Flash 8 Professional Game Development' by Glenn Rhodes, Charles River Media. -- Anggie Bratadinata www.masputih.com I N D O N E S I A nik crosina wrote: Hi, All of a sudden I get a lot of games requests from clients, and since I haven't really done much games development I am looking for good resources. I know there's a lot on-line, but are also good books you could recommend (possibly with either on-line or CD resources)? Thanks guys, Nik Crosina ___ 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] games dev books
'Flash 8 Professional Game Development' by Glenn Rhodes, Charles River Media. -- Anggie Bratadinata www.masputih.com I N D O N E S I A nik crosina wrote: Hi, All of a sudden I get a lot of games requests from clients, and since I haven't really done much games development I am looking for good resources. I know there's a lot on-line, but are also good books you could recommend (possibly with either on-line or CD resources)? Thanks guys, Nik Crosina ___ 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] manipulate 32bit integer
thanks - thats 10 ms faster each operation. Olli 2007/4/5, Mark Winterhalder [EMAIL PROTECTED]: On 4/5/07, Oliver Müller [EMAIL PROTECTED] wrote: Hi, I want to change the alpha channel of an 32bit integer. At the moment I extract every color channel, change the alpha and then put them together at the end. (alpha 24) | (red 16) | (green 8) | blue ) How can I change the alpha channel directly ? You could...: color = (color (-1 8)) | (alpha 24); ...but I'm not sure if that would be better. Mark ___ 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] Question: FMS 2 and CMS managed FLV files
On Apr 4, 2007, at 2:54 PM, john robinson wrote: So the Flash front-end gets this path from the CMS, correct? If that's the case, then in your Java application, you you then copy the actual flv somewhere like so: FMS/applications/myApplication/streams/347/filename.flv That's one problem I have to overcome. The files that FMS would read (or any streaming solution that can run alongside Tomcat) cannot be copied to some 'streaming' directory. We're talking about hundreds of hours of broadcast footage that need to be organized in a specific way. The paths would need to be dynamically generated by the CMS and those paths fed to the streaming server. With the path you provided, you should be able to rip it apart in Flash and build the correct FMS path from there. Does that help at all? You shouldn't need to setup virtual paths at all. If you do need to setup virtual paths, I believe the FMS has an admin service that you could call from your Server-side AS to add those virtual paths dynamically as needed. I thought of doing some server-side AS but then I run into the problem that each separate asset is contained in a separate folder along with all it's transformations - thumbnails, 00:00:10 FLV previews, storyboard jpg sequences, etc. I'd hate to have to add virtual paths all over the place. Anyhow, I think my question at this point is probably well OT for the list so I'll see if I can find a FMS list or something where I can pose the question. I've never used FMS (from an administrative standpoint) so it'll be an interesting learning experience. thanks for the help john. jon ___ 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] NetStream.play() - Start parameter
I've read the docs and the livedocs, and I don't see a ready event. Does this mean that this last suggestion of yours won't work ? netStream.play(flvPath); netStream.seek(5); On 4/4/07 7:14 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ 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] manipulate 32bit integer
I'd do: color = (color (0x00FF)) | (alpha 24); removes that shift and is a little easier to tell what's happening (I always mix up which right shift does what). Though it probably doesn't matter. :) -Andy On 4/5/07, Oliver Müller [EMAIL PROTECTED] wrote: thanks - thats 10 ms faster each operation. Olli 2007/4/5, Mark Winterhalder [EMAIL PROTECTED]: On 4/5/07, Oliver Müller [EMAIL PROTECTED] wrote: Hi, I want to change the alpha channel of an 32bit integer. At the moment I extract every color channel, change the alpha and then put them together at the end. (alpha 24) | (red 16) | (green 8) | blue ) How can I change the alpha channel directly ? You could...: color = (color (-1 8)) | (alpha 24); ...but I'm not sure if that would be better. Mark ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Exporting alpha channel video from flash
I had the same problem, and according to Adobe this is a known issue in Quicktime 7. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=60dcf627 They suggest downgrading to QT 6.5. I wasn't motivated enough to do that, so I went for PNG sequence. On 4/5/07 9:54 AM, John sorry if i posted this before, i asked this question a couple of days ago but never saw it come back in the digest, and it doesn't show up in the archives search. although it did seem someone else recently asked nearly the same question and nobody really knew. so let's try again. i have some animated icons in flash that need to make it into either after effects or avid. in Export Movie i can select QuickTime Video and in the Format box select 32-bit Color (alpha channel). however, when Importing Footage into After Effects, no matter how i Interpret Footage the swf comes in opaque. so far exporting a .png sequence works, but that is clunky. yes, i know about wmode, that doesn't seem to have anything to do with this. does anybody know the trick? thanks, glenn grant ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] NetStream.play() - Start parameter
I'm not sure but I think the extra parameters only apply to streaming video (aka, video from FMS). There's a lot more info here: http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm I did a quick test with a local flv and couldn't get it to work, though this bit of code did work (but ugly)... nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); ns.play(MVI_2739.flv); vid.attachVideo(ns); ns.onMetaData = function(d) { this.seek(10); } john On Apr 5, 2007, at 9:12 AM, leolea wrote: I've read the docs and the livedocs, and I don't see a ready event. Does this mean that this last suggestion of yours won't work ? netStream.play(flvPath); netStream.seek(5); On 4/4/07 7:14 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] games dev books
Hi Ron, Could you post a link to that forum as I don't know it. Thanks! Nik On 4/5/07, Ron Wheeler [EMAIL PROTECTED] wrote: I have added it to the list of books on Flash Game development at the Yahoo Script_in_Action forum. If there are any other suggestions please add them there. Anggie Bratadinata wrote: 'Flash 8 Professional Game Development' by Glenn Rhodes, Charles River Media. -- Anggie Bratadinata www.masputih.com I N D O N E S I A nik crosina wrote: Hi, All of a sudden I get a lot of games requests from clients, and since I haven't really done much games development I am looking for good resources. I know there's a lot on-line, but are also good books you could recommend (possibly with either on-line or CD resources)? Thanks guys, Nik Crosina ___ 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 -- Nik C ___ 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] NetStream.play() - Start parameter
Hi, If you want to start playing at 10 seconds you have to first, buffer your video to 10 seconds. (or 15) wait for your buffer to be full, then do your seek operation. That is if you're doing it as a progressive download. If you stream using FMS or something like it, FMS will automatically handle the pre-buffering and notify you when it's ready. bufferTime(15) //buffer the video to 15 seconds //create your netStream blah blah nc= //net connection, you know the drill //bla blah blah myNetStream_ns = new NetStream(nc) // myNetStream_ns.onStatus(infoObj:Object){ for (var prop in infoObject) { if (infoObject[prop] == NetStream.Buffer.Full) { //buffer has enough data now seek myNetStream_ns.seek(10) } if (infoObject[prop] == NetStream.Buffer.Empty) { // you can handle loading issues here. if the buffer runs empty means the progressive d/l is too slow. } if (infoObject[prop] == NetStream.Play.Stop) { // know when it stops } } } also when you run the seek() call the invalid time return also gives you the last valid time you can set up a handler to automatically seek to the last valid time that way. On 4/5/07, john robinson [EMAIL PROTECTED] wrote: I'm not sure but I think the extra parameters only apply to streaming video (aka, video from FMS). There's a lot more info here: http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm I did a quick test with a local flv and couldn't get it to work, though this bit of code did work (but ugly)... nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); ns.play(MVI_2739.flv); vid.attachVideo(ns); ns.onMetaData = function(d) { this.seek(10); } john On Apr 5, 2007, at 9:12 AM, leolea wrote: I've read the docs and the livedocs, and I don't see a ready event. Does this mean that this last suggestion of yours won't work ? netStream.play(flvPath); netStream.seek(5); On 4/4/07 7:14 PM, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: You have to wait for the ready event before you can seek. Read the docs and it will all come clear. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Anti-aliased text in components
I'm trying to make the text inside all macromedia components to be Anti-aliased. This has proven to be quite difficult. I would rather have a class that takes care of all of it, so here's what I have so far: class net.imageplant.AntiAliaser { private static var _arrChecked:Array; public static function antiAlias(mc:MovieClip, bContinue:Boolean):Void { if (!bContinue) { _arrChecked = new Array(); } for (var i:String in mc) { if (mc[i] instanceof TextField !checkChecked(mc[i])) { _arrChecked.push(mc[i]); mc[i].antiAliasType = advanced; } else if (mc[i] instanceof Object !checkChecked(mc[i])) { _arrChecked.push(mc[i]); antiAlias(mc[i], true); } } } private static function checkChecked(mc:MovieClip):Boolean { var nMcs:Number = _arrChecked.length; var bChecked:Boolean = false; for (var i:Number = 0; i nMcs; i++) { if (_arrChecked[i] == mc) { bChecked = true; } } return bChecked; } } I have only tested it on a List component so far, and it does not work. I can't even figure out where the actual TextFields are in a List component. How could MM overlook this? The components are useless when you can't match the text to the rest of your app...any ideas/help? TIA, Randy Tinfow and Mike Randolph ___ 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] games dev books
I used 'Macromedia Flash MX Game Design Demystified' by Jobe Markar. I love it! I think it has an updated version for Flash 8. On 4/5/07, nik crosina [EMAIL PROTECTED] wrote: Hi Ron, Could you post a link to that forum as I don't know it. Thanks! Nik On 4/5/07, Ron Wheeler [EMAIL PROTECTED] wrote: I have added it to the list of books on Flash Game development at the Yahoo Script_in_Action forum. If there are any other suggestions please add them there. Anggie Bratadinata wrote: 'Flash 8 Professional Game Development' by Glenn Rhodes, Charles River Media. -- Anggie Bratadinata www.masputih.com I N D O N E S I A nik crosina wrote: Hi, All of a sudden I get a lot of games requests from clients, and since I haven't really done much games development I am looking for good resources. I know there's a lot on-line, but are also good books you could recommend (possibly with either on-line or CD resources)? Thanks guys, Nik Crosina ___ 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 -- Nik C ___ 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] what ever happened to ritchfx?
Ah, yes, thanks! On Apr 1, 2007, at 11:39 PM, Muzak wrote: you mean richfx? (no 't') http://www.richfx.com/ regards, Muzak - Original Message - From: Josh Santangelo [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, April 02, 2007 4:40 AM Subject: [Flashcoders] what ever happened to ritchfx? A couple of years ago, there was a company called ritchfx which did a lot of conversion of print catalogs to the web using Flash. Their site seems to be gone now though. Did they vanish? Does anyone provide a similar service? I have a client looking for such a thing and would like to refer them to someone good. -josh ___ 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] creatTextField Help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi everyone, any idea why the text does not show up? - _root.myRed = 0xFF; _root.myLightGray = 0x99; _root.myDarkGray = 0x353535; _root.Art_Fmt = new TextFormat(); with (_root.Art_Fmt) { font = menuFont; size = 8; color = myLightGray; embedFonts = true; } _root.Art_MC = _root.createEmptyMovieClip(Art_MC, 0); _root.Art_MC.createTextField(Art_Txt, i, 10, 10, 80, 20); with (_root.Art_MC[Art_Txt]) { border = false; autoSize = false; selectable = false; embedFonts = true; html = false; } _root.Art_MC[Art_Txt].text = Test Text!!!; _root.Art_MC[Art_Txt].setTextFormat(_root.Art_Fmt); _root.onRollOver = function() { this[Art_Txt].textColor = myDarkGray; } -BEGIN PGP SIGNATURE- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.5 wpwEAQECAAYFAkYVNoQACgkQnK42HzOJXBejgQP+N4+E+HWIZlFIb448AZFEzlbGEOye hD6bKAUTOrsOoy0Vt/ZyLq7uKqh3Cbb906Xy4hdSjaH/ZHVJ8ten62xdokfd9ev7tyK8 y6v9QPjIQ23t6oAZiwZDu8eE992cghuI9Y5XXXSRS+UH/uke3ykUV5Q5kUWmglbi1vVV utsPmTY= =rylS -END PGP SIGNATURE- -- Click to find great rates on home insurance, save big, shop here http://tagline.hushmail.com/fc/CAaCXv1QU9IdGnuLtTBUmTDA5ogVpQkF/ ___ 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] games dev books
I'm currently using Flash 8 Professional Game Development. Highly recommend it. Very good examples and very easy to read. Covers a lot of topics from graphics production, design documents, to building some pretty advanced engines. The chapters on tile based games are excellent, and you'll end up with a professional quality tile engine. - On 4/5/07, geng wang [EMAIL PROTECTED] wrote: I used 'Macromedia Flash MX Game Design Demystified' by Jobe Markar. I love it! I think it has an updated version for Flash 8. On 4/5/07, nik crosina [EMAIL PROTECTED] wrote: Hi Ron, Could you post a link to that forum as I don't know it. Thanks! Nik On 4/5/07, Ron Wheeler [EMAIL PROTECTED] wrote: I have added it to the list of books on Flash Game development at the Yahoo Script_in_Action forum. If there are any other suggestions please add them there. Anggie Bratadinata wrote: 'Flash 8 Professional Game Development' by Glenn Rhodes, Charles River Media. -- Anggie Bratadinata www.masputih.com I N D O N E S I A nik crosina wrote: Hi, All of a sudden I get a lot of games requests from clients, and since I haven't really done much games development I am looking for good resources. I know there's a lot on-line, but are also good books you could recommend (possibly with either on-line or CD resources)? Thanks guys, Nik Crosina ___ 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 -- Nik C ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Combined Classes fail Tween Class
The reason for my problem was that I was declaring the same identifier name inside the movies that were loading. My logic was saying that if they were being loaded in different levels and targets that this wouldnt be an issue but I was mistaking. Thanks again for the help and pointers. -h On 4/4/07, Helmut Granda [EMAIL PROTECTED] wrote: Thanks for the feedback guys, let me go back a little to explain why this behavior. I am trying to implement the MVC Design Pattern to a item. Trying to do it properly I am creating my Views as classes and now I wanted to integrate them into my layout. View 1 Class = menu View 2 Class = content Holder loads View 1 and View 2 Now View 1 has animation as well as View 2 and when tested independently they work great (SWFs) but when they are loaded into the main holder the last SWF plays leaving the first SWF without any animation. Now the animation is being handled with AS so there is no animation in the timeline. Thanks again for the help. Now I'll go back and read the 10 books that cover the subject :) On 4/4/07, Merrill, Jason [EMAIL PROTECTED] wrote: I didn't meant THAT was the conflict he was seeing with the animation, just that he shouldn't name it the same thing so he doesn't have conflicts as he develops the class further. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Jesse Graupmann Sent: Wednesday, April 04, 2007 8:53 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Combined Classes fail Tween Class Jason - I'm pretty sure this is NOT in conflict, but still not good practice. Since target:MovieClip is a variable local to the constructor, you just have to access the class target:Application by using this.target. In this case, the class's target:Application variable is never touched and remains undefined. var target : Application; public function Application ( target:MovieClip ) { trace( target ) // MovieClip trace( this.target ) // Application } To test the theory, try: target = 5; function traceTargets ( target:String ) { trace( target ) // a_string trace( this.target ) // 5 } traceTargets ( 'a_string' ); _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, April 04, 2007 3:26 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Combined Classes fail Tween Class target is a movieclip, this helps me to instantiate the class in the place I desire Right - so then to remove any potential conflicts, take out: var target: Application; Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] creatTextField Help
When embedFonts=true, you must manually embed the font(s) in a textfield -- either the one referred to in your text, or a dummy field. It can be offstage but it has to be present. Marc At 10:50 AM 4/5/2007, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi everyone, any idea why the text does not show up? - _root.myRed = 0xFF; _root.myLightGray = 0x99; _root.myDarkGray = 0x353535; _root.Art_Fmt = new TextFormat(); with (_root.Art_Fmt) { font = menuFont; size = 8; color = myLightGray; embedFonts = true; } _root.Art_MC = _root.createEmptyMovieClip(Art_MC, 0); _root.Art_MC.createTextField(Art_Txt, i, 10, 10, 80, 20); with (_root.Art_MC[Art_Txt]) { border = false; autoSize = false; selectable = false; embedFonts = true; html = false; } _root.Art_MC[Art_Txt].text = Test Text!!!; _root.Art_MC[Art_Txt].setTextFormat(_root.Art_Fmt); _root.onRollOver = function() { this[Art_Txt].textColor = myDarkGray; } -BEGIN PGP SIGNATURE- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.5 wpwEAQECAAYFAkYVNoQACgkQnK42HzOJXBejgQP+N4+E+HWIZlFIb448AZFEzlbGEOye hD6bKAUTOrsOoy0Vt/ZyLq7uKqh3Cbb906Xy4hdSjaH/ZHVJ8ten62xdokfd9ev7tyK8 y6v9QPjIQ23t6oAZiwZDu8eE992cghuI9Y5XXXSRS+UH/uke3ykUV5Q5kUWmglbi1vVV utsPmTY= =rylS -END PGP SIGNATURE- -- Click to find great rates on home insurance, save big, shop here http://tagline.hushmail.com/fc/CAaCXv1QU9IdGnuLtTBUmTDA5ogVpQkF/ ___ 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] creatTextField Help
Try throwing some trace statements in there to see if things are being instantiated correctly. Specifically, after the createEMptyMovieClip try: trace(_root.Art_MC); and after the createTextField() call, try adding this: trace(_root.Art_MC[Art_Txt]); It's possible something isn't being created and you've got some undefined values. You might also want to check out Xray (http://osflash.org/xray). It's helped me when having issues like this before, as you can look at exactly what exists at runtime. -Andy On 4/5/07, edward [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi everyone, any idea why the text does not show up? - _root.myRed = 0xFF; _root.myLightGray = 0x99; _root.myDarkGray = 0x353535; _root.Art_Fmt = new TextFormat(); with (_root.Art_Fmt) { font = menuFont; size = 8; color = myLightGray; embedFonts = true; } _root.Art_MC = _root.createEmptyMovieClip(Art_MC, 0); _root.Art_MC.createTextField(Art_Txt, i, 10, 10, 80, 20); with (_root.Art_MC[Art_Txt]) { border = false; autoSize = false; selectable = false; embedFonts = true; html = false; } _root.Art_MC[Art_Txt].text = Test Text!!!; _root.Art_MC[Art_Txt].setTextFormat(_root.Art_Fmt); _root.onRollOver = function() { this[Art_Txt].textColor = myDarkGray; } -BEGIN PGP SIGNATURE- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.5 wpwEAQECAAYFAkYVNoQACgkQnK42HzOJXBejgQP+N4+E+HWIZlFIb448AZFEzlbGEOye hD6bKAUTOrsOoy0Vt/ZyLq7uKqh3Cbb906Xy4hdSjaH/ZHVJ8ten62xdokfd9ev7tyK8 y6v9QPjIQ23t6oAZiwZDu8eE992cghuI9Y5XXXSRS+UH/uke3ykUV5Q5kUWmglbi1vVV utsPmTY= =rylS -END PGP SIGNATURE- -- Click to find great rates on home insurance, save big, shop here http://tagline.hushmail.com/fc/CAaCXv1QU9IdGnuLtTBUmTDA5ogVpQkF/ ___ 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] re: createTextField
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 well, I have simplified everything. My only two little issues now are: 1. my mouseover does not work to change the text's color. 2. i imported silkscreen bitmap font size 8 linkage for first frame, and linked for actionscript. i named it mysilkscreen. however, when i execute the movie, no errors but the font is just a generic serif font now, any ideas? its tough when flash gives me no errors. here is the code: _root.myRed = 0xFF; _root.myLightGray = 0x99; _root.myDarkGray = 0x353535; _root.createTextField(mytext,1,100,100,300,100); mytext.multiline = true; mytext.wordWrap = true; mytext.border = false; menuFonts_Fmt = new TextFormat(); with(menuFonts_Fmt) { color = myLightGray; bullet = false; underline = false; font=mysilkscreen; size = 8; } mytext.text = Writing; mytext.setTextFormat(menuFonts_Fmt); // _root.mytext.onRollOver = function() { _root.mytext.textColor = myDarkGray; } -BEGIN PGP SIGNATURE- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.5 wpwEAQECAAYFAkYVUz8ACgkQnK42HzOJXBc6SgP/WvdRkiCt743MiFk0LaHo5WZtYaaS FUU7Kw6PDtMghjL2gHkfN1wjU4tLYKS3af8G0fuzj+IwoEzjWs7RN0T9yT52f7+aDaWZ eztH6YtosIKbijf0yNUT1SP10OcLoHfw2CbLcTq0ZAo7kLI8Lbltve6M0pAGDZ4fRW5N Oole38w= =w8ob -END PGP SIGNATURE- -- Click for free info on online doctorate degrees and make $250k/ year http://tagline.hushmail.com/fc/CAaCXv1ZYZ9Qs1mam0nqgyWB4wpiriIq/ ___ 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] Enumerating properties from outside an instance.
I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that same for...in loop. Why not? If I move the enumerating loop into the nested clips it works as expected. - Jason ___ 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] Enumerating properties from outside an instance.
Pretend you're a mechanic and somebody calls you up and says the following: My car starts when it's in my driveway, but it doesn't start when I'm at the store. What's wrong with my car? Would you be able to help? Show us your code or we can't help you. :) -Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Lutes Sent: Thursday, April 05, 2007 2:11 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Enumerating properties from outside an instance. I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that same for...in loop. Why not? If I move the enumerating loop into the nested clips it works as expected. ___ 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] Enumerating properties from outside an instance.
You can do it; you must have an error in your code. for (var prop:String in clip) { var subObject:Object = clip[prop]; for (var otherProp:String in subObject) { trace(otherProp + : + subObject[otherProp]); } } It should look like that, but not horrible. From: Jason Lutes [EMAIL PROTECTED] Date: 2007/04/05 Thu PM 04:10:48 CDT To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Enumerating properties from outside an instance. I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that same for...in loop. Why not? If I move the enumerating loop into the nested clips it works as expected. - Jason ___ 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 -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ 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] Window component scrolling...am I insane?
Have I gone completely mad, or does the v2 Window component really not support scrolling the contents? It extends ScrollView, and the guts of it make several references to the scrollbars, yet there seem to be no actual scrollbars present. I've wasted a good deal of time today trying to throw a ScrollPane in there and getting it to work properly, but the automatic resizing ScrollPane does is causing me angina. So...am I missing something? Does anyone have a free/oss scrolling Window component floating around? -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ 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] Enumerating properties from outside an instance.
Thanks John, My loop is even simpler. I failed to mention that I need to examine nested MovieClip instances for functions. Variables seem to appear as expected, but functions only appear for the current scope. Very strange. Works as expected: for (var propertyIdentifier:String in this) { trace(propertyIdentifier); } Does not work as expected: for (var propertyIdentifier:String in this.someNestedInstance) { trace(propertyIdentifier); } - Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Thursday, April 05, 2007 3:54 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Enumerating properties from outside an instance. You can do it; you must have an error in your code. for (var prop:String in clip) { var subObject:Object = clip[prop]; for (var otherProp:String in subObject) { trace(otherProp + : + subObject[otherProp]); } } It should look like that, but not horrible. From: Jason Lutes [EMAIL PROTECTED] Date: 2007/04/05 Thu PM 04:10:48 CDT To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Enumerating properties from outside an instance. I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that same for...in loop. Why not? If I move the enumerating loop into the nested clips it works as expected. - Jason ___ 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 -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ 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] Enumerating properties from outside an instance.
If you're looking to iterate through a nested object(s), then you have to create a nested loop: function loopMe(target:Object):Void { trace('-- looping through: ' + target + '--'); for (var s:String in target) { trace(s + ': ' + target[s]); for (var t:String in target) { trace('\t' + t + ': ' + target[s][t]); } } } loopMe(myMC); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Lutes Sent: Thursday, April 05, 2007 3:09 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Enumerating properties from outside an instance. Thanks John, My loop is even simpler. I failed to mention that I need to examine nested MovieClip instances for functions. Variables seem to appear as expected, but functions only appear for the current scope. Very strange. Works as expected: for (var propertyIdentifier:String in this) { trace(propertyIdentifier); } Does not work as expected: for (var propertyIdentifier:String in this.someNestedInstance) { trace(propertyIdentifier); } - Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Thursday, April 05, 2007 3:54 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Enumerating properties from outside an instance. You can do it; you must have an error in your code. for (var prop:String in clip) { var subObject:Object = clip[prop]; for (var otherProp:String in subObject) { trace(otherProp + : + subObject[otherProp]); } } It should look like that, but not horrible. From: Jason Lutes [EMAIL PROTECTED] Date: 2007/04/05 Thu PM 04:10:48 CDT To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Enumerating properties from outside an instance. I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that same for...in loop. Why not? If I move the enumerating loop into the nested clips it works as expected. - Jason ___ 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 -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Enumerating properties from outside an instance.
function loopThrough(mc:MovieClip):Void { for (var a:String in mc) { trace(a + : + mc[a]); if (mc[a] typeof movieclip) loopThrough(mc[a]); } } You can use recursion and hope that you don't end up with circular references. ___ 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] Enumerating properties from outside an instance.
Hello :) Your object is a primitive object ? or a object with custom instance inside ? Do you use AS2 classes in your code ? Try the ASSetPropFlags global function to destroy the protection of the object : var ref = this.someNestedInstance ; trace( + ref) ; _global.ASSetPropFlags( ref , null, 0, 1) ; for (var property:String in ref) { trace(property) ; } You can test the attribute of the properties of your object with my class Attribute : http://svn.riaforge.org/vegas/AS2/trunk/src/vegas/util/Attribute.as To install my framework (VEGAS ) : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN EKA+ :) 2007/4/6, David Ngo [EMAIL PROTECTED]: If you're looking to iterate through a nested object(s), then you have to create a nested loop: function loopMe(target:Object):Void { trace('-- looping through: ' + target + '--'); for (var s:String in target) { trace(s + ': ' + target[s]); for (var t:String in target) { trace('\t' + t + ': ' + target[s][t]); } } } loopMe(myMC); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Lutes Sent: Thursday, April 05, 2007 3:09 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Enumerating properties from outside an instance. Thanks John, My loop is even simpler. I failed to mention that I need to examine nested MovieClip instances for functions. Variables seem to appear as expected, but functions only appear for the current scope. Very strange. Works as expected: for (var propertyIdentifier:String in this) { trace(propertyIdentifier); } Does not work as expected: for (var propertyIdentifier:String in this.someNestedInstance) { trace(propertyIdentifier); } - Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Thursday, April 05, 2007 3:54 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Enumerating properties from outside an instance. You can do it; you must have an error in your code. for (var prop:String in clip) { var subObject:Object = clip[prop]; for (var otherProp:String in subObject) { trace(otherProp + : + subObject[otherProp]); } } It should look like that, but not horrible. From: Jason Lutes [EMAIL PROTECTED] Date: 2007/04/05 Thu PM 04:10:48 CDT To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Enumerating properties from outside an instance. I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that same for...in loop. Why not? If I move the enumerating loop into the nested clips it works as expected. - Jason ___ 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 -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com