Re: [Flashcoders] Are string literals and String objects the same in AS3?
On Apr 30, 2007, at 4:18 PM, David Bellerive wrote: I'm not 100% sure that's right but that's what I think it used to be in AS2. Now in AS3, I'm not sure but I think this might have changed. The generics blues. -- Julian 'Julik' Tarkhanov please send all personal mail to [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Are string literals and String objects the same in AS3?
On Apr 30, 2007, at 4:18 PM, David Bellerive wrote: I'm not 100% sure that's right but that's what I think it used to be in AS2. Now in AS3, I'm not sure but I think this might have changed. oops.. no I guess they call it boxing now generics is about collections but nevertheless -- Julian 'Julik' Tarkhanov please send all personal mail to [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] (no subject)
On 6-jul-2006, at 11:27, Adrian Park wrote: I encountered this strange quirk recently as well. I found the most reliable solution is to duplicate your project folder, open and recompile from that folder, close and continue working from your original folder and everything is fine (for a while)! No amount of deleting ASO cache solves it (in fact, some say it compounds the problem). This happens when you use the star import construct: import some.quirky.namespace.* // will reimport some classes, sometimes, depending on phases of the moon The compiler goes bonkers over that. If you want to ruin it to pieces and see it crash and burn, do this: import FP8.* ___ 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 ...
On 4-jun-2006, at 5:14, Stephen Ford wrote: Hi all, FIRSTLY (1) I have found, in numerous AS2.0 code examples, code that looks like the following ... [Event(click)] Shortly speaking they are square plugs for round gaps in ActionScript (lack of metaprogramming and introspection, among other things) -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Problem compiling the FLA when moved to a different machine
Hello Flashcoders. I am trying to copy my document to another machine and edit there, but when I try to build the movie I get the following errors all over the place: **Error** /Users/julik/Library/Application Support/Macromedia/Flash 8/en/Configuration/Classes/FP8/Number.as: Line 7: The class being compiled, 'Number', does not match the class that was imported, 'FP8.Number'. { etc. I get this for every built-in MM type and class that I use, and the movie (inevitably) compiles with errors. It does run, but partially (many things just refuse to work). It's remarkable that it complains only about the built-in classes. I tried deleting my UserConfig in Library and clear the ASO cache but to no avail. Both machines are Macs, Flash 8 with all the updates. Could someone please help me get my files on the go with me? ___ 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] Font jumping cross platform
On 27-apr-2006, at 18:59, Kevin Newman wrote: Most of the fonts that I use are not free or come from Adobe Font Folio OpenType edition. It doesn't happen with all fonts, but it is definitely a problem with the Macromedia programs (I think this is a problem in Freehand and Fireworks also, though I haven't tested that in a while) since this problem doesn't exist in other programs (like adobe's). So I really think this is a bug in the framework, and that workarounds should only be considered in that light (meaning, Adobe/Macromedia should fix this, so we don't have to employ workarounds). I'm also pretty sure that this happens with PostScript outline fonts (OpenType can contain either TrueType or PostScript outlines), but I'll keep a closer eye on that, and let you know if I find something out that differs from this description. Also, the fonts that I've converted with CrossFont have all always been Mac PostScript fonts. I originally thought this was a problem with CrossFont, but have since learne AFAIK, all font handling in MM apps on the Mac has remained 100% borked (that means: as in MacOS 7) since Flash MX hit the streets. I doubt any MM product properly supports OTF, and I am pretty sure all of them have broken Unicode font support. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Components do not behave
Ok, so I got the component thing running more or less. I now have a dozen of components (all using the same assets - such as bevels etc.). I only got a couple of problems to iron out. My components, though, do not inherit from UIObject (or other MM classes) - I try to avoid that to allow compilation with MTASC in th future without attachment to Flash IDE. First of all is the whole resizing business. I have to both resize the component in the init code and in the setSize - I still don't understand the relationship between the two. Right now how I have to do it: function initComponent():Void { // bla bla // rearrange components based on the new _width and _height } function setSize(nWidth:Number, nHeight:Number):Void { // bla bla // rearrange components based on the new _width and _height AGAIN } This is te only approach that works. The second problem is exporting SWC. Some SWCs work after export, some others don't. One, for instance, shows nothing on the Stage when included in another file, but works beautifully - the other shows up OK on the Stage but looks like in the authoring environment upon exporting. When I drag the symbols from my main document (where all the widgets get created) the work and show up fine. I wonder if there is some good documentation about creating SWCs somewhere, or if csomeone can explain to me what am I doing wrong. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Components do not behave
On 23-apr-2006, at 18:31, JesterXL wrote: If you don't extend UIObject, then what is your sizing implementation. UIObject handles that for you. Furthermore, you can compile mx components with MTASC if you don't want to have to write that stuff by yourself, or use another open source component set. UIComponent actually has it's own seperate variables for width and height values which allows you're component to use them vs. actually relaying on _width and _height to be preset. Typically, you use a bounding box movieclip on frame 1 to set the initial width and height and UIObject will remove it for you. I wonder - can I find the source code of UIObject somewhere? -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Components do not behave
On 23-apr-2006, at 19:06, Johannes Nel wrote: its on your machine. this is well documented do a google about the v2 source Thanks, found it in the classlib. Will try to investigate how MM handles all that. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Implementing GroupName for my own component
On 21-apr-2006, at 23:49, elibol wrote: I think the best way to implement this would be to have a RadioGroup class that would instantiate through static functions of the RadioButton class. A static variable of the RadioGroup class would manage RadioGroup instances, it would add and remove RadioGroup instances through a static API. A static function of the RadioButton would take the RadioButton instances radioGroupID property and check if it exists, if it does it would add the instance to the radio group, if not it would instantiate a new radio group. Each radio button would have an instance of the radio group they belonged to, when they were selected, they would just call a select() style function of their own radio group and submit their index/id to be activated. You should handle activation and deactivation of radio buttons from the radio group class. You should also implement a die() method which derefrences radio buttons from radio groups so that radio group instances are destroyed when they no longer contain any radio buttons. Hope this helps, Yeo, will try that, I just hoped there is a way to determine the siblings at runtime and avoid the whole referencing-dereferencing- registration-callbacks thing. Hope that will be possible with AS3. Attaching callbacks to the group instead of the buttons is a n interesting idea though. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Implementing GroupName for my own component
I would like to implement a radio-like component and provide a groupName for it (I don't use MM components because they do not fit my application). Is there a way to dynamically retrieve all siblings of the component's instance which have the same class (or subclass) of the component and the same groupName dynamically? Or will my best option be just implementing groupName as an accessor and refrencing dependent Radio buttons elsewhere? That is, if I have 5 instances of RadioCompnent inside a specific timeline, can I programmatically retrieve all of them? -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] XML-PHP-FLASH
On 20-apr-2006, at 18:43, Shaw, Matt (MTVN) wrote: Or don't write any XML at all. All the kids are using XML-RPC with Flash - it's the neatest! http://xmlrpcflash.sf.net And what about JSON? Did it make any inroads into Flash yet? Seems much more terse and useful for bare-struct juggling than XML. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Expose-like placement implementation
I had googled and googled but couldn't find anything remotely like it. Was there an attempt to implement placement akin to Apple's expose in AS? -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] setInterval intervalID type?
On 19-apr-2006, at 18:08, Merrill, Jason wrote: May be a dumb question, but what type of object is the intervalId that gets returned from setInterval()? It's a Number. -- Julian 'Julik' Tarkhanov me at julik.nl ___ 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] Zoom effect
On 19-apr-2006, at 19:04, [EMAIL PROTECTED] Ammor wrote: Hello, I’ am getting crazy achieving some kind of zoom effect on my MC !!! If you just create any MC on the stage like a rectangle 300*500 px and put the code below in an empty frame, it will work… But what i want to do is like setting new coordinates on the scaled MC so that it takes the _xmouse/_ymouse click as the new center. I mean : when the user clicks, it scales 150 percent but reposition it self according to the mouse click as if it was the area zoomed into ;-) Sorry, I hope I was understood !!! Any kind ideas ? I found Tweens working perfectly for this type of job. on(press) { import mx.transitions.Tween; import mx.transitions.easing.*; new Tween(this, _x, mx.transitions.easing.Regular.easeOut, this._x, _root._xmouse, 2, true); new Tween(this, _y, mx.transitions.easing.Regular.easeOut, this._y, _root._ymouse, 2, true); new Tween(this, _xscale, mx.transitions.easing.Regular.easeOut, this._xscale, this._xscale+10, 2, true); new Tween(this, _yscale, mx.transitions.easing.Regular.easeOut, this._yscale, this._yscale+10, 2, true); } -- Julian 'Julik' Tarkhanov me at julik.nl ___ 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] Arkanoid - paddle...
On 19-apr-2006, at 21:59, kariminal wrote: Hello, Im building an Arkanoid style game. In the original game the paddle's reaction surface seems to behave like a concave surface - when reacting with the ball. Do any of you have any tips or links to usefull resources to implement this function?. Don't know if it fits your bill but I would do it as follows (if you mean drawing a hollow area in the paddle). I would make the concave cutout a separate MC and squeeze it's _yscale to 0, put it's registration on the top. When the ball hits the paddle, the cutout would scale down and appear at the spot where tha ball touches the paddle. It's not very beutiful but should give you the desired effect. ___ 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] SWF framerate control
Is there a way to control the main framerate of a Flash object from HTML embed? In the app I am making I have to provide the users with the possibility to select the playback framerate (to which all the interface will be slaved as well), with the same interface file. Is there a way to control it or I will have to make a number of dummy SWFs with predefined framerates and load my GUI into it (so that the framerate of the loaded GUI is slaved to the dummy SWF)? The question is very simple but crucial - I don't want to do any special frame-quantization and such to simulate a different framerate within my SWF. FLV is not an option here either. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl ___ 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] Batch export SWCs
Hello again fine folks. Can someone enlighten me maybe - I got a document which contains my developed components (about a dozen) - I do all of the development in this .fla. When I want to export them to SWC I have to do it one by one - this is just one too many Ok for me. Maybe there is a JSFL script that handles this in batch fashion - i.e. select all the components to be exported, select the directory, done. -- Julian 'Julik' Tarkhanov me at julik.nl ___ 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] Batch export SWCs
On 18-apr-2006, at 19:51, JesterXL wrote: Look in the manual in Flash 8 under Extending Flash. You can loop through your Library and find the symbols and call exportSWC. fl.getDocumentDOM().library.items[0].exportSWC(file:///c|/tests/ my.swc); Brilliant, thanks - will try this one ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS2: Get Instance Name of Class?
On 4/7/06, Rifled Cloaca [EMAIL PROTECTED] wrote: All, Is there a way to get the instance name of a class from within the class? I need to refer to a variable by its absolute targetPath, but the instance name of the class is not known until runtime. class Foo { var results:String; var resultVar:String; function foo () { this.resultVar = _level0. + instanceName? + .results; } } // example myFoo = new Foo(); myFoo[resultVar] = Bar; How can I get instanceName? Thanks! If your class inherits from MovieClip you get _name for free. class Ball extends MovieClip { functuon ident():String { return [Ball] at + _name; } } ___ 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] Instantiate a class by string - SOLVED
On 12-apr-2006, at 17:05, Ian Thomas wrote: Import doesn't actually use the class per se - a solid reference of some sort (such as the declaration of a variable or the creation of an object) of that class suddenly means that it's actually been used, and so the compiler notes that it needs to be compiled and included in the output .swf. The same, as far as I can recall (it's been a while now), is true of Java. It seems logical that import makes the classes available in the context into which they are imported. What seems un-logical to me is that it's impossible to force burn-in of these classes even if they are not being called explicitly (with standard Flash means). As for Java - I don't see how this is relevant because every class gets compiled into a .class file and you can describe which classes a .jar contains (so they can be looked up inside the jar). Not so with an SWF which is an all-or-nothing :-) ___ 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] Instantiate a class by string - SOLVED
On 12-apr-2006, at 19:10, Scott Hyndman wrote: SWF is more flexible than you give it credit for. A swf can reference external resources just as a jar can. You can, in effect, write your own class loader that satisfies dependencies at runtime just by splitting all your classes into multiple swfs. A swf IS a jar, just not so nice to work with. Yep, I know. I gotta stop bitching and get the job done :-) ___ 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] Instantiate a class by string - SOLVED
On 12-apr-2006, at 19:59, JesterXL wrote: To force a class to be imported even if no one uses it: import com.company.project.YourClass; static private var depend:YourClass; Ok, now this looks classy! Forces the class to be burned in and yet shows why it's there. Thanks a bunch! -- Julian 'Julik' Tarkhanov me at julik.nl ___ 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] Modifying flash's chain of events
On 11-apr-2006, at 20:40, Patrick Jean wrote: Greetings. Is there a way to force flash' events to keep going down the chain even if a clip is trapping the message ? by example, if you have CLIP A , and CLIP B contained within CLIP A. CLIP A simply have a on(rollOver) CLIP B have a on(Press) By default, CLIP B will never receive the onPress event. Is there a work-around that problem ? In Director I was using the pass method, very convenient for things like that as you specify that you want the chain of messages to keep going down. In Flash all events are captured. You can try to forward the event to the member manually using hitTest. Here is a good article that might get you started: http://www.senocular.com/flash/tutorials/buttoncapturing/ ___ 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] Instantiate a class by string
Hello flashcoders. A simple question perhaps but couldn't figure it out by myself. How can I instantiate a class having it's qname? Say I know that I need an instance of org.foo.Bar, how can I summon it? I tried doing: var anObject = new (eval(org.foo.Bar)); but I get undefined in return. Maybe there is someobscure method like Class.instantiate(aQname) that I overlooked? TIA -- Julian 'Julik' Tarkhanov me at julik.nl ___ 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] Components and load order
Hello Flashcoders! I recently joinde the list and hoped to find the answer to some questions that bother me, hope they aren't to boring or stupid :-)] I wanted to ask - how do you handle components in relation to load orde? I recently developed a combobox that doesn't work with one load order, but does work with the other, I sisuepc this is happening because the clips within it are not available when the movie is loaded in a certain order. What should I do? Establish the linking to the clips within an onEnterFrame handler instead of the constructor? For now I initialize my components like this (I do not inherit the UIComponent): class MyCombo extends Widget { function initWidget() { // is a constructor delegate, gets called only once // code to init the movie clips forming the parts of a combo } } Can someone point me to a good read on how to handle different load orders when building components? (ideally I would like my component to work with both top-down and bottom-up). Articles on component lifecycle on the Macromedia site are a little, ehm, incomplete. -- Julian 'Julik' Tarkhanov me at julik.nl ___ 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