Re: [Flashcoders] How to generate a swf and convert it to a downloadable screensaver serverside?
First thought: Could you store the user's custom settings in an LSO, then send them a screensaver exe (same exe for everyone), and then that screensaver reads the LSO and downloads whatever customizations are needed to render it as they specified in the "create screensaver" app? Generating a custom exe for each person sounds difficult and maybe impossible, but there are probably ways around it if you can assume that your screensaver is running on a network-connected machine. -josh On Oct 12, 2006, at 11:49 PM, Martin Baltzer Hennelund wrote: Hi all, Hope someone has a solution to this issue. I client of mine wants a 'create screensaver' feature on their flash website. Based on some default flash template the user should be able to customize it and finally download it as a personal screensaver. In the old days I would use Generator to create and export the customized swf - but it has been deprecated for since flash 6!? After that step I would then need to convert the generated swf to a screensaver/exe file on the server which finally can be downloaded by the user. The question is if that is possible at all and if so which setup/software would I need. BTW I'm on a .Net platform if that matters. Thanks a lot Martin Hennelund ___ 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] Thanks --->Moving to AS2, array always undefined
I lurk here to learn code, but I have to tell you, I stay because of Dave Watts and the 'non' control of the list. This morning, looking forward to a rough day of work, this thread caused laughter that led to near tears, and the weight of my day is suddenly lighter. Thank you for not punishing everyone that doesn't 'top post' or 'bottom post' or 'cut the footers' or whatever rules of engagement some lists demand. Thank you for allowing those that want to enforce more rules to speak also, every voice is good. Thank you for not listening to those that want to enforce strict rules. Strict rules are for coding, not communicating. Flash may not forgive sloppy code, but sloppy communication is human. Many days I feel too in-human after a rough day of strict typing, and have been brought back to wonderful human imperfection by this list. This list rulz! *** REPLY SEPARATOR *** On 10/12/2006 at 6:10 PM Steven Sacks | BLITZ wrote: >fin. > >___ >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] why the result is true
hi everyone i found the result is true when undefined >= or <= any value in flash2004 and flash8. that makes me wonder,the result was undefined in my sense as same as undefined > or < any value. i don't know flash player how get that,it really weird...orz ___ 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] How to generate a swf and convert it to adownloadable screensaver serverside?
I'm writing a win32 app that will host a swf as its GUI and also a portion of that application will be used as a screensaver. I'm not sure my deployment strategy (a typical windows installer the includes the exe and its dependencies) would work for you but the screensaver host app(exe) will be programmed to download SWFs to execute as the screen saver graphics module. In fact, I'm going to use asp.net web services as the means to determine which SWFs are available to display, etc. This could be pretty easily adapted to dynamically determine the SWF your customer wants to display, download it and then display it. Once downloaded they wouldn't have to do anything to configure the saver, etc though my application will support the settings selected by the standard windows screen saver configuration dialog. Anyway, I'll probably open source what I'm doing and when it's ready send you a link if you're interested. But, I'm not sure if the deployment strategy for the exe and the discovery mechanism of which SWF to display are workable for you. If so, just drop me a line off-list and I'll see what I can do to help. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Baltzer Hennelund Sent: Friday, October 13, 2006 2:50 AM To: Flashcoders mailing list Subject: [Flashcoders] How to generate a swf and convert it to adownloadable screensaver serverside? Hi all, Hope someone has a solution to this issue. I client of mine wants a 'create screensaver' feature on their flash website. Based on some default flash template the user should be able to customize it and finally download it as a personal screensaver. In the old days I would use Generator to create and export the customized swf - but it has been deprecated for since flash 6!? After that step I would then need to convert the generated swf to a screensaver/exe file on the server which finally can be downloaded by the user. The question is if that is possible at all and if so which setup/software would I need. BTW I'm on a .Net platform if that matters. Thanks a lot Martin Hennelund ___ 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] why the result is true
hi everyone i found the result is true when undefined >= or <= any value in flash2004 and flash8. that makes me wonder,the result was undefined in my sense as same as undefined > or < any value. i don't know flash player how get that,it really weird...orz It's because instead of really comparing if the variable is higher than or equal to the number (for example), it checks if it's lower than the number (it's faster). Since it's not (because it's undefined), it seems to think it's is higher than or equal to the value, thus returning true. If you're uncertain of whether a variable is undefined or not, you should use isNaN() first. Zeh ___ 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: Re: [Flashcoders] ObjectCopy wackiness
It's really of odd. look at the weird thing that happens with the trace: check this out: var A:Object = new Object({banner:0, templateType:"sub", dated:false, cHome:true}); //A.test = "TEST A"; var B:Object = new Object(); B.test = mx.utils.ObjectCopy.copy(A); //B.test = "TESTB"; trace(" A object :"+A); trace(B.test+" wtf?"); trace(B.test); for (i in B.test) { trace(i+"inside B.test[i]: "+i+" : "+B.test[i]); } //output A object :[object Object] undefined wtf? wrote: I've never gotten ObjectCopy to work properly. I've tried using it in a bunch of different projects and never get anything back but undefined. I'm not sure why though -- looking at the class, the code seems sound. -josh On Oct 10, 2006, at 7:41p, grimmwerks wrote: > I've done the dstObj[i] = copy( srcObj[i] ); > > > Here's the weirdness: the test code: > > tPage = new Object({banner : 0,templateType : "sub",dated : > false,cHome : > true}) > trace("trace 1: " + tPage); > > tObj = new Object(); > tObj.page = mx.utils.ObjectCopy.copy(tPage); > trace(" trace 2 : page: " + tObj.page); > for(i in tObj.page){trace("inside tObj.page[i]: " + i + " : " + > tObj.page > [i])}; > > > > I get this: > > trace 1: [object Object] > trace 2 : page: undefined > inside tObj.page[i]: cHome : true > inside tObj.page[i]: dated : false > inside tObj.page[i]: templateType : sub > inside tObj.page[i]: banner : 0 > > > -- > > Now I ask you - how can tObj.page be UNDEFINED when it has > variables like > tObj.page.cHome = true? > > I've got an app that I've got these 'screen templates' that on the > first > save, they work; but when someone re-opens and re-saves, it kills > everything. What gives? > ___ > 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] Fuse Kit Sequence
I usually do it like this... mport com.mosesSupposes.fuse.*; ZigoEngine.register(PennerEasing, Fuse); this.mcOne._alpha = 0; this.mcTwo._alpha = 0; var dur=3; var delay=.5; var ease="easeOutQuad" this.mcOne.tween(["_alpha","_x"],[100,400],dur,ease,delay); this.mcTwo.tween(["_alpha","_x"],[100,300],dur,ease,delay); Your end property value(s) are supposed to be a number or array of numbers. I just started using fuse (migrated from Zigo "lmc_tween.as"). Hope this helps. -Andy Stone -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bennett Sent: Wednesday, October 11, 2006 6:20 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Fuse Kit Sequence Hi, I'm trying to sequence some simple tweens using Fuse(), but for some reason only the first item in the sequence plays, and I'm not sure why. // code on timeline (which contains 2 MCs mcOne and mcTwo import com.mosesSupposes.fuse.*; ZigoEngine.register(PennerEasing, Fuse); this.mcOne._alpha = 0; this.mcTwo._alpha = 0; var fSequence:Fuse = new Fuse(); fSequence.pushTween ([this.mcOne,this.mcTwo],"_alpha",["100","100"],3,"easeOutQuad",0); fSequence.pushTween ([this.mcOne,this.mcTwo],"_x",["400","300"],3,"easeOutQuad",0); fSequence.start (); Hopefully someone with more experience will be able to point me in the right direction. tia, jon -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett ___ 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] Alternative IDE for Flash Devel
Hi Pete, check out the project page for flasc, there are video's available that demo it. In addition as mentioned before, FlashDevelop wraps around mtasc too. greetz JC On 10/13/06, Pete Miller <[EMAIL PROTECTED]> wrote: This looks great, but I can't figure out how to create a project in FLASC. Specifically, it asks me to create a batch file first. What batch file? What it is looking for? P. >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ >> Sent: Thursday, October 12, 2006 6:57 PM >> To: Flashcoders mailing list >> Subject: RE: [Flashcoders] Alternative IDE for Flash Devel >> >> Why can't you use MTASC? If you're serious about Flash development, you >> should be using it. I have a Flash application that literally takes 30 >> seconds to compile in the IDE and less than a second with MTASC. >> >> If you don't want to have to write out that long command line compile >> script (and who does) you should check out FLASC, which is a great GUI >> for MTASC which runs as a panel in the Flash IDE. >> >> http://www.osflash.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 ___ 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] Alternative IDE for Flash Devel
Thanx. I got it working...I entered the .fla instead of the .swf into the place that wanted it. No thanks to the limited information available for this tool. The Help button points to a URL that has no information on FLASC. But, since it is little more than a wrapper around MTASC, I guess the real thing to do is learn how that works. P. >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PROTECTED] On Behalf Of Hans Wichman >> Sent: Friday, October 13, 2006 11:17 AM >> To: Flashcoders mailing list >> Subject: Re: [Flashcoders] Alternative IDE for Flash Devel >> >> Hi Pete, >> check out the project page for flasc, there are video's available that >> demo >> it. >> In addition as mentioned before, FlashDevelop wraps around mtasc too. >> >> greetz >> JC >> >> >> On 10/13/06, Pete Miller <[EMAIL PROTECTED]> wrote: >> > >> > This looks great, but I can't figure out how to create a project in >> > FLASC. Specifically, it asks me to create a batch file first. >> > >> > What batch file? What it is looking for? >> > >> > P. >> > >> > >> -Original Message- >> > >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> > >> [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ >> > >> Sent: Thursday, October 12, 2006 6:57 PM >> > >> To: Flashcoders mailing list >> > >> Subject: RE: [Flashcoders] Alternative IDE for Flash Devel >> > >> >> > >> Why can't you use MTASC? If you're serious about Flash development, >> > you >> > >> should be using it. I have a Flash application that literally takes >> > 30 >> > >> seconds to compile in the IDE and less than a second with MTASC. >> > >> >> > >> If you don't want to have to write out that long command line >> compile >> > >> script (and who does) you should check out FLASC, which is a great >> > GUI >> > >> for MTASC which runs as a panel in the Flash IDE. >> > >> >> > >> http://www.osflash.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 >> > >> ___ >> 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: Re: [Flashcoders] ObjectCopy wackiness
Hey, Darron Schall solved this a while back. If you replace the first line in ObjectCopy.copy() with this: var result:Object = new (Function(refObj.__proto__.constructor))(); it should work. Jim Kremens On 10/13/06, nelson ramirez <[EMAIL PROTECTED]> wrote: It's really of odd. look at the weird thing that happens with the trace: check this out: var A:Object = new Object({banner:0, templateType:"sub", dated:false, cHome:true}); //A.test = "TEST A"; var B:Object = new Object(); B.test = mx.utils.ObjectCopy.copy(A); //B.test = "TESTB"; trace(" A object :"+A); trace(B.test+" wtf?"); trace(B.test); for (i in B.test) { trace(i+"inside B.test[i]: "+i+" : "+B.test[i]); } //output A object :[object Object] undefined wtf? wrote: > I've never gotten ObjectCopy to work properly. I've tried using it in > a bunch of different projects and never get anything back but > undefined. I'm not sure why though -- looking at the class, the code > seems sound. > > -josh > > On Oct 10, 2006, at 7:41p, grimmwerks wrote: > > > I've done the dstObj[i] = copy( srcObj[i] ); > > > > > > Here's the weirdness: the test code: > > > > tPage = new Object({banner : 0,templateType : "sub",dated : > > false,cHome : > > true}) > > trace("trace 1: " + tPage); > > > > tObj = new Object(); > > tObj.page = mx.utils.ObjectCopy.copy(tPage); > > trace(" trace 2 : page: " + tObj.page); > > for(i in tObj.page){trace("inside tObj.page[i]: " + i + " : " + > > tObj.page > > [i])}; > > > > > > > > I get this: > > > > trace 1: [object Object] > > trace 2 : page: undefined > > inside tObj.page[i]: cHome : true > > inside tObj.page[i]: dated : false > > inside tObj.page[i]: templateType : sub > > inside tObj.page[i]: banner : 0 > > > > > > -- > > > > Now I ask you - how can tObj.page be UNDEFINED when it has > > variables like > > tObj.page.cHome = true? > > > > I've got an app that I've got these 'screen templates' that on the > > first > > save, they work; but when someone re-opens and re-saves, it kills > > everything. What gives? > > ___ > > 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 -- Jim Kremens ___ 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: why the result is true
hi Zeh. thanks for your reply. i understand now,it seems to a>=b equal to !(ahttp://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] Moving to AS2, array always undefined
I prefer underscores for fields, too, but I'd still use the belowmentioned constructor argument syntax if I wanted to set a property corresponding to a field so as to take advantage of any format-checking in the property setter: class PolarCoordinate extends Object { public function PolarCoordinate(radius:Number, theta:Number) { super(); this.radius = radius; this.theta = theta; } public function get radius():Number { return _radius; } public function set radius(value:Number):Void { if (isNaN(value) || !isFinite(value)) { // Default to 0. _radius = 0; } else { _radius = value; } } public function get theta():Number { return _theta; } public function set theta(value:Number):Void { if (isNaN(value) || !isFinite(value)) { // Default to 0. _theta = 0; } else { // Normalize: 0 ≤ θ < 2π while (value < 0) { value += Math.PI * 2; } while (value >= Math.PI * 2) { value -= Math.PI * 2; } _theta = value; } } private var _radius:Number; private var _theta:Number; } �D Mike Keesey > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of JOR > Sent: Thursday, October 12, 2006 7:27 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Moving to AS2, array always undefined > > No, it isn't wrong which was entire the point of my earlier response. I > gave essentially the same example as you. In fact, you've included it > quoted at the bottom of your response which I left intact. > > However, just because it is correct doesn't mean I prefer it over other > conventions. I prefer to use underscores with my field names. > > -- james > > > > Ash Warren wrote: > > "In practice, you're right and I try not to name any parameters the same > as > > a field name to avoid "this" confusion. Don't tell anyone, but > sometimes I > > don't even use "this". :)" > > > > So this is wrong? > > > > function MyClass (myParam1:Number, myParam2:String) > > { > > this.myParam1 = myParam1; > > this.myParam2 = myParam2; > > } > > > > For me this method seems much easier to read and it even refers to > naming > > parameters this way in the adobe best-practices article. > > > > Why try and come up with 2 names for the same thing, when one will > suffice > > just fine? > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of JOR > > Sent: Tuesday, October 10, 2006 5:52 PM > > To: Flashcoders mailing list > > Subject: Re: [Flashcoders] Moving to AS2, array always undefined > > > > A bad practice most likely, but not technically wrong. I do see it in > > text books from time to time. I was just mentioning it as a case where > > "this" *would* be needed as opposed to speaking in absolutes. > > > > In practice, you're right and I try not to name any parameters the same > > as a field name to avoid "this" confusion. Don't tell anyone, but > > sometimes I don't even use "this". :) > > > > James O'Reilly - Consultant > > Adobe Certified Flash Expert > > http://www.jamesor.com > > Design . Code . Train > > > > > > > > Steven Sacks | BLITZ wrote: > > > >>Correct me if I'm wrong, but it looks like your rationale is entirely > >>based on an argument name being identical to a class variable name. I > >>might be looking at this too simply, but shouldn't you just use a > >>different argument name if it clashes with a class variable name? > >> > >>-Steven > >> > >> > >> > >> > >>>-Original Message- > >>>From: [EMAIL PROTECTED] [mailto:flashcoders- > >>>[EMAIL PROTECTED] On Behalf Of JOR > >>>Sent: Tuesday, October 10, 2006 1:19 PM > >>>To: Flashcoders mailing list > >>>Subject: Re: [Flashcoders] Moving to AS2, array always undefined > >>> > >>>Actually, the "need" is dependent on the implementation. > >>> > >>>It was my understanding that AS first looks to the local scope for the > >>>existence of a variable then works up to find it. By using "this" you > >>>were explicitly telling flash that the var isn't local to the function > >>>but rather belongs to the object cutting out a step for the VM. > >>> > >>>Therefore, something like the following becomes possible and the use > >> > >>of > >> > >> > >>>"this" becomes necessary: > >>> > >>>class MyConstructor { > >>> private var target:MovieClip; > >>> public function MyConstructor (target:MovieClip) { > >>>this.target = target; > >>> } > >>>} > >>> > >>>Because you can not do this: >
[Flashcoders] Tsunami type of effect
I am looking to build a 'tsunami' type of effect (very much like the Mac tray navigation works). I know there are examples in older version of Flash, but I was wondering if any of you have pointers for building it for the latest vs of Flash, maybe using Fuses? Thank you so much for your help. Elena ___ 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] Tsunami type of effect
Hi Elena, Here's an example of how to use it doing AS2, it's a pretty nice effect. http://jrgraphix.net/research/flash-dock-mx-2004.php Eric ++ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Elena Blanco Sent: Friday, October 13, 2006 10:43 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Tsunami type of effect I am looking to build a 'tsunami' type of effect (very much like the Mac tray navigation works). I know there are examples in older version of Flash, but I was wondering if any of you have pointers for building it for the latest vs of Flash, maybe using Fuses? Thank you so much for your help. Elena ___ 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] Interfaces: what are the advantages?
Hi list... I understand what interfaces are, but I'm not entirely clear on when they become advantageous to use. Anyone care to shed some light? Thanks, - Michael M. ___ 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] Interfaces: what are the advantages?
Design principle: 'Code to interface, not implementation'. Say you have classic MusicPlayer interface (and this is all psuedo-code): play() stop() ok, now I've got CDPlayer implements MusicPlayer: play() stop() == nextTrack() and TapePlayer implements MusicPlayer: play() stop() == eatTape() Then, we have system (?RemoteControl) which uses both and perhaps many more MusicPlayers: var musicPlayer:MusicPlayer function setPlayer( player:MusicPlayer ){...} function play() { musicPlayer.play() } We can now change behavior of RemoControl at runtime. A good example is Strategy pattern: http://en.wikipedia.org/wiki/Strategy_pattern Scott On 10/13/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote: Hi list... I understand what interfaces are, but I'm not entirely clear on when they become advantageous to use. Anyone care to shed some light? Thanks, - Michael M. ___ 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] Interfaces: what are the advantages?
Mendelsohn, Michael wrote: Hi list... I understand what interfaces are, but I'm not entirely clear on when they become advantageous to use. Anyone care to shed some light? Thanks, - Michael M. ___ 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 Polymorphism for one class a implements interface{ } class b implements interface{ } class c{ var myVar:interface; function c(instance:a){ myVar = instance; } } Second, keeping yourself in check. Interfaces allow you to dictate the rules for a "breed" of class. An example: Let's say you're designing an application to keep track on men and women. Your app *needs* a function, say "update" to be in all instances of man and woman, but in the man and woman classes the update functions are so dissimilar there's no point in using inheritance. Instead, implement a "human" interface, which dictates explicitly that both need a uniform update function. Problem solved in terms of type checking, problem solved in terms of keeping yourself on top of why you did what. To me, interfaces are like inheritance-free polymorphism first, and debug tool second. - Andreas R ___ 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] Interfaces: what are the advantages?
"I understand what interfaces are, but I'm not entirely clear on when they become advantageous to use. Anyone care to shed some light?" I find them really useful for implementing the strategy pattern, and I find the strategy pattern to be extremely useful in Flash. Let's say, for example, that you're implementing a number of different types of lists. You could: - make an interface, IList, that declares all of the methods you think lists will need and the arguments they will accept. - Make a base class, List, that implements those methods. - Create subinterfaces of IList, like IHashMap, or whatever, which override methods and add additional methods and subclasses of List that implement those new interfaces. Here's why this is good: - You have tight coupling between all list classes. When you know how one works, you pretty much know how they all work. - If you want to make changes to all of the classes in the list package, do so in IList. All of the classes that implement IList will be forced to adopt those changes. - You get rid of a lot of conditional statements. All of the things in the list package you created above have at least 2 valid types: IList and their own class type. Let's say you have some other widget or something that accepts lists as a dataprovider, for example. Without this sort of architecture, you might need branching conditionals 'if myList instanceOf HashMap, then do this.' But here they all share the type IList. So you can call common methods on them that were declared in the interfaces, and be sure that they will produce predictable results. All of that said, interfaces create more work. To make them viable, you really need an editor that supports this kind of coding. For example, if I change method signatures in an interface, FDT lets me know everywhere else I need to change them. Without FDT, I probably wouldn't use interfaces. Also, I think they make sense when working on a framework or large project. For simpler one-off projects, I don't use them. For me, they are really just a way to make it easier to implement design patterns in Flash, and especially the Strategy Pattern. Here are a few links: http://en.wikipedia.org/wiki/Strategy_pattern http://ootips.org/strategy-vs-case.html http://www.exciton.cs.rice.edu/JavaResources/DesignPatterns/StrategyPattern.htm Jim Kremens ___ 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] Interfaces: what are the advantages?
On 10/13/06, Jim Kremens <[EMAIL PROTECTED]> wrote: "I understand what interfaces are, but I'm not entirely clear on when they become advantageous to use. Anyone care to shed some light?" Interfaces are also very handy when you want to put the actual implementation code for a class in one .swf, but still get all the type-checking when writing code in another .swf that'll use it. Both .swfs include the interface code, but only the implementing .swf needs to include a concrete implementation of the class. Ian ___ 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] Attaching Video w/o Video Object
Hi FlashCoders, I'm just getting started with Video, and I'm adding it to a project I'm developing in FlashDevelop, compiled from AS (no FLA). Is there a way to attach Video to an object using only code? The Flash Docs say you need to place a Video Component on the stage... I have no stage... Thanks in advance! -rc ___ 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] Attaching Video w/o Video Object
You need a Video object present on the Stage or in the Library :( - e. On Oct 13, 2006, at 5:18 PM, Rifled Cloaca wrote: Hi FlashCoders, I'm just getting started with Video, and I'm adding it to a project I'm developing in FlashDevelop, compiled from AS (no FLA). Is there a way to attach Video to an object using only code? The Flash Docs say you need to place a Video Component on the stage... I have no stage... Thanks in advance! -rc ___ 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] Attaching Video w/o Video Object
On 10/13/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote: Hi FlashCoders, I'm just getting started with Video, and I'm adding it to a project I'm developing in FlashDevelop, compiled from AS (no FLA). Is there a way to attach Video to an object using only code? The Flash Docs say you need to place a Video Component on the stage... I have no stage... I haven't tried FlashDevelop (because it doesn't work with Mono), but AFAIK it includes swfmill (). You can use it to make a clip with a video object for the library: Make a file called video.xml: Then make the SWF: swfmill xml2swf video.xml video.swf Then compile into that SWF, or import it as a shared library. You can then use attachMovie, the symbol ID will be "video", and that clip will contain the video object, named "video". Maybe FlashDevelop even can do that for you. HTH, 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] swfObject problem
Hey All, I am making this game that allows you drag around a ship and shoot things. It works fine when I let Flash publish the HTML: http://creativenetdesign.com/xwing/ But when I use swfObject to publish it, it starts droping the drag of the ship. http://creativenetdesign.com/xwing/index_old.html Anyone know why, or if there is anything I can do to fix it? Thanks, Victor ___ 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] Tsunami type of effect
Thank you! Elena -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ++ Sent: Friday, October 13, 2006 11:53 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tsunami type of effect Hi Elena, Here's an example of how to use it doing AS2, it's a pretty nice effect. http://jrgraphix.net/research/flash-dock-mx-2004.php Eric ++ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Elena Blanco Sent: Friday, October 13, 2006 10:43 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Tsunami type of effect I am looking to build a 'tsunami' type of effect (very much like the Mac tray navigation works). I know there are examples in older version of Flash, but I was wondering if any of you have pointers for building it for the latest vs of Flash, maybe using Fuses? Thank you so much for your help. Elena ___ 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] ::dk:: understanding roll over with addEventListener
Hi there - this is probably a simple question, but... I have been using addEventListener with button components: this._targetMc.btn.addEventListener("click", MyDelegate.create(this, onHit)); Then the onHit function deals with it. Now I need some rollover & rollout functions. So I wrote those, and then tried adding the event with: this._targetMc.btn.addEventListener("rollOver", MyDelegate.create(this, onRollOvr); this._targetMc.btn.addEventListener("rollOut", MyDelegate.create(this, onRollOut); Yet nothing is called - what am I missing? Not sure if it matters, these actions are within an AS2 class. Thanks in advance! d ___ 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] swfObject problem
Why do you have WMODE set to transparent? If you don't need it, lose it. It results in a performance hit. At 07:30 PM 10/13/2006, you wrote: Hey All, I am making this game that allows you drag around a ship and shoot things. It works fine when I let Flash publish the HTML: http://creativenetdesign.com/xwing/ But when I use swfObject to publish it, it starts droping the drag of the ship. http://creativenetdesign.com/xwing/index_old.html Anyone know why, or if there is anything I can do to fix it? ___ 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] swfObject problem
Is that the problem? - Original Message - From: "Marc Hoffman" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 13, 2006 9:16 PM Subject: Re: [Flashcoders] swfObject problem Why do you have WMODE set to transparent? If you don't need it, lose it. It results in a performance hit. At 07:30 PM 10/13/2006, you wrote: Hey All, I am making this game that allows you drag around a ship and shoot things. It works fine when I let Flash publish the HTML: http://creativenetdesign.com/xwing/ But when I use swfObject to publish it, it starts droping the drag of the ship. http://creativenetdesign.com/xwing/index_old.html Anyone know why, or if there is anything I can do to fix it? ___ 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] swfObject problem
"Performance hit" means a reduction in performance (extra burden on the CPU), which is what you described. Why don' t you change the code and see if that fixes it? At 09:36 PM 10/13/2006, you wrote: Is that the problem? - Original Message - From: "Marc Hoffman" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 13, 2006 9:16 PM Subject: Re: [Flashcoders] swfObject problem Why do you have WMODE set to transparent? If you don't need it, lose it. It results in a performance hit. At 07:30 PM 10/13/2006, you wrote: Hey All, I am making this game that allows you drag around a ship and shoot things. It works fine when I let Flash publish the HTML: http://creativenetdesign.com/xwing/ But when I use swfObject to publish it, it starts droping the drag of the ship. http://creativenetdesign.com/xwing/index_old.html Anyone know why, or if there is anything I can do to fix it? ___ 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] swfObject problem
Thanks for the explaination. Will try. Is there tension in this list? If so, why? Is this a place of help or sanctamony? Let me know, I don't need this place, I can find the answer out eventually (and by eventually, I mean hours). But I thought this was a place where those who have not yet faced issues that others have faced could come to and get answers. Am I wrong? This is my third question and my second, what seems like, SMART ASS answer. Look, you pepople are all very intelligent, and, I am too. I answer questions all the time on actionscript.org; granted the questions are less complex than this list but when someone asks for help they suplicate themselves to you. To give a smart ass remark or be a jerk make said person much less likely to ask for help in the future. Is that what we want? V - Original Message - From: "Marc Hoffman" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 13, 2006 10:20 PM Subject: Re: [Flashcoders] swfObject problem "Performance hit" means a reduction in performance (extra burden on the CPU), which is what you described. Why don' t you change the code and see if that fixes it? At 09:36 PM 10/13/2006, you wrote: Is that the problem? - Original Message - From: "Marc Hoffman" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 13, 2006 9:16 PM Subject: Re: [Flashcoders] swfObject problem Why do you have WMODE set to transparent? If you don't need it, lose it. It results in a performance hit. At 07:30 PM 10/13/2006, you wrote: Hey All, I am making this game that allows you drag around a ship and shoot things. It works fine when I let Flash publish the HTML: http://creativenetdesign.com/xwing/ But when I use swfObject to publish it, it starts droping the drag of the ship. http://creativenetdesign.com/xwing/index_old.html Anyone know why, or if there is anything I can do to fix it? ___ 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] swfObject problem
makes - Original Message - From: "Victor Gaudioso" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 13, 2006 10:33 PM Subject: Re: [Flashcoders] swfObject problem Thanks for the explaination. Will try. Is there tension in this list? If so, why? Is this a place of help or sanctamony? Let me know, I don't need this place, I can find the answer out eventually (and by eventually, I mean hours). But I thought this was a place where those who have not yet faced issues that others have faced could come to and get answers. Am I wrong? This is my third question and my second, what seems like, SMART ASS answer. Look, you pepople are all very intelligent, and, I am too. I answer questions all the time on actionscript.org; granted the questions are less complex than this list but when someone asks for help they suplicate themselves to you. To give a smart ass remark or be a jerk make said person much less likely to ask for help in the future. Is that what we want? V - Original Message - From: "Marc Hoffman" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 13, 2006 10:20 PM Subject: Re: [Flashcoders] swfObject problem "Performance hit" means a reduction in performance (extra burden on the CPU), which is what you described. Why don' t you change the code and see if that fixes it? At 09:36 PM 10/13/2006, you wrote: Is that the problem? - Original Message - From: "Marc Hoffman" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 13, 2006 9:16 PM Subject: Re: [Flashcoders] swfObject problem Why do you have WMODE set to transparent? If you don't need it, lose it. It results in a performance hit. At 07:30 PM 10/13/2006, you wrote: Hey All, I am making this game that allows you drag around a ship and shoot things. It works fine when I let Flash publish the HTML: http://creativenetdesign.com/xwing/ But when I use swfObject to publish it, it starts droping the drag of the ship. http://creativenetdesign.com/xwing/index_old.html Anyone know why, or if there is anything I can do to fix it? ___ 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