Re: [Flashcoders] Q:Watch vs listener/broadcaster

2007-08-11 Thread chris duke
I have used watch in the past to check for when a Boolean swaps between true
and false and use that to trigger functions to make things
visible/invisible. It allowed for a way to link a variable that changes
(Number, Boolean, String) to a function without implementing a full
listener.

On 8/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
> I'm aware of watch, but have never really used it.
> I was wondering if perhaps I am missing out on a really useful tool.
>
> Can someone  give me an example of when it would make sense to use watch
> instead of setting up a listener broadcaster?
>
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> 
> "...all improvisation is life in search of a style."
>  - Bruce Mau,'LifeStyle'
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Q:Watch vs listener/broadcaster

2007-08-11 Thread moveup
Hi
I'm aware of watch, but have never really used it.
I was wondering if perhaps I am missing out on a really useful tool.

Can someone  give me an example of when it would make sense to use watch 
instead of setting up a listener broadcaster?

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-11 Thread Ron Wheeler

Some on-line resources
General OOP
http://java.sun.com/docs/books/tutorial/java/concepts/index.html - 
short, clear and free

http://www.aonaware.com/OOP1.htm - basic stuff again.
http://www.desy.de/gna/html/cc/Tutorial/tutorial.html - very long and 
detail - step by step  walk through the rational behind OOP - C++ from 1997


Actionscript and OOP
http://polygeek.com/360_adobeflash/actionscript_the-best-way-to-start-learning-object-oriented-programming-in-actionscript 
- a pre-course briefing to get you ready for OOP in ActionScript

http://www.moock.org/lectures/introToOOP/
http://www.kirupa.com/developer/oop2/AS2OOPindex.htm
http://www.flashscript.biz/MX2004/OOP_tutorial/lesson1.html
http://www.debreuil.com/docs/ch01_Intro.htm - Flash 5 but the OO part 
has not changed a lot.


I have added these links to
http://tech.groups.yahoo.com/group/Script_in_Action/

Also check out the books.
I highly recommend Head First Design Patterns if you want to see the 
power of objects clearly demonstrated.
It will save you hours of grappling with the design of your classes and 
cut your code in half while increasing robustness and reusability.


Ron

Marcelo Wolfgang wrote:

On 8/10/07, Hans Wichman <[EMAIL PROTECTED]> wrote:
  

Hehe no worries there, I'm sure we all do stuff that causes someone else to
say they need to kill... etc :)
It was meant as a joke nothing harsh to be honest:).



I got it :)

  

You are hijacking this thread though, which is in itself ofcourse enough
reason to ... :)



Sorry, I was about to ask about this for quite sometime, but I'm too
f. busy recently and when I saw the joke I had to answer :)


  

Some answer though:
- you dont code AS2 classes on frames, you just write as2 classes in files.
Once you compile your movie, flash lets you specify in which frame your
classes should be exported.



I think what I don't get the most is how do I transform this

function myFunction(){
  return this;
}

to a class and how I can call it later in something like

btClose_mc.onRelease = myFunction();

i'm thinking in buying moock's essential actionscript 3, but I'm
afraid it will hard to jump from where I'm now to where the book is.

TIA
Marcelo Wolfgang
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com