RE: [Flashcoders] can I know if I class/package has been imported in aswf?
Is it possible to know if a class is being used in a flash movie? If so, how? Put a trace statement in the constructor of the class: class foo { function foo() { trace(new foo); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tell me more about _global
Hi, I think there are very good reasons to make a class for it, some of them mentioned before: It allows you to: - debug values stored - add listeners for changes/updates - detect collisions - track where changes made are coming from, or at least when they happen - implement serialization/deserialization over a collection of these values - adheres to the idea of requesting rather than simply taking which is good practice in general Greetz Hans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Morten Barklund TBWA\Play Sent: Wednesday, February 01, 2006 9:43 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Tell me more about _global Steven Sacks wrote: Making a class for globals is lame. I don't get why people do stuff like that. It's completely unnecessary. Here's how I make a namespace for globals in one line. On frame one of the root timeline: _global.APP = {}; Wow. That was so hard. I can make the same, now it's just OOP: dynamic class APP {} Wow, that was easy - and without even mentioning _global. They do exactly the same; will you still recommend your version over mine? :) -- Morten Barklund - Information Architect - TBWA\Play Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 ___ 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 Driven Application Driving me crazy :)
Just clarify a few tings on this. This is an App running on a CD - that queries a DB which is online? I'm guessing that part of the problem is the sheer volume of data being passed back to the App. XML is great when there is a reasonable amount of data to parse, is this gets significantly large, then the XML object can take a while to load and parse this data in. If this is the case, can you break the data up into smaller chunks ? Also what are you doing to 'search' the XML once it's loaded. If you haven't already done so look at Xpath - makes searching so much easier. Finally, if there is a server side tier to this, think about FlashRemoting - it will show a significant performance improvement for you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ing. Mario Falomir Sent: 31 January 2006 17:34 To: Flashcoders mailing list Subject: [Flashcoders] XML Driven Application Driving me crazy :) Hi, I need some advice from you guys :) I have an XML Driven FLash APP, basically it's a tool that displays charts and data in grids, containers, etc...that my client will handout in CDs. So at the beginning of the development process I thought XML would suit perfectly in the purpose of this app. But it happened that the DB used to generate the apporpiate XML files that my app consume had grown amazingly so eventually my app (exclusively the part that searches for an specific registry entry) turns very slow and sometimes (rarely but happens) it crashes due to the exhaustive loops and interations i do in order to the search/display data of an specific registry and filtering functions. So i thouhgt, upon your experience, to ask how would you do to optimize this thing or what its the best way to do the queries to an XML in order smooth things a little bit more :) Or what approaches (or guidelines ) do you use when you have to develop an app. that will have XML to serve as its DB. Do you load everysingle XML at once ? on demand ? etc ? Thanks in advanced! Mario ___ 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] Component and Live Preview problems
Explore native MM livePreview code to see in details how it works. Also, I think you should check items in contents, which is the clip you really see in LivePreview, rather then xch, which manages Preperties/Component inspector. Here's a code I used in similar situation (just to see what you have on the screen in IDE): if(_global.isLivePreview){ for (var i in _root.xch) { trace(_root.xch[+i+] = +_root.xch[i]); } for (var i in _root.contents){ trace(_root.contents[ +i+ ] = +_root.contents[i); } } -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. [EMAIL PROTECTED] wrote: Thanks for the reply. I am using UIComponent. The code that is in the live preview fla is: [code] function onUpdate() { pushBtn.buttonText_txt.text = xch.btnLabel; } [/code] The strange thing is that in the component's FLA I can drag as many instances from the library on the stage and it works fine. Once I convert it to SWC, the problems start. I did trace out the the xch properties, but I couldn't seem to find the component's name. I did read the other replies to my post and looks like it is somewhat of a flawed design and it has to be hacked to get it to work properly. Thanks for the assistance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] v2 components - are you kidding me?
'something that can play nicely with stuff that other people are likely to use' well, that's a good point, but it's hard to tell which stuff people are likely to use, allthough macromedia's frameworks seems a good bet. but perhaps take a look at some opensource projects, i think that's a definitely a nice way to play. I haven't looked much into it, but aswing ( http://www.osflash.org/aswing) seems to be promising. But perhaps (v2) components aren't that evil though, I should get more into it someday :). -Meinte On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: Meinte, Thanks for the tip. I don't intend to use v2 components myself. I am trying to make a component for distribution, and I would like to make something that can play nicely with stuff that other people are likely to use. Jason On Jan 31, 2006, at 5:11 PM, [EMAIL PROTECTED] wrote: From: Meinte van't Kruis [EMAIL PROTECTED] Subject: Re: [Flashcoders] v2 components - are you kidding me? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 then maybe your question should be: Why do I use V2 components? -Meinte (the first time I even tried using components was when I discovered the things it put on the highest level(of _root in that case), plus i saw my flash movie go from 5 to 60kb, I never looked at components again after that.) On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: My main question is: why does opening a v2 combobox subsequently cause an onRollOut event to fire every time I click a button or movieclip, and is there any way to prevent that? Some other questions I have are: Is there anything that the combobox does right? Why can I not use getNextHighestDepth anymore when I put a component on the stage? Why does DepthManager.kCursor exist when I can still attach all kinds of objects above that depth? Why can I attach movie clips at depths that are outside the valid range? ___ 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] Free Flex???
That's absolutely brilliant news. Ian On 2/1/06, David Rorex [EMAIL PROTECTED] wrote: yes, the command-line compiler framework will be free. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] interfaces and objects
Hi, i'm using a collection, which requires items of type Object to be added. I've declared an interface which gives me something like: - interface IWorldPart - a class implementing WorldPart now somewhere else i do: var myPart:IWorldPart = new SomeWorldPartSubclass(); myCollection.addItem (myPart); The last statement gives a type error, if i replace the first with var myPart:WorldPart = new ... all goes well. From what I can remember from Java (which I admit, seems ages ago ;)), this first should be no problem at all. Does anyone know why this is not allowed in Flash? thanks in advance. Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] photoshop-like filters
Does anyone know where I can find (or buy) source as-code for photoshop-like filters (for use in fp8). I'm especially looking for a good sharpen filter, and some artistic filters (like watercolor, dry brush, etc...) Grtz, Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Noise Cancelling in Flash
You know you guys are so cool. I am thinking that it would require quite a good mic (eg better than the one on my laptop) I might look into the new 8.5 waveform stuff as I am quite interested in this kind of stuff. I might even offer a noise cancelling application in the future. Today I have some closed back headphones which help. They are load enough to block the noise. Apologies to anyone who thought this thread was a waste of time, but Flash has become so good of late that many more new applications unimaginable a couple of years ago can be thought of as possible. Imagine being able to integrate MP3 playback and noise cancelling on your mobile phone. I have many thoughts like this. Once again you guys are great and this list is so useful. Regards Steve On 1 Feb 2006, at 0:57, David Rorex wrote: 8.5 actually provides write as well as read access to the waveforms? I haven't looked into it much, but i've only seen people making visualizations of sounds, not actually modifying or generating them in real-time. -David R On 1/31/06, ryanm [EMAIL PROTECTED] wrote: I wondered whether noise cancelling was possible in Flash using the Microphone functionality? Not at present. However, if v8.5 offers binary access to the waveform, you could use any of a dozen standard noise cancelling algorhithms on them, or you could do your own by inverting the waveform and clipping at a low amplitude, then combine the waveforms, kind of like a noise gate (only sounds above a certain volume get through). Or you could add low pass and high pass filters to remove sounds outside of the range of the human voice. And so on. Without low level access to the waveform, though, you're SOL. ryanm ___ 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] interfaces and objects
Um... not quite sure what you're up to here - but it sounds like you're getting a bit confused between IWorldPart and WorldPart. What you need is: interface IWorldPart class SomeWorldPartSubclass implements IWorldPart then var myPart:IWorldPart = new SomeWorldPartSubclass(); should be fine. _OR_ interface WorldPart class SomeWorldPartSubclass implements WorldPart then var myPart:WorldPart = new SomeWorldPartSubclass(); Not quite sure why your description mentions both IWorldPart and WorldPart - unless WorldPart implements IWorldPart..? In which case you're looking for: interface IWorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then either var myPart:WorldPart = new SomeWorldPartSubclass(); or var myPart:IWorldPart = new SomeWorldPartSubclass(); should both work... HTH, Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, i'm using a collection, which requires items of type Object to be added. I've declared an interface which gives me something like: - interface IWorldPart - a class implementing WorldPart now somewhere else i do: var myPart:IWorldPart = new SomeWorldPartSubclass(); myCollection.addItem (myPart); The last statement gives a type error, if i replace the first with var myPart:WorldPart = new ... all goes well. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] interfaces and objects
Well, you can't instanciate an interface, you need first a concrete class that implements the interface... Your code should be: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:SomeWorldPartSubclass = new SomeWorldPartSubclass(); myCollection.addItem(myPart); j.c.wichman a écrit : Hi, i'm using a collection, which requires items of type Object to be added. I've declared an interface which gives me something like: - interface IWorldPart - a class implementing WorldPart now somewhere else i do: var myPart:IWorldPart = new SomeWorldPartSubclass(); myCollection.addItem (myPart); The last statement gives a type error, if i replace the first with var myPart:WorldPart = new ... all goes well. From what I can remember from Java (which I admit, seems ages ago ;)), this first should be no problem at all. Does anyone know why this is not allowed in Flash? thanks in advance. Hans ___ 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] interfaces and objects
Well, you can't instanciate an interface, you need first a concrete class that implements the interface... While you cannot instantiate an interface, you can assign an object that is an instance of a class that does implement the interface to a variable that is typed to the interface. Your code should be: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:SomeWorldPartSubclass = new SomeWorldPartSubclass(); myCollection.addItem(myPart); I think what the OP is saying is that he wants to do this (based on your example): var myPart:IWorldPart = new SomeWorldPartSubclass(); ...which compiles just fine, but the compiler baulks at the following statement... myCollection.addItem(myPart); If I read correctly, the addItem method is expecting one argument of type Object, and the compiler seems to think that an object of type IWorldPart (i.e. of a class implementing the IWorldPart interface) cannot be stored in a variable of type Object. I don't have time to test this, but if this really is the case then it's a compiler bug. -- Steve Webster Head of Development Featurecreep Ltd. www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] interfaces and objects
No, you can't instantiate an interface. But I don't think Hans was doing that. There's no problem with typing: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:IWorldPart = new SomeWorldPartSubclass(); /* Note INTERFACE-typed var, not concrete */ myCollection.addItem(myPart); Works fine for me on a quick test. A sanity check of trace(myPart instanceof Object); //traces true shows that you should be able to use the myPart variable everywhere that an Object is expected. Ian On 2/1/06, Julien Vignali [EMAIL PROTECTED] wrote: Well, you can't instanciate an interface, you need first a concrete class that implements the interface... Your code should be: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:SomeWorldPartSubclass = new SomeWorldPartSubclass(); myCollection.addItem(myPart); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] interfaces and objects
Hi, No confusion here ;) except maybe for my fuzzy explanation ;). I did: interface IWorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then either var myPart:WorldPart = new SomeWorldPartSubclass(); or var myPart:IWorldPart = new SomeWorldPartSubclass(); As you described, however collection.addItem (myPart) only works in the first case and not in the second. Probably becoz flash thinks IWorldPart is not an object. I changed it to : var myPart:Object = new SomeWorldPartSubclass(); And it works fine (just as var myPart:WorldPart = new SomeWorldPartSubclass();) by the way. Thanks for your comments, H -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Wednesday, February 01, 2006 12:36 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] interfaces and objects Um... not quite sure what you're up to here - but it sounds like you're getting a bit confused between IWorldPart and WorldPart. What you need is: interface IWorldPart class SomeWorldPartSubclass implements IWorldPart then var myPart:IWorldPart = new SomeWorldPartSubclass(); should be fine. _OR_ interface WorldPart class SomeWorldPartSubclass implements WorldPart then var myPart:WorldPart = new SomeWorldPartSubclass(); Not quite sure why your description mentions both IWorldPart and WorldPart - unless WorldPart implements IWorldPart..? In which case you're looking for: interface IWorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then either var myPart:WorldPart = new SomeWorldPartSubclass(); or var myPart:IWorldPart = new SomeWorldPartSubclass(); should both work... HTH, Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, i'm using a collection, which requires items of type Object to be added. I've declared an interface which gives me something like: - interface IWorldPart - a class implementing WorldPart now somewhere else i do: var myPart:IWorldPart = new SomeWorldPartSubclass(); myCollection.addItem (myPart); The last statement gives a type error, if i replace the first with var myPart:WorldPart = new ... all goes well. ___ 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] WebServices Connector / Error Msg ´s
Hi, I´m using the WebService Connector to get some data from a service. I need to have three params to get the Data, but the problem is that two of those params are a username and a password. Whenever the pass and the user name are incorrect it gives me an error that can´t load ( http://www.myPage.com/services.php;). My question is: How can i control the component (Connector) so that i can create a Text Message informing the user that the password or the username is incorrect? I was thinking in having an EventListener to the component but i´m not having many luck with my code This is what i have till now: user.text = 1; pass.text = 123456; numerador.text = 51859; Listener.onResult = function (result) { trace (Result: + result); }; Listener.onFault = function (fault) { trace (fault: + fault.faultString); }; Listener.onStatus = function (info) { trace (info: + info); }; Listener = new Object (); ws.addEventListener (Listener); Thanks for the help. -- Mário Jorge Icq: 164987050 Msn + Mail: [EMAIL PROTECTED] Web: http://www.beedigital.net Blog: http://www.beedigital.net/blog ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] interfaces and objects
Hi, I know u can't instantiate an interface, which wasnt what I was trying to do ;), I was declaring a variable to be of type SomeInterface (instantiating it with SomeConcreteClass), which apparently is not regarded by flash then of being of type Object as well. Got it figured out now ;) Thanks H -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: Wednesday, February 01, 2006 12:49 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] interfaces and objects Well, you can't instanciate an interface, you need first a concrete class that implements the interface... Your code should be: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:SomeWorldPartSubclass = new SomeWorldPartSubclass(); myCollection.addItem(myPart); j.c.wichman a écrit : Hi, i'm using a collection, which requires items of type Object to be added. I've declared an interface which gives me something like: - interface IWorldPart - a class implementing WorldPart now somewhere else i do: var myPart:IWorldPart = new SomeWorldPartSubclass(); myCollection.addItem (myPart); The last statement gives a type error, if i replace the first with var myPart:WorldPart = new ... all goes well. From what I can remember from Java (which I admit, seems ages ago ;)), this first should be no problem at all. Does anyone know why this is not allowed in Flash? thanks in advance. Hans ___ 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] interfaces and objects
Then as Steve says, sounds like a compiler bug. Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, No confusion here ;) except maybe for my fuzzy explanation ;). I did: interface IWorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then either var myPart:WorldPart = new SomeWorldPartSubclass(); or var myPart:IWorldPart = new SomeWorldPartSubclass(); As you described, however collection.addItem (myPart) only works in the first case and not in the second. Probably becoz flash thinks IWorldPart is not an object. I changed it to : var myPart:Object = new SomeWorldPartSubclass(); And it works fine (just as var myPart:WorldPart = new SomeWorldPartSubclass();) by the way. Thanks for your comments, H ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] interfaces and objects
Hi Ian, Which flash version are you using? I had other problems yesterday with extending CollectionImpl due to my flash version (mx 2004), which worked just fine in flash 8. Might be the same in this case. Are you using 7 or 8? Thanks! Hans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Wednesday, February 01, 2006 1:05 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] interfaces and objects No, you can't instantiate an interface. But I don't think Hans was doing that. There's no problem with typing: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:IWorldPart = new SomeWorldPartSubclass(); /* Note INTERFACE-typed var, not concrete */ myCollection.addItem(myPart); Works fine for me on a quick test. A sanity check of trace(myPart instanceof Object); //traces true shows that you should be able to use the myPart variable everywhere that an Object is expected. Ian On 2/1/06, Julien Vignali [EMAIL PROTECTED] wrote: Well, you can't instanciate an interface, you need first a concrete class that implements the interface... Your code should be: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:SomeWorldPartSubclass = new SomeWorldPartSubclass(); myCollection.addItem(myPart); ___ 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] interfaces and objects
But it should. :-) Like I said, my quick test of var myPart:SomeInterface=new SomeConcreteImplementingSomeInterface(); trace(myPart instanceof Object); Traces 'true'. Which is what I'd expect. I really don't understand why you're getting an error with myCollection. I know you've solved your immediate problem - but this is niggling at me now... ;-) Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, I know u can't instantiate an interface, which wasn't what I was trying to do ;), I was declaring a variable to be of type SomeInterface (instantiating it with SomeConcreteClass), which apparently is not regarded by flash then of being of type Object as well. Got it figured out now ;) Thanks H ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] interfaces and objects
Yup, sorry it was my mistake... (I read the message too fast) ;-) j.c.wichman a écrit : Hi, I know u can't instantiate an interface, which wasn’t what I was trying to do ;), I was declaring a variable to be of type SomeInterface (instantiating it with SomeConcreteClass), which apparently is not regarded by flash then of being of type Object as well. Got it figured out now ;) Thanks H -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Vignali Sent: Wednesday, February 01, 2006 12:49 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] interfaces and objects Well, you can't instanciate an interface, you need first a concrete class that implements the interface... Your code should be: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:SomeWorldPartSubclass = new SomeWorldPartSubclass(); myCollection.addItem(myPart); j.c.wichman a écrit : Hi, i'm using a collection, which requires items of type Object to be added. I've declared an interface which gives me something like: - interface IWorldPart - a class implementing WorldPart now somewhere else i do: var myPart:IWorldPart = new SomeWorldPartSubclass(); myCollection.addItem (myPart); The last statement gives a type error, if i replace the first with var myPart:WorldPart = new ... all goes well. From what I can remember from Java (which I admit, seems ages ago ;)), this first should be no problem at all. Does anyone know why this is not allowed in Flash? thanks in advance. Hans ___ 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] interfaces and objects
Hi, At me too ;), it's indeed flash 7 compiler bug it seems, it compiles fine in flash 8. Time for me to switch ;). Greetz Hans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Wednesday, February 01, 2006 1:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] interfaces and objects But it should. :-) Like I said, my quick test of var myPart:SomeInterface=new SomeConcreteImplementingSomeInterface(); trace(myPart instanceof Object); Traces 'true'. Which is what I'd expect. I really don't understand why you're getting an error with myCollection. I know you've solved your immediate problem - but this is niggling at me now... ;-) Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, I know u can't instantiate an interface, which wasn't what I was trying to do ;), I was declaring a variable to be of type SomeInterface (instantiating it with SomeConcreteClass), which apparently is not regarded by flash then of being of type Object as well. Got it figured out now ;) Thanks H ___ 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] interfaces and objects
Hi, Yes steve was completely right about that. Thanks all! H -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Wednesday, February 01, 2006 1:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] interfaces and objects Then as Steve says, sounds like a compiler bug. Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, No confusion here ;) except maybe for my fuzzy explanation ;). I did: interface IWorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then either var myPart:WorldPart = new SomeWorldPartSubclass(); or var myPart:IWorldPart = new SomeWorldPartSubclass(); As you described, however collection.addItem (myPart) only works in the first case and not in the second. Probably becoz flash thinks IWorldPart is not an object. I changed it to : var myPart:Object = new SomeWorldPartSubclass(); And it works fine (just as var myPart:WorldPart = new SomeWorldPartSubclass();) by the way. Thanks for your comments, H ___ 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] interfaces and objects
MX2004 Cheers, Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi Ian, Which flash version are you using? I had other problems yesterday with extending CollectionImpl due to my flash version (mx 2004), which worked just fine in flash 8. Might be the same in this case. Are you using 7 or 8? Thanks! Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] interfaces and objects
'Fraid not. One to chalk down to experience, I guess. Oh well. I'm making the move to 8 shortly myself, once this latest crop of projects are out of the way... Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Life is so unfair :) I had to switch to flash 8 to make it go away... My mind finally at piece... And now you tell me that it wasn't mx2004 :), please tell me you are a mac user ;)) Greetz Hans ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] online security development needed
There was a pretty good discussion regarding Flash and security on Flash kit forums. Here is a link: http://www.flashkit.com/board/showthread.php?t=632535 Hope it will help. Igor V aka The Helmsman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Flashgrrl Sent: Tuesday, January 31, 2006 8:37 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] online security development needed Good day everyone, I am involved in an online education project. The developer who was building the backbone for the past several months has bowed out of the project leaving us back at square one. The good news is that there is now a clean slate for someone new. wry grin I have a clear outline of what is needed but do not have the skills to ensure the level of protection necessary to safeguard the online lesson plans and virtual classroom materials. If you have expertise in this area, I'd love to chat off-list! (Keep in mind that this is a truly online project. The company is based in Australia so communication will be done mainly via email.) Thanking you in advance, Flashgrrl Send instant messages to your online friends http://au.messenger.yahoo.com ___ 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] Re:AS3 reference live docs missing?
It seems that they found a bug :) somewere and now they change documentation because of the bug fix they done :) Yesterday I've tried to find documentation on binary sockets in AS3 and all links to reference were broken Igor V aka The Helmsman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Hamer Sent: Wednesday, February 01, 2006 8:04 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Re:AS3 reference live docs missing? fyi ... the link is back up: http://livedocs.macromedia.com/labs/1/flex/langref/ My guess is that Adobe had it off-line in order to put up Flex 2 Beta 1. ___ 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] v2 components - are you kidding me?
mCom components are an attractive alternative: http://www.metaliq.com/mCOM/ These were formerly known as 'glic'. Supposedly they are easier to skin, too. Mike On 2/1/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: 'something that can play nicely with stuff that other people are likely to use' well, that's a good point, but it's hard to tell which stuff people are likely to use, allthough macromedia's frameworks seems a good bet. but perhaps take a look at some opensource projects, i think that's a definitely a nice way to play. I haven't looked much into it, but aswing ( http://www.osflash.org/aswing) seems to be promising. But perhaps (v2) components aren't that evil though, I should get more into it someday :). -Meinte On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: Meinte, Thanks for the tip. I don't intend to use v2 components myself. I am trying to make a component for distribution, and I would like to make something that can play nicely with stuff that other people are likely to use. Jason On Jan 31, 2006, at 5:11 PM, [EMAIL PROTECTED] wrote: From: Meinte van't Kruis [EMAIL PROTECTED] Subject: Re: [Flashcoders] v2 components - are you kidding me? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 then maybe your question should be: Why do I use V2 components? -Meinte (the first time I even tried using components was when I discovered the things it put on the highest level(of _root in that case), plus i saw my flash movie go from 5 to 60kb, I never looked at components again after that.) On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: My main question is: why does opening a v2 combobox subsequently cause an onRollOut event to fire every time I click a button or movieclip, and is there any way to prevent that? Some other questions I have are: Is there anything that the combobox does right? Why can I not use getNextHighestDepth anymore when I put a component on the stage? Why does DepthManager.kCursor exist when I can still attach all kinds of objects above that depth? Why can I attach movie clips at depths that are outside the valid range? ___ 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 -- Mike -- http://www.mikebritton.com http://www.mikenkim.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] named anchor with dynamic text field - Possible?
Sajiid, Understand that this is for a daily business news site, paid for by subscribers; about three reporters generate 10~15 stories per day. Stories and headlines are stored in a database and fetched for display by date. The retrieval is done with a PHP script which feeds an XML stream to the movie. Within the movie the XML is parsed and stored in two parallel arrays, one for headlines, the other for the stories. The news is presented in two TextAreas, the left one holding the headlines, the right one the associated news story. The headlines are created by processing the array of headlines, writing out each as follows: A HREF='asfunction:_root.addStory, + i + 'b + tempLink + /A/bBRBR; Where i is the index of the array ( and the sole parameter allowed for asfunction() ) and tempLink is the headline text. The break tags space out the heads so that they are legible. Clicking on a headline calls addStory, the indices of the two arrays match, and it assigns the corresponding story to the story TextArea. Note that we retrieve at most 15~17 stories, most are around 500~750 words - thus it's only one hit on the server. The XML is parsed once, and headlines and stories are assigned to their respective arrays. Storage in parallel arrays means that when a headline is clicked there is next to no latency - all processing is local and the story appears near-instantaneously. It's quite possible, if one is a fast reader, to bang down the list of headlines and quickly scan the lead paras in 90 sec or so. This is probably more than you want or need to knnow. Others may have different strategies, but this works. Oh, and we did it all in Flash because the first thing the movie does is authenticate the user, the text cannot be cut/pasted, and the material which is created and owned by allnovascotia.com stays with allnovascotia.com. Regards - Miles At 02:32 PM 1/31/2006, Sajid Saiyed wrote: Thanks Miles, That saves me from trying :) If there is any workaround, I would be interested. -- Sajid On 1/31/06, Miles Thompson [EMAIL PROTECTED] wrote: At 08:45 AM 1/31/2006, Sajid Saiyed wrote: Hi, Is it possible to create named anchors in dynamic text field? Something similar to HTML named anchors where a link in the text jumps to another position with that anchor name. I searched the archives but could not get an answer. -- Sajid No -- tried last fall, was hoping to link a list of headlines to stories. Links can be used to trigger asfunction() or to do something in the browser. Miles -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.14.25/246 - Release Date: 1/30/2006 ___ 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 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 1/31/2006 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Using JSFL
I am curious I am running jsfl scripts to attach swfs to a main fla file and it seems I have run into an issue. On a few of the attached swfs some of the static text being a $ is being converted for some reason into a graphic and erroring out updates to the other static text. Does anyone have any ideas or experience with this? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XML Driven Application Driving me crazy :)
This won't help with the loading if the XML file is large, but it will help with the parsing - use xfactorstudios Xpath classes to access the nodes in the XML file (or hand-roll some code yourself) instead of parsing all of it at once. Also, try loading the XML files one at a time. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Pete Hotchkiss Sent: Wednesday, February 01, 2006 4:17 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] XML Driven Application Driving me crazy :) Just clarify a few tings on this. This is an App running on a CD - that queries a DB which is online? I'm guessing that part of the problem is the sheer volume of data being passed back to the App. XML is great when there is a reasonable amount of data to parse, is this gets significantly large, then the XML object can take a while to load and parse this data in. If this is the case, can you break the data up into smaller chunks ? Also what are you doing to 'search' the XML once it's loaded. If you haven't already done so look at Xpath - makes searching so much easier. Finally, if there is a server side tier to this, think about FlashRemoting - it will show a significant performance improvement for you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ing. Mario Falomir Sent: 31 January 2006 17:34 To: Flashcoders mailing list Subject: [Flashcoders] XML Driven Application Driving me crazy :) Hi, I need some advice from you guys :) I have an XML Driven FLash APP, basically it's a tool that displays charts and data in grids, containers, etc...that my client will handout in CDs. So at the beginning of the development process I thought XML would suit perfectly in the purpose of this app. But it happened that the DB used to generate the apporpiate XML files that my app consume had grown amazingly so eventually my app (exclusively the part that searches for an specific registry entry) turns very slow and sometimes (rarely but happens) it crashes due to the exhaustive loops and interations i do in order to the search/display data of an specific registry and filtering functions. So i thouhgt, upon your experience, to ask how would you do to optimize this thing or what its the best way to do the queries to an XML in order smooth things a little bit more :) Or what approaches (or guidelines ) do you use when you have to develop an app. that will have XML to serve as its DB. Do you load everysingle XML at once ? on demand ? etc ? Thanks in advanced! Mario ___ 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 NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Seeking a bit of drawing API inspiration...
Hi folks, I'm looking for a bit of inspiration to help me out with the drawing API. I've got a feature that's sort of like a painting tool - - User clicks the mouse - on mouse move, a filled circle is drawn on the canvas (using beginFill/curveTo/endFill) - User releases the mouse So essentially the user is drawing a trail of circles. (Just as a side note, it's actually a mask that's being drawn rather than a clip - probably makes no odds). I'd much prefer it if the effect stays as overlapping circles rather than as 'paint strokes'. The problem I have is simply a performance issue - when the user has drawn lots of circles the app slows down significantly. It's nothing to do with extra code on my part - it's just Flash (presumably) redrawing all those curves all the time. Flash appears to be redrawing each circle, rather than draw the 'union of the curves' of all the circles. By which I mean - if you completely paint over the whole paint area, Flash could get away with drawing a filled square - but clearly it isn't, it's drawing every single curve on top of each other. (It doesn't do the merging that it would if we were just drawing overlapping circles in the IDE). So an obvious optimisation would be to do some maths, merge each new circle into an existing list of curves, and throw away the unnecessary curves - then clear the canvas and redraw. I'm sure I could work that out eventually (with the help of Google!), but I suspect the maths to do this may actually be too slow to be of much use. So - any ideas/similar experiences/solutions? (This is MX04, rather than Flash 8, otherwise I'd be looking at drawing into bitmaps to solve the problem.) TIA, Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Player Version Penetration -- Comparison Stats
The recently published stats of Flash Player Version Penetration -- http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html -- certainly seem to indicate an impressive adoption rate for the Flash 8 Player (e.g. 45.2% in the US, and higher in Canada and Europe). It would be interesting to see the stats for the previous versions in the first 3-5 months after their release. Even better, I'd like to see the stats for each of the previous two players in their first year. Then perhaps we could attempt a rough forecast of how long it might take the Flash 8 Player to reach critical mass (which, of course, will vary for different developers and clients). ::. clive ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Enhanced stroke is not supported in this player
Hi list... I'm making a swf in 8 and publishing for 7 and I keep getting this compile error: Enhanced stroke is not supported in this player Problem is, I can't figure out how to fix that. Any ideas? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Enhanced stroke is not supported in this player
Hi Michael, I'm making a swf in 8 and publishing for 7 and I keep getting this compile error: Enhanced stroke is not supported in this player Problem is, I can't figure out how to fix that. Any ideas? Somewhere in your symbols there is a stroke on a shape that is using the new enhanced stroke options introduced in Flash 8. From http://www.macromedia.com/software/flash/flashpro/productinfo/ features/: Enhanced stroke properties Select from a variety of cap and join types. Apply a gradient to a stroke as well as a fill. Render stroke intersections better with stroke hinting. Revert to using basic strokes and publish again; that should fix your problem. -- Steve Webster Head of Development Featurecreep Ltd. www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Enhanced stroke is not supported in this player
Hello, I'm new to this list but what your trying to do is publish a flash 8 only feature to the flash 7 player. You need to use the basic version of the stroke I don't have a copy of flash 8 on this system but have a fliddle with the stroke setting on your vector objects and this should calm flash's boots On 2/1/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Hi list... I'm making a swf in 8 and publishing for 7 and I keep getting this compile error: Enhanced stroke is not supported in this player Problem is, I can't figure out how to fix that. Any ideas? Thanks, - Michael M. ___ 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] Enhanced stroke is not supported in this player
http://weblogs.macromedia.com/sfegette/archives/2006/01/targets_and_fla.cfm - Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, February 01, 2006 10:29 AM Subject: [Flashcoders] Enhanced stroke is not supported in this player Hi list... I'm making a swf in 8 and publishing for 7 and I keep getting this compile error: Enhanced stroke is not supported in this player Problem is, I can't figure out how to fix that. Any ideas? Thanks, - Michael M. ___ 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] Player Version Penetration -- Comparison Stats
http://web.archive.org/web/20040211234604/http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html hth, mark On 2/1/06, Clive Sweeney [EMAIL PROTECTED] wrote: The recently published stats of Flash Player Version Penetration -- http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html -- certainly seem to indicate an impressive adoption rate for the Flash 8 Player (e.g. 45.2% in the US, and higher in Canada and Europe). It would be interesting to see the stats for the previous versions in the first 3-5 months after their release. Even better, I'd like to see the stats for each of the previous two players in their first year. Then perhaps we could attempt a rough forecast of how long it might take the Flash 8 Player to reach critical mass (which, of course, will vary for different developers and clients). ::. clive ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scope question
My guess would be these lines: var xdiff:Number = _root._xmouse-this._x; var ydiff:Number = _root._ymouse-this._y; Unless the center of your holder mc is at (0,0), then your code will be off. Try changing this._x to _parent._x and the same for the _y. You could also build a more flexible version using the localToGlobal function. That would allow you to nest the arrow clip as much as you want. -- ~Trout http://www.amongtrout.com On 1/31/06, Flash guru [EMAIL PROTECTED] wrote: Hey all, Simple question that I just don't get. I have a simple movie clip of an arrow and my code works fine when it's on stage. For some reason when i put the movie clip in a holder clip my code doesn't work as it should. I know it's a scope thing just don't know how to fix it. Delagate maybe? any help would sweet thanks //arrow_mc.onMouseMove = lookMouse; holder.arrow_mc.onMouseMove = lookMouse; //function that rotates any object that calls it toward the mouse position function lookMouse(){ updateAfterEvent(); var xdiff:Number = _root._xmouse-this._x; var ydiff:Number = _root._ymouse-this._y; var angle:Number = Math.atan2(ydiff, xdiff); //Convert to degrees angle = angle*180/Math.PI; trace(angle); this._rotation = angle; }; ___ 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] Player Version Penetration -- Comparison Stats
Does anyone know exactly what differences there are between 7 and 8 that might make 8.5 adoption faster than 8 adoption? My recollection is that there is some improvement in 8 in this regard, but I am not sure. Regards Hank On 2/1/06, Mark Winterhalder [EMAIL PROTECTED] wrote: http://web.archive.org/web/20040211234604/http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html hth, mark On 2/1/06, Clive Sweeney [EMAIL PROTECTED] wrote: The recently published stats of Flash Player Version Penetration -- http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html -- certainly seem to indicate an impressive adoption rate for the Flash 8 Player (e.g. 45.2% in the US, and higher in Canada and Europe). It would be interesting to see the stats for the previous versions in the first 3-5 months after their release. Even better, I'd like to see the stats for each of the previous two players in their first year. Then perhaps we could attempt a rough forecast of how long it might take the Flash 8 Player to reach critical mass (which, of course, will vary for different developers and clients). ::. clive ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ 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] Player Version Penetration -- Comparison Stats
auto update built in prompting the user to upgrade On 2/1/06, hank williams [EMAIL PROTECTED] wrote: Does anyone know exactly what differences there are between 7 and 8 that might make 8.5 adoption faster than 8 adoption? My recollection is that there is some improvement in 8 in this regard, but I am not sure. Regards Hank On 2/1/06, Mark Winterhalder [EMAIL PROTECTED] wrote: http://web.archive.org/web/20040211234604/http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html hth, mark On 2/1/06, Clive Sweeney [EMAIL PROTECTED] wrote: The recently published stats of Flash Player Version Penetration -- http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html -- certainly seem to indicate an impressive adoption rate for the Flash 8 Player (e.g. 45.2% in the US, and higher in Canada and Europe). It would be interesting to see the stats for the previous versions in the first 3-5 months after their release. Even better, I'd like to see the stats for each of the previous two players in their first year. Then perhaps we could attempt a rough forecast of how long it might take the Flash 8 Player to reach critical mass (which, of course, will vary for different developers and clients). ::. clive ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ 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 -- j:pn ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Driven Application Driving me crazy :)
This is a problem that has been addressed numerous times. I suggest that you search the archives at http://chattyfig.figleaf.com/ pipermail/flashcoders/ The summary is that the speed problem usually has little to do with the actual xml handling and more to do with how you are updating the user interface, especially if you are using components. Parse all of the XML data first, placing the data of interest into an array of objects. Only once you have built the array should you set your component's data provider or otherwise update the user interface. Nathan http://www.nathanderksen.com On Jan 31, 2006, at 9:33 AM, Ing. Mario Falomir wrote: Hi, I need some advice from you guys :) I have an XML Driven FLash APP, basically it's a tool that displays charts and data in grids, containers, etc...that my client will handout in CDs. So at the beginning of the development process I thought XML would suit perfectly in the purpose of this app. But it happened that the DB used to generate the apporpiate XML files that my app consume had grown amazingly so eventually my app (exclusively the part that searches for an specific registry entry) turns very slow and sometimes (rarely but happens) it crashes due to the exhaustive loops and interations i do in order to the search/ display data of an specific registry and filtering functions. So i thouhgt, upon your experience, to ask how would you do to optimize this thing or what its the best way to do the queries to an XML in order smooth things a little bit more :) Or what approaches (or guidelines ) do you use when you have to develop an app. that will have XML to serve as its DB. Do you load everysingle XML at once ? on demand ? etc ? Thanks in advanced! Mario ___ 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] Enhanced stroke is not supported in this player
Thanks everyone for the insight. But, I just can't figure out how to change the stroke settings. Where is that done? I've tried various combinations of the cap and join widgets on the prop inspector, but that isn't working. Where's the stroke setting in the UI? - MM You need to use the basic version of the stroke I don't have a copy of flash 8 on this system but have a fliddle with the stroke setting on your vector objects and this should calm flash's boots ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Player Version Penetration -- Comparison Stats
They only need 6.0.65.0 for that. - Original Message - From: Johannes Nel [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, February 01, 2006 10:58 AM Subject: Re: [Flashcoders] Player Version Penetration -- Comparison Stats auto update built in prompting the user to upgrade On 2/1/06, hank williams [EMAIL PROTECTED] wrote: Does anyone know exactly what differences there are between 7 and 8 that might make 8.5 adoption faster than 8 adoption? My recollection is that there is some improvement in 8 in this regard, but I am not sure. Regards Hank On 2/1/06, Mark Winterhalder [EMAIL PROTECTED] wrote: http://web.archive.org/web/20040211234604/http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html hth, mark On 2/1/06, Clive Sweeney [EMAIL PROTECTED] wrote: The recently published stats of Flash Player Version Penetration -- http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html -- certainly seem to indicate an impressive adoption rate for the Flash 8 Player (e.g. 45.2% in the US, and higher in Canada and Europe). It would be interesting to see the stats for the previous versions in the first 3-5 months after their release. Even better, I'd like to see the stats for each of the previous two players in their first year. Then perhaps we could attempt a rough forecast of how long it might take the Flash 8 Player to reach critical mass (which, of course, will vary for different developers and clients). ::. clive ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ 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 -- j:pn ___ 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] photoshop-like filters
Grant Skinner has a good sharpen filter class: http://www.gskinner.com/blog/archives/2005/12/source_code_sha_1.html On 2/1/06, Tom Versweyveld [EMAIL PROTECTED] wrote: Does anyone know where I can find (or buy) source as-code for photoshop-like filters (for use in fp8). I'm especially looking for a good sharpen filter, and some artistic filters (like watercolor, dry brush, etc...) Grtz, Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- - Lanny McNie ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tell me more about _global
Yah, as Ian mentioned, you lose all type checking with this technique. Also, you require that the object be in the global name space, while a singleton class does not clutter up the global namespace at all (var globalData = AppState.getInstance(); globalData.foo = bar). Finally, how do you alert other parts of the application to a change in a property? Setters and getters can do that for you automatically by broadcasting an event, but an anonymous object can't do that, you have to trigger the event yourself when you change the property. Not understanding why something is done in a particular way does not make it lame. Nathan http://www.nathanderksen.com On Jan 31, 2006, at 3:08 PM, Steven Sacks wrote: Making a class for globals is lame. I don't get why people do stuff like that. It's completely unnecessary. Here's how I make a namespace for globals in one line. On frame one of the root timeline: _global.APP = {}; Wow. That was so hard. APP.someglobal APP.someotherglobal APP.etc Nathan Derksen nderksen at sfu.ca wrote: I generally keep at least one singleton class which is responsible for storing global properties. I make those properties accessible with getters and setters so that I can allow changes in those properties to trigger events. You can't really do that if you use _global to store your data. Also, there is always a risk in name space collision if you load in other elements that also use global, where one or more variables use the same name and are thus inadvertently shared for different uses. You definitely do not want to use _global within any classes that you create, as that can cause entanglement, gives you no private protection, and does not properly contain your code into a well-defined unit with a well-defined API. Nathan http://www.nathanderksen.com ___ 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] Enhanced stroke is not supported in this player
You can also just save the file as the lower version and that works to get rid of the error. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael Sent: Wednesday, February 01, 2006 11:18 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Enhanced stroke is not supported in this player Thanks everyone for the insight. But, I just can't figure out how to change the stroke settings. Where is that done? I've tried various combinations of the cap and join widgets on the prop inspector, but that isn't working. Where's the stroke setting in the UI? - MM You need to use the basic version of the stroke I don't have a copy of flash 8 on this system but have a fliddle with the stroke setting on your vector objects and this should calm flash's boots ___ 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 Driven Application Driving me crazy :)
The summary is that the speed problem usually has little to do with the actual xml handling and more to do with how you are updating the user interface, I'm sorry, but I partially disagree with that statement based on my experience. Components can take some time to render, sure, but for me, most of my XML data loading time woes stem from the time it takes the player to load a large XML file. If I am using something to parse into objects, that takes even more time. Once the data is loaded into a variable/object/property in Flash, the time it takes to updating a component is far less of a concern - usually its lickity split. If you're not using components, its even faster. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Enhanced stroke is not supported in this player
Bingo! Thank you very much, Stacey. - MM You can also just save the file as the lower version and that works to get rid of the error. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] can I know if I class/package has been imported in a swf?
No. Is there a way for my code in my class to figure out if another class that I am not writing but whose name I know is being used in a swf. From: Steven Sacks [EMAIL PROTECTED] Subject: RE: [Flashcoders] can I know if I class/package has been imported in aswf? To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Is it possible to know if a class is being used in a flash movie? If so, how? Put a trace statement in the constructor of the class: class foo { function foo() { trace(new foo); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Driven Application Driving me crazy :)
Yah, agreed. I just know from experience on the various boards that one of the most common mistakes for people to make is to update a combo-box or data grid for each iteration of the xml parsing loop rather than waiting until the end. That can lock up the player tight, while if you wait till the end to set the data provider, even a quite sizable xml file generally won't cause the dreaded this app is running slowly alert. Nathan http://www.nathanderksen.com On Feb 1, 2006, at 8:28 AM, Merrill, Jason wrote: The summary is that the speed problem usually has little to do with the actual xml handling and more to do with how you are updating the user interface, I'm sorry, but I partially disagree with that statement based on my experience. Components can take some time to render, sure, but for me, most of my XML data loading time woes stem from the time it takes the player to load a large XML file. If I am using something to parse into objects, that takes even more time. Once the data is loaded into a variable/object/property in Flash, the time it takes to updating a component is far less of a concern - usually its lickity split. If you're not using components, its even faster. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] can I know if I class/package has been imported in a swf?
if (_global.path.to.class.Class != null typeof(_global.path.to.class.Class) == function)) { trace(CLASS EXISTS!); } -Original Message- From: [EMAIL PROTECTED] on behalf of Jason Rayles Sent: Wed 2/1/2006 11:33 AM To: flashcoders@chattyfig.figleaf.com Cc: Subject:RE: [Flashcoders] can I know if I class/package has been imported ina swf? No. Is there a way for my code in my class to figure out if another class that I am not writing but whose name I know is being used in a swf. From: Steven Sacks [EMAIL PROTECTED] Subject: RE: [Flashcoders] can I know if I class/package has been imported in aswf? To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Is it possible to know if a class is being used in a flash movie? If so, how? Put a trace statement in the constructor of the class: class foo { function foo() { trace(new foo); } } ___ 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] Creating Components - What am I over looking?
OK, I really am at a lose. There is some sort of property and or event/function that is getting called that I just am missing. I have created a simple component that extends MovieClip (NOT UIObject or UIComponent). If I scale the component in Flash (the IDE) there is no visible change to the component. Once I publish the component is scaled. I can accept that. But in my code, I have the visual part of my component size itself (via _width and _height) on EnterFrame. This is completely ignored. OR and here is where I might be all messed up, the component is being scaled as a whole after all the internal parts of the component are drawn. If this is the case how can I communicate with these top level component properties s that I can draw my component properly? I have tried getting the component _xscale and _width with no luck. Please school me. I want to pull my hair out and the documentation within Flash is not helping me. Thanks, Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] clearing variables from memory after use...
Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they slow the performance of my player. Is there a way to clear them after use? (or more specifically, the ones I don't need -- I could figure out how to specify that in the code) Thanks for putting up with my ignorance... --dan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Player Version Penetration -- Comparison Stats
Hi, There are several factors at work here: A) The primary thing that drives adoption of a new version of a Flash Player is content that requires that Player being deployed. I think that the dramatic advances in what is possible in Flash Player 8 -- especially the improved video -- led more developers/publishers/sites to take advantage of the new version triggering more downloads. B) Express Install! http://www.macromedia.com/devnet/flash/articles/fp8_detection.html C) Growth of broadband since the last major release We are seeing about double the rate of successful installs per day that we saw with the previous version! -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hank williams Sent: Wednesday, February 01, 2006 10:57 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Player Version Penetration -- Comparison Stats Does anyone know exactly what differences there are between 7 and 8 that might make 8.5 adoption faster than 8 adoption? My recollection is that there is some improvement in 8 in this regard, but I am not sure. Regards Hank On 2/1/06, Mark Winterhalder [EMAIL PROTECTED] wrote: http://web.archive.org/web/20040211234604/http://www.macromedia.com/s oftware/player_census/flashplayer/version_penetration.html hth, mark On 2/1/06, Clive Sweeney [EMAIL PROTECTED] wrote: The recently published stats of Flash Player Version Penetration -- http://www.macromedia.com/software/player_census/flashplayer/version _penetration.html -- certainly seem to indicate an impressive adoption rate for the Flash 8 Player (e.g. 45.2% in the US, and higher in Canada and Europe). It would be interesting to see the stats for the previous versions in the first 3-5 months after their release. Even better, I'd like to see the stats for each of the previous two players in their first year. Then perhaps we could attempt a rough forecast of how long it might take the Flash 8 Player to reach critical mass (which, of course, will vary for different developers and clients). ::. clive ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://snafoo.org/ jabber: [EMAIL PROTECTED] ___ 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 Driven Application Driving me crazy :)
To answer your question a bit more, there are a couple of approaches. One approach is to build in the filtering server-side, so that when you need a subset of the data for something, you send a request to the server, which does the filtering and only sends what is relevant as XML. This is useful if you rarely need to actually work with small subsets of data, not the full list. If that's not the case, then as I mentioned previously, load all the data, parsing it into an intermediate data set. You can then do fairly quick searches through that data and build a smaller data set to feed to your components. Alternately, there are XML XPath implementations out there that are designed to be able to search through XML data quickly. I personally prefer the build-your-own array of objects approach, though, as it gives me full control over how I work with the data, however others really like using XPath. Use whatever works for you :-) Nathan http://www.nathanderksen.com On Jan 31, 2006, at 9:33 AM, Ing. Mario Falomir wrote: Hi, I need some advice from you guys :) I have an XML Driven FLash APP, basically it's a tool that displays charts and data in grids, containers, etc...that my client will handout in CDs. So at the beginning of the development process I thought XML would suit perfectly in the purpose of this app. But it happened that the DB used to generate the apporpiate XML files that my app consume had grown amazingly so eventually my app (exclusively the part that searches for an specific registry entry) turns very slow and sometimes (rarely but happens) it crashes due to the exhaustive loops and interations i do in order to the search/ display data of an specific registry and filtering functions. So i thouhgt, upon your experience, to ask how would you do to optimize this thing or what its the best way to do the queries to an XML in order smooth things a little bit more :) Or what approaches (or guidelines ) do you use when you have to develop an app. that will have XML to serve as its DB. Do you load everysingle XML at once ? on demand ? etc ? Thanks in advanced! Mario ___ 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] clearing variables from memory after use...
dls schrieb: Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they slow the performance of my player. Is there a way to clear them after use? (or more specifically, the ones I don't need -- I could figure out how to specify that in the code) Oh my, this really is a matter in Flash... Since we have often experienced variable's values not being cleared after use, we do the following: my_var = null; // This first step probably is useless, but ALWAYS use DELETE! delete my_var; If the value contained within the variable is a movieclip, then make sure that this mc has an onUnload-handler that does the above with all variables and to avoid instances from floating in memory after having deleted, unloaded and removed them, if possible don't use static values! I have made the experience that static instances stay in memory after there is no reference to them left, since I set them all to null and then deleted them. Then, when I re-create an instance of such static stuff, it isn't created anew, but Flash uses the old piece that rests in memory. Maybe it's just that I don't really, really understand the concept of static, but I know it can lead to unpredictable and hard-to-track errors. Best regards, Roman. -- --- gosub communications gmbh | fredersdorfer str. 10 | 10243 berlin t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de --- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XML Driven Application Driving me crazy :)
Yep, the main part of the problem is the huge amount of data that it is handling, I guess... It doesnt query a DB , we generate all the needed info, such as catalogs for example, in the form of XML files. We did it this way because since its an app its going to be in CDs we did not want to force the end user to install MySQL (or whatever DBManager) and the required DB data in order to run the application, not to mention that the people that is going to use the app it's mainly politicians (PC = solitarie, word ) so installing extra stuff was not an option at all :) Anyway, phase 1 was completed , sometimes get a little slow, because all of the parsing, iterations, filling grids and charting upon the XML data, but the reason why I was looking for some suggestions it's because phase 2 of the project will involve more data :S and I have to follow the same XML approach, but i wanted to know how do you guys do to smooth things a little bit and make things more solid. Thanks for all your comments :) Mario ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] clearing variables from memory after use...
Thanks Roman! I will make it a practice to start dumping the variables after I don't need them! --dan Roman Blöth wrote: dls schrieb: Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they slow the performance of my player. Is there a way to clear them after use? (or more specifically, the ones I don't need -- I could figure out how to specify that in the code) Oh my, this really is a matter in Flash... Since we have often experienced variable's values not being cleared after use, we do the following: my_var = null; // This first step probably is useless, but ALWAYS use DELETE! delete my_var; If the value contained within the variable is a movieclip, then make sure that this mc has an onUnload-handler that does the above with all variables and to avoid instances from floating in memory after having deleted, unloaded and removed them, if possible don't use static values! I have made the experience that static instances stay in memory after there is no reference to them left, since I set them all to null and then deleted them. Then, when I re-create an instance of such static stuff, it isn't created anew, but Flash uses the old piece that rests in memory. Maybe it's just that I don't really, really understand the concept of static, but I know it can lead to unpredictable and hard-to-track errors. Best regards, Roman. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] scope question
Got it, I was calling the clip wrong. thanks all. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 Hopes!
List, This is great that ActionScript is growing over time and with new AS version 3 many OOP concepts are now much easier to implement. Creating real encapsulation with new 'final', 'const', 'private' and 'protected' keywords or true polymorphism with 'override' are great features, it was however inconceivable that a modern programming language like ActionScript would not use modern OO model, design and technique. I would like to share with you concepts that I think need to be resolved/added in a language like AS3 for real OO model: -Ugly and high risk use of _global is still part of AS3, I don't understand why creators of ActionScript made access to language elements like global Functions and Constants by placing them all in _global object (and I dont know what kind of object it is). Even worse, placing AS2/AS3 packages and classes as sub-objects of _global when compiled can ruin the whole programming model! -Ain't inner classes play important role in modern languages like Java or C#? In fact they are part of AS language and *are* possible in AS1. I wonder why they have omitted inner classes as part of AS2/AS3? (it is only compile-time issue) -I've always said that 'method signatures' and what is referred to as 'overloading resolution' should be part of the language so that we can get rid of ugly use of 'arguments' object or type checking within methods and I've bombarded macromedia wish-list with it, still no success;) -Maybe generic programming (that were introduced in JDK 5.0 of Java Specification) should be added in the language as they play an important role in OO and are desirable because they let you write code that is safer and easier to read than code that is littered with Object variables and casts. Any thoughts that we can share? Anybody from macromedia/adobe listening? Kamyar Nazeri [EMAIL PROTECTED] - What are the most popular cars? Find out at Yahoo! Autos ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How much size does eventdispatcher add to my class?
I'm working on some button classes that I'm trying to make super-small and would love to have the ability for them to dispatch events. If I use the eventDispatcher in my button superclass that they all inherit how much size would I be looking at added in a compiled file? Another related question is- would I be better off having my buttons dispatch a generic click event that would have a property that set the command such as shrink, and grow and then having the logic in my event-listening class sort it out with a switch statement or dispatching events that match the methods already on the eventListener? Thanks, Mani ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 Hopes!
There is a new open source language called haXe that has much of what you are looking for. It is being written by the author of MTASC, the open source actionscript compiler. It will compile down to code that runs in a virtual machine on servers (like php), into flash, and into javascript so that you can write client side ajax code in an advanced language. The idea of one language for these three targets is very appealing. In any case you can check it out at haxe.org. Regards Hank On 2/1/06, Kamyar Nazeri [EMAIL PROTECTED] wrote: List, This is great that ActionScript is growing over time and with new AS version 3 many OOP concepts are now much easier to implement. Creating real encapsulation with new 'final', 'const', 'private' and 'protected' keywords or true polymorphism with 'override' are great features, it was however inconceivable that a modern programming language like ActionScript would not use modern OO model, design and technique. I would like to share with you concepts that I think need to be resolved/added in a language like AS3 for real OO model: -Ugly and high risk use of _global is still part of AS3, I don't understand why creators of ActionScript made access to language elements like global Functions and Constants by placing them all in _global object (and I don't know what kind of object it is). Even worse, placing AS2/AS3 packages and classes as sub-objects of _global when compiled can ruin the whole programming model! -Ain't inner classes play important role in modern languages like Java or C#? In fact they are part of AS language and *are* possible in AS1. I wonder why they have omitted inner classes as part of AS2/AS3? (it is only compile-time issue) -I've always said that 'method signatures' and what is referred to as 'overloading resolution' should be part of the language so that we can get rid of ugly use of 'arguments' object or type checking within methods and I've bombarded macromedia wish-list with it, still no success;) -Maybe generic programming (that were introduced in JDK 5.0 of Java Specification) should be added in the language as they play an important role in OO and are desirable because they let you write code that is safer and easier to read than code that is littered with Object variables and casts. Any thoughts that we can share? Anybody from macromedia/adobe listening? Kamyar Nazeri [EMAIL PROTECTED] - What are the most popular cars? Find out at Yahoo! Autos ___ 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] How much size does eventdispatcher add to my class?
ActionStep buttons (and thus, Apple's Cocoa buttons) don't dispatch events, and they work great. Rather, they use actions and targets. They are perfect for most uses, as buttons do not generally have multiple observers. The basic idea is that the target is the observer, and the action is the method that will be called on target when the button has clicked. So, here's some sample code: public var target:Object; public var action:String; public function onMouseDown():Void { target[action](this); } Pretty simple, handles the most common use of a button and requires very little code. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Manuel Saint-Victor Sent: Wed 2/1/2006 1:45 PM To: Flashcoders mailing list Cc: Subject:[Flashcoders] How much size does eventdispatcher add to my class? I'm working on some button classes that I'm trying to make super-small and would love to have the ability for them to dispatch events. If I use the eventDispatcher in my button superclass that they all inherit how much size would I be looking at added in a compiled file? Another related question is- would I be better off having my buttons dispatch a generic click event that would have a property that set the command such as shrink, and grow and then having the logic in my event-listening class sort it out with a switch statement or dispatching events that match the methods already on the eventListener? Thanks, Mani ___ 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] AS3 Hopes!
-Maybe generic programming (that were introduced in JDK 5.0 of Java Specification) should be added in the language as they play an important role in OO and are desirable because they let you write code that is safer and easier to read than code that is littered with Object variables and casts. Any thoughts that we can share? Anybody from macromedia/adobe listening? You an already use most of theses with haXe : http://haxe.org Nicolas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 Hopes!
hank williams wrote: There is a new open source language called haXe that has much of what you are looking for. It is being written by the author of MTASC, the open source actionscript compiler. It will compile down to code that runs in a virtual machine on servers (like php), into flash, and into javascript so that you can write client side ajax code in an advanced language. The idea of one language for these three targets is very appealing. In any case you can check it out at haxe.org. Regards Hank You were a bit faster Hank :) Nicolas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] v2 components - are you kidding me?
http://www.ghostwire.com/ The Ghostwire components are slim, quick, use the same methods that MMs components use (dataProvider and what not), are easily skinnable, are written in AS1 so you can go in and hack them if you like, etc. I highly recommend them. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Britton Sent: Wednesday, February 01, 2006 6:15 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] v2 components - are you kidding me? mCom components are an attractive alternative: http://www.metaliq.com/mCOM/ These were formerly known as 'glic'. Supposedly they are easier to skin, too. Mike On 2/1/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: 'something that can play nicely with stuff that other people are likely to use' well, that's a good point, but it's hard to tell which stuff people are likely to use, allthough macromedia's frameworks seems a good bet. but perhaps take a look at some opensource projects, i think that's a definitely a nice way to play. I haven't looked much into it, but aswing ( http://www.osflash.org/aswing) seems to be promising. But perhaps (v2) components aren't that evil though, I should get more into it someday :). -Meinte On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: Meinte, Thanks for the tip. I don't intend to use v2 components myself. I am trying to make a component for distribution, and I would like to make something that can play nicely with stuff that other people are likely to use. Jason On Jan 31, 2006, at 5:11 PM, [EMAIL PROTECTED] wrote: From: Meinte van't Kruis [EMAIL PROTECTED] Subject: Re: [Flashcoders] v2 components - are you kidding me? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 then maybe your question should be: Why do I use V2 components? -Meinte (the first time I even tried using components was when I discovered the things it put on the highest level(of _root in that case), plus i saw my flash movie go from 5 to 60kb, I never looked at components again after that.) On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: My main question is: why does opening a v2 combobox subsequently cause an onRollOut event to fire every time I click a button or movieclip, and is there any way to prevent that? Some other questions I have are: Is there anything that the combobox does right? Why can I not use getNextHighestDepth anymore when I put a component on the stage? Why does DepthManager.kCursor exist when I can still attach all kinds of objects above that depth? Why can I attach movie clips at depths that are outside the valid range? ___ 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 -- Mike -- http://www.mikebritton.com http://www.mikenkim.com ___ 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] AS3 Hopes!
Would be great, download is already in progress;) hank williams [EMAIL PROTECTED] wrote: There is a new open source language called haXe that has much of what you are looking for. It is being written by the author of MTASC, the open source actionscript compiler. It will compile down to code that runs in a virtual machine on servers (like php), into flash, and into javascript so that you can write client side ajax code in an advanced language. The idea of one language for these three targets is very appealing. In any case you can check it out at haxe.org. Regards Hank On 2/1/06, Kamyar Nazeri wrote: List, This is great that ActionScript is growing over time and with new AS version 3 many OOP concepts are now much easier to implement. Creating real encapsulation with new 'final', 'const', 'private' and 'protected' keywords or true polymorphism with 'override' are great features, it was however inconceivable that a modern programming language like ActionScript would not use modern OO model, design and technique. I would like to share with you concepts that I think need to be resolved/added in a language like AS3 for real OO model: -Ugly and high risk use of _global is still part of AS3, I don't understand why creators of ActionScript made access to language elements like global Functions and Constants by placing them all in _global object (and I don't know what kind of object it is). Even worse, placing AS2/AS3 packages and classes as sub-objects of _global when compiled can ruin the whole programming model! -Ain't inner classes play important role in modern languages like Java or C#? In fact they are part of AS language and *are* possible in AS1. I wonder why they have omitted inner classes as part of AS2/AS3? (it is only compile-time issue) -I've always said that 'method signatures' and what is referred to as 'overloading resolution' should be part of the language so that we can get rid of ugly use of 'arguments' object or type checking within methods and I've bombarded macromedia wish-list with it, still no success;) -Maybe generic programming (that were introduced in JDK 5.0 of Java Specification) should be added in the language as they play an important role in OO and are desirable because they let you write code that is safer and easier to read than code that is littered with Object variables and casts. Any thoughts that we can share? Anybody from macromedia/adobe listening? Kamyar Nazeri [EMAIL PROTECTED] - What are the most popular cars? Find out at Yahoo! Autos ___ 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 - Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, more on new and used cars. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] v2 components - are you kidding me?
Unless you are writing AS1 projects, I would recommend against using AS1 components. Ghostwire is great most of the time, but there are problems with the AS1 component model. Things like conflicts between different versions, etc. -David R On 2/1/06, Steven Sacks [EMAIL PROTECTED] wrote: http://www.ghostwire.com/ The Ghostwire components are slim, quick, use the same methods that MMs components use (dataProvider and what not), are easily skinnable, are written in AS1 so you can go in and hack them if you like, etc. I highly recommend them. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Britton Sent: Wednesday, February 01, 2006 6:15 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] v2 components - are you kidding me? mCom components are an attractive alternative: http://www.metaliq.com/mCOM/ These were formerly known as 'glic'. Supposedly they are easier to skin, too. Mike On 2/1/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: 'something that can play nicely with stuff that other people are likely to use' well, that's a good point, but it's hard to tell which stuff people are likely to use, allthough macromedia's frameworks seems a good bet. but perhaps take a look at some opensource projects, i think that's a definitely a nice way to play. I haven't looked much into it, but aswing ( http://www.osflash.org/aswing) seems to be promising. But perhaps (v2) components aren't that evil though, I should get more into it someday :). -Meinte On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: Meinte, Thanks for the tip. I don't intend to use v2 components myself. I am trying to make a component for distribution, and I would like to make something that can play nicely with stuff that other people are likely to use. Jason On Jan 31, 2006, at 5:11 PM, [EMAIL PROTECTED] wrote: From: Meinte van't Kruis [EMAIL PROTECTED] Subject: Re: [Flashcoders] v2 components - are you kidding me? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 then maybe your question should be: Why do I use V2 components? -Meinte (the first time I even tried using components was when I discovered the things it put on the highest level(of _root in that case), plus i saw my flash movie go from 5 to 60kb, I never looked at components again after that.) On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: My main question is: why does opening a v2 combobox subsequently cause an onRollOut event to fire every time I click a button or movieclip, and is there any way to prevent that? Some other questions I have are: Is there anything that the combobox does right? Why can I not use getNextHighestDepth anymore when I put a component on the stage? Why does DepthManager.kCursor exist when I can still attach all kinds of objects above that depth? Why can I attach movie clips at depths that are outside the valid range? ___ 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 -- Mike -- http://www.mikebritton.com http://www.mikenkim.com ___ 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] v2 components - are you kidding me?
Have you even used the Ghostwire components? They compile in AS2 without any problems, unlike the Macromedia ones. You shouldn't speak against something you have never used based on your experience with Macromedia's components, which is the whole point of this thread. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Rorex Sent: Wednesday, February 01, 2006 11:40 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] v2 components - are you kidding me? Unless you are writing AS1 projects, I would recommend against using AS1 components. Ghostwire is great most of the time, but there are problems with the AS1 component model. Things like conflicts between different versions, etc. -David R On 2/1/06, Steven Sacks [EMAIL PROTECTED] wrote: http://www.ghostwire.com/ The Ghostwire components are slim, quick, use the same methods that MMs components use (dataProvider and what not), are easily skinnable, are written in AS1 so you can go in and hack them if you like, etc. I highly recommend them. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Britton Sent: Wednesday, February 01, 2006 6:15 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] v2 components - are you kidding me? mCom components are an attractive alternative: http://www.metaliq.com/mCOM/ These were formerly known as 'glic'. Supposedly they are easier to skin, too. Mike On 2/1/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: 'something that can play nicely with stuff that other people are likely to use' well, that's a good point, but it's hard to tell which stuff people are likely to use, allthough macromedia's frameworks seems a good bet. but perhaps take a look at some opensource projects, i think that's a definitely a nice way to play. I haven't looked much into it, but aswing ( http://www.osflash.org/aswing) seems to be promising. But perhaps (v2) components aren't that evil though, I should get more into it someday :). -Meinte On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: Meinte, Thanks for the tip. I don't intend to use v2 components myself. I am trying to make a component for distribution, and I would like to make something that can play nicely with stuff that other people are likely to use. Jason On Jan 31, 2006, at 5:11 PM, [EMAIL PROTECTED] wrote: From: Meinte van't Kruis [EMAIL PROTECTED] Subject: Re: [Flashcoders] v2 components - are you kidding me? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 then maybe your question should be: Why do I use V2 components? -Meinte (the first time I even tried using components was when I discovered the things it put on the highest level(of _root in that case), plus i saw my flash movie go from 5 to 60kb, I never looked at components again after that.) On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: My main question is: why does opening a v2 combobox subsequently cause an onRollOut event to fire every time I click a button or movieclip, and is there any way to prevent that? Some other questions I have are: Is there anything that the combobox does right? Why can I not use getNextHighestDepth anymore when I put a component on the stage? Why does DepthManager.kCursor exist when I can still attach all kinds of objects above that depth? Why can I attach movie clips at depths that are outside the valid range? ___ 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 -- Mike -- http://www.mikebritton.com http://www.mikenkim.com ___ 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] Tell me more about _global
Supported! I dare to add a few thoughts of me own. A good application is one that works, an excellent application is one that works fast. That said and with utra-tight deadlines together with designers having to open my fla so they can make it pretty while I make the next app, _global rules! This of course doesn't apply to frameworks and such, but still there's room for everything. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: quarta-feira, 1 de Fevereiro de 2006 19:43 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Let's make classes for everything. Let's make components out of everything. There are so many benefits to complicating things and we CAN do it so we SHOULD do it because it's so clever and smart to do it that way. Let's code everything in one frame when working closely with designers so we can make them feel stupid and helpless when they go into our application and can't find anything and we can feel so superior to them because it's so obvious and now we have to walk them through it and by doing so can show them how smart and clever we are. Let's stroke our egos to prove what smart coders we are and program job security into our applications by making it extremely difficult for our clients to hire anyone else to work on our code, especially considering we might not be available (busy, vacation, dead) to help walk anyone through the complicated messaging system we've put into place to do something as simple as storing global variables. It's such a clever way of doing things, don't you see? We've built a better mousetrap! Those people using a simple global namespace objects are suckers! I'm not saying variable watchers and events don't have their place, but we're talking about a global namespace to store variables available to the entire application, a replacement for _global and the conflicts that can arise from it, something that has been done longer than you've been coding. You're acting like a simple global namespace to store variables is only for noob coders and that really smart coders make their code super complicated. You guys are the reason Dreamweaver MX 2004, Photoshop 7, etc. take 10-20 seconds to start up instead of 1-3 like their predecessors. You guys are the reason many clients have bad tastes in their mouths from working with independent contractors. Why not apply your cleverness and creativity to planning your next DD campaign or go learn a real programming language like C and learn to program games if you're so smart. As far as debugging goes, I've never had trouble with standard debugging techniques. You know, like trace() and NetDebug.trace(). Quick and easy. Here's my debug code: import mx.remoting.debug.NetDebug; NetDebug.initialize(); _global.out = function(m) { trace(m); NetDebug.trace(m); } Oh noes! It's not complicated enough for you! Feel superior in your complicated debugging style! ;) ___ 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] Q: Best tweening engine for Flash 8 filters
You should re-fresh your memory by visiting ZEH's tweening site... Just wanted to give a shout out and remind that Zeh's original work is sort of the thing that kicked off a lot of this tween engine madness. Zeh's current work is great, I agree! It is very inspiring to me and at one point we even discussed merging our projects. I think the way it went was, Zeh and some dudes at layer51 developed the basic ideas for a tween engine with easy shortcuts, then zigo took that and created a professional grade engine from it. Zigo has moved on and, since I had added around 20 features to his engine in v. 120 he passed the project over to me to update and distribute. Since then I've updated it into an as2 framework that lets more serious developers choose whether they want to alter base prototypes or simply trigger tweens remotely using static method calls. It also includes components for drag-and-drop setup, if you're doing your coding in the timeline. Fuse for people who don't know, is an extension to the tween engine that lets you build timeline-like sequences with a slim and trim syntax. It also lets you sequence method-calls and fire custom events so it's really an event sequencer with tween functionality although its primary use is as an extension to the engine. The goal of my project is to produce a professional-grade tween extension with all the bells and whistles, that remains super easy to use for beginners and equally time-saving and powerful for serious developers. Here is the latest news - me and the Fuse beta team are working really hard on getting v1.1 public. Besides adding FuseFMP for filters (based on FMP but with more functionality) and bezier tweens, the most impactful thing about this future release is that it will be much more efficient - even more than zigo's original. The sad truth is that the current as2 ZigoEngine isn't very optimized for speed, but the good news it that I'm pushing to get v1.1 out this month before presenting at FlashForward. It's a lot of work and I thanks all the kind folks that are helping me out! Thanks everyone for your interest and please email me if you have the time to do 1.1 beta testing or want to hook up with v1.0. I am also searching for a good doc writer/editor who can lead a small team (The as2 docs need to be f1-help compatible). Moses www.mosesSupposes.com/Fuse/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Flashcoders Digest, Vol 13, Issue 5
I will be out of the office from Wednesday, Feb 1 through Monday Feb 6th and may not be able to get to my email very often. Please direct any immediate needs to [EMAIL PROTECTED] or to the CDR Services office at: 505.391.7768. Thanks, Chris ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] v2 components - are you kidding me?
Ghostwire's are fast and simple, but the deprecated AS1 syntax makes me wonder how good they'll fit with a new project. Are there plans to update these components? Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] clearing variables from memory after use...
Hi Roman, You describe my_var =null as being useless, but this should be enough for the garbage collector to come along and reclaim an object? With respect to the static issue, what do you mean with 'static instances' ? Could u provide an example of such an object with isn't reclaimed? Thanks, Hans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roman Blöth Sent: Wednesday, February 01, 2006 6:09 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] clearing variables from memory after use... dls schrieb: Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they slow the performance of my player. Is there a way to clear them after use? (or more specifically, the ones I don't need -- I could figure out how to specify that in the code) Oh my, this really is a matter in Flash... Since we have often experienced variable's values not being cleared after use, we do the following: my_var = null; // This first step probably is useless, but ALWAYS use DELETE! delete my_var; If the value contained within the variable is a movieclip, then make sure that this mc has an onUnload-handler that does the above with all variables and to avoid instances from floating in memory after having deleted, unloaded and removed them, if possible don't use static values! I have made the experience that static instances stay in memory after there is no reference to them left, since I set them all to null and then deleted them. Then, when I re-create an instance of such static stuff, it isn't created anew, but Flash uses the old piece that rests in memory. Maybe it's just that I don't really, really understand the concept of static, but I know it can lead to unpredictable and hard-to-track errors. Best regards, Roman. -- --- gosub communications gmbh | fredersdorfer str. 10 | 10243 berlin t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de --- ___ 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] Tell me more about _global
Fast ones :D 7/10 are interactive advertising, which means that I have usually 2 weeks(at best) to do something that doesn't relate and never had the time to make me own framework. Still I insist in a one frame architecture, and leave the all the item in the library for the designers. May I ask why the curiosity? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: quarta-feira, 1 de Fevereiro de 2006 20:10 To: Flashcoders mailing list Subject: RE: [Flashcoders] Tell me more about _global I'm just curious to know what kind of projects these are that you are working on? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Furtado Sent: Wednesday, February 01, 2006 2:52 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Supported! I dare to add a few thoughts of me own. A good application is one that works, an excellent application is one that works fast. That said and with utra-tight deadlines together with designers having to open my fla so they can make it pretty while I make the next app, _global rules! This of course doesn't apply to frameworks and such, but still there's room for everything. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: quarta-feira, 1 de Fevereiro de 2006 19:43 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Let's make classes for everything. Let's make components out of everything. There are so many benefits to complicating things and we CAN do it so we SHOULD do it because it's so clever and smart to do it that way. Let's code everything in one frame when working closely with designers so we can make them feel stupid and helpless when they go into our application and can't find anything and we can feel so superior to them because it's so obvious and now we have to walk them through it and by doing so can show them how smart and clever we are. Let's stroke our egos to prove what smart coders we are and program job security into our applications by making it extremely difficult for our clients to hire anyone else to work on our code, especially considering we might not be available (busy, vacation, dead) to help walk anyone through the complicated messaging system we've put into place to do something as simple as storing global variables. It's such a clever way of doing things, don't you see? We've built a better mousetrap! Those people using a simple global namespace objects are suckers! I'm not saying variable watchers and events don't have their place, but we're talking about a global namespace to store variables available to the entire application, a replacement for _global and the conflicts that can arise from it, something that has been done longer than you've been coding. You're acting like a simple global namespace to store variables is only for noob coders and that really smart coders make their code super complicated. You guys are the reason Dreamweaver MX 2004, Photoshop 7, etc. take 10-20 seconds to start up instead of 1-3 like their predecessors. You guys are the reason many clients have bad tastes in their mouths from working with independent contractors. Why not apply your cleverness and creativity to planning your next DD campaign or go learn a real programming language like C and learn to program games if you're so smart. As far as debugging goes, I've never had trouble with standard debugging techniques. You know, like trace() and NetDebug.trace(). Quick and easy. Here's my debug code: import mx.remoting.debug.NetDebug; NetDebug.initialize(); _global.out = function(m) { trace(m); NetDebug.trace(m); } Oh noes! It's not complicated enough for you! Feel superior in your complicated debugging style! ;) ___ 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] Tell me more about _global
Let's code everything in one frame when working closely with designers so we can make them feel stupid and helpless when they go into our application and can't find anything and we can feel so superior to them because it's so obvious and now we have to walk them through it and by doing so can show them how smart and clever we are. Really well put Steven! I agree 100% - OOP and components are great - at times. But forcing the issue really only shows lack of programming knowledge IMO. I use globals still - they are perfect for many things. Anyone who says different is merely showing their lack of experience at coding. Dave - www.blurredistinction.com www.macromedia.com/support/forums/team_macromedia/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tell me more about _global
Fast, bug-free ones. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: Wednesday, February 01, 2006 12:10 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Tell me more about _global I'm just curious to know what kind of projects these are that you are working on? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] v2 components - are you kidding me?
AS1 syntax is deprecated? That's news to me. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Britton Sent: Wednesday, February 01, 2006 12:10 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] v2 components - are you kidding me? Ghostwire's are fast and simple, but the deprecated AS1 syntax makes me wonder how good they'll fit with a new project. Are there plans to update these components? Mike ___ 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] Tell me more about _global
They're theorycoders, the type that post pseudocode to forums and mailing lists. More often than not their pseudocode doesn't work and only serves to confuse others who think they're getting a lesson from a smart and experienced coder. These theorycoders have book smarts but lack street smarts. They have never worked on a big project with other programmers so they code in the most selfish and self-centered way as an exercise in mental masturbation. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Mennenoh Sent: Wednesday, February 01, 2006 12:26 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Tell me more about _global Really well put Steven! I agree 100% - OOP and components are great - at times. But forcing the issue really only shows lack of programming knowledge IMO. I use globals still - they are perfect for many things. Anyone who says different is merely showing their lack of experience at coding. Dave - www.blurredistinction.com www.macromedia.com/support/forums/team_macromedia/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tell me more about _global
You have been watching us through our webcams, haven't you? Ah come on... Just admit it... It's okay... I must say I do agree with your first line... After that it got a bit blurry. See I always thought that the guyz using only global vars with obscure names calling them from god-knows-where, were going for the job security thing. Apart from that, your email takes a kind of i-won't-use-names-but-I'll-try-to-offend-you-all anyway tone, and your assumptions are just plain wrong on multiple levels. As I said simply the tone of your email makes it clear there is no use discussing it as well, you seem to have it all sorted out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Wednesday, February 01, 2006 8:43 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Let's make classes for everything. Let's make components out of everything. There are so many benefits to complicating things and we CAN do it so we SHOULD do it because it's so clever and smart to do it that way. Let's code everything in one frame when working closely with designers so we can make them feel stupid and helpless when they go into our application and can't find anything and we can feel so superior to them because it's so obvious and now we have to walk them through it and by doing so can show them how smart and clever we are. Let's stroke our egos to prove what smart coders we are and program job security into our applications by making it extremely difficult for our clients to hire anyone else to work on our code, especially considering we might not be available (busy, vacation, dead) to help walk anyone through the complicated messaging system we've put into place to do something as simple as storing global variables. It's such a clever way of doing things, don't you see? We've built a better mousetrap! Those people using a simple global namespace objects are suckers! I'm not saying variable watchers and events don't have their place, but we're talking about a global namespace to store variables available to the entire application, a replacement for _global and the conflicts that can arise from it, something that has been done longer than you've been coding. You're acting like a simple global namespace to store variables is only for noob coders and that really smart coders make their code super complicated. You guys are the reason Dreamweaver MX 2004, Photoshop 7, etc. take 10-20 seconds to start up instead of 1-3 like their predecessors. You guys are the reason many clients have bad tastes in their mouths from working with independent contractors. Why not apply your cleverness and creativity to planning your next DD campaign or go learn a real programming language like C and learn to program games if you're so smart. As far as debugging goes, I've never had trouble with standard debugging techniques. You know, like trace() and NetDebug.trace(). Quick and easy. Here's my debug code: import mx.remoting.debug.NetDebug; NetDebug.initialize(); _global.out = function(m) { trace(m); NetDebug.trace(m); } Oh noes! It's not complicated enough for you! Feel superior in your complicated debugging style! ;) ___ 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] v2 components - are you kidding me?
Steven Sacks schrieb: AS1 syntax is deprecated? That's news to me. yeah baby, flex will be free, but then as1 will be deprecated ;-) micha ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tell me more about _global
Want an example? I wrote this desktop application. http://www.directv.com/see/landing/gametracker/gametracker.html In the first 6 months of deployment, they received THREE (count them 3) requests for help, and all three ended up having to do with their backend having issues. The application is designed to run indefinitely on a computer and as such is fast, efficient, extremely stable, and has extensive memory management. Oh, and it uses a global namespace. :P -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Wednesday, February 01, 2006 12:27 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Fast, bug-free ones. ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: Wednesday, February 01, 2006 12:10 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Tell me more about _global I'm just curious to know what kind of projects these are that you are working on? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Tell me more about _global
Sure... Should have probably explained the curiousity more up front anyway... I guess I'm just looking at it from the other side of the fence - I currently work with a web-based application in which parts of the front-end are done in Flash (and getting the rest of the pieces over to Flash is part of my job). A few of the screens are fairly old and contain a lot of non-traditional coding practices, like _global and the like. Basically in my experience these have been - for me - harder to follow, debug, etc. - maintain in general. So I guess I kinda look at things like _global in a bad light because of the experience I've had with them - and I was just curious as to what end product you were making that you felt _global were useful. I think the biggest difference between what we do is that I've never had to pass my code of to a designer to make pretty - the few of us here that write the ActionScript also design the interfaces as well - so having some one else look at it and have no clue what is going on has never been an issue really. (And this really isn't a problem - cause we aren't doing anything too fancy e.g advertising) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Furtado Sent: Wednesday, February 01, 2006 3:24 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Fast ones :D 7/10 are interactive advertising, which means that I have usually 2 weeks(at best) to do something that doesn't relate and never had the time to make me own framework. Still I insist in a one frame architecture, and leave the all the item in the library for the designers. May I ask why the curiosity? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: quarta-feira, 1 de Fevereiro de 2006 20:10 To: Flashcoders mailing list Subject: RE: [Flashcoders] Tell me more about _global I'm just curious to know what kind of projects these are that you are working on? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pedro Furtado Sent: Wednesday, February 01, 2006 2:52 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Supported! I dare to add a few thoughts of me own. A good application is one that works, an excellent application is one that works fast. That said and with utra-tight deadlines together with designers having to open my fla so they can make it pretty while I make the next app, _global rules! This of course doesn't apply to frameworks and such, but still there's room for everything. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: quarta-feira, 1 de Fevereiro de 2006 19:43 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Tell me more about _global Let's make classes for everything. Let's make components out of everything. There are so many benefits to complicating things and we CAN do it so we SHOULD do it because it's so clever and smart to do it that way. Let's code everything in one frame when working closely with designers so we can make them feel stupid and helpless when they go into our application and can't find anything and we can feel so superior to them because it's so obvious and now we have to walk them through it and by doing so can show them how smart and clever we are. Let's stroke our egos to prove what smart coders we are and program job security into our applications by making it extremely difficult for our clients to hire anyone else to work on our code, especially considering we might not be available (busy, vacation, dead) to help walk anyone through the complicated messaging system we've put into place to do something as simple as storing global variables. It's such a clever way of doing things, don't you see? We've built a better mousetrap! Those people using a simple global namespace objects are suckers! I'm not saying variable watchers and events don't have their place, but we're talking about a global namespace to store variables available to the entire application, a replacement for _global and the conflicts that can arise from it, something that has been done longer than you've been coding. You're acting like a simple global namespace to store variables is only for noob coders and that really smart coders make their code super complicated. You guys are the reason Dreamweaver MX 2004, Photoshop 7, etc. take 10-20 seconds to start up instead of 1-3 like their predecessors. You guys are the reason many clients have bad tastes in their mouths from working with independent contractors. Why not apply your cleverness and creativity to planning your next DD campaign or go learn a real programming language like C and learn to program games if you're so smart. As far as debugging goes, I've never had trouble with standard debugging techniques. You know, like trace() and NetDebug.trace(). Quick
RE: [Flashcoders] Tell me more about _global
Apart from that, your email takes a kind of i-won't-use-names-but-I'll-try-to-offend-you-all anyway tone, and your assumptions are just plain wrong on multiple levels. As I said simply the tone of your email makes it clear there is no use discussing it as well, you seem to have it all sorted out. Of course! I explain, albeit sardonically, on multiple levels my stance, and your response, not surprisingly is: You're wrong, and obviously you're not smart enough to understand why, so I'm not going to bother to explain, but you're wrong on lots of things. A stereotypical cop out. I guess I was wrong. You're not as smart and clever as I gave you credit for. ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tell me more about _global
Steven Sacks wrote: A stereotypical cop out. I guess I was wrong. You're not as smart and clever as I gave you credit for. ;) I think this conversation is wandering close to the line for what I assume is a professional mailing list. Take the flame war to personal email please. -Adam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] v2 components - are you kidding me?
Much of AS1 isn't deprecated, but that's just how I think of it. Sorry if it seemed like I was declaring AS1 deprecated because it isn't (officially). The point I wanted to make was that it makes me nervous to use AS1 stuff for practical reasons, one being the *likelihood* AS1 contains much syntax that will be deprecated. Mike ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tell me more about _global
7/10 are interactive advertising, which means that I have usually 2 weeks(at best) to do something that doesn't relate and never had the time to make me own framework. Has it occurred to you that if you built a class and got in the habit of using it, it would take exactly the same amount of time and have 10x the flexibility of your faster way? See, the whole idea of an architecture is to not have to redesign it for every app; you resuse it every time so that once it's there, you can use that codebase to build anything you want. All this talk about real programmers and theorycoders is pretty laughable. I especially like the part about using OOP techniques as job security so that they can't bring anyone else in to read your code, when that's actually pretty much the opposite of the reality of the situation: any *competent* programmer could understand it, and your problems with these methodologies speak more about you than your breadth of experience. I routinely have Java and C# programmers do code reviews on my AS2 code. You know how that's possible? I use OOP techniques, so that it is apparent what the code is doing even though the guy doing the review doesn't understant the specific of the APIs I'm accessing. They don't need to know specifically why these APIs work the way they do, all they need to do is read my inline comments and look at the code changes, and it is immediately apparent to them what was changed and why. Any of those guys could replace me with a bit of time spent learning the APIs, the syntax is essentially the same and my codebase is clean and well documented, so it would be easy for anyone with any experience to take over it with a minimal learning curve. It's true, designing interactive banner ads generally does not require these lengths, but neither do banner ads usually require maintenance, so what difference does it make? If you build one-off, deliver-it-and-forget-it Flash work, good for you, your coding style is irrelevant, both to you and to the rest of the world, because no one will ever have to look at it again. For those of us who do actually have to revisit and maintain code, and who sometimes inherit large codebases, these things are not only important, they are essential. I'll just close with a great quote from earlier in the thread: 'Not understanding why something is done in a particular way does not make it lame.' ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] understanding the for loop
Ok guys I am working with this for loop to help me grab random images. My problem is it seems like the for loop won't reset and random var each time it runs. Below is my code... [code] for(i=0; i=imagesToGrab; i++){ randomSet = random(totalSetsNLayout) + 1; img = random(imagesToGrab)+1; img = layout + layoutNum + _set + randomSet + _img + i; imgArray.push(img); } [/code] imgArray = [ layout5_set1_img0, layout5_set1_img1, layout5_set1_img2, layout5_set1_img3, layout5_set1_img4, layout5_set1_img5, layout5_set1_img6, layout5_set1_img7, layout5_set1_img8, layout5_set1_img9, layout5_set1_img10, layout5_set1_img11] as you can see my problem is that it doesn't change my set randomly at all? Any ideas why this happens? Corban Baxter | rich media designer | www.funimation.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Noise Cancelling in Flash
8.5 actually provides write as well as read access to the waveforms? I haven't looked into it much, but i've only seen people making visualizations of sounds, not actually modifying or generating them in real-time. I don't know, but there was talk of it at one time. What I said was *if* 8.5 provides low-level access, then you can make your own filters. ;-) ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] can I know if I class/package has been imported in a swf?
or how about: var exists:Boolean = classExists(your.class.path); trace(exists); function classExists(path):Boolean { return (mx.utils.ClassFinder.findClass(path)); } 2006/2/1, Scott Hyndman [EMAIL PROTECTED]: if (_global.path.to.class.Class != null typeof(_global.path.to.class.Class) == function)) { trace(CLASS EXISTS!); } -Original Message- From: [EMAIL PROTECTED] on behalf of Jason Rayles Sent: Wed 2/1/2006 11:33 AM To: flashcoders@chattyfig.figleaf.com Cc: Subject:RE: [Flashcoders] can I know if I class/package has been imported ina swf? No. Is there a way for my code in my class to figure out if another class that I am not writing but whose name I know is being used in a swf. From: Steven Sacks [EMAIL PROTECTED] Subject: RE: [Flashcoders] can I know if I class/package has been imported in aswf? To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Is it possible to know if a class is being used in a flash movie? If so, how? Put a trace statement in the constructor of the class: class foo { function foo() { trace(new foo); } } ___ 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] clearing variables from memory after use...
my_var = null; and delete my_var; should do exactly the same thing...delete doesn't actually delete the object, only the reference to the object. it doesn't get removed from memory until later (when the GC feels like it) var obj1 = {blah:hello}; var obj2 = obj1; delete obj1; trace(obj2.blah); // traces 'hello' ... the object was never deleted, only the reference -David R On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi Roman, You describe my_var =null as being useless, but this should be enough for the garbage collector to come along and reclaim an object? With respect to the static issue, what do you mean with 'static instances' ? Could u provide an example of such an object with isn't reclaimed? Thanks, Hans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roman Blöth Sent: Wednesday, February 01, 2006 6:09 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] clearing variables from memory after use... dls schrieb: Might be counting angels on a pin head here, but: if I set alot ( think hundreds) of _global variables such as: _global.state1 = Wisconsin; I assume they slow the performance of my player. Is there a way to clear them after use? (or more specifically, the ones I don't need -- I could figure out how to specify that in the code) Oh my, this really is a matter in Flash... Since we have often experienced variable's values not being cleared after use, we do the following: my_var = null; // This first step probably is useless, but ALWAYS use DELETE! delete my_var; If the value contained within the variable is a movieclip, then make sure that this mc has an onUnload-handler that does the above with all variables and to avoid instances from floating in memory after having deleted, unloaded and removed them, if possible don't use static values! I have made the experience that static instances stay in memory after there is no reference to them left, since I set them all to null and then deleted them. Then, when I re-create an instance of such static stuff, it isn't created anew, but Flash uses the old piece that rests in memory. Maybe it's just that I don't really, really understand the concept of static, but I know it can lead to unpredictable and hard-to-track errors. Best regards, Roman. -- --- gosub communications gmbh | fredersdorfer str. 10 | 10243 berlin t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de --- ___ 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] understanding the for loop
You're not incrementing imagesToGrab anywhere. for (...) { . imagesToGrab++; } Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Corban Baxter Sent: 01 February 2006 21:29 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] understanding the for loop Ok guys I am working with this for loop to help me grab random images. My problem is it seems like the for loop won't reset and random var each time it runs. Below is my code... [code] for(i=0; i=imagesToGrab; i++){ randomSet = random(totalSetsNLayout) + 1; img = random(imagesToGrab)+1; img = layout + layoutNum + _set + randomSet + _img + i; imgArray.push(img); } [/code] imgArray = [ layout5_set1_img0, layout5_set1_img1, layout5_set1_img2, layout5_set1_img3, layout5_set1_img4, layout5_set1_img5, layout5_set1_img6, layout5_set1_img7, layout5_set1_img8, layout5_set1_img9, layout5_set1_img10, layout5_set1_img11] as you can see my problem is that it doesn't change my set randomly at all? Any ideas why this happens? Corban Baxter | rich media designer | www.funimation.com ___ 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] understanding the for loop
img = random(imagesToGrab)+1; Yeah - first part of is probably that your use of random is... well... incorrect. Math.random() retruns a random number of 0.0 or between 0.0 and 1.0. You should convert it to a whole number first. function getRandom(min:Number, max:number){ return min+Math.floor(Math.random()*(max+1-min)); } The other part is that you're overwriting the img variable: img = random(imagesToGrab)+1; img = layout + layoutNum + _set + randomSet + _img + i; So in effect, the first value of img is replaced in the second line. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] clearing variables from memory after use...
my_var = null; and delete my_var; should do exactly the same thing...delete doesn't actually delete the object, only the reference to the object. it doesn't get removed from memory until later (when the GC feels like it) Well, technically they do *slightly* different things, but usually with almost the same end result. Delete destroys the reference, allowing the object to be cleaned up by the GC (assuming there are no other references to it), and assigning null to the reference reassigns the reference to a different object, so your original object will be cleaned up by the GC, however, the reference will still exist, it just points to null. Delete actually dumps both the object and the reference (eventually, when the GC gets around to it), while assigning null only dumps the object (again, when the GC gets to it). ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Noise Cancelling in Flash
i think that theoretically it may be possible to generate real time audio just in the 8.5 player. In the thread about MIDI and the flash player I mentioned an idea for creating real time audio streams using 8.5 Basically i think you could do it by using the loadBytes method in flash.display.Loader by streaming bytes that represent a streaming swf with audio. It should work, just needs the code to create the swf header and the right bytes to represent the audio tag inside the swf, then it should just be a matter of pumping the audio into the byte stream. I'd love to try it if i had the time. really, though it would make more sense to have a loadBytes method for sounds as well, but i wont go over all the points we covered in that other thread again. :) martin. ryanm wrote: 8.5 actually provides write as well as read access to the waveforms? I haven't looked into it much, but i've only seen people making visualizations of sounds, not actually modifying or generating them in real-time. I don't know, but there was talk of it at one time. What I said was *if* 8.5 provides low-level access, then you can make your own filters. ;-) ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Martin Wood http://relivethefuture.com/choronzon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] understanding the for loop
Here is a better idea of what I need I think I posted the code off a little... [code] imgArray = new Array(); for(i=0; i=imagesToGrab; i++){ randomSet = random(totalSetsNLayout) + 1; //totalSetsNLayout = 4 //shouldn't i get a random number between 1-4? trace(randomSet: + randomSet); img = layout + layoutNum + _set + randomSet + _img + i; imgArray.push(img); } trace(imgArray: + imgArray); [/code] [output] layoutNum: 4 totalSetsNLayout: 3 imagesToGrab: 6 randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random imgArray = [layout4_set1_img0,layout4_set1_img1,layout4_set1_img2,layout4_set1_img3,layout4_set1_img4,layout4_set1_img5,layout4_set1_img6] [/output] so why is the randomSet never random? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: Wednesday, February 01, 2006 3:44 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop You're not incrementing imagesToGrab anywhere. for (...) { . imagesToGrab++; } Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Corban Baxter Sent: 01 February 2006 21:29 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] understanding the for loop Ok guys I am working with this for loop to help me grab random images. My problem is it seems like the for loop won't reset and random var each time it runs. Below is my code... [code] for(i=0; i=imagesToGrab; i++){ randomSet = random(totalSetsNLayout) + 1; img = random(imagesToGrab)+1; img = layout + layoutNum + _set + randomSet + _img + i; imgArray.push(img); } [/code] imgArray = [ layout5_set1_img0, layout5_set1_img1, layout5_set1_img2, layout5_set1_img3, layout5_set1_img4, layout5_set1_img5, layout5_set1_img6, layout5_set1_img7, layout5_set1_img8, layout5_set1_img9, layout5_set1_img10, layout5_set1_img11] as you can see my problem is that it doesn't change my set randomly at all? Any ideas why this happens? Corban Baxter | rich media designer | www.funimation.com ___ 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] Noise Cancelling in Flash
1. can flash load .wav files? 2. can loadBytes simulate loading .wav files? if so, it might be simpler to generate a .wav structure than a .swf -David R On 2/1/06, Martin Wood [EMAIL PROTECTED] wrote: i think that theoretically it may be possible to generate real time audio just in the 8.5 player. In the thread about MIDI and the flash player I mentioned an idea for creating real time audio streams using 8.5 Basically i think you could do it by using the loadBytes method in flash.display.Loader by streaming bytes that represent a streaming swf with audio. It should work, just needs the code to create the swf header and the right bytes to represent the audio tag inside the swf, then it should just be a matter of pumping the audio into the byte stream. I'd love to try it if i had the time. really, though it would make more sense to have a loadBytes method for sounds as well, but i wont go over all the points we covered in that other thread again. :) martin. ryanm wrote: 8.5 actually provides write as well as read access to the waveforms? I haven't looked into it much, but i've only seen people making visualizations of sounds, not actually modifying or generating them in real-time. I don't know, but there was talk of it at one time. What I said was *if* 8.5 provides low-level access, then you can make your own filters. ;-) ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Martin Wood http://relivethefuture.com/choronzon ___ 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] understanding the for loop
Jason so its bad to use this old way of random huh? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, February 01, 2006 3:51 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop img = random(imagesToGrab)+1; Yeah - first part of is probably that your use of random is... well... incorrect. Math.random() retruns a random number of 0.0 or between 0.0 and 1.0. You should convert it to a whole number first. function getRandom(min:Number, max:number){ return min+Math.floor(Math.random()*(max+1-min)); } The other part is that you're overwriting the img variable: img = random(imagesToGrab)+1; img = layout + layoutNum + _set + randomSet + _img + i; So in effect, the first value of img is replaced in the second line. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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] understanding the for loop
I answered that already, although I didn't notice until now that you are using the random() global function which was depreciated with Flash 4. While it may server your purpose, use Math.random() as I demonstrated previously. but you're also not providing any information on how the value for totalSetsNLayout is determined, which random relies on. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Wednesday, February 01, 2006 4:56 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop Here is a better idea of what I need I think I posted the code off a little... [code] imgArray = new Array(); for(i=0; i=imagesToGrab; i++){ randomSet = random(totalSetsNLayout) + 1; //totalSetsNLayout = 4 //shouldn't i get a random number between 1-4? trace(randomSet: + randomSet); img = layout + layoutNum + _set + randomSet + _img + i; imgArray.push(img); } trace(imgArray: + imgArray); [/code] [output] layoutNum: 4 totalSetsNLayout: 3 imagesToGrab: 6 randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random randomSet: 1 //needs to be random imgArray = [layout4_set1_img0,layout4_set1_img1,layout4_set1_img2,layout4_set1_img3,lay out4_set1_img4,layout4_set1_img5,layout4_set1_img6] [/output] so why is the randomSet never random? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: Wednesday, February 01, 2006 3:44 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop You're not incrementing imagesToGrab anywhere. for (...) { . imagesToGrab++; } Ade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Corban Baxter Sent: 01 February 2006 21:29 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] understanding the for loop Ok guys I am working with this for loop to help me grab random images. My problem is it seems like the for loop won't reset and random var each time it runs. Below is my code... [code] for(i=0; i=imagesToGrab; i++){ randomSet = random(totalSetsNLayout) + 1; img = random(imagesToGrab)+1; img = layout + layoutNum + _set + randomSet + _img + i; imgArray.push(img); } [/code] imgArray = [ layout5_set1_img0, layout5_set1_img1, layout5_set1_img2, layout5_set1_img3, layout5_set1_img4, layout5_set1_img5, layout5_set1_img6, layout5_set1_img7, layout5_set1_img8, layout5_set1_img9, layout5_set1_img10, layout5_set1_img11] as you can see my problem is that it doesn't change my set randomly at all? Any ideas why this happens? Corban Baxter | rich media designer | www.funimation.com ___ 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 NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] understanding the for loop
Well, its depreciated. You tell me. ;) Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Wednesday, February 01, 2006 5:03 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop Jason so its bad to use this old way of random huh? Corban Baxter | rich media designer | www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, February 01, 2006 3:51 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop img = random(imagesToGrab)+1; Yeah - first part of is probably that your use of random is... well... incorrect. Math.random() retruns a random number of 0.0 or between 0.0 and 1.0. You should convert it to a whole number first. function getRandom(min:Number, max:number){ return min+Math.floor(Math.random()*(max+1-min)); } The other part is that you're overwriting the img variable: img = random(imagesToGrab)+1; img = layout + layoutNum + _set + randomSet + _img + i; So in effect, the first value of img is replaced in the second line. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ 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