[Flashcoders] [AS3] optional parameters - sans defaults for Boolean/Number/int

2008-02-29 Thread Jesse Graupmann
I'm trying to create typed functions using optional parameters sans the defaults. I'm finding String to be the only thing that allows for null to be passed. Is there a way to extend that functionality to other types like; Numbers, Booleans, and/or ints? NOTE : I am aware of ...rest and passing an

Re: [Flashcoders] [AS3] optional parameters - sans defaults for Boolean/Number/int

2008-02-29 Thread Glen Pike
Hi, You can have * to specify any parameter: function myFunc(param1:Boolean, param2:*); Matthew Houliston wrote: don't you mean function test2 ( a:Boolean = false ) { trace( a: + ( a == true ) ); } ? A Boolean is never null. var b:Boolean; trace(b);

[Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Kaloudis Stathis
Hi all, I'm trying to figure out how to duplicate a clip with an externally loaded image in it. Function duplicateMovieClip does not work for movieclips with content loaded using MovieClip.loadMovie() or the MovieClipLoader and I'm stucked and confused on how to proceed. Also, is it possible

RE: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Karim Beyrouti
Yeh - saw that a while ago, Hans got this in answer to a question I posted here a while ago. However, I just managed to get it working, and yeh - it's really fast. Thanks for the reminder... - karim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans

Re: [Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Ian Thomas
Stathis, No, in AS2 you can't duplicate loaded content using duplicateMovieClip. Your choices are: - to load each image again, every time you need it (isn't as slow/bad as it sounds - the cache speeds it up dramatically) - to duplicate the image by storing/copying loaded images's BitmapData -

RE: [Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Kaloudis Stathis
I hadn't thought using BitmapData, I 'll give it a try. As for loading images twice, if this is the only way then I'll have to walk it! Many thanks Ian! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Friday, February 29, 2008 1:23 PM

Re: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Hans Wichman
ah yeah lol i just found the old thread: http://readlist.com/lists/chattyfig.figleaf.com/flashcoders/5/27731.html On Fri, Feb 29, 2008 at 12:15 PM, Karim Beyrouti [EMAIL PROTECTED] wrote: Yeh - saw that a while ago, Hans got this in answer to a question I posted here a while ago. However, I

RE: [Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Michael Ypes
Stathis, Create a class that deals with the loading of images. Once that image has been loaded you can create a bitmapdata of that image and then distribute it as many times as you want. I have used this method several times and have built classes to deal with it. If you need some class files

RE: [Flashcoders] [AS3] optional parameters - sansdefaults for Boolean/Number/int

2008-02-29 Thread Jesse Graupmann
Ha! That works just fine. Thanks for reminding me Glen. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Friday, February 29, 2008 2:49 AM To: Flash Coders List Subject: Re: [Flashcoders] [AS3] optional parameters - sansdefaults for

Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Glen Pike
Hi, Does anyone have any ideas about this? Glen Glen Pike wrote: Hi, I have encountered a problem with an ExternalInterface.call causing IE7 to throw a JS error. I get an error message saying: Line: 1 Char 14: Error: Expected ';' Code: 0; URL:

Re: [Flashcoders] loadmovie

2008-02-29 Thread Bob Wohl
Use loadClip and wait for the onLoadInit to fire, then resize. http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1580.html hth. B On Fri, Feb 29, 2008 at 7:45 AM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: I am

[Flashcoders] Re: Flashcoders Digest, Vol 5, Issue 32

2008-02-29 Thread Chris Wilcox
-- Bounce Digital Ltd 7 Greenland Street London NW1 0ND +44 (0)20 7209 3620 -Original Message- From: [EMAIL PROTECTED] Date: Sat, 23 Feb 2008 12:04:12 To:flashcoders@chattyfig.figleaf.com Subject: Flashcoders Digest, Vol 5, Issue 32 Send Flashcoders

Re: [Flashcoders] Border color change of UILoader

2008-02-29 Thread anuj sharma
Hi Kenneth Thanks for reply. When i am trying to use ocusRectSkin it is giving me error. Can yo please provide some sample code which helps me to implement it. Appreciate ur help Anuj On Fri, Feb 29, 2008 at 2:33 AM, Kenneth Kawamoto [EMAIL PROTECTED] wrote: Can you set the focusRectSkin style?

[Flashcoders] Extending Flash [AS3]

2008-02-29 Thread Stuart (FunkDaWeb)
Hi i need to convert text to a shape via actionscript i have come accross this while on my search... http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3895.html Unfortunaly i get an errror when trying to use it 1180: Call to a

Re: [Flashcoders] Extending Flash [AS3]

2008-02-29 Thread Steven Sacks
It's not Actionscript, it's JSFL. Stuart (FunkDaWeb) wrote: Hi i need to convert text to a shape via actionscript i have come accross this while on my search... http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3895.html Unfortunaly

Re: [Flashcoders] loadmovie

2008-02-29 Thread Marc Hoffman
Theodore, How was holder_lesson created? If it has been scaled up from some other mc, the loaded movie will also be scaled up. Best to use a non-scaled clip as a holder. AS2 example: this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth()); holder_lesson._x = 10; // or wherever

Re: [Flashcoders] Extending Flash [AS3]

2008-02-29 Thread Stuart Moir [FunkDaWeb]
Thanks for that i wasnt aware! lol I know its JSFL but i will be triggering it using AS3 hence the question! Any help would be great! - Original Message - From: Steven Sacks [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, February 29, 2008

Re: [Flashcoders] loadmovie

2008-02-29 Thread jonathan howe
And if you are loading it into a clip that you've set _xscale + _yscale on, the movie replaces those properties when it's loaded. loadMovie essentially replaces the movie it's called from, wiping its properties. On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED] wrote: Theodore,

Re: [Flashcoders] loadmovie

2008-02-29 Thread jonathan howe
Yes, my apologies. I guess I was mixing up dynamic properties with the standard properties. Dynamic properties do get wiped, but standard ones are preserved, as Marc states. loader2.idiot = jonathan; loader2.onRelease = function(){ this.loadMovie(circle.swf); } // then once it is loaded

Re: [Flashcoders] Border color change of UILoader

2008-02-29 Thread Kenneth Kawamoto
Scrap focusRectSkin :) You can just add a border Sprite to the UILoader and toggle its alpha on mouse up/down. A quick example: public class Main extends Sprite { public function Main():void { var ldr:UILoader = new UILoader(); with(ldr){

RE: [Flashcoders] loadmovie

2008-02-29 Thread Lehr, Theodore M (N-SGIS)
Thanks - worked perfectly -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl Sent: Friday, February 29, 2008 10:21 AM To: Flash Coders List Subject: Re: [Flashcoders] loadmovie Use loadClip and wait for the onLoadInit to fire, then resize.

Re: [Flashcoders] loadmovie

2008-02-29 Thread Marc Hoffman
Well-put, Jonathan. Thanks for a useful clarification -- wish all idiots were as clever as you! -Marc At 12:59 PM 2/29/2008, you wrote: Yes, my apologies. I guess I was mixing up dynamic properties with the standard properties. Dynamic properties do get wiped, but standard ones are

Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Glen Pike
Hi, I am using AS3, so this is not an option, but thanks. Glen Karim Beyrouti wrote: I know this is not what you are asking for, but I use a getURL command to call the tracking script: getURL(javascript:pageTracker._trackPageview(' + str + ');); I have built two classes for google

Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Steven Sacks
SWFAddress 2.0 has Google Analytics stuff built in. It might be worth it to check out Rostislav's source code to see how he does it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Cory Petosky
Glen, Somebody on my team had the same problem with AS3, Google Analytics, and IE7. He used the global sendToURL function instead. According to him, neither navigateToURL nor ExternalInterface worked for him. On 2/29/08, Glen Pike [EMAIL PROTECTED] wrote: Hi, I am using AS3, so this is

Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Glen Pike
Hi, Thanks that seems to have solved the problem, now I just need to wait and check that Analytics is registering these. Glen Cory Petosky wrote: Glen, Somebody on my team had the same problem with AS3, Google Analytics, and IE7. He used the global sendToURL function instead.