[Flashcoders] Flash garbage collection

2007-06-28 Thread James Tu
How will Flash's garbage collection handle the following scenario? function loadAsset(url:String) { this.createEmptyMovieClip("image_mc", this.getNextHighestDepth()); this.onLoadInit = function(target_mc:MovieClip) { trace(target_mc + "...loaded"); }

[Flashcoders] class member Array

2007-05-24 Thread James Tu
Has anyone encountered this before... If you have a class variable that is of type Array... DO NOT DO THIS: private var ListOfThings:Array = new Array(); DO THIS: private var ListOfThings:Array; //then in your constructor, do this ListOfThings = new Array(); If you do the former, Flash will c

Re: [Flashcoders] class file updated, but .aso not updated?

2007-05-24 Thread James Tu
assets and not code, but one specific rsl it also compiles some of the classes. So, now I'm going into that one and just extracting the assets that will be shared. Whew. I'm so happy that there was a logical explanation. -James On May 24, 2007, at 2:54 PM, James Tu wrote: I'

[Flashcoders] class file updated, but .aso not updated?

2007-05-24 Thread James Tu
I'm having a problem that is not directly related to a previous thread on this list about ASO files. Here's my inheritance heirarchy... BaseClass -> VisualBaseClass -> ButtonMessagingBaseClass -> CardBase - > CardSpecial I'm on a Mac OSX 10.4.8 running Flash Professional v8.0. I've updated

Re: [Flashcoders] Scaling Up an Image in Proportion to width or height

2007-04-16 Thread James Tu
I found some code online which I turned into a function... This should give you the scale whether you are scaling up or down. You tell it the area you want your mc to fit into and it will give you a number back...all you have to do is then use that number...example: mc._xscale = mc._yscal

Re: [Flashcoders] flash and Arabic

2007-04-16 Thread James Tu
We tried the following: (we're embedding fonts in all cases, also we don't have require any input fields...we're just displaying Arabic) -Copied Arabic text into a static text field...flash actually reverses the characters. So we copied reversed text a static field. Then when we publishe

Re: [Flashcoders] Flash and levels

2007-03-28 Thread James Tu
Clip("foo", 10); trace(tmp); delete this.onEnterFrame; } } } My guess is that you're trying to create a clip on level 5 before it's fully loaded, and so it's failing. --- James Tu <[EMAIL PROTECTED]&

Re: [Flashcoders] Flash and levels

2007-03-28 Thread James Tu
to get a movieClip nasted into another so: var myClip:MovieClip = containerClip.createEmptyMovieClip ("otherMcInstance", containerClip.getNextHighestDepth); The second Parameter specifies the next Free Level inside the containerClip where the myClip will be nasted... Hope it

[Flashcoders] Flash and levels

2007-03-27 Thread James Tu
Is there a way to createEmptyMovieClip on a level other than _level0? I tried doing this: var tmc = _level5.createEmptyMovieClip("foo", 10); trace(tmc); //gives me undefined I also tried to load a blank .swf into _level5 and then creating a movieclip on _level5 and that didn't work either.

[Flashcoders] Flash Player 7 and Flash Player 8,9 issues.

2007-03-27 Thread James Tu
We're working on a project that uses Arabic. When we create Dynamic Text Fields and paste in Arabic text, it looks backwards in the authoring env, but when we publish for Player 7, the text reverses itself(correctly) and the glyphs look correct and neighboring glyphs connect to each other c

[Flashcoders] flash and Arabic

2007-03-26 Thread James Tu
We have an approach to deal with a list of 100 phrases in Arabic. When you copy and paste a phrase of Arabic into a Flash textbox, Flash reverses it! So, we first reversed the characters outside of Flash and then copied and pasted the phrases into Flash. Problem solved right? We'll, wh