Re: [Flashcoders] SCORM?
For your FLV, you should load it dynamically and keep it external. We had lots of external assets used by our SWF (MP3, FLV, pictures) and we kept them out of the SCOs and out of the imsmanifest.xml, it was becoming hard to list all those files in there ! But if you only have a few external files, then you should (as it is best practice) keep them listed in the manifest. Great, glad to know this is possible. However, did you have control of the LMS server? Or are the FLV's on a separate server? I as as the whole point of scorm and sco's are to enable them to be deployed by almost any LMS, and the admins of this one seem to think that is important. Thanks for the scoring info. I think we'll just keep the overall score for now as that should work fine. Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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] Quick Question - Static content on Levels?
Can I place Static Content on my layer (i.e. It is not being placed dynamically, visibel within the FLA) can I place it at a level setting, so that it appears in front of some of the actionScript, placements that come in on various levels after that? Or do I have to run it as a Function and place it via the action script aswell (It is the frame of the screen, and should be there aslong as I am running script on this Frame). Thank you very much. Paul VdS ___ 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] Flair Pattern?
Hey FlashCoders: In the app I am building, I have a need to add and remove functionality to an object at runtime--specifically, functionality that will snap the object to a border. I have puzzled on this for awhile, and the method that seems most applicable to me is the Flair pattern described in OOP with ActionScript by Hall Wan. If you don't have the book, the pattern, in short, is a static class that dynamically creates a child object on the class it is modifying, and then adds methods and properties to that object. My question is: has anyone else used this pattern in AS2 projects? Is it even the best way to achieve what I am trying to achieve? An outline of my SnapFlair class follows below. Any input you can offer is greatly appreciated, as always, OK DAH SNAPFLAIR CLASS Implemented as a Singleton class SnapFlair { private static var _obj:SnapFlair; private function SnapFlair() {} /** * @param target The MovieClip being 'flaired' * @param source The source of the event that the flair functionality is listening for * @param eventName The name of the event that the flair is listening for */ public function snapOn( target:MovieClip, source:Object, eventName:String ) { target.mc.$snapFlair = new Object(); target.mc.$snapFlair._obj = target; source.addEventListener( eventName, target.$snapFlair ); target.mc.$snapFlair[eventName] = onEvent; } public static function getObj():SnapFlair { if (SnapFlair._obj == null) { SnapFlair._obj = new SnapFlair(); } return _obj; } public function snapOff( target:MovieClip, source:Object, eventName:String ) { source.removeEventListener(eventName, target.$snapFlair) delete target.mc.$snapFlair; } public function onEvent( evt:Object ) { // do stuff } public function toString():String { return Class SnapFlair; } } ___ 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] SCORM?
Usually we didn't have control over the LMS server but that didn't matter (except for updating and testing ... but that's another story) We delivered everything in our package ... let's say you had a directory structure as follow : - imsmanifest.xml - course (folder) - SCO1.html - sco1.swf - assets (folder) - movie.FLV - movie2.FLV - sound.mp3 - etc ... So when you send your PIF (simple .zip file) to the LMS, all the necessary info should be there. No need to put your movies on another server. They can be all in your package. Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Mennenoh Sent: 29 janvier 2007 11:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] SCORM? For your FLV, you should load it dynamically and keep it external. We had lots of external assets used by our SWF (MP3, FLV, pictures) and we kept them out of the SCOs and out of the imsmanifest.xml, it was becoming hard to list all those files in there ! But if you only have a few external files, then you should (as it is best practice) keep them listed in the manifest. Great, glad to know this is possible. However, did you have control of the LMS server? Or are the FLV's on a separate server? I as as the whole point of scorm and sco's are to enable them to be deployed by almost any LMS, and the admins of this one seem to think that is important. Thanks for the scoring info. I think we'll just keep the overall score for now as that should work fine. Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.410 / Virus Database: 268.17.14/657 - Release Date: 2007-01-29 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.410 / Virus Database: 268.17.14/657 - Release Date: 2007-01-29 ___ 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] Quick Question - Static content on Levels?
MovieClip.swapDepths() - if I understand correctly what you mean Attila ___ 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] Slightly OT: FlexManiacs 2007 Conference Topics posted!
Check 'em out at http://flex2conference.figleaf.com/sessions/index.cfm! Regards, Steve Drucker CEO Fig Leaf Software www.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] IE6 problem with SWFAddress?
Hi folks, a friend of mine has a problem with swfaddress and popup windows in ie6. In her site simple site (testpath under http://www.pixel-gallery.com/devopen/emmakunz/index.html) she uses SWFAddress calls only for to change the categorys of the site but sometimes in the galleries (grotte or museum) the getURL javascript call fails (it´s a simple image release event) . The failure looks like that the popup window in ie6 doesn´t appear and the whole site switch to a blank screen. The javascript call has nothing to do with the swfaddress get or set value call because it´s only a simple javascript function call to a window.open event!!! But i think thats the point. It looks like SWFAddress has an eventlistener for load and unload events in the javascript and maybe the simple window.load function which has nothing to do with an adress switching is catched by swfaddress. Don´t know if i´m wrong but did somebody run into a same problem like me? The strange thing is that this only happens in the ing ie6 ;) Firefox, Safari run fine. And it works also in ie6 when i remove the swfaddress.js script. Thanks for help Peter :: digital:cube Peter Oliver Geller virtual effects artist interactive design development Lindenstr. 14 50674 Cologne 0221 - 92 42 81 52 phone http://www.digital-cube.de/ www.digital-cube.de mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] :: ___ 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] Shorhand for if statement without else statement
(foo) ? foo() : (bar) ? bar() : (foobar) ? foobar() : trace(sorry! no soup for you!); I feel like I need a shower after that one. ;) ___ 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] Catch Buffer event for streamed mp3
Hello all, A two part question to excite you all... 1.I'm streaming some mp3's into a flash player. If the playhead catches the amount loaded and buffering is triggered, I want to display a buffering message. Is there a way to do this that is more efficient than polling? 2. If I have set the amount of buffering with _soundbuftime, is there any way of seeing the amount that has been buffered. Thanks a lot ___ 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] Shorhand for if statement without else statement
Gee ! didn't know it was such a dirty hack ! lol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: 29 janvier 2007 13:14 To: Flashcoders mailing list Subject: RE: [Flashcoders] Shorhand for if statement without else statement (foo) ? foo() : (bar) ? bar() : (foobar) ? foobar() : trace(sorry! no soup for you!); I feel like I need a shower after that one. ;) ___ 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 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.410 / Virus Database: 268.17.14/657 - Release Date: 2007-01-29 ___ 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] Flair Pattern?
I've never heard of an OOP design pattern called Flair. From the class you've pasted, it looks like a novice attempt at implementating a design pattern known as Decorator. Perhaps they were trying to be funny with a reference to the movie Office Space where buttons decorating a TGIFriday's uniform were called Flair? I know that comedy helps when teaching dry material, but renaming a design pattern like that seems to me to be confusing at best. At any rate, here is a link to a description of the Decorator pattern. It should get you on your way. http://en.wikipedia.org/wiki/Decorator_pattern SNAPFLAIR CLASS Implemented as a Singleton class SnapFlair { private static var _obj:SnapFlair; private function SnapFlair() {} /** * @param target The MovieClip being 'flaired' * @param source The source of the event that the flair functionality is listening for * @param eventName The name of the event that the flair is listening for */ public function snapOn( target:MovieClip, source:Object, eventName:String ) { target.mc.$snapFlair = new Object(); target.mc.$snapFlair._obj = target; source.addEventListener( eventName, target.$snapFlair ); target.mc.$snapFlair[eventName] = onEvent; } public static function getObj():SnapFlair { if (SnapFlair._obj == null) { SnapFlair._obj = new SnapFlair(); } return _obj; } public function snapOff( target:MovieClip, source:Object, eventName:String ) { source.removeEventListener(eventName, target.$snapFlair) delete target.mc.$snapFlair; } public function onEvent( evt:Object ) { // do stuff } public function toString():String { return Class SnapFlair; } } ___ 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] Incremental compilation workflow
http://www.flashos.org/flasc/ :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcelo de Moraes Serpa Sent: Saturday, January 27, 2007 6:04 AM To: Flashcoders mailing list Subject: [Flashcoders] Incremental compilation workflow Hello, How would you go on implementing incremental compilation workflow on Flash 8/AS2? I mean, compiling only the modified classes into their correspondent swfs. Let's say you've got a really big project and that you are constantly messing with code and recompiling it. ANT build files are great, but surely it's not clever to rebuild the whole application when you have modified only one class for example. Take the following application structure (it's not that big application I said earlier of course bit I think it still helps to depict the main issue): - Application.as gets compiled to Site.swf - MenuBar.as gets compiled to Site.swf - IndexForm.as gets compiled to IndexForm.swf - ContactForm.as gets compiled to ContactForm.swf As you can see, I have a Site.swf which is the entry-point of the application. IndexForm.swf and ContactForm.swf are both loaded by Application.as. The MenuBar is a class that implements the menu bar for the site navigation. The menu bar is part of the main application UI and gets compiled into Site.swf. If I update or fix something on the MenuBar.as, for example, I don't want to recompile Application.as into Site.swf, nor compile the other classses to the other swfs. What I want is only inject the new MenuBar.as bytecode into Site.swf (the modified class!). Simple, fast, effective. On FlashDevelop, I used to do this by using the Quick MTASC build feature. I would just write the @mtasc statement in the class' header, inside a javadoc comment, telling where to compile this class. So, if I had to do a quick fix or something, I would just hit CTRL+F8, and the new bytecode for MenuBar.as would get injected into Site.swf. I don't know if there are better (more automatized ways) to do this, and if you know, please share, this is the purpose of this post! Recently I've started using FDT 1.5 on Eclipse 3.2, and while it is a killer piece of software, I miss some of FlashDevelop features, mainly the simple and effective ones such as the Quick MTASC build. Currently, I'm using an ANT build file (the FDT MTASC launcher isn't really of any use in my opinnion) with an ANT target to compile each of the swfs the application is made of. When I'm working on a particular SWF, I set up the ANT external tools configuration to launch only this target. It's not the same as injecting only the modified classes (other non-touched classes get compiled also) but it was the best I could do atm. This message isn't really about implementing this with FDT, though I would love to hear from FDT users how they would do this. What I would like to know (and discuss) are the following points: * Do you feel the need to have this workflow implemented? * Do you already have this workflow implemted somehow? * If so, what tools/techniques do you use (would use) to implement it? Thanks in advance! Marcelo. ___ 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] Incremental compilation workflow
er, apparently it's a bizarro monday for me. http://www.osflash.org/flasc/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Monday, January 29, 2007 10:47 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Incremental compilation workflow http://www.flashos.org/flasc/ ___ 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] Flair Pattern?
I've never heard of an OOP design pattern called Flair. From the class you've pasted, it looks like a novice attempt at implementating a design pattern known as Decorator. http://chattyfig.figleaf.com/pipermail/flashcoders/2003-January/060703.html My understanding of the point of this pattern is to allow you to implement multiple Decorators. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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] Flair Pattern?
I've never heard of an OOP design pattern called Flair. From the class you've pasted, it looks like a novice attempt at implementating (sic) a design pattern known as Decorator. Perhaps they were trying to be funny with a reference to the movie Office Space where buttons decorating a TGIFriday's uniform were called Flair? I know that comedy helps when teaching dry material, but renaming a design pattern like that seems to me to be confusing at best. The pattern is similar to Decorator (as they acknowledge in the book) but different in that it allows you to add and remove functionality at runtime. I decided against Decorator because not all objects in the app will need this functionality, and the ones that do can have it turned on and off by the user. So I figured a separate class would be a good way to encapsulate this functionality, and I remembered this pattern from their book. I don't have a lot of background in design patterns so I was curious if other people have used it. Incidentally, you are correct about the Office Space reference. Here is a post from Branden Hall, the book's author, from this very list: http://chattyfig.figleaf.com/pipermail/flashcoders/2003-January/ 060703.html OK DAH ___ 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] SCORM?
Hi Dave: I use scorm 1.2 version, when I need to more than one score I use objectives. Each objective works like the score, and it can allow you 21 questions, each objective can have min, max and raw. To work with objective you have to know that the objectives are zero-index, and in the beginning of your quiz, you have to initialize them first. You can write an objective if you didn't initialize first, and you cannot initialize the second of you don't initialize the first. The path for objectives are: To know how many objective are: cmi.objectives._count The score of the first objective: cmi.objectives.0.score.raw Min value of the first objective: cmi.objectives.0.score.min Max value of the first objective: cmi.objectives.0.score.max I hope it helps you Carolina Avila - Original Message - From: Dave Mennenoh [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, January 27, 2007 8:38 AM Subject: [Flashcoders] SCORM? I did a small quiz for a client and now they've decided to make it integrate into their LMS. I did some looking and it seems using external interface and calling the LMS like so: ExternalInterface.call(LMSInitialize); should work pretty well. However two things are not making sense to me. I see how I can call LMSSetValue to set the users score but I only see min, max, and raw score entries. The quiz has 21 questions, can I not track the response for each question? Finally, this quiz has a bunch of associated FLV's - 50MB worth. Can the video content be kept outside of the SCO package? Does it need to be included in the manifest XML file? I thought I could just place the flvs on their server and reference them from Flash... that's what I was hoping. Thanks for any insight. Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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 __ Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. Tutopia es Internet para todos. ___ 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] HTML Rendering Code ?
Hi All, I am in search for a good and faast html or xhtml rendering engine for using in my project. I have tried Deng, but the rendering is too slow. Anyone has any idea about such a tool? a component? or a class? Thanks in advance... --vipin ___ 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] HTML Rendering Code ?
Hello :) If you can wait between 6 and 12 months... Apollo the project of Adobe can display HTML pages in a MovieClip :) EKA+ :) 2007/1/29, vipin chandran [EMAIL PROTECTED]: Hi All, I am in search for a good and faast html or xhtml rendering engine for using in my project. I have tried Deng, but the rendering is too slow. Anyone has any idea about such a tool? a component? or a class? Thanks in advance... --vipin ___ 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] Flair Pattern?
The pattern is similar to Decorator (as they acknowledge in the book) but different in that it allows you to add and remove functionality at runtime. ... Hmmm ...sounds interesting. Besides the book (which I don't have access to unfortunately) are there any online resources where I can find more details (description/code samples) about the flair pattern? - Benny ___ 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] access movieclip trough a class
i have a movieClip holder that contains other child movieClips (mc1, mc2, mc3...) created in the flash interface. From the librairie i linked themovieClip holder to this Class. class Holder extends MovieClip{ //constructor function Holder(){ mc1._x=50 } } But it says mc1 is undefined.Well, it is undefined in the class but it is in the movieClip which is linked to. I was just wondering if i can access the movie clips created in the interface trought the linked class and how. don't know if i was clear :) thx N. ___ 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] Flair Pattern?
So I was dead on about the Office Space reference. :) The class manages assigning Decorators. It isn't a design pattern. It's a class that manages the Decorator design pattern on multiple objects. I'm not sure where the idea that the Decorator pattern must be used on all or none of the objects in an application, or that Decorated objects cannot be undecorated. There are no references to the Flair design pattern anywhere else because it doesn't exist anywhere except in the ego of Brendan Hall. It's not a design pattern, it's a class that uses another design pattern, and poorly, too, judging by the code example. If you want to learn more about Design Patterns, there are quite a few great books out there on the subject written by people more learned and experienced than Brendan Hall. Like people with PhD's in Computer Science. From the de facto bible Design Patterns by the Gang of Four to many others. ___ 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] Shorhand for if statement without else statement
Heh, that's nothing. I don't have the code available, but I once wrote a ?: statement that was something like 16 deep. Ah, those were the days. :) -Andy On 1/29/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: (foo) ? foo() : (bar) ? bar() : (foobar) ? foobar() : trace(sorry! no soup for you!); I feel like I need a shower after that one. ;) ___ 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] access movieclip trough a class
You must defined the variable first in your class before using it. class Holder extends MovieClip { private var mc1:MovieClip; function Holder() { mc1._x = 50; } } that way you won't get any compiler errors Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ntasky Sent: 29 janvier 2007 14:32 To: Flashcoders mailing list Subject: [Flashcoders] access movieclip trough a class i have a movieClip holder that contains other child movieClips (mc1, mc2, mc3...) created in the flash interface. From the librairie i linked themovieClip holder to this Class. class Holder extends MovieClip{ //constructor function Holder(){ mc1._x=50 } } But it says mc1 is undefined.Well, it is undefined in the class but it is in the movieClip which is linked to. I was just wondering if i can access the movie clips created in the interface trought the linked class and how. don't know if i was clear :) thx N. ___ 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 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.410 / Virus Database: 268.17.14/657 - Release Date: 2007-01-29 ___ 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] access movieclip trough a class
Simply define class members with the instance names of your movie clips on the stage: class Holder extends MovieClip { private var mc1: MovieClip; function Holder() { mc1._x = 50; } } n i have a movieClip holder that contains other child movieClips (mc1, mc2, n mc3...) created in the flash interface. From the librairie i linked themovieClip holder to this Class. n n class Holder extends MovieClip{ n //constructor n function Holder(){ n mc1._x=50 n } n } n n But it says mc1 is undefined.Well, it is undefined in the class but it is in n the movieClip which is linked to. n I was just wondering if i can access the movie clips created in the n interface trought the linked class and how. n don't know if i was 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
Re: [Flashcoders] access movieclip trough a class
You may have to wait for the child clips to initialise: Make sure your load order is set to bottom up in the publish settings, then try to initialise your child clips in the onLoad function. class Holder { /** ... */ function onLoad() { mc1._x = 50; mc2._x = ... mc3._x = ... } } If that does not work, you may want to add a register function in the Holder clip. And create a class for your children which calls the register function. class Holder { /** ... */ function register(child:MovieClip) { if(child == mc1) { mc1._x = 50; } else if(child == mc2) { mc2._x = ... } else { mc3._x = ... } } } class Child extends MovieClip { /** ... */ function onLoad() { this._parent.register(this); } } HTH G ___ 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] Flair Pattern?
Im not normally one to comment on personal behaviour but that post really does leave a bitter taste, which is sad as you are sometimes helpful. If you are going to pass judgements on other peoples work which may prove helpful in the situation facing the OP then at least qualify them or you also look like you are relying on us accepting your notion of your own ego. Design patterns are not cast in stone and the GoF dont hold the one true set of patterns, PhD's or no PhD's. Actionscript is not C++ and its not Smalltalk, other solutions may apply. I know you can discuss a topic without resorting to ad hominem, so please do so. thanks, Martin Steven Sacks | BLITZ wrote: There are no references to the Flair design pattern anywhere else because it doesn't exist anywhere except in the ego of Brendan Hall. It's not a design pattern, it's a class that uses another design pattern, and poorly, too, judging by the code example. If you want to learn more about Design Patterns, there are quite a few great books out there on the subject written by people more learned and experienced than Brendan Hall. Like people with PhD's in Computer Science. From the de facto bible Design Patterns by the Gang of Four to many others. ___ 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] Flash 9 Public Alpha stability issues
Hi all, This is my first post in the list. I've been experimenting in some AS3 development with Flash 9 Public Alpha in our company, coding a racing game prototype. So far the experience has been great, at least from a coding perspective, as I'm using Flex 2 to write the code and Flash 9 to compile and run it. It's much cleaner to code in AS3, I found it very satisfying and much less ugly then AS2, not to mention the increased performance. Not everything went smoothly though. It's rather common to see Flash 9 crash while running the game, taking down the whole IDE with it. At first I thought it was a problem in the IDE itself, but then I started testing the game directly in Flash Player and Internet Explorer. Again, I get random crashes. It's funny, because being such a high level tool, I'm not supposed to be able to generate such violent crashes just by running Actionscript code, so it must certainly be a bug somewhere in the VM, or in the code generated by the Flash 9 Alpha compiler. I tested it in several different computers, all with the same results. It's not happening 100% of the times I test the game, but I can say it happens often enough to be considered alarming. The Fla file has a little over 10 megs, with the SWF being around 3 megs. I'm not using any sound so far, it's basically a lot of sprites and animations. The crashes can happen in just about any part of the game, but usually when the user clicks a button to change the current screen, though the screen itself is pretty much random. I also have noticed the crashes to have increased as I added more assets to the main Fla file, though this might not be true. Is anyone else developing with Flash 9 Alpha? Maybe you're also having such crash problems, but were able to find workarounds or know of any common pitfalls that can cause these problems? I'd appreciate any help, as I'd really like to know if it's too risky to go for developing a full product in this version of flash, or if it's better to just stay in the experimental phase and wait a little more. But we need the Flash IDE to develop our games, it's just not possible to do it with Flex alone. If Flash 9 alpha is really that unstable, we'll just have to keep developing in AS2 for a little longer. Thanks. -- Frederico Ferro Schuh ICQ 20486081 MSN [EMAIL PROTECTED] ___ 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: IE6 problem with SWFAddress?
I have ran into this nightmare and am still not sure what causes it. Just as I thought I had it beat it I would do a as2js call and the swf would disappear in IE. Something else I have seen is Firefox freeze up the swf. If I had to retroubleshoot it again I would look for this: -Are you using a getURL(javascript:jsFunction()) type call? I have had your problem mixing these in with ExternalInterface. I would first try switching getURL javascript calls to ExternalInterface. Another solution I have heard of is using setTimeout on the Javascript side to delay opening the window for a second I ended up hacking up SwfAddress and moving it off ExternalInterface to the SwfObject/Javascript/ASGateway here: http://blog.deconcept.com/code/intkit/ This has been my most solid in my testing (and lets SwfAdress work with Flash 7) Good luck. ___ 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 Public Alpha stability issues
Hey Frederico, I'm using 9 Alpha for a large game project, and the only problems I've had have been with my code. It seems just as stable as the Flash 8 IDE. There are a couple of things I'm not keen on though, and that's the inability to assign more than one MC to any one Class (which has been addressed in the Flash 9 IDE) and a 'cannot write to read only property' error when adding and manipulating display objects whose classes are loaded from child swfs... J Frederico Ferro Schuh wrote: Is anyone else developing with Flash 9 Alpha? Maybe you're also having such crash problems, but were able to find workarounds or know of any common pitfalls that can cause these problems? I'd appreciate any help, as I'd really like to know if it's too risky to go for developing a full product in this version of flash, or if it's better to just stay in the experimental phase and wait a little more. But we need the Flash IDE to develop our games, it's just not possible to do it with Flex alone. If Flash 9 alpha is really that unstable, we'll just have to keep developing in AS2 for a little longer. 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
Re: [Flashcoders] Incremental compilation workflow
Hi Steven! Thanks for the reply. Don't get me wrong, Flasc seems great, but I don't really want to leave FDT. Can this functionality be somehow implemented on other enviroments? Marcelo. On 1/29/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: er, apparently it's a bizarro monday for me. http://www.osflash.org/flasc/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Monday, January 29, 2007 10:47 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Incremental compilation workflow http://www.flashos.org/flasc/ ___ 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] Re: NetStream and Flash Player 9
[EMAIL PROTECTED] wrote: I meant the NetStream class in Flash. As in: var my_nc:NetConnection = new NetConnection(); my_nc.connect(null); var my_ns:NetStream = new NetStream(my_nc); my_video.attachVideo(my_ns); my_ns.play(video1.flv); // copied from help files Are you asking What causes might stop all my network requests in ActionScript? If so, then have you isolated the browsers yet, and tested known-to-be-good apps from others in that browser? jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, 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
Re: [Flashcoders] Flair Pattern?
Yeah, hear-hear (here-here?). I would wager that we could find one ore more non-PhD's who've produced some major, seminal works. I'm sure this even applies in the CS field, no? OTP: Flex 2 rocks. Get it now. -Scott Yeah, well the God I believe in isn't short of cash, mister. On 1/29/07, Martin Wood-Mitrovski [EMAIL PROTECTED] wrote: Im not normally one to comment on personal behaviour but that post really does leave a bitter taste, which is sad as you are sometimes helpful. If you are going to pass judgements on other peoples work which may prove helpful in the situation facing the OP then at least qualify them or you also look like you are relying on us accepting your notion of your own ego. Design patterns are not cast in stone and the GoF dont hold the one true set of patterns, PhD's or no PhD's. Actionscript is not C++ and its not Smalltalk, other solutions may apply. I know you can discuss a topic without resorting to ad hominem, so please do so. thanks, Martin Steven Sacks | BLITZ wrote: There are no references to the Flair design pattern anywhere else because it doesn't exist anywhere except in the ego of Brendan Hall. It's not a design pattern, it's a class that uses another design pattern, and poorly, too, judging by the code example. If you want to learn more about Design Patterns, there are quite a few great books out there on the subject written by people more learned and experienced than Brendan Hall. Like people with PhD's in Computer Science. From the de facto bible Design Patterns by the Gang of Four to many others. ___ 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 -- : : ) Scott ___ 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] Flair Pattern?
I felt that I did qualify my statement, I'll try again with clearly language. My statement: There is no such thing as a Flair design pattern. My qualification: Brendan Hall's book and deep in the archives of Flashcoders back when Brendan operated this list are the only places you will find reference to it. His class uses the Decorator design pattern. Using a design pattern doesn't mean you've made your own design pattern. Calling it a design pattern gives it a level of authenticity that it simply doesn't have and is misleading to anyone who reads it, as the OP has demonstrated with his post. He has no point of reference outside of Brendan's book or this list to support him or his questions. I provided a link that would hopefully help him learn the actual design pattern being used, which is called Decorator. Using Decorator on multiple objects isn't a design pattern, it's the usage of the Decorator design pattern. To your comment that Actionscript isn't C++ or Smalltalk, that's true. My feeling is that Design Patterns are universal, not limited to syntax or language. I didn't mean to imply that GoF holds the one true set of patterns. They don't cover MVC in their book, for instance, a pattern I use regularly. Their book is weighted heavily towards the Composition design pattern, which is slowly being embraced by the Actionscript community. The Flex framework and even the AS3 language are influenced by the power of the Composition design pattern. The Head First Design Patterns book is quite good, as well, and is more accessible than the heady and dense GoF one which I had trouble understanding parts of (often due to lack of experience with C++ and Smalltalk) and had to turn to google and other books to grasp some of the concepts they were talking about. However, the 18 design patterns covered by Head First can all be found in the 23 covered by Gang of Four, and all are on Wikipedia, discussed all over the web, and come up with many useful results in google, in contrast to Brendan's Flair design pattern. To the ad hominem remark: When you're writing a book to help people and claiming you're using a new design pattern who does it serve? The reader or the author? And if it serves the author and not the reader, is that not an ego driven decision? Years ago, a company I worked at sent a few employees to Figleaf for training and the class was taught by Brendan Hall. I walked away from that class with the impression that Brendan spent most of the time telling everyone how smart he was but not teaching very much at all. His class did little to improve my or my coworkers Flash skills. That experience, the way he ran Flashcoders in the early days, and now this, is, I suppose, why I called it an ego driven decision to call it a design pattern. If you see it as ad hominem, that's my fault for not using clear enough language. Cheers, Steven ___ 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] Flair Pattern?
the way he ran Flashcoders in the early days Can you elaborate? Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- READ CAREFULLY. By reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (BOGUS AGREEMENTS) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. ___ 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] Re: IE6 problem with SWFAddress?
Yes, mixing getURL and ExternalInterface causes problems with IE6 (and 7 to a lesser extent) when using SWFAddress. He talks about it on his site and there are also discussions on his forum, as well. I didn't see them at first, either. It took me awhile to figure out why the site was behaving oddly because the class that I had that used getURL (an omniture tracking class) wasn't making getURL calls on my server but was on the client's server. I didn't put the two together until I spent an afternoon chatting with Rostislov (the author of SWFAddress) and he asked me casually about whether I was using getURL somewhere else. The solution is to use ExternalInterface instead of getURL(), which actually performs better anyway. -Steven ___ 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] Flair Pattern?
Can you elaborate? While a trip down memory lane replete with posts from the archives sounds like a wonderful time (not), I have work to do and it would take this thread extremely OT. ___ 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] Flair Pattern?
i can only recall from the early days that posts be about coding, and some posts(threads) would get bounced (I think) if they didn't. Which was understandable imho. Beyond that, I'm not sure what the comment about Branden running the list means either... -ericd. On 1/29/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Can you elaborate? While a trip down memory lane replete with posts from the archives sounds like a wonderful time (not), I have work to do and it would take this thread extremely OT. ___ 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 -- eric e. dolecki senior interactive engineer http://www.ericd.net ___ 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] ExternalInterface with multiple swfs
All- A recent post spurred my memory of an issue I had a while back. Has anyone experienced any issues with having two SEPARATE SWFs in an HTML page (using SWFObject) calling JavaScript methods via ExternalInterface? I ran into this last November and didn't find a solution. What was happening is the first swf loaded was able to call the JS methods, but the second was unable. Thanks, Thomas ___ 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] Flair Pattern?
For my part, I have the Head First book, and the Decorator section did not answer the particular questions I had. Nor did the other sources I read. Whether something is a true design pattern or not is kind of beside the point, for me; what I want to know is if a particular approach is good for what I am trying to accomplish: in this case, adding and removing functionality to an object at runtime. As for Steve's earlier comment, It's not a design pattern, it's a class that uses another design pattern, and poorly, too, thanks for the reply, but it does nothing to explain why the code is bad, or what a better approach would be. My approach is working so far; if it's no good, I'm sure the code will tell me, soon enough. For the common good I move that we put this thread to bed, OK DAH ___ 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] ExternalInterface with multiple swfs
I've had this working fine - just make sure you use different IDs for each Flash module. On 1/29/07, Thomas Fowler [EMAIL PROTECTED] wrote: All- A recent post spurred my memory of an issue I had a while back. Has anyone experienced any issues with having two SEPARATE SWFs in an HTML page (using SWFObject) calling JavaScript methods via ExternalInterface? I ran into this last November and didn't find a solution. What was happening is the first swf loaded was able to call the JS methods, but the second was unable. Thanks, Thomas ___ 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] ExternalInterface with multiple swfs
Yeah, did that but still no dice. - Original Message - From: Mick G [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, January 29, 2007 5:44 PM Subject: Re: [Flashcoders] ExternalInterface with multiple swfs I've had this working fine - just make sure you use different IDs for each Flash module. On 1/29/07, Thomas Fowler [EMAIL PROTECTED] wrote: All- A recent post spurred my memory of an issue I had a while back. Has anyone experienced any issues with having two SEPARATE SWFs in an HTML page (using SWFObject) calling JavaScript methods via ExternalInterface? I ran into this last November and didn't find a solution. What was happening is the first swf loaded was able to call the JS methods, but the second was unable. Thanks, Thomas ___ 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] Flair Pattern?
Whether something is a true design pattern or not is kind of beside the point, for me; what I want to know is if a particular approach is good for what I am trying to accomplish: in this case, adding and removing functionality to an object at runtime. If it works and you meet the deadline, then it's good enough, eh? :) If you want to engage in what a fellow coder friend of mine calls aromatherapy, I'm for it. I was mistaken in my impression that you were looking to understand the design pattern, which is why I was trying to lead you to Decorator and away from Flair because you weren't going to find any information on Flair that would be helpful, but there are plenty of helpful places to look for Decorator. If you want to discuss best practice for what you're doing, I'd be happy to offer ideas later today when I have more time. Other people might be able to chime in here on the best application of Decorator in Actionscript. ___ 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] Highlighting dates in DateChooser
Hello all, I am using a datechooser component for an events calendar and wondered if you knew of a way to highlight other dates beside today's date (showToday). I've googled this, but cannot seem to find anything. Any hints or articles much to be appreciated. -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- ___ 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] Flair Pattern?
On 1/29/07, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: If you want to discuss best practice for what you're doing, I'd be happy to offer ideas later today when I have more time. I'm a little confused as to why the original poster would want to dynamically add or remove functionality to/from an object at runtime. That sounds a bit unstable--code that works perfectly fine when the functionality is added would break when the functionality is removed. Perhaps it is better to add a flag (like the enabled property of movie clips and buttons) and disable certain functionality when it is false (or true or whatever). Other people might be able to chime in here on the best application of Decorator in Actionscript. Personally, I find one of the best uses to be in place of mixing in (i.e., copying functions from the prototype of one class to an unrelated class). In essence, it's a way to get around the every class can have only one parent problem. For example, if I have an IEventDispatcher interface that's implemented by an EventDispatcher class that's descended from Object, then I can't have a component that extends EventDispatcher because components (in AS2) must extend MovieClip. The solution: make a DispatcherClip class that extends MovieClip and implements IEventDispatcher by keeping a hidden EventDispatcher object and wrapping/decorating its public functions. -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 ___ 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] Test if mouse is outside flash movie (within browser) ...
I have a bunch of tooltips in my flash movie.One of the hit areas of a movie clip that triggers a tooltip sits flush with the edge of the flash movie.When testing in the browser, if I mouse over this clip and continue outside the flash movie onto the HTML page, I can no longer poll the position of the mouse and then fade the tooltip if the mouse is no longer over the movie clip.Anyone advise on how I can resolve this ??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
RE: [Flashcoders] Flair Pattern?
Respectfully, Isn't that like saying a singleton is just a class that manages a factory? =) A design pattern is a repeatable solution to a commonly occurring problem in software development. So if all a Flair does is manage decorators and 2 people know that's what it does, then that sounds like a design pattern to me (unless there's a ECMA committee for that now a days). =) Anyhow I tend not to use decorators (matter of personal taste). I prefer to not Frankenstein an object at runtime and rather use mixins (composition + interfaces). -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Monday, January 29, 2007 11:35 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flair Pattern? So I was dead on about the Office Space reference. :) The class manages assigning Decorators. It isn't a design pattern. It's a class that manages the Decorator design pattern on multiple objects. I'm not sure where the idea that the Decorator pattern must be used on all or none of the objects in an application, or that Decorated objects cannot be undecorated. There are no references to the Flair design pattern anywhere else because it doesn't exist anywhere except in the ego of Brendan Hall. It's not a design pattern, it's a class that uses another design pattern, and poorly, too, judging by the code example. If you want to learn more about Design Patterns, there are quite a few great books out there on the subject written by people more learned and experienced than Brendan Hall. Like people with PhD's in Computer Science. From the de facto bible Design Patterns by the Gang of Four to many others. ___ 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] Flex vs. Laszlo
I am looking at both of these and they seem to be pretty similar. I was looking for people who have used both and the pros/cons of each. Also just a general overall opinion. 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
RE: [Flashcoders] Flair Pattern?
Is adding and removing identical decorators on multiple objects a commonly occuring problem in software development? ;) I avoid Decorators, as well, for the same reasons you stated and the same solutions you offered, as well. :) ___ 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] Flair Pattern bad mixins good (?)
Anyhow I tend not to use decorators (matter of personal taste). I prefer to not Frankenstein an object at runtime and rather use mixins (composition + interfaces). Ah, thank you, now we are getting somewhere! Tell me about mixins. I have used EventDispatcher before, but I am unfamiliar with the theory behind mixins in general. In my app, i have objects that can be dragged around in a Room, and they have a snapping behavior that lets them snap to the walls of the room, and in some cases, rotate themselves so that a given side of the object is always to the wall. Currently, my snapping behavior is in a separate class like the one at the top of this thread. If the room object has snapping enabled, the SnapFlair class adds an object with a bunch of methods and properties to it. The snapping methods are triggered by an event that is broadcast as the room object is being dragged. How would I implement this as a mixin? Many thanks fellas! As for Steven, sounds like HE'S got a case of the Mondays! *smirk* OK DAH ___ 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] Flex vs. Laszlo
William, This came up on FlexCoders last month. Following is a link to a reply I posted there (that in turn includes links out to other sources): http://tech.groups.yahoo.com/group/flexcoders/message/59767 I am interested in a thorough comparison of Flex 2 vs Laszlo, so if anyone can provide a link I would appreciate it. Has anyone here actually used Laszlo? Can anyone provide first hand impressions? Following are a few more bits of what I have heard. Back in the Flex 1.x days the price difference between Flex and Laszlo was enormous. Since Adobe rationalized pricing with Flex 2, Laszlo's price advantage now is negligible. At this point, the only runtime Flex 2 targets is Flash Player 9/AS3. Laszlo targets FP7/AS2, plus Ajax/DHTML and soon Java ME. I believe Laszlo shows future development targeting FP9/AS3. From what I can tell, Laszlo has limited IDE support. Or at least not as robust a support as Flex Builder 2 provide for Flex 2 development. Back in 2005 an IBM alphaworks project was announced to provide Laszlo support in Eclipse: http://www.alphaworks.ibm.com/tech/ide4laszlo hth, g On 1/29/07, William Smith [EMAIL PROTECTED] wrote: I am looking at both of these and they seem to be pretty similar. I was looking for people who have used both and the pros/cons of each. Also just a general overall opinion. 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
RE: [Flashcoders] Flair Pattern bad mixins good (?)
The theory of mixins originated from multiple inheritance programming languages such as C++. So for example: Say you wanted to make an object dragable, clickable and resizable. You would then create separate classes called: Dragable, Clickable and Resizable (common naming convention for a mixin). Then your base class would just inherit form those 3 classes. Since AS2 doesn't support multiple inheritances you can emulate a mixin using interfaces and composed classes. For example: IClickable, IDragable, IResizable So then your AS2 class would say: Class MyClass extends Whatever implements IClickable, IDragable, IResizable Those interfaces just specify what methods your class has to support. From there you could have a class (or a consolidated class) implement that functionality private var clickable:Clickable = new Clickable(); private var dragable:Dragable = new Dragable(); private var resizeable:Resizeable = new Resizeable(); from there you just forward / wire the appropriate methods to its corresponding instances. public function startResize() { this.resizeable.startResize(); } Or for arguments: public function startResize() { this.resizeable.apply.(this.resizeable.startResize, arguments); } You could get even more fancy by externalizing those classes so based on various rules you could pass in different resize logic, etc. Anyhow, hope that gets the gears turning. =) DISCLAIMER: Didn't spell check or test anything in the compiler so maybe some typos. =) -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, January 29, 2007 7:12 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) Anyhow I tend not to use decorators (matter of personal taste). I prefer to not Frankenstein an object at runtime and rather use mixins (composition + interfaces). Ah, thank you, now we are getting somewhere! Tell me about mixins. I have used EventDispatcher before, but I am unfamiliar with the theory behind mixins in general. In my app, i have objects that can be dragged around in a Room, and they have a snapping behavior that lets them snap to the walls of the room, and in some cases, rotate themselves so that a given side of the object is always to the wall. Currently, my snapping behavior is in a separate class like the one at the top of this thread. If the room object has snapping enabled, the SnapFlair class adds an object with a bunch of methods and properties to it. The snapping methods are triggered by an event that is broadcast as the room object is being dragged. How would I implement this as a mixin? Many thanks fellas! As for Steven, sounds like HE'S got a case of the Mondays! *smirk* OK DAH ___ 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: Test if mouse is outside flash movie (within browser) ...
Maybe use setInterval to recheck if the mouse is still over the clip, if not fade out if its Flash 8 the undocumented setTimeout is useful too: http://www.flashguru.co.uk/flash-8-settimeout/ ___ 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] Flair Pattern bad mixins good (?)
Erik Bianchi wrote: The theory of mixins originated from multiple inheritance programming languages such as C++. So for example: Say you wanted to make an object dragable, clickable and resizable. You would then create separate classes called: Dragable, Clickable and Resizable (common naming convention for a mixin). Then your base class would just inherit form those 3 classes. Since AS2 doesn't support multiple inheritances you can emulate a mixin using interfaces and composed classes. For example: IClickable, IDragable, IResizable So then your AS2 class would say: Class MyClass extends Whatever implements IClickable, IDragable, IResizable Those interfaces just specify what methods your class has to support. From there you could have a class (or a consolidated class) implement that functionality private var clickable:Clickable = new Clickable(); private var dragable:Dragable = new Dragable(); private var resizeable:Resizeable = new Resizeable(); from there you just forward / wire the appropriate methods to its corresponding instances. public function startResize() { this.resizeable.startResize(); } Or for arguments: public function startResize() { this.resizeable.apply.(this.resizeable.startResize, arguments); } You could get even more fancy by externalizing those classes so based on various rules you could pass in different resize logic, etc. enter the State and Strategy Patterns :) The State Pattern would be implemented like the above example when you described a fancier version with multiple resize classes. Those resize classes can be swapped out at run-time to provide different functionality. For example, the object resizes from the center or from the corner depending on the resize class composited. The Strategy Pattern is similar but the composited functionality is an encapsulated algorithm. In theory, you would have a bunch of concrete algorithm classes and depending on your needs at run-time composite the right one to perform a calculation. -- james -- James O'Reilly — Consultant Adobe Certified Flash Expert http://www.jamesor.com Design • Code • Train ___ 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: Flashcoders Digest, Vol 24, Issue 66
Yes I'm already using setInterval to poll for a hitTest, but if the mouse has left the stage, flash doesn't seem to return a false for the hitTest ?___ 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] ExternalInterface with multiple swfs
Update your flash player version .This might help as I was experiencing the same problem but after updating the flash player version it worked well Regards Sumeet Kumar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Fowler Sent: Tuesday, January 30, 2007 5:16 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] ExternalInterface with multiple swfs Yeah, did that but still no dice. - Original Message - From: Mick G [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, January 29, 2007 5:44 PM Subject: Re: [Flashcoders] ExternalInterface with multiple swfs I've had this working fine - just make sure you use different IDs for each Flash module. On 1/29/07, Thomas Fowler [EMAIL PROTECTED] wrote: All- A recent post spurred my memory of an issue I had a while back. Has anyone experienced any issues with having two SEPARATE SWFs in an HTML page (using SWFObject) calling JavaScript methods via ExternalInterface? I ran into this last November and didn't find a solution. What was happening is the first swf loaded was able to call the JS methods, but the second was unable. Thanks, Thomas ___ 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] Re: Flashcoders Digest, Vol 24, Issue 66
From: John Dowdell [EMAIL PROTECTED] Are you asking What causes might stop all my network requests in ActionScript? If so, then have you isolated the browsers yet, and tested known-to-be-good apps from others in that browser? jd No, I it's not a browser problem. The flv don't play when I test Movie in Flash or when I run open a swf file. It was working fine until I updated to the Flash Player 9 plugin. When I removed the FP9 plugin, it works again. ___ 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] JSON vs. XML for CDROM configuration
I am creating a CDROM application (Flash 8 PC only) and would like to control it with an external configuration file. From what I can see, I have a choice of a XML or JSON solution - can anyone recommend one over the other? Also if anyone has a link to a working version of JSON and JSONConfig, then I would appreciate it as the version I downloaded is giving me several errors. Any pointers on the use of a configuration file for a CDROM also appreciated - such as any problems I could encounter with security etc Thanks in advance Paul ___ 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] Flair Pattern bad mixins good (?)
OK, this is helping a lot. And Steven I see what you mean, poor Flair is starting to look a little meager now. In my app, I have several different states. Each state sets itself up by initializing variables and drawing its various pieces, and the final piece is to subscribe various parts of the app to events that happen in other parts. So in one state I have methods like: onRoomObjectPress() onRoomObjectRelease() that are triggered by onPress and onRelease events in my object movieclips. These onSomething() methods contain the core logic of the app--code to resize clips or process values or what have you. This structure is good because I know where to look to track down where things happen, but its bad because sometimes a bunch of things are supposed to happen at once and those onSomething() methods get hairy. So in this new mixin strategy (which does look a lot like Strategy, thanks James!), should I design my Snappable class to have methods that would map to movieclip events, such as: startObjectDrag triggered by obj_mc.onPress checkForSnap triggered by setInterval or onEnterFrame type of event, in this case onObjectDrag stopObjectDrag triggered byobj_mc.onRelease Am I headed in the right direction? Thank you again, this OK DAH The theory of mixins originated from multiple inheritance programming languages such as C++. So for example: Say you wanted to make an object dragable, clickable and resizable. You would then create separate classes called: Dragable, Clickable and Resizable (common naming convention for a mixin). Then your base class would just inherit form those 3 classes. Since AS2 doesn't support multiple inheritances you can emulate a mixin using interfaces and composed classes. For example: IClickable, IDragable, IResizable So then your AS2 class would say: Class MyClass extends Whatever implements IClickable, IDragable, IResizable Those interfaces just specify what methods your class has to support. From there you could have a class (or a consolidated class) implement that functionality private var clickable:Clickable = new Clickable(); private var dragable:Dragable = new Dragable(); private var resizeable:Resizeable = new Resizeable(); from there you just forward / wire the appropriate methods to its corresponding instances. public function startResize() { this.resizeable.startResize(); } Or for arguments: public function startResize() { this.resizeable.apply.(this.resizeable.startResize, arguments); } You could get even more fancy by externalizing those classes so based on various rules you could pass in different resize logic, etc. Anyhow, hope that gets the gears turning. =) DISCLAIMER: Didn't spell check or test anything in the compiler so maybe some typos. =) -erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, January 29, 2007 7:12 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flair Pattern bad mixins good (?) Anyhow I tend not to use decorators (matter of personal taste). I prefer to not Frankenstein an object at runtime and rather use mixins (composition + interfaces). Ah, thank you, now we are getting somewhere! Tell me about mixins. I have used EventDispatcher before, but I am unfamiliar with the theory behind mixins in general. In my app, i have objects that can be dragged around in a Room, and they have a snapping behavior that lets them snap to the walls of the room, and in some cases, rotate themselves so that a given side of the object is always to the wall. Currently, my snapping behavior is in a separate class like the one at the top of this thread. If the room object has snapping enabled, the SnapFlair class adds an object with a bunch of methods and properties to it. The snapping methods are triggered by an event that is broadcast as the room object is being dragged. How would I implement this as a mixin? Many thanks fellas! As for Steven, sounds like HE'S got a case of the Mondays! *smirk* OK DAH ___ 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 -- David Ham http://anthropomorphy.org :: +1 630 297 1273 http://davidham.com :: [EMAIL PROTECTED] ___