Re: [Flashcoders] survival off eventlisteners on class instance redeclaration?

2007-06-02 Thread eka
Hello :) The event listener is registered in a collection (array or other data object) in the instance ( you use the event model of the AS3 framework in Flex ? or the event model in the mx AS2 library ?) If you destroy the instance your registration is canceled because the collection is a

RE: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-02 Thread Randy Tinfow
Adobe has put the axe to the tree component and many other components requiring you to use Flex if you want to use them. Which is the prod that finally has me looking seriously at Silverlight this weekend. We have money and projects set aside for our first forays into CS3, but this makes

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-02 Thread Rene Skou
Hi You have to choose AS 2.0 inorder to use the tree component if you use AS 3.0 som components are missing 2007/6/1, Ung, Seng [EMAIL PROTECTED]: Has anyone noticed that the tree component is missing from the CS3 Web Premium prof. copy after the installation? Is there a link from Adobe site

RE: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-02 Thread Randy Tinfow
You have to choose AS 2.0 inorder to use the tree component if you use AS 3.0 som components are missing Exactly. Unfortunately, those components are indispensable to us. We use them literally every day. RT ___ Flashcoders@chattyfig.figleaf.com To

[Flashcoders] AS 2 Delegate question

2007-06-02 Thread Stefano Nappa
Hi, a question. I'm talking about AS 2. Inside a method of a class I've: btnCollection.onRollOver = function() { // here this is the button var t = Number(this._name.substr(1, 1)); // Mouse.hide();

Re: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Ruy Adorno
Well, what I understand about the Delegate class, is that you can´t send any parameter through the Delegate.create method, any parameter you want to pass, must be send by the event. btnCollection.onRollOver = Delegate.create(this, btnRollOver); In this case the delegate will send to the

Re: [Flashcoders] Best Practices question...

2007-06-02 Thread Ron Wheeler
It is called encapsulation. No one should know how a class does its magic. The external classes are programmed to the interface (methods)(preferably to an interface class rather than directly to the implementation) , they are not allowed to peek inside. What if you find a better way to

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component and Web Service.

2007-06-02 Thread Austin Kottke
You know what's funny about the web service component missing from flash cs3? It's actually in the help documentation as part of flash 9 CS 3: Web services Adobe® Flash® CS3 Professional includes the WebServiceConnector component that lets you connect to remote web services, send

Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component andWeb Service.

2007-06-02 Thread Muzak
If you open/create an ActionScript 2.0 document, the WebServiceConnector and all other Data components are still available. Those are the same ones as in the Flash 8 IDE. The complaint is that there's no AS3 version of the Data components and some UI Components (like the Tree) regards, Muzak

RE: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Merrill, Jason
In this case the delegate will send to the btnRollOver function only the parameters of the event onRollOver. You will have to find another way to solve this problem... maybe extend the MovieClip class, or maybe it could be better to not use the delegate. Actually, you can do it this way:

Re: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Alain Rousseau
Or you could use another Delegate class. There is the Proxy class I believe (can't remember who did it) and the one I use the most is the one on dynamicflash.com http://dynamicflash.com/2005/05/delegate-version-101/ You can pass parameters in the Delegate call myButton.onRelease =

Re: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Muzak
Create a custom Button component that has public methods and properties that you can access. Have your custom Button dispatch a click event, just like the v2 Button component does. Others might suggest to use a Proxy class that lets you pass extra parameters, I'd suggest not to do so. Simply

RE: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Jesse Graupmann
Muzak, You bring this up every time proxy is mentioned. Do you mind sharing an actual code example that is just as quick and easy? Hasta, Jesse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Saturday, June 02, 2007 2:53 PM To:

Re: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Muzak
This isn't about quick and easy, but about encapsulation, OOP and best practices. Quick and easy also often means quick and dirty ;-) Here's a stripped down version of a custom button. import mx.events.EventDispatcher; import mx.utils.Delegate; class com.muzakdeezign.samples.MyButton extends

RE: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Jesse Graupmann
Ha! That's rad. I guess the trick is writing a Flash app to write the bulk of the code... Got links to any of those? ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Saturday, June 02, 2007 5:54 PM To: flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Muzak
Don't know of anything like this available out there, doesn't mean there isn't. What you saw is part of a larger app that spits out a complete ARP application and actually writes .as files to disk (you now saw me copy/paisting the code into Flash). regards, Muzak - Original Message -

RE: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Jesse Graupmann
So is this still out of the question... /// /// IN FLA /// var box = this.attachMovie ( 'box', 'box', this.getNextHighestDepth() ); jgButton.initializeMovieClip ( box ); box.data = 'this is my data'; box.showEvents( 'onPress', 'onRollOver' ); box.addEventListener ( 'onPress',

Re: [Flashcoders] AS 2 Delegate question

2007-06-02 Thread Muzak
The EventDispatcher methods need to be public public var addEventListener:Function; public var removeEventListener:Function; public var dispatchEvent:Function; And I usually set the events on the Class itself, but use a child movieclip (which you could see in the screencast). Someone (not