RE: [Flashcoders] Preloader not working with singleton
You have instances in the library that Loads in first frame, So they load before frame 0, plus you use attachMovie to load your preloader. What happens is that the preloader and all assets that are set to export in first frame load, then the preloader gets attached but all your assets are allready loaded. The best approach is to separate the preloader from the content to be preloaded in two separate swf. And do not use attachMovie for your preloader instance, just place it on the stage directly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael Sent: 7 novembre 2006 13:53 To: Flashcoders mailing list Subject: [Flashcoders] Preloader not working with singleton Hi list... Dumb throwback question: my load progress bar isn't working. I have two frames, one to monitor the loading of the swf, and when it happens, go to the next frame to init a singleton, but my load progress bar doesn't show up until the swf is 100% loaded. What am I missing here? Thanks, - Michael M. //First frame: _root.attachMovie(loading, loading, 1, {_x:574, _y:494}); var l:Number = new Number(_root.getBytesLoaded()); var t:Number = new Number(_root.getBytesTotal()); var pct:Number = new Number(0); _root.onEnterFrame = function():Void { l = _root.getBytesLoaded(); pct = Math.round((l/t)*100); _root.loading.progBar._width = pct; if (pct == 100) { delete _root.onEnterFrame; nextFrame(); } }; stop(); //Second frame: (inits singleton) var o:ar = ar.getInstance(); o.init(); stop(); ___ 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.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 ___ 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] Q:associate class with MovieClip using composition and WITHOUT attachmovie
It's been discussed in here before, You should look up that thread : http://chattyfig.figleaf.com/pipermail/flashcoders/2003-May/075855.html Or search through Muzak's search page for this list : http://www.muzakdeezign.com/flashcoders/ HTH ! A -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 7 novembre 2006 15:32 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Q:associate class with MovieClip using composition and WITHOUT attachmovie Hi Normally if I want to associate a MovieClip with a class using composition I simply use attachMovie and cast the returned instance to the class I want to use. If you can't use attachMovie (ie the Movieclip already exists on the stage for example) is it still possible to use comoposition to link the Class to the mc? just wondering... Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 ___ 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] Q;Convert hex values to ra,rb,ga,gb,ba,bb,aa,ab??
Jim, Here's a utility Class I made to tint any MovieClip using the ColorTransform object. Use it and modify it as you wish :) HTH ! A class ca.daroost.utils.Tint { // /*** ** * * Constructor : Tint * */ // function Tint() { } // /*** ** * * Method : tintMC * * Changes the tint of the targetMC * * @param : targetMC - the MovieClip to apply the tint to *color - the new color to be applied *alpha - the new alpha to be applied * */ // public static function tintMC(targetMC:MovieClip, color:Number, alpha:Number) { alpha = (alpha == undefined) ? 100 : alpha; var tintTransform:Object = new Object(); var newColor:Color = new Color(targetMC); var r = color 16 0xff; var g = color 8 0xFF; var b = color 0xFF; var pRed:Number = Math.round(r/255*100); var pGreen:Number = Math.round(g/255*100); var pBlue:Number = Math.round(b/255*100); tintTransform.ra = pRed; tintTransform.ga = pGreen; tintTransform.ba = pBlue; tintTransform.aa = alpha; tintTransform.rb = 0; tintTransform.gb = 0; tintTransform.bb = 0; tintTransform.ab = 0; newColor.setTransform(tintTransform); } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 7 novembre 2006 15:59 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Q;Convert hex values to ra,rb,ga,gb,ba,bb,aa,ab?? Hi Woking on a color selctor and I need to dynamically convert loaded hex values to values the ColorTransform class uses (ra,ra,ga,gb,ba,gb,aa,ab) Does anyone know the forumula to do this? Mucho gracias para tu ayuda! Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 ___ 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 display component for Flash?
Wich is the one he is using right now ... ;) Joseph Balderson wrote: You might want to check out Deng: http://osflash.org/deng/ __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner, Community MX | http://www.communitymx.com Consultant, New Toronto Group | http://www.newyyz.com vipin chandran wrote: Sorry I can't wait that long. This is an emergency situation for me. I don't have time to code a parser by myself. If anybody can share your experience with me, that will be great!!! Thanks in advance Regards, Vipin On 11/4/06, eka [EMAIL PROTECTED] wrote: Hello :) if you wait the end of this year you can use HTML in a SWF with apollo : http://labs.adobe.com/wiki/index.php/Apollo More information in this videos : http://video.google.com/videoplay?docid=1551903488172905143 http://www.mediabox.fr/adobe_max_2006_01.html ( cuePoint about apollo at the end of the list on the bottom of this link) EKA+ :) 2006/11/4, vipin chandran [EMAIL PROTECTED]: Hello All, I am in search for a flash component which display HTML content. I got one, which is Deng. But it takes a lot of time to render my content. I have my content as XHTML. I am new to this group and I dont have any previous discussion about this. Anybody, please help me getting a good component or code library which does this. Regards, 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 ___ 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] CSS question..
Also you should use font-size (in px) not size. I'm not sure if text-transform works or letter-spacing or margins for that matter. Keep you CSS simple and all should be well. HTH Alain grimmwerks wrote: I'm trying to use a p class=' tag around text area's with the following css, yet nothing is working. What's the best way of specifying multiple font formatting in a stylesheet? I've got an example where the p{} specifies the font familiy, then every version of the class (ie .p2{}) only sets up the size, etc, but I need something a little more: .title{ font: 30px/25px QuadraatSans-Regular; size: 30; color: #ff; text-transform: uppercase; letter-spacing: 1px; text-align: right; } .primary_button { font: 25px Eureka-Roman; color: #ff; text-align: right; margin-bottom: 8; } .secondary_button { font: 18px Eureka-Italic; color: #ff; text-align: right; margin-bottom: 8px; } .body{ font: 21px/25px QuadraatSans-Regular; color: #ff; margin-bottom: 8px; } .EX_Title{ font: 35px/38px QuadraatHead-Bold; color: #ff; margin-bottom: 8px; } .EX_Subtitle{ font: 21px/27px QuadraatHead-BoldIta; color: #ff; margin-bottom: 16px; } .EX_Date{ font: 25px/29px QuadraatHead-Light; color: #ff; margin-bottom: 16px; } .FV_Section{ font: 25px QuadraatHead-Bold; size: 25px; color: #ff; letter-spacing: 1px; margin-bottom: 8px; } .FV_Time{ font: 30px/25px QuadraatSans-Regular; color: #ff; } .FV_Year_Duration{ font: 30px/25px QuadraatSans-Regular; margin-bottom: 16px; color: #ff; } .FV_Location{ font: 20px/23px QuadraatSans-Regular; margin-bottom: 33px; color: #ff; } .FV_Film_Title{ font: 27px/27px QuadraatHead-Bold; color: #ff; } .FV-ATM_Program_Title{ font: 35px/38px QuadraatHead-Bold; margin-bottom: 8px; color: #ff; } .FV-ATM_Date{ font: 25px/29px QuadraatHead-Light; color: #ff; } .FV-EFK-DS_Program_Title{ font: 27px/27px QuadraatHead-Bold; margin-bottom: 8px; color: #ff; } .FV-EFK-DS_Date{ font: 40px/38px QuadraatHead-Bold; letter-spacing: 1px; color: #ff; } .PP-SE_Weekday{ font: 25px/25px QuadraatHead-Bold; letter-spacing: 1px; color: #ff; } .PP-SE_Date{ font: 40px/38px QuadraatHead-Bold; letter-spacing: 1px; margin-bottom: 16px; color: #ff; } .PP-SE_Program_Title{ font: 27px/27px QuadraatHead-Bold; margin-bottom: 16px; color: #ff; } .PP-SE_Time{ font: 20px/23px QuadraatSans-Regular; color: #ff; } .PP-SE_Location{ font: 20px/23px QuadraatSans-Regular; margin-bottom: 16px; color: #ff; } ___ 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] SCORM multi api wrapper
I believe that you can't get any return value that way (not sure, could be wrong). What you need to do is call a javascript with proxy.call wich then (the javascript) calls another function that sends data to flash through the proxy ... A better way to do that, if you use Flash 8, is to use ExternalInterface. I did some E-Learning in the past and we only sent data to the wrapper, the only time we retrieved anything was on the first load with flashvars HTH A. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lieven Cardoen Sent: 25 octobre 2006 09:50 To: Flashcoders mailing list; Open Source Flash Mailing List Subject: [Flashcoders] SCORM multi api wrapper Guys, sorry for posting on both mailing lists, but I don't know where it belongs. With the SCORM Version 1.2/2004 Template for Flash , if you do following : proxy.call( apiCall, getValue, _DataModelElement_ ); how can you access the value proxy.call doesn't return anything, and if you do following : var value:String = proxy.call( apiCall, getValue, _DataModelElement_ ); Mtasc gives an error, because proxy.call has no return value. Lieven Cardoen Ps : I've searched for this on flashforlearning.com, on adobe sit, google, ... and found nothing Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk ___ 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.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 ___ 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] Drag movieclips with interactivity
The best thing would be to have a drag bar nested inside the movieclip with a code like this : bar.onPress = function() { this._parent.startDrag(); }; And there you go ... Otherwise there is still onMouseDown ... But this has been discussed not too long ago ... If you want to search the archives go at the following link : http://www.muzakdeezign.com/flashcoders/ HTH A. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Johnston Sent: 25 octobre 2006 14:11 To: Flashcoders mailing list Subject: [Flashcoders] Drag movieclips with interactivity Hello again, I'm trying to let the users drag movieclips around the screen, but the movieclips all have nested movies and interactivity so I can't use the old mc.onPress as it stops all the nested interactivity from working. How can I get the movieclip to drag without using mouse events? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 ___ 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] Drag movieclips with interactivity
just found the thread in my mailbox : draggable mc with buttons in it? Look for that in the archives ! :) A. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Johnston Sent: 25 octobre 2006 15:15 To: Flashcoders mailing list Subject: RE: [Flashcoders] Drag movieclips with interactivity Thanks, that's sort of what I figured I'd have to do. I did search the archives but couldn't find the recent thread. --- Alain Rousseau [EMAIL PROTECTED] wrote: The best thing would be to have a drag bar nested inside the movieclip with a code like this : bar.onPress = function() { this._parent.startDrag(); }; And there you go ... Otherwise there is still onMouseDown ... But this has been discussed not too long ago ... If you want to search the archives go at the following link : http://www.muzakdeezign.com/flashcoders/ HTH A. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Johnston Sent: 25 octobre 2006 14:11 To: Flashcoders mailing list Subject: [Flashcoders] Drag movieclips with interactivity Hello again, I'm trying to let the users drag movieclips around the screen, but the movieclips all have nested movies and interactivity so I can't use the old mc.onPress as it stops all the nested interactivity from working. How can I get the movieclip to drag without using mouse events? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 ___ 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 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.11/496 - Release Date: 2006-10-24 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Exporting from flash to vector format
Have you looked at Adobe EPS File language specification ? You can find it here : http://partners.adobe.com/public/developer/ps/index_specs.html *Encapsulated PostScript (EPS) File Format Specification Version 3.0* #5002 http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf You should be able to do something with that ... HTH Eric Lee wrote: Howdy list, I'm looking for a way to export vector data from flash to some sort of a format that Illustrator can use-svg, ai, eps, etc. Does anyone know how to do this? Thanks! -eric ++ ___ 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] newbie question - drawing a ring
This has been talked about in the Archives I believe ... You could search it , but I remember that to be able to create a ring using the drawing API, you first need to draw the outer circle clockwise and then draw your innercircle counter-clockwise all that inside beginFill and endFill. That's what I remember, but I might be wrong somewhere ... Look it up in the Archives (this or last year), it was a post by Helen Triolo if I remember right. HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: 20 octobre 2006 10:56 To: Flashcoders mailing list Subject: Re: [Flashcoders] newbie question - drawing a ring check out www.mediaverk.lv/asd it might give you just what you need 2006/10/20, Guntur N. Sarwohadi [EMAIL PROTECTED]: Hello David, You can use flash drawing API. You might use just 2 drawing methods: moveTo(x,y) moves a pointer from where you want to start drawing from and curveTo(cpx, cpy, x, y) draws a curve with cpx is the location of the curve control point by x, cpx is the curve control point by y, and x y is the final point / destination to draw you might as well define the line style using lineStyle or filling it with a color using beginFill and then endFill. it's all in the help / manual located at the IDE.. Hope this helps, Guntur N. Sarwohadi On 10/20/06, David Cake [EMAIL PROTECTED] wrote: New to the list, new to Flash/flex, experienced java/C/web etc coder. Please excuse me if my question is in a FAQ that I should have read somewhere (and feel free to direct me to such resources) I want to create a vector ring shape, a circle with an excised inner circle, in code. I don't want to use tricks like gradient fills that make it look like a ring - I want sharp borders (and there are a lot of additional graphic elements that I want to look like part of the same object within the ring). I haven't been able to find any examples that create vectors with internal holes to them. Regards David ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 ___ 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] newbie question - drawing a ring
Speaking of wich, just found it in my inbox ... Here is a link : http://flash-creations.com/notes/dynamic_drawingapi.php#cutoutmask -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: 20 octobre 2006 11:49 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] newbie question - drawing a ring This has been talked about in the Archives I believe ... You could search it , but I remember that to be able to create a ring using the drawing API, you first need to draw the outer circle clockwise and then draw your innercircle counter-clockwise all that inside beginFill and endFill. That's what I remember, but I might be wrong somewhere ... Look it up in the Archives (this or last year), it was a post by Helen Triolo if I remember right. HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: 20 octobre 2006 10:56 To: Flashcoders mailing list Subject: Re: [Flashcoders] newbie question - drawing a ring check out www.mediaverk.lv/asd it might give you just what you need 2006/10/20, Guntur N. Sarwohadi [EMAIL PROTECTED]: Hello David, You can use flash drawing API. You might use just 2 drawing methods: moveTo(x,y) moves a pointer from where you want to start drawing from and curveTo(cpx, cpy, x, y) draws a curve with cpx is the location of the curve control point by x, cpx is the curve control point by y, and x y is the final point / destination to draw you might as well define the line style using lineStyle or filling it with a color using beginFill and then endFill. it's all in the help / manual located at the IDE.. Hope this helps, Guntur N. Sarwohadi On 10/20/06, David Cake [EMAIL PROTECTED] wrote: New to the list, new to Flash/flex, experienced java/C/web etc coder. Please excuse me if my question is in a FAQ that I should have read somewhere (and feel free to direct me to such resources) I want to create a vector ring shape, a circle with an excised inner circle, in code. I don't want to use tricks like gradient fills that make it look like a ring - I want sharp borders (and there are a lot of additional graphic elements that I want to look like part of the same object within the ring). I haven't been able to find any examples that create vectors with internal holes to them. Regards David ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 ___ 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.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 2006-10-20 ___ 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] Event Listener and Levvels
You have the answer in your question ! ;) I create a listener at level0 If you know the level of your listener, then you should use it to reference it in your function calls. But all that depends on how your projects is built. Is your code on _level0? is it loaded in another swf ? Etc ... So to return to the question, You should try this : _level40.my_cb1.addEventListener(change,_level0.comb_fill); (or use this.comb_fill instead of _level0.comb_fill) So you are sure to send to right reference of your listener to the other combo_box in the right scope ... Haven't tried it but I believe this should work ! Bonne chance ! Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent CUCHET Sent: 19 octobre 2006 11:30 To: Flashcoders mailing list Subject: [Flashcoders] Event Listener and Levvels I create a listener at level0 How can I do to apply the action with another level component ? var comb_fill:Object = new Object(); comb_fill.change = function(evt2:Object) { //action }; my_cb.addEventListener(change, comb_fill); _level40.mycb1.addEventListener(change, comb_fill);// doesnt work Thank you very much ___ 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.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 ___ 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] Event Listener and Levvels
Lol, Got a record from them ... Message to Love if I remember right ;) a gift ... So don't get any funny ideas ... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 19 octobre 2006 11:58 To: Flashcoders mailing list Subject: RE: [Flashcoders] Event Listener and Levvels You're loading components into levels (_level40 in your example) ? Hmm, sounds a little troublesome in the first place IMO. level42 was also an 80s Brit pop group by the way so steer clear of that one. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Laurent CUCHET Sent: Thursday, October 19, 2006 11:30 AM To: Flashcoders mailing list Subject: [Flashcoders] Event Listener and Levvels I create a listener at level0 How can I do to apply the action with another level component ? var comb_fill:Object = new Object(); comb_fill.change = function(evt2:Object) { //action }; my_cb.addEventListener(change, comb_fill); _level40.mycb1.addEventListener(change, comb_fill);// doesnt work Thank you very much ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.6/486 - Release Date: 2006-10-19 ___ 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: Passing SWF parameters with MovieClipLoader?
Oh sorry for misunderstanding, To answer you question, I don't know if it is a garanteed behavior but if it works, that could be the case, because flashvars are set before the swf actually loads in your page. That onLoadComplete behaves in a similar way seems plausible. Further testing is required to say if it's a solid assumption. But if it works, use it ! :) Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Harding Sent: 17 octobre 2006 12:08 To: Flashcoders mailing list Subject: Re: [Flashcoders] Re: Passing SWF parameters with MovieClipLoader? I may not have been clear - I understand that if you actually want to _use_ the new clip, you need to wait for onLoadInit. What I was trying to do is set parameters on the new clip _before_ it gets loaded, similar to setting flashvars in HTML, or setting properties on an empty clip before calling MovieClip.loadMovie(). And what I found is that you can do this by setting those parameters in response to onLoadComplete. -John On 10/16/06, Alain Rousseau [EMAIL PROTECTED] wrote: Yup, Tested and True, it's definitely onLoadInit that does the trick, because it is fired when the first frame of your loaded SWF is played. onLoadComplete only tells you that the SWF bytes have completed loading before it actually begins playing. the rest of the onLoad... events for the MovieClipLoader seem to be there only for the purpose of load progress monitoring. Of course you can put them at any use you see fit but basically that is waht they do. onLoadInit tells you that your SWF is ready for manipulation. HTH Alain John Harding wrote: Hello all, I have a project where I'd like to use MovieClipLoader to load an external SWF, so that I can be notified when the load is complete. However, it appears that MovieClipLoader.loadClip() does not allow one to pass parameters (i.e. flashVars) to the SWF like MovieClip.loadMovie() does. As an experiment, I tried setting my SWF parameters in response to onLoadComplete(), and it appears to work - onLoadComplete is called before the loaded SWF initializes, and the parameters set in onLoadComplete() are set on the root clip of the loaded SWF. So my question is, does anyone know if this is guaranteed behavior? The Macromedia docs all seem to indicate that onLoadComplete() is completely useless and one should use onLoadInit() (and yes, I'm still using onLoadInit for everything other than the SWF parameters). Thanks! -John ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/478 - Release Date: 2006-10-17 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/478 - Release Date: 2006-10-17 ___ 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] LoadVars to XML object
If you do a sendAndLoad allready, you should try to define your xml in the onData event of the LoadVars. import mx.utils.Delegate; var xml:XML = new XML(); xml.ignoreWhite = true; lv.onData = Delegate.create(this, parseData); // onData returns the source of the file as a string so the parameters are passed without the need of arguments lv.sendAndLoad( ... ); // Do your stuff here function parseData(src:String):Void { xml.parseXML(src); // or this should work as well // var newXML:XML = new XML(src); } HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chip Moeser Sent: 17 octobre 2006 12:41 To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadVars to XML object Is there a way to do this without specifying a URL in sendAndLoad? or without actaully sending it out anywhere? I have a php page which in an initial load vars sendAndLoad is sending back xml. SInce Flash see's it as a string I just want to convert it to an xml object without sending it out anywhere again. Thanks! On Oct 17, 2006, at 12:26 PM, Cedric Muller wrote: var xml:XML = new XML(); xml.ignoreWhite = true; xml.onLoad = function () { trace(this); } var lv:LoadVars = new LoadVars(); lv.sendParam1 = bla; lv.sendParam2 = blo; lv.sendAndLoad(url, xml, POST); hth, cedric Hello All, I am trying to convert the return string of a loadvars to an XML object. Does anyone know a simple way of doing 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 ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/478 - Release Date: 2006-10-17 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/478 - Release Date: 2006-10-17 ___ 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] Weird image download problems in IE
Have you tried using the MovieClipLoader class ? It has an event very usefull called onLoadError . It gives you the following informations (quote from the livedocs): errorCode:String - A string that explains the reason for the failure, either URLNotFound or LoadNeverCompleted. httpStatus:Number [optional] - (Flash Player 8 only) The HTTP status code returned by the server. For example, a status code of 404 indicates that the server has not found anything that matches the requested URI. For more information about HTTP status codes, see sections 10.4 and 10.5 of the HTTP specification at ftp://ftp.isi.edu/in-notes/rfc2616.txt.; You should look up the full docs on the matter here : http://livedocs.macromedia.com/flash/8/main/2538.html HTH ! Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 16 octobre 2006 15:23 To: Flashcoders Subject: [Flashcoders] Weird image download problems in IE We're running into a really strange problem with image downloads in Flash when running in IE and was wondering if anyone else has seen something like this or has any ideas on what I could do to fix it. We need to have the Flash movie be able to download arbitrary images from the web and display them. I also need to be able to tell whether the download worked or not, so I can display an error if it failed or manipulate the image if it loaded. The problem we're running into is that in IE the loader class will tell us the image failed to load even though it worked fine. Here's some test code we used to test: --- import mx.controls.Alert this.createClassObject(mx.controls.Loader, my_ldr, 10); var poLoaderListener = new Object(); poLoaderListener.oScope = this; poLoaderListener.complete = function(oEvent) {mx.controls.Alert.show(oEvent.total); }; poLoaderListener.progress = function() {}; my_ldr.addEventListener('complete', poLoaderListener); my_ldr.addEventListener('progress', poLoaderListener); my_ldr.load(IMAGE_URL); --- When running this in Firefox it works fine, and the alert box gives us the right value. However, in IE when trying this the alert box pops up with a -1, telling us the download failed. However, the image still shows up. The only thing I've been able to figure out is that the speed of the download has something to do with it. In the actual product we're downloading the images through a server that acts as a sort of proxy which caches the images. The first time we hit it the proxy has to download the source image before returning it to the client. This is when we see the problem. Later attempts seem to work fine as the download happens faster (the server cached the image so it doesn't have to redownload it). To simplify the test I took the proxy out of the loop and threw a bandwidth limiter on the server that had the image I was testing. When throttling it back to act like a 56k modem I could reproduce the error in IE. It still worked fine (just really slow) in Firefox. Has anyone seen this before? It's causing serious problems, as we need to be able to tell if the image downloaded successfully or not. Any ideas of ways to get around this or fix it? Note that we have to support Flash 7+. Thanks! -Andy ___ 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.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 ___ 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] ppt to flash
You should try OpenOffice http://www.openoffice.org, It's similar to Windows Office, but open source and you have an application that reads PowerPoints. With it you can convert your PowerPoints to swf. Otherwise you could try and do it with a C# app. But for that I can't really help you there. The only other way to do it with PowerPoint is either with Adobe Breeze or other similar softwares. HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Valério Guimarães Sent: 16 octobre 2006 16:07 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] ppt to flash Hi all, I'm trying to convert ppt/pps to flash and I read the topic SDK for Flash. In that topic the link http://bukoo.sourceforge.net/ was mentioned but it is not working. Does anyone has anything on how to parse a ppt/pps file or creating a swf file? Regards Valério ___ 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.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 ___ 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] Weird image download problems in IE
I've never used the Loader myself, so I can't really help you out with this error, but it might be an issue with Adobe's ActiveX Add-on ?? If it's only IE that's affected that's where I would be looking. Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 16 octobre 2006 16:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] Weird image download problems in IE Awesome, looks like that works. Thanks! Any idea what's causing the problem with the Loader? Just some bug in Flash or IE? -Andy On 10/16/06, Alain Rousseau [EMAIL PROTECTED] wrote: Have you tried using the MovieClipLoader class ? It has an event very usefull called onLoadError . It gives you the following informations (quote from the livedocs): errorCode:String - A string that explains the reason for the failure, either URLNotFound or LoadNeverCompleted. httpStatus:Number [optional] - (Flash Player 8 only) The HTTP status code returned by the server. For example, a status code of 404 indicates that the server has not found anything that matches the requested URI. For more information about HTTP status codes, see sections 10.4 and 10.5 of the HTTP specification at ftp://ftp.isi.edu/in-notes/rfc2616.txt.; You should look up the full docs on the matter here : http://livedocs.macromedia.com/flash/8/main/2538.html HTH ! Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 16 octobre 2006 15:23 To: Flashcoders Subject: [Flashcoders] Weird image download problems in IE We're running into a really strange problem with image downloads in Flash when running in IE and was wondering if anyone else has seen something like this or has any ideas on what I could do to fix it. We need to have the Flash movie be able to download arbitrary images from the web and display them. I also need to be able to tell whether the download worked or not, so I can display an error if it failed or manipulate the image if it loaded. The problem we're running into is that in IE the loader class will tell us the image failed to load even though it worked fine. Here's some test code we used to test: --- import mx.controls.Alert this.createClassObject(mx.controls.Loader, my_ldr, 10); var poLoaderListener = new Object(); poLoaderListener.oScope = this; poLoaderListener.complete = function(oEvent) {mx.controls.Alert.show(oEvent.total); }; poLoaderListener.progress = function() {}; my_ldr.addEventListener('complete', poLoaderListener); my_ldr.addEventListener('progress', poLoaderListener); my_ldr.load(IMAGE_URL); --- When running this in Firefox it works fine, and the alert box gives us the right value. However, in IE when trying this the alert box pops up with a -1, telling us the download failed. However, the image still shows up. The only thing I've been able to figure out is that the speed of the download has something to do with it. In the actual product we're downloading the images through a server that acts as a sort of proxy which caches the images. The first time we hit it the proxy has to download the source image before returning it to the client. This is when we see the problem. Later attempts seem to work fine as the download happens faster (the server cached the image so it doesn't have to redownload it). To simplify the test I took the proxy out of the loop and threw a bandwidth limiter on the server that had the image I was testing. When throttling it back to act like a 56k modem I could reproduce the error in IE. It still worked fine (just really slow) in Firefox. Has anyone seen this before? It's causing serious problems, as we need to be able to tell if the image downloaded successfully or not. Any ideas of ways to get around this or fix it? Note that we have to support Flash 7+. Thanks! -Andy ___ 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.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 ___ 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
RE: [Flashcoders] ppt to flash
I believe you can keep your transitions effects and animations with Impress (OpenOffice's PowerPoint editor) But the output is not that great looking if I remember right. I was in a e-learning company before my current job and we were looking for something to replace the Breeze plugin for PowerPoint. I've stumbled upon OpenOffice in my searches and tested it a little, It did the job, even added some navigation buttons to switch between slides. I don't remember if you could customize the look easily or if the slides were in separate swf files. In the end the company went for writing their own PowerPoint Plug-in in C# but I didn't see the end of it because I left before it was completed. Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman Sent: 16 octobre 2006 16:38 To: Flashcoders mailing list Subject: Re: [Flashcoders] ppt to flash There are commercial pieces of software that will do it (we use one here at work as part of our product), and I believe they all use VBScript to interact with Powerpoint. However, from what I've heard the next version of Powerpoint will not have the VBScript support anymore (I guess MS specifically says it shouldn't be used for things like this, so they're killing it), so I'm not sure how good of a long-term solution that would be. What parts of the PPT stuff are you trying to convert? If you want animations and sound and such then it would be pretty difficult, but if all you want are the images then you could just use PPT to save the slides out as images (just pick the JPG format in the Save As... dialog) and then have flash use those images for the slides. You'd have to manually write the Flash code to handle the switching of slides and such, but it's an easy way to get all the images you need. -Andy On 10/16/06, Alain Rousseau [EMAIL PROTECTED] wrote: You should try OpenOffice http://www.openoffice.org, It's similar to Windows Office, but open source and you have an application that reads PowerPoints. With it you can convert your PowerPoints to swf. Otherwise you could try and do it with a C# app. But for that I can't really help you there. The only other way to do it with PowerPoint is either with Adobe Breeze or other similar softwares. HTH Alain -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Valério Guimarães Sent: 16 octobre 2006 16:07 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] ppt to flash Hi all, I'm trying to convert ppt/pps to flash and I read the topic SDK for Flash. In that topic the link http://bukoo.sourceforge.net/ was mentioned but it is not working. Does anyone has anything on how to parse a ppt/pps file or creating a swf file? Regards Valério ___ 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.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 ___ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 2006-10-14 ___ 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: Passing SWF parameters with MovieClipLoader?
Yup, Tested and True, it's definitely onLoadInit that does the trick, because it is fired when the first frame of your loaded SWF is played. onLoadComplete only tells you that the SWF bytes have completed loading before it actually begins playing. the rest of the onLoad... events for the MovieClipLoader seem to be there only for the purpose of load progress monitoring. Of course you can put them at any use you see fit but basically that is waht they do. onLoadInit tells you that your SWF is ready for manipulation. HTH Alain John Harding wrote: Hello all, I have a project where I'd like to use MovieClipLoader to load an external SWF, so that I can be notified when the load is complete. However, it appears that MovieClipLoader.loadClip() does not allow one to pass parameters (i.e. flashVars) to the SWF like MovieClip.loadMovie() does. As an experiment, I tried setting my SWF parameters in response to onLoadComplete(), and it appears to work - onLoadComplete is called before the loaded SWF initializes, and the parameters set in onLoadComplete() are set on the root clip of the loaded SWF. So my question is, does anyone know if this is guaranteed behavior? The Macromedia docs all seem to indicate that onLoadComplete() is completely useless and one should use onLoadInit() (and yes, I'm still using onLoadInit for everything other than the SWF parameters). Thanks! -John ___ 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] Flash Classes and Preloading ...
Hi Stephen, The best way to use a preloader is to put it in a different swf movie that loads the one you wish to preload, that way you'll be sure it will load correctly. HTH A. Stephen Ford wrote: I'm using AS2 classes in my flash movie. I have created a class called Preloader. How can I load this class without loading all other classes. The problem is that when testing my movie, nothing appears onscreen until about 30% of the total movie has loaded (because by default flash loads all classes before anything else). You can select what frame of a movie to load your classes on, but what if you want to load all classes (except one class - in this case the Preloaded class) later than the first frame ??? so that your preloader is working straight away ??? Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@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] Scripted Angled Motion
Hi Kevin, It's quite simple actually. If you know the angle (it need to be in radians) all you need after that is the speed of motion. To know the movement in the x axis it's the cosine of the angle, for the y axis, it's the sine of the angle so you will have the following : mc._x = Math.cos(angle)*speed; mc._y = Math.sin(angle)*speed; And here is a quick example for that : import mx.utils.Delegate; var object:MovieClip = this.object; var angle:Number = 45; var DEGtoRAD:Number = Math.PI/180; angle *= DEGtoRAD; var speed:Number = 5; object.onEnterFrame = Delegate.create(this, moveObject); function moveObject():Void { object._x += speed*Math.cos(angle); object._y += speed*Math.sin(angle); var leftBorder:Number = object._x-object._width; var rightBorder:Number = object._x+object._width; var topBorder:Number = object._y-object._height; var bottomBorder:Number = object._y+object._height; var initY:Number = -object._height; var initX:Number = -object._width; if (leftBorder = Stage.width) { object._x = initX ; } else if (rightBorder = initX) { object._x = Stage.width + object._width; } else if (bottomBorder = initY ){ object._y = Stage.height + object._height; } else if (topBorder = Stage.height) { object._y = initY; } } In this code you can use Degree angles and then convert them to radians. This will give you some kind of asteroids game type of motion. HTH Alain -Original Message- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: 12 octobre 2006 14:43 To: 'Flashcoders mailing list' Subject: [Flashcoders] Scripted Angled Motion Hey all, I'm trying to do something, but the mathematics of it are messing with my head. I've got a clip that I want to move in a specific direction (angle) without giving an end target. When the clip is offstage, I'll simply reset it and trigger it again accordingly. I don't need for it to ease or anything fancy, just move on a designated angle. Thanks, !k ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 2006-10-11 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/472 - Release Date: 2006-10-11 ___ 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] IE doesn't seem to want to recognize FlashVars
It seems to work when I pass the Flashvars directly to the swf : http://www.iconicweb.com/home3.swf?page=PortfoliosubPage=toyotaEPNS But not through the html page. I believe that your problem is in the Javascript. You should try and debug that first do some alerts in your scripts to check your variables, etc ... HTH A. -Original Message- From: Christopher Whiteford [mailto:[EMAIL PROTECTED] Sent: 11 octobre 2006 10:33 To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] IE doesn't seem to want to recognize FlashVars Ok I have a page that redirects based on FlashVars and for some reason every browser expect IE seems to work. I have tried using flashobject, passing the variables in the querystring and referencing _root variable. I am at my wits end with this. If anyone could take a look at it in IE and Firefox and possibly have some explanation I would be thankful. Here is the link: http://www.iconicweb.com/indextest.html?page=PortfoliosubPage=toyotaEPNS ___ 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.408 / Virus Database: 268.13.2/471 - Release Date: 2006-10-10 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 2006-10-10 ___ 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] Simplified Chinese
For me it works well if I don't try to use animations to display the text and no embeded fonts. What you need is a unicode font selected in your TextField and a unicode text data, wheter it is an xml file, a text file or a database. Otherwise you'll need to go through hoops jumping and live with a huge filesize A. -Original Message- From: eric dolecki [mailto:[EMAIL PROTECTED] Sent: 10 octobre 2006 11:42 To: Flashcoders mailing list Subject: [Flashcoders] Simplified Chinese I've been digging around the net and the archives and have only found that its basically impossible to get Simplified Chinese to display well in a SWF. Has anyone come up with a solution (that wasn't composed of hoop jumping galore) to this problem yet? - e. ___ 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.408 / Virus Database: 268.13.1/470 - Release Date: 2006-10-10 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.1/470 - Release Date: 2006-10-10 ___ 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] Movieclip event hook back to class instance?
Hi Dan, I think that what you'll have to do is create your own event and dispatch it using the EventDispatcher Class. First you'll need to initialize your outro mc with event dispatcher // in mc timeline's first frame import mx.events.EventDispatcher; var addEventListener:Function; var removeEventListener:Function; var dispatchEvent:Function; EventDispatcher.initialize(this); // further in the mc on chosen frame this.dispatchEvent( {target:this, type:onFrameLabel, label:endOutro}); Now all you need is a listener object for that event in your code : import mx.utils.Delegate; // or whatever Delegate class you use - Proxy or dynamicflash's Delegate var listener:Object = new Object(); listener.onFrameLabel = Delegate.create(this, myActions); outroMC.addEventListener(onFrameLabel, listener); function myActions(evtObj:Object) { trace(evtObj.target+ Dispatched event +evtObj.type+ at frame label +evtObj.label); // do whatever you want here if (evtObj.label == endOutro) { trace(end of outro); } } If you don't want to use the timeline you could use setInterval (or setTimeout if you use Flash 8) to delay the event dispatching to a certain amount of time. HTH Alain -Original Message- From: Daniel Forslund|Lists [mailto:[EMAIL PROTECTED] Sent: 6 octobre 2006 08:20 To: Flashcoders mailing list Subject: [Flashcoders] Movieclip event hook back to class instance? Hi all! I have a (hopefully not too ignorant) question relating to movieclips created on the fly. Basically, I have a preloader class that is generic and reusable. It's called from whatever object that does dynamic loading of content and then in turn invokes a movieclip from a passed symbol name(can be anything, as long as a basic movieclip structure is followed). It all works great. However, when the loading is done I want the dynamically created mc to play an outro animation that is preanimated in the movieclip (as opposed to animated via AS, that would be easy ;) ). My problem is finding a way for the preloader class instance to tell when the movieclip reaches a certain frame or frame label (and is done with the outro). I can't find a suitable event to hook into? I guess I was looking for something like mc.onframelabel to hook a function to, I guess that was naive. :) Can I in some way create a hook myself, or do I have to create a watcher object that checks each frame where the playhead is in my dynamic loader movieclip? Would certainly work, but it's not very elegant. My goal is to keep the preloader movieclip code-free. Anyway, I hope I managed to describe the problem. Apologies for any ignorance and any terms/keywords used out of context. I'm pretty new to more advanced actionscript, but have many moons of general coding experience. :) Many thanks in advance, Dan ___ 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.407 / Virus Database: 268.13.0/465 - Release Date: 2006-10-06 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 2006-10-06 ___ 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] movieclip._y = textField._height
Instead of using textField._height, you should use textField.textHeight. This is more reliable than the _height property A -Original Message- From: André Goliath [mailto:[EMAIL PROTECTED] Sent: 28 septembre 2006 09:33 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] movieclip._y = textField._height How about this? var test:Number = Math.round(parseFloat(textField._height)); movieClip._y = test; ;) strange, works for me obviously,... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lieven Cardoen Sent: Thursday, September 28, 2006 3:24 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] movieclip._y = textField._height Instead of going to y-coordinate 60, it goes to ZERO. Even if I like do this : Var test:Number = textField._height; movieClip._y = test; Still the same shit. Incredible. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Grden Sent: donderdag 28 september 2006 15:13 To: Flashcoders mailing list Subject: Re: [Flashcoders] movieclip._y = textField._height well, what DOES it do? On 9/28/06, Lieven Cardoen [EMAIL PROTECTED] wrote: Really strange bug : If I put movieclip._y = 60 , it works fine If I put movieclip._y = textField._height , it doesn't work fine Lieven ___ 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 -- [ JPG ] ___ 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: [Flashcoders] Using XRay
Try this link, It has everything you need to know about XRay, including where to download ! Enjoy ! http://www.osflash.org/xray A -Original Message- From: slangeberg [mailto:[EMAIL PROTECTED] Sent: 28 septembre 2006 14:09 To: Flashcoders mailing list; [EMAIL PROTECTED] Subject: [Flashcoders] Using XRay I've seen lots of people posting about XRay lately, but I haven't had luck with it, yet. I do have the executable running, but I don't have the Connector to the Flash IDE. Can anyone post a link to download that? I have not been able to find it! : : ) 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 ___ 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] Associate clip with class
There is an interesting article on the subject in the Flashcoder's Wiki at osflash.org : http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library With this approach you can create a class that extends MovieClip and then create an instance of that class without a symbol in the library. I found it very useful and really neat ! works like a charm ! Alain Geoff Stearns wrote: it does work in flash 8. as for clips on the stage, it does work, you just have to give the clip a linkage ID in the library first, and use that linkage to register the class to it. On Sep 19, 2006, at 5:31 PM, slangeberg wrote: Does Object.registerClass() work in Flash 8 (i haven't been able to get it to work)? Also, does that allow you to register more than one clip with a class? The documentation seems to point to using the Linkage setting for AS2: * Availability: *ActionScript 1.0; Flash Player 6 - If you are using ActionScript 2.0 classes, you can use the ActionScript 2.0 Class field in the Linkage Properties or Symbol Properties dialog box to associate an object with a class instead of using this method. Also, I don't think it works for clips that you've dragged to the stage: When an instance of the specified movie clip symbol is created by using MovieClip.attachMovie() or MovieClip.duplicateMovieClip(), it is registered to the class specified by theClass Scott On 9/19/06, Geoff Stearns [EMAIL PROTECTED] wrote: that article was only meant for assigning a class to your _root timeline... I don't think he intended it to be used for other movieclips in the library or on stage. for that you could just use the linkage in the library or use Object.registerClass() On Sep 19, 2006, at 4:29 PM, slangeberg wrote: I was looking at Danny's article regarding a Flash Document Class at: http://www.dannypatterson.com/Resources/Blog/EntryDetail.cfm?id=106 And i started to wonder if people are using this to associate their clips on stage with a class? Are people doing this kind of thing (or otherwise) instead of setting the AS 2.0 class property in the 'linkage' dialog of their movieclips in the library? I just hate how it's not obvious (by linkage) which class is being used in Flash 8.0. Only gets me more excited for some Flash 9.0 projects to come through! : : ) 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 ___ 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 ___ 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] TextFormat Font Face = 'Wingdings' or 'Webdings'
Try to embed it into some textfield on the stage and then trace font name. How would you do that? There is no mytextfield.font property. Only TextFormat.font and TextField (class).getFontList() which shows all the fonts on the user's system. Thanks for your advice, Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions There is the myTextformat = myTextfield.getTextFormat() method that way you can get the font used in your textfield with myTextformat.font ! hth Alain ___ 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] Fwd: Application Framework
Hi Jeff, if you want to convert the XML to anative AS object you could try out Sephiroth's XML2Object class http://www.sephiroth.it/file_detail.php?pageNum_comments=0id=129 or the XMLObject class which is similar but with a few more functionnalities. http://www.sephiroth.it/file_detail.php?id=134# import it.sephiroth.XML2Object; var XML_FILE:String = http://my.server.com/myapp/xmlfile; + i_id + .xml; var oXML:XML = new XML(); var ObjFromXML:XML2Object = new XML2Object(); var myObject:Object = new Object(); var thisRef = this; oXML.ignoreWhite = true; oXML.onLoad = function(success) { if (success) { myObject = ObjFromXML.parseXML(oXML); thisRef.accessObject(); }else{ //you error code here } }; oXML.load(XML_FILE); function accessObject():Void { var i:Number = -1; while (++i myObject.bgColor.length) { trace(bgColor = +myObject.bgColor[i]); // if you have more than one bgColor tag in your XML, the class will convert it to an array } } This is an example of what you can do with that class. This would save you the time of creating your own Object. HTH Alain Jeff Brown wrote: Thanks Mike! That looks like something I can tweak. But, id do still have a question or two. It seems it might go easier on me if I rdeifine the XML to use just child nodes instead of attributes. Does that make sense, or is there an easier way to get at an attribute of your array then say: var g_id:Number = itemAr[i].firstChild.attribute.group.nodeValue; var bgcolor:String = groupAr[g_id].firstChild.attribute.bgcolor.nodeValue; I mean, I did a little searching on the web and found some XPath documentation, thanks to Ramon's note, so is there something like. var g_id:Number = XPathAPI.selectInteger(itemAr[i], atribute::lang); var bgcolor:String = XPathAPI.selectString(groupAr[g_id], attribute::bgcolor); Hmm, even my examples, if they exists, seem verbose. But if it works, then I can get the stuff done I need too. I guess the ideal would be for me to build some 'tweaked' object so that I could use. - ideal code --- var data:Data = new Data(http://my.server.com/myapp/xmlfile; + i_id + .xml); while (Data.items()) // iterator sets internal pointer to internal item Array { var bgcolor:String = Data.getBgColor(); // for example looks up the Group by the current item's group attribute. ... // build display stuff } /ideal code --- If this is just a pipe dream, let me know. I think something like my ideal code example above would work great, because I won't be building the flash for the application, and my flash designer is a little leary of actionscripting. And I knew conceptually that flash could read XML. If I can give her an object like that, then I know she can build what we need. Thanks Jeff On 8/31/06, Mike Britton [EMAIL PROTECTED] wrote: It's built into Flash 8: import mx.xpath.XPathAPI; function getXMLData() { var myXML:XML = new XML(); myXML.ignoreWhite = true; myXML.onLoad = function(success:Boolean) { if (success) { var groupAr:Array = XPathAPI.selectNodeList( this.firstChild, /data/grouplist/group); var itemAr:Array = XPathAPI.selectNodeList( this.firstChild, /data/itemList/item); for (var i:Number=0; igroupAr.length; i++) { trace(groupAr[i].firstChild.nodeValue); } for (var i:Number=0; iitemAr.length; i++) { trace(itemAr[i].firstChild.nodeValue); } } else { trace(XML loading failed !!!); } }; myXML.load(myXML.xml); } Tweakage may be necessary - I've had a couple glasses of wine. Mike Britton ___ 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
Re: [Flashcoders] problem about blur
http://www.google.ca/search?sourceid=mozclientie=utf-8oe=utf-8q=dynamically+blur+movieclips+with+flash+8 Gustavo Duenas wrote: Hi, I have a web site and I'd like to know how to make the different external movieclips I have would be blurred while a button is pressed. then, how to remove the blur of the movie clips once we return to the main dialog. I know you might be busy but I'd appreciate your help thanks Gustavo ___ 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] file reference
This was asked not too long ago (last week !) Search for the following : ³FileReference and Getting File Path² with the cool new tool that Muzak has provided us http://muzakdeezign.com/flashcoders/ From: Mayur Bais [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Mon, 19 Jun 2006 19:01:16 +0530 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] file reference hello all, I want to know the path of the file on the local hard drive which is been browsed by the user. How can I achieve this ? flash 8 provides flash.net.FileReference package which we can achieve browse and upload. But I could not find the solution to my problem. Any idea how can I do this ? Any work around ? do I need to use any server side scripting for this .. Please give some suggestion Thanks in advance Mayur ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] What does this code mean and What are Inspectables ...
You might also take a look at Joey Lott's Tutorial on the subject (V2 Components) It's for Flash MX 2004 but still applies to Flash 8. http://www.person13.com/articles/components/creatingcomponents.html and http://www.communitymx.com/content/article.cfm?cid=A06B3C7D7B74030D Steven Sacks wrote: They are for AS2 components. http://www.actionscript.org/forums/archive/index.php3/t-38760.html ___ 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] good OOP way to re-assign class to clip
Hi Gregory You should look into this article in the FlashCoders Wiki http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo vieclip_without_a_symbol_in_the_library This is if you want to create dynamically a movie clip and then associate a class to it. If you allready have a moviclip that you want to use, you should look into Object.registerClass(³myClipID², MyClass); HTH Alain From: GregoryN [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Mon, 17 Apr 2006 17:44:23 +0400 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] good OOP way to re-assign class to clip Hello Flashcoders, I have a clip (myClip_mc) associated with class, which is subclassing MovieClip (say, MyClass1). class MyClass1 extends MovieClip ... To do this, I entered class name as AS 2.0 Class in Export for Actionscript dialog. All this works OK (of course). But under some circumstances I'd like this clip to be associated with ANOTHER class (say, MyClass2). class MyClass2 extends MovieClip ... How do I acomplish this in good OOP style? Few ways I can imagine right now are: 1) myClip_mc.prototype.__proto__ = MyClass2.prototype; 2) Create an instantiate() method in MyClass2 to re-write all props/methods of the target clip with ones of MyClip2 (similar to EventDispatcher). Both ways above don't seem good from OOP point of view, though... Can anyone offer something more elegant? -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ 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] good OOP way to re-assign class to clip
Gregory, I wasn’t sure, that’s why I proposed 2 ways, but I just checked and neither will let you redefine the class associated with a movieclip. So I guess it’s back to square one. So far you have to create an new instance for the class you want to load using Object.registerclass and attachMovie. I can’t think of any other way right now. I know it’s not what you had in mind, but maybe someone else can think of something or try something out. Good luck ! Alain From: GregoryN [EMAIL PROTECTED] Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Date: Mon, 17 Apr 2006 21:32:11 +0400 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] good OOP way to re-assign class to clip Alain, I think you've misunderstood me. I already have a movie clip on the stage, which was placed by attachMovie(), and before it was an instance in the library, assotiated with MyClass1 . Then, after some things happen (e.g. user moved this clip), I wand to assign ANOTHER class to the mentioned clip, so this very clip to become an instance of MyClass2. That's why I need to RE-define the class for this clip. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. -- Alain Rousseau wrote: You should look into this article in the FlashCoders Wiki http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo vieclip_without_a_symbol_in_the_library This is if you want to create dynamically a movie clip and then associate a class to it. If you allready have a moviclip that you want to use, you should look into Object.registerClass(³myClipID², MyClass); ___ 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] MTASC and spaces in classpath
Escaping spaces is fine in the Terminal, but not in Eclipse using Flashout. That's the issue here, how to define the Class Path in Eclipse. I've read a post about it at http://www.pixelmotive.de/blog/archives/2005/06/fame_on_mac.php Basically what it says is to create a shell script that catches the call to mtasc then echoes the full mtasc command line into a seperate shell scripts and returns mtasc's output. Here is a shell script that works for me, you can save it anywhere and give it a name with the .sh extension make it executable like this chmod a+x locmtasc.sh and here is the shell script itself #!/bin/sh echo #!/bin/sh subc.sh echo /usr/local/bin/mtasc $@ subc.sh chmod a+x subc.sh ./subc.sh exit $? note that the shell will create a shell file for you, you don't need to create an empty one yourself. once this is done go in the Eclipse Preferences - Flashout in the Location of mtasc.exe enter the path to your locmtasc.sh : /Users/username/Documents/workspace/locmtasc.sh and voilà you sould be able to make Flashout work with mtasc The thing is that Eclipse adds quotes around the Macromedia Class Path, but it fails to parse correctly through Flashout. With this shell script the problem is solved. Alain Chris Allen wrote: Erixtekila is right. you need to escape those spaces. A quick way to get your paths written correctly is to open up the directory that you are targeting in the Finder, then open Terminal. Next drag the folder in the Finder into the Terminal window and you will see how the path should be written there. You can then copy it from the terminal if you wish. It might be overkill, but it's nice to know that you got it right. especially with really long paths. I hope that helps. -Chris On 3/30/06, erixtekila [EMAIL PROTECTED] wrote: Le 30 mars 06, à 16:26, Sam Thorne a écrit : I'm getting the error Class not found Support.Macromedia.Flash when my classpath is /Users/sam/Library/Application Support/Macromedia/Flash 8/en/Configuration/Classes Seems Mtasc doesn't like classpaths which have spaces in them on OS X, it tries to interpret the a directory name (such as Application Support, where the core classes are) as separate classes. Escape it : /Users/sam/Library/Application\ Support/Macromedia/Flash\ 8/en/Configuration/Classes erixtekila http://blog.v-i-a.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@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] problem with Delegate and scope
Hi Manuel, The thing about Delegate is that you can't just call it like that. It is supposed to be used either with eventHandling onSomething = or with setInterval, setTimeOut. Here is a link that will make you see the light http://www.osflash.org/flashcoders/as2?s=delegate So for exemple you could do in your code ew_netConn.onBWCheck = Delegate.create(this,yourFunction); Hope this clarifies some things about Delegate. Alain On 3/16/06 9:39 AM, Manuel Saint-Victor [EMAIL PROTECTED] wrote: I have not been having much luck with using Delegate lately. If I understand it correctly then it will call a function in the scope of the class file that it is defined -right? Well In one of my classes within this function I have the delegate being used and I'm not sure if it's because of a stupid error or what but the delegated function is not firing. As you can see I had to use the old viewRef workaround because the other Delegate attempt had also not been firing. If anyone could point out what I'm doing wrong it would help immensely because I keep coming up against the same hurdle every time and if I'm writing my Delegate wrong and could figure that out it would increase my productivity greatly today. public function initNetConnection(){ viewRef=this; netConn=new NetConnection(); if(adMode==stream){ trace(stream); var appURI = rtmp://...; //connection is of type streaming ew_netConn.onBWCheck = function(arg) { return; }; ew_netConn.onBWDone = function(bw) { trace(BWDone); EW.bw = bw; EW.Video.setBwAndBuf(); viewRef.setFileUrl(); //Begin playing the FLV video and audio based on the init settings if(viewRef._aInit == host){ trace(ObjectDumper.toString(parent)); Delegate.create(this,audioOn); }else{ Delegate.create(this, audioOff); } Thanks, Mani ___ 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] Flash Programmer Needed - Montreal (QC)
Hello FlashCoders, Isacsoft / Bigknowledge is seeking a Flash Programmer for the creation of a framework for our new e-learning application. Job will include organizing and processing data for our pre-built applications; including debugging, upgrading, and maintaining the code. Applicant should be a team player, be very well organized and be able to work in a fast paced environment. Requirements : - Must have experience with Flash 8 MX 2004 - Must know how to program using ActionScript 2.0 - Must have a good understanding of OOP - Be able to work with Classes and Event creation/handling - Excellent communication organization skills - Knowledge of XML Pluses : - Experience developing frameworks for Flash - Knowledge of SCORM and it's integration with Flash/JavaScript - Experience with the new Flash 8 features If you are looking to gain solid work experience with Flash, this is the job for you. If interested, please send all responses to Alain Faucher, Project Director ([EMAIL PROTECTED]) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] text field halfway round from bottom
If you're using Flash 8 you can use the DisplacementMapFilter to do that effect. So far you can't write text on a path in Flash, unlile Illustrator or other vector based apps. you can see an example at this french blog: http://jeanphiblog.media-box.net/dotclear/index.php?2005/10/29/172-flash-8-displacementmapfilter-texte-incurve You can get the source of these exemples as well. Hope this helps Alain rishi wrote: Hi Is there a way I can make a text field halfway round from bottom. I want to make bridge text or bulge text. Please suggest something in Flash or somewhat alike. Regards Rishi ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] BitmapData.loadBitmap with on stage MC
What you want is to take a snapshot of the MC on the stage right ? For this you use the draw() Method of the BitmapData : var bd:BitmapData = new BitmapData(mc._width, mc._height); bd.draw(mc); Alain Claudia Barnal wrote: How could I achieve the same as this: var bd = BitmapData.loadBitmap(myImg); but loading and image (MC) that is on the stage? The above works ok for me when I have an Image in the library, but I can't find how to achieve the same with a MC that is located on the stage. Thanks _ MSN Messenger 7.5 is now out. Download it for FREE here. http://messenger.msn.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] onLoop event for sound
Hi Mark, you could monitor the position of the sound comparred to it's duration, that way you know when it arrives at the end of the sound. if (sound.position == sound.duration) { loopCount++; } In this case, the loop count will be made at the end of the sound. HTH Alain Mark Walters wrote: Does anyone know of a good way to create an onLoop event that gets fired everytime a sound loops. I need to keep track of how many loops are left. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] onLoop event for sound
doh ! :) I don't know what's wrong with my brain these days, it's working in strange ways of course use onSoundComplete ! I actually had another problem in mind ... sorry 'bout that ! A Tobias Fendel [Die ActionScripter] wrote: hi, imho a better solution is to use the sound.onSoundComplete event: mySound.onSoundComplete = function() { loopCount++ } it is fired next frame after the sound ends. if you start your sound using a script like mySound.start(0,) it may be your sound restarts (and resets sound.position) before the next frame events calls your check. greetings tobias ps: sorry about my bad english :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Thursday, November 17, 2005 7:17 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] onLoop event for sound Hi Mark, you could monitor the position of the sound comparred to it's duration, that way you know when it arrives at the end of the sound. if (sound.position == sound.duration) { loopCount++; } In this case, the loop count will be made at the end of the sound. HTH Alain Mark Walters wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Looping an external mp3 file seamlessly
Hi Paul, it's more a class than an extension, the mxp just installed it for you in the correct folder. It should be in C:\Documents and Settings\USERNAME\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\ca\daroost\SoundLoop2.as If you go inside the Flash IDE and open the HelpPanel, you will see a SoundLoop item that you can open and browse for all help concerning the use of the class. some basic usage is as follow : import ca.daroost.SoundLoop2; var mySong:SoundLoop2; mySong = new SoundLoop2(): mySong.loadStreams(loop1.mp3,0,75); and you have your file looping with 75ms removed at the end, which usually removes the gap at the end of the mp3 file. If you have more questions, you can mail me directly. Hope this gets you in the right direction. Alain Paul Steven wrote: Thanks Alain I am not quite sure how to use extensions. It appears to have installed the SoundLoop2.as file in the following location: C:\Documents and Settings\USERNAME\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration How do I go about using this class in Flash? Sorry I have never used any extensions before. Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alain Rousseau Sent: 11 November 2005 19:48 To: Flashcoders mailing list Subject: Re: [Flashcoders] Looping an external mp3 file seamlessly Or you can try this little thing I made here, exactly for looping mp3 seamlessly : http://lab.daroost.ca/source/SoundLoop2.mxp it's just a Class that I packaged with helpPanel and codehints info. You got all the info needed to make it work inside. Hope this helps and works out well Alain JesterXL wrote: I know... I have that on some mp3's. You can try either adjusting the startTime, OR fading in a completely new soundObject . - Original Message - From: Paul Steven [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, November 11, 2005 1:56 PM Subject: RE: [Flashcoders] Looping an external mp3 file seamlessly Thanks Jester That now loops:) Only problem is that it is not seamless - there seems to be a slight delay:( Cheers Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of JesterXL Sent: 11 November 2005 18:52 To: Flashcoders mailing list Subject: Re: [Flashcoders] Looping an external mp3 file seamlessly Try: mySound=new Sound(this); // notice the this mySound.onSoundComplete = function() { this.start(); }; mySound.loadSound(track1.mp3,true); - Original Message - From: Paul Steven [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, November 11, 2005 1:40 PM Subject: RE: [Flashcoders] Looping an external mp3 file seamlessly Thanks Alain You are right about the typo but even after fixing the typo it still does not loop. Is it true that streaming external audio will not loop? Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alain Rousseau Sent: 11 November 2005 16:55 To: Flashcoders mailing list Subject: Re: [Flashcoders] Looping an external mp3 file seamlessly Paul Steven wrote: I am trying to play a looping external mp3 file but am having no joy as it only plays once. I tried this mySound=new Sound(); mySound.loadSound(track1.mp3,true); mysound.start(startTime,numloops); Any help much appreciated Thanks Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Hi Paul this is a typo error ... you defined mySound but called mysound.start() keep your eyes open ;) Alain ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Looping an external mp3 file seamlessly
Or you can try this little thing I made here, exactly for looping mp3 seamlessly : http://lab.daroost.ca/source/SoundLoop2.mxp it's just a Class that I packaged with helpPanel and codehints info. You got all the info needed to make it work inside. Hope this helps and works out well Alain JesterXL wrote: I know... I have that on some mp3's. You can try either adjusting the startTime, OR fading in a completely new soundObject . - Original Message - From: Paul Steven [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, November 11, 2005 1:56 PM Subject: RE: [Flashcoders] Looping an external mp3 file seamlessly Thanks Jester That now loops:) Only problem is that it is not seamless - there seems to be a slight delay:( Cheers Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of JesterXL Sent: 11 November 2005 18:52 To: Flashcoders mailing list Subject: Re: [Flashcoders] Looping an external mp3 file seamlessly Try: mySound=new Sound(this); // notice the this mySound.onSoundComplete = function() { this.start(); }; mySound.loadSound(track1.mp3,true); - Original Message - From: Paul Steven [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, November 11, 2005 1:40 PM Subject: RE: [Flashcoders] Looping an external mp3 file seamlessly Thanks Alain You are right about the typo but even after fixing the typo it still does not loop. Is it true that streaming external audio will not loop? Thanks Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alain Rousseau Sent: 11 November 2005 16:55 To: Flashcoders mailing list Subject: Re: [Flashcoders] Looping an external mp3 file seamlessly Paul Steven wrote: I am trying to play a looping external mp3 file but am having no joy as it only plays once. I tried this mySound=new Sound(); mySound.loadSound(track1.mp3,true); mysound.start(startTime,numloops); Any help much appreciated Thanks Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Hi Paul this is a typo error ... you defined mySound but called mysound.start() keep your eyes open ;) Alain ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Help For Custom Components
as promised, here is a link that will tell you exactly what to do and what to download to help you create your help files. http://www.macromedia.com/support/documentation/en/flash/mx2004/extending_help/index.html It's for Flash MX 2004 but is still valid for Flash 8, so there should be no problem. You'll have all you need to create your help files. Alain Alain Rousseau wrote: Documentation about mxi file creation is inside Dreamweaver ... go figure ! You should also download Dreamweaver extensions that help you build your mxi file, there should be a little help file about how to do it. I am now at work, and all my notes on this are at home so this is the best I can do right now. I have sucessfully installed help files for flash before, I'll get back at you when I've got all my files at hand. Alain eric dolecki wrote: I get all the jazz about the customactions XML document - but can that file be specified in an MXI file so when you install a component via MXP, it installs the help as well? Looking for documentation, not finding any yet. e.dolecki ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Xml parsing object
Check out Sephiroth's XML2Object class : http://www.sephiroth.it/file_detail.php?id=129 very nice and easy to use. Weyert de Boer wrote: Does anyone got some nice object/method that transforms a xml data from a xml object into a nice object graph? I would like to ask (trying to avoid reinventing the wheel) before I am starting writing my own solution for parsing xml data into a structure for easier reference. Yours, Weyert de Boer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Looping Loaded Sound
or you can try a Class I made to do exactly that (it's an extension manager file, for installing the doc, code hints, etc ) http://lab.daroost.ca/source/SoundLoop2.mxp JesterXL wrote: s = new Sound(this); s.onSoundComplete = function() { this.start(0, 0); }; s.loadSound(my.mp3, true); - Original Message - From: DP [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 26, 2005 12:14 PM Subject: [Flashcoders] Looping Loaded Sound Hey Gang! Has anyone had trouble getting dynamically loaded MP3s to loop? I'm having a bit of trouble with this. Can Flash do this? What's the deal, 'yo? David Politi Super Genius ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AttachMovie - where is x=0,y=0?
the initial 0,0 point for any clip, stage, button, etc .. is at the top left corner. It's allways best to position your instances that way as well, for it will be easier later on to manipulate it's positioning. Alain eric dolecki wrote: initial attach is at 0,0 of the stage. perhaps you need to check your info panel to see that the triangle you created doesn't actually have its registration point on the bottom left point of the triangle. e.d. On 10/19/05, Kevin Boyd (MMCR) [EMAIL PROTECTED] wrote: Having some issues attaching a movie clip in 7. if I draw a right-angled triangle with it left most bottom point at 0,0 in the movieclip and then I use attachMovie and position that at 0,0 on the stage; it plots the triangle's middle at 0,0 and not the tip as drawn in the mc! What are the basic rules of how MC's are attached, can't find anything in the docs about this. TIA Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] .onLoad works in AS1, breaks in Flash 7
Hi Miles, as Rahul stated, you should try to put the L of Load to lowercase load, also it would be best to put your url in a variable : var myUrl:String = http://+host+feed_issuedates.php;; varGetDates.load(myUrl); it's cleaner and you can reuse myUrl variable anytime you want, instead of writing down the whole thing. as for local to network testing goes, Flash 7 is not as severe as Flash 8, but it is good to set your crossdomain.xml, it often blocks your code from linking to outside sources. Try changing the case of the 'L' and see where this gets you ... sometimes it's just a small syntax error that takes your project down ! good luck, Alain Rahul wrote: Hi Alain, It's not working in Flash 7 b'cos u r using upper case 'L' in Load method. Try using this varGetDates.load( http://; + host + feed_issuedates.php); a lower case 'l' for Load and this should work in both the versions of Flash. Regards, Rahul Miles Thompson wrote: Alain, I've adapted the code somewhat, to the extent it closely mimics the examples whown in the docs. For example varGetDates = New LoadVars; is changed to var varGetDates:LoadVars = new LoadVars();, and I've added type declarations to the other variables declared in the very first frame. success is not declared anywhere, though now it has :Boolean added to it. I've also added the crossdomain.xml file, my thinking being that the data was not being returned because I was doing a debug test on my local machine, but the data and scripts are at www.allnovascotia.com. I'm finding this very puzzling, and of course had assumed it would be a simple save as Flash 7, compile and we're done scenario. Thanks for responding - Miles At 11:24 PM 10/18/2005, Alain Rousseau wrote: Have you verified that you compiled in Flash 7 using AS1 and not AS2 ? if not you might need to adapt your code a little to work with AS2 compiler. Miles Thompson wrote: This code works in AS1 (Flash 6) but success never occurs in Flash 7. What could I be doing wrong? function getIssueDates() { varGetDates = new LoadVars(); //varGetDates.cacheKiller = new Date().getTime(); varGetDates.Load( http://; + host + feed_issuedates.php); varGetDates.onLoad = function( success ) { if (success) { _root.issuedates = varGetDates.issuedates; } else { // provide today's date today = new Date(); issuedates = string( today.getFullYear() ) +-; issuedates = issuedates + string( today.getMonth() + 1) + -; issuedates = issuedates + string( today.getDate() ); } // if(success) etc., etc. } } Note: Host is set in the first frame through an inclusion: #include settings.as. Host shows up in the degugger variables window as www.allnovascotia.com/test/ What is passed to varGetDates.Load is http://www.allnovascotia.com/test/feed_issuedates.php; A trace( varGetDates.issuedates) inserted immediately before if(success) returns an empty string. Same statement, following the if(success) is never evaluated. No conversion was followed, the previous Flash MX version was opened using Flash MX 2004, and then simply Save As'd to a new location; when warned that the file would no longer be openable in Flash MX I clicked on OK. Have I missed something really basic? I'm compiling as ActionScript 1 in the Publish settings. A steer in the right direction will be greatly appreciated - Miles Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] dispatch event in 8
Hi Amir, I believe you have a scope problem here. The compiler doesn't know wich object is dispatching the event. You should use your dispatcher object or instance to call that method. Also you now need to initialize your dispatcher object to the EventDispatcher class for exemple : import mx.events.EventDispatcher; function dispatchEvent() {}; function addEventListener() {}; function removeEventListener() {}; var myDispatcher:Object = new Object(); mx.events.EventDispatcher.initialize(myDispatcher); var myListener:Object = new Object(); myListener.onEvent = function() { trace(onEvent triggered); }; myDispatcher.addEventListener(onEvent, myListener); then later in your code you can trigger the event on a button click like this : myBtn.onRelease = function() { sendEvent(); }; function sendEvent():Void { var eventObject:Object = {target:myDispatcher, type:'onEvent'}; myDispatcher.dispatchEvent(eventObject); } This is how you should use events in Flash 8, read the docs, look for tutorials and you'll see similar examples or better Hope this helps Alain Amir Cicak wrote: Hello, after upgrading to flash 8 following line does not dispatch event anymore: dispatchEvent({type:klik, target:this, link:Tekst}); It works ok in flash 7. Anyone knows what could be the problem? I made component and this code is in components class. Are there some new things I need to watch out for in flash 8 related to event dipatching, initialising dispatcher, class, component, linkage, etc.? Thank in advance... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Stylesheet.transform
Ahh nice to know, was starting to look around :) thx for sharing Patrick Alain Patrick Matte wrote: Let me answer my own question : ) This code will transform the .menu css style to a TextFormat object : var styleObj:Object = my_styleSheet.getStyle(.menu); var styleFormat:TextFormat = my_styleSheet.transform(styleObj); trace(styleFormat.font) - Original Message - From: Patrick Matte [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 18, 2005 11:20 PM Subject: [Flashcoders] Stylesheet.transform Hi, I'd like to use the TextFormat.getTextExtent() method but first i have to transform my loaded CSS into a TextFomat. Is there a way to transform a style from a css to a TextFormat object ? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem with Key class in Flash 8
It looks like the listener stops listening to the first pressed key and monitors the onKeyUp only for the second one. So it might not be the Key class that is concerned here ... maybe event handling ? I can't really tell, would have to know more on how these work together. The thing is, that if 2 keys are pressed at the same time we would expect to see a trace output like this (for those who don't want to or can't try it themselves): CODE: var myListener = new Object(); myListener.onKeyDown = function() //change _myListener to myListener { trace(down: + Key.getCode()); }; myListener.onKeyUp = function() { trace(up: + Key.getCode()); }; Key.addListener(myListener); Expected Output for key pressed A (65) and C (67) where A is pressed first then C, then A is released then C: down: 65 down: 67 down: 67 up: 65 down: 67 down: 67 up: 67 but instead we get this in Flash 8 down: 65 down: 67 down: 67 down: 67 down: 67 up: 67 works as expected in Flash 7 That's all I can say for now in this case ... A franto wrote: Hi I;ve problem with Key class in Flash 8 Please read about it on my blog [Example included]. Is it bug or feature? Does someone know? Here is address: http://www.franto.com/blog2/flash-8-key-class-bug-or-feature Thanks - Franto http://blog.franto.com http://www.flashcoders.sk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders