Re: [Flashcoders] ::dk:: understanding roll over with addEventListener

2006-10-14 Thread eka

Hello :)

if you use Macromedia's V2 components, the Button component don't have over
and out event  you must override the class and add your custom events.

EKA+ :)


2006/10/14, dnk [EMAIL PROTECTED]:


Hi there - this is probably a simple question, but...

I have been using addEventListener with button components:

this._targetMc.btn.addEventListener(click, MyDelegate.create(this,
onHit));

Then the onHit function deals with it.

Now I need some rollover  rollout functions.

So I wrote those, and then tried adding the event with:


this._targetMc.btn.addEventListener(rollOver, MyDelegate.create(this,
onRollOvr);
this._targetMc.btn.addEventListener(rollOut, MyDelegate.create(this,
onRollOut);

Yet nothing is called - what am I missing?


Not sure if it matters, these actions are within an AS2 class.

Thanks in advance!

d


___
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


Re: [Flashcoders] swfObject problem

2006-10-14 Thread John Grden

he's not describing dropping of framerate, he's describing that he can no
longer drag the ship around:

But when I use swfObject to publish it, it starts droping the drag of the
ship.

when he uses swfObject, he looses that functionality.  It's not a
performance question, its a functionality question.

hth,

jpg

On 10/14/06, Marc Hoffman [EMAIL PROTECTED] wrote:


Performance hit means a reduction in performance (extra burden on
the CPU), which is what you described. Why don' t you change the code
and see if that fixes it?

At 09:36 PM 10/13/2006, you wrote:
Is that the problem?

- Original Message - From: Marc Hoffman 
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 13, 2006 9:16 PM
Subject: Re: [Flashcoders] swfObject problem


Why do you have WMODE set to transparent? If you don't need it,
lose it. It results in a performance hit.
At 07:30 PM 10/13/2006, you wrote:

Hey All,

I am making this game that allows you drag around a ship and shoot
things. It works fine when I let Flash publish the HTML:

http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag
of the ship.

http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?


___
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





--
[  JPG  ]
___
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] Interfaces: what are the advantages?

2006-10-14 Thread Ray Chuan

Hi,
can't this be done with intrinsics?

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1879.html

On 10/14/06, Ian Thomas [EMAIL PROTECTED] wrote:

On 10/13/06, Jim Kremens [EMAIL PROTECTED] wrote:
 I understand what interfaces are, but I'm not entirely clear on when
 they become advantageous to use.  Anyone care to shed some light?

Interfaces are also very handy when you want to put the actual
implementation code for a class in one .swf, but still get all the
type-checking when writing code in another .swf that'll use it. Both
.swfs include the interface code, but only the implementing .swf needs
to include  a concrete implementation of the class.

Ian
___
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




--
Cheers,
Ray Chuan
___
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] Interfaces: what are the advantages?

2006-10-14 Thread slangeberg

can't this be done with intrinsics?


Ray, an interface does not include variables, so this example looks more
like an Abstract class.

intrinsic class Circle {
var radius:Number;
function Circle(radius:Number);
function getArea():Number;
function getDiameter():Number;
function setRadius(param_radius:Number):Number;
}

According to those docs, it looks like it's intended to bring forward
type-checking from AS1 classes. However, does anyone know if an intrinsic
class could be used as an abstract class?


Scott



On 10/14/06, Ray Chuan [EMAIL PROTECTED] wrote:


Hi,
can't this be done with intrinsics?


http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1879.html

On 10/14/06, Ian Thomas [EMAIL PROTECTED] wrote:
 On 10/13/06, Jim Kremens [EMAIL PROTECTED] wrote:
  I understand what interfaces are, but I'm not entirely clear on when
  they become advantageous to use.  Anyone care to shed some light?

 Interfaces are also very handy when you want to put the actual
 implementation code for a class in one .swf, but still get all the
 type-checking when writing code in another .swf that'll use it. Both
 .swfs include the interface code, but only the implementing .swf needs
 to include  a concrete implementation of the class.

 Ian
 ___
 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



--
Cheers,
Ray Chuan
___
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





--

: : ) Scott
___
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] Interfaces: what are the advantages?

2006-10-14 Thread Ian Thomas

Hi Ray,
 Yes - but why would you, if the language spec already supports
interfaces? Using interfaces is a much more 'standard' way (i.e. the
same sort of thing you'd do if you were talking to dynamic libraries
in other languages).

 I still see intrinsics as a bit of a hack. These classes are
internal to the Flash Player, honest! Don't look for their
implementation.

 Note the line from the page you link to: This keyword was not meant
for general purpose use...

 Still - I'd imagine, like many of these things, in the end it comes
down to personal taste. :-) Whatever gets the job done...

Ian

On 10/14/06, Ray Chuan [EMAIL PROTECTED] wrote:

Hi,
can't this be done with intrinsics?

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1879.html

___
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] Interfaces: what are the advantages?

2006-10-14 Thread Ian Thomas

Scott,
 To me, an abstract class is one which has a partial - but incomplete
- implementation i.e. you should never find yourself writing new
SomeAbstractClass() - you should only ever be creating objects derived
from it. The abstract class contains some useful re-usable stuff, but
can't function on its own. Halfway between an interface and a class,
if you like.

 That being the case, I can't quite see how intrinsics apply, as by
their nature they include no implementation at all.

 The simplest way of faking an abstract class in AS2, I think, is
just to mark the constructor as private. (Oddly, in AS3 Macrodobe have
taken out the facility to mark a constructor as anything else than
public - and I really can't fingure out why.)

Ian

On 10/14/06, slangeberg [EMAIL PROTECTED] wrote:

According to those docs, it looks like it's intended to bring forward
type-checking from AS1 classes. However, does anyone know if an intrinsic
class could be used as an abstract class?

___
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] Interfaces: what are the advantages?

2006-10-14 Thread slangeberg

Ian,


 That being the case, I can't quite see how intrinsics apply, as by

their nature they include no implementation at all.

Ah, good point. I just got excited when I saw that variable in there. It is
one step closer to abstract.


Oddly, in AS3 Macrodobe have

taken out the facility to mark a constructor as anything else than
public

I think they're following the Java language closely, which only has public
constructors.

Scott

On 10/14/06, Ian Thomas [EMAIL PROTECTED] wrote:


Scott,
  To me, an abstract class is one which has a partial - but incomplete
- implementation i.e. you should never find yourself writing new
SomeAbstractClass() - you should only ever be creating objects derived
from it. The abstract class contains some useful re-usable stuff, but
can't function on its own. Halfway between an interface and a class,
if you like.

  That being the case, I can't quite see how intrinsics apply, as by
their nature they include no implementation at all.

  The simplest way of faking an abstract class in AS2, I think, is
just to mark the constructor as private. (Oddly, in AS3 Macrodobe have
taken out the facility to mark a constructor as anything else than
public - and I really can't fingure out why.)

Ian

On 10/14/06, slangeberg [EMAIL PROTECTED] wrote:
 According to those docs, it looks like it's intended to bring forward
 type-checking from AS1 classes. However, does anyone know if an
intrinsic
 class could be used as an abstract class?
___
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





--

: : ) Scott
___
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] swfObject problem

2006-10-14 Thread Marc Hoffman
First off, my apologies to Victor for being snooty in my previous 
reply. That was not a good way to handle it, but I was annoyed 
because I'd taken the time to look at both pages, look at the html 
code (which was presumably the thing that was causing the swf to 
break), and offer a suggestion. When Victor replied by asking if that 
was the problem, I thought he ought to have done the work of trying 
out my suggestion (which was very quick and easy) rather than engage 
me in another response. I was being a bit prickly, but I wasn't 
trying to be a smartass in explaining what performance hit means, 
since I think that's quite possibly the problem.


John  Victor: As for what the problem is, I don't see that the 
dragging is actually being dropped. What I do see is an erratic frame 
rate, which is exactly what WMODE = transparent might produce in a 
tween-heavy simulation such as we have here. When I play the game, 
the dragging is never lost, but things run choppily which feels as if 
I have no control.


Victor: please delete the html line that sets WMODE, and let us know 
if that fixes the problem.


Marc Hoffman

At 02:35 AM 10/14/2006, you wrote:

he's not describing dropping of framerate, he's describing that he can no
longer drag the ship around:

But when I use swfObject to publish it, it starts droping the drag of the
ship.

when he uses swfObject, he looses that functionality.  It's not a
performance question, its a functionality question.

hth,

jpg

On 10/14/06, Marc Hoffman [EMAIL PROTECTED] wrote:


Performance hit means a reduction in performance (extra burden on
the CPU), which is what you described. Why don' t you change the code
and see if that fixes it?

At 09:36 PM 10/13/2006, you wrote:
Is that the problem?

- Original Message - From: Marc Hoffman 
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 13, 2006 9:16 PM
Subject: Re: [Flashcoders] swfObject problem


Why do you have WMODE set to transparent? If you don't need it,
lose it. It results in a performance hit.
At 07:30 PM 10/13/2006, you wrote:

Hey All,

I am making this game that allows you drag around a ship and shoot
things. It works fine when I let Flash publish the HTML:

http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag
of the ship.

http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?


___
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




--
[  JPG  ]
___
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


Re: [Flashcoders] swfObject problem

2006-10-14 Thread Victor Gaudioso
Yes! It does fix the problem.  Thanks very much!  Now let me expalin why I 
didn't just try it and then reply back.  Normally I would have done so and I 
did change the code but my FTP client (WSFTP) on this machine just stops 
working after about 4 hours and I have to re-boot. I was lazy and wanted 
more information before I went through that ordeal. Therefore, I guess your 
snooty answer may have been somewhat in order and I apologize and I also am 
very grateful for the help and time in looking over the code.


BTW, this may sound stupid but what is transparent mode?  Is it so HTML can 
be seen underneath like on stupid point roll banner adds or those stupid 
adds you always see poping over HTML for the ARMY?  My HTML guy always sets 
that WMODE to true.  If your not doing a banner add then why would you need 
it?


Again, thank you Marc,
V
- Original Message - 
From: Victor Gaudioso [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, October 14, 2006 10:34 AM
Subject: Re: [Flashcoders] swfObject problem


I will try right now and I do appreciate the response.  Let you know in a 
few.  Thanks again, V
- Original Message - 
From: Marc Hoffman [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, October 14, 2006 9:06 AM
Subject: Re: [Flashcoders] swfObject problem


First off, my apologies to Victor for being snooty in my previous reply. 
That was not a good way to handle it, but I was annoyed because I'd taken 
the time to look at both pages, look at the html code (which was 
presumably the thing that was causing the swf to break), and offer a 
suggestion. When Victor replied by asking if that was the problem, I 
thought he ought to have done the work of trying out my suggestion (which 
was very quick and easy) rather than engage me in another response. I was 
being a bit prickly, but I wasn't trying to be a smartass in explaining 
what performance hit means, since I think that's quite possibly the 
problem.


John  Victor: As for what the problem is, I don't see that the dragging 
is actually being dropped. What I do see is an erratic frame rate, which 
is exactly what WMODE = transparent might produce in a tween-heavy 
simulation such as we have here. When I play the game, the dragging is 
never lost, but things run choppily which feels as if I have no control.


Victor: please delete the html line that sets WMODE, and let us know if 
that fixes the problem.


Marc Hoffman

At 02:35 AM 10/14/2006, you wrote:
he's not describing dropping of framerate, he's describing that he can 
no

longer drag the ship around:

But when I use swfObject to publish it, it starts droping the drag of 
the

ship.

when he uses swfObject, he looses that functionality.  It's not a
performance question, its a functionality question.

hth,

jpg

On 10/14/06, Marc Hoffman [EMAIL PROTECTED] wrote:


Performance hit means a reduction in performance (extra burden on
the CPU), which is what you described. Why don' t you change the code
and see if that fixes it?

At 09:36 PM 10/13/2006, you wrote:
Is that the problem?

- Original Message - From: Marc Hoffman 
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 13, 2006 9:16 PM
Subject: Re: [Flashcoders] swfObject problem


Why do you have WMODE set to transparent? If you don't need it,
lose it. It results in a performance hit.
At 07:30 PM 10/13/2006, you wrote:

Hey All,

I am making this game that allows you drag around a ship and shoot
things. It works fine when I let Flash publish the HTML:

http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag
of the ship.

http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?


___
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




--
[  JPG  ]
___
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@chattyfig.figleaf.com
To 

Re: [Flashcoders] swfObject problem

2006-10-14 Thread Marc Hoffman

Victor,

You are exactly right about the purpose of WMODE, and your HTML guy 
should be taking the opposite approach: always leave it off (which by 
default sets it to false) unless you need it. And know that it still 
doesn't work on some browsers.


Glad to get this problem solved.

BTW, WSFTP never gives me a problem -- have you tried re-installing 
it? It might also be an issue with your server timing out, so you 
might need to turn WSFTP off, or disconnect, after each transfer 
session. Or even try repairing your network connection. Weird that 
you'd have to reboot -- what a drag.


- Marc

At 10:44 AM 10/14/2006, you wrote:
Yes! It does fix the problem.  Thanks very much!  Now let me expalin 
why I didn't just try it and then reply back.  Normally I would have 
done so and I did change the code but my FTP client (WSFTP) on this 
machine just stops working after about 4 hours and I have to 
re-boot. I was lazy and wanted more information before I went 
through that ordeal. Therefore, I guess your snooty answer may have 
been somewhat in order and I apologize and I also am very grateful 
for the help and time in looking over the code.


BTW, this may sound stupid but what is transparent mode?  Is it so 
HTML can be seen underneath like on stupid point roll banner adds or 
those stupid adds you always see poping over HTML for the ARMY?  My 
HTML guy always sets that WMODE to true.  If your not doing a banner 
add then why would you need it?


Again, thank you Marc,
V
- Original Message - From: Victor Gaudioso [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, October 14, 2006 10:34 AM
Subject: Re: [Flashcoders] swfObject problem


I will try right now and I do appreciate the response.  Let you 
know in a few.  Thanks again, V

- Original Message - From: Marc Hoffman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Saturday, October 14, 2006 9:06 AM
Subject: Re: [Flashcoders] swfObject problem


First off, my apologies to Victor for being snooty in my previous 
reply. That was not a good way to handle it, but I was annoyed 
because I'd taken the time to look at both pages, look at the html 
code (which was presumably the thing that was causing the swf to 
break), and offer a suggestion. When Victor replied by asking if 
that was the problem, I thought he ought to have done the work of 
trying out my suggestion (which was very quick and easy) rather 
than engage me in another response. I was being a bit prickly, but 
I wasn't trying to be a smartass in explaining what performance 
hit means, since I think that's quite possibly the problem.


John  Victor: As for what the problem is, I don't see that the 
dragging is actually being dropped. What I do see is an erratic 
frame rate, which is exactly what WMODE = transparent might 
produce in a tween-heavy simulation such as we have here. When I 
play the game, the dragging is never lost, but things run choppily 
which feels as if I have no control.


Victor: please delete the html line that sets WMODE, and let us 
know if that fixes the problem.


Marc Hoffman

At 02:35 AM 10/14/2006, you wrote:

he's not describing dropping of framerate, he's describing that he can no
longer drag the ship around:

But when I use swfObject to publish it, it starts droping the drag of the
ship.

when he uses swfObject, he looses that functionality.  It's not a
performance question, its a functionality question.

hth,

jpg

On 10/14/06, Marc Hoffman [EMAIL PROTECTED] wrote:


Performance hit means a reduction in performance (extra burden on
the CPU), which is what you described. Why don' t you change the code
and see if that fixes it?

At 09:36 PM 10/13/2006, you wrote:
Is that the problem?

- Original Message - From: Marc Hoffman 
[EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, October 13, 2006 9:16 PM
Subject: Re: [Flashcoders] swfObject problem


Why do you have WMODE set to transparent? If you don't need it,
lose it. It results in a performance hit.
At 07:30 PM 10/13/2006, you wrote:

Hey All,

I am making this game that allows you drag around a ship and shoot
things. It works fine when I let Flash publish the HTML:

http://creativenetdesign.com/xwing/

But when I use swfObject to publish it, it starts droping the drag
of the ship.

http://creativenetdesign.com/xwing/index_old.html

Anyone know why, or if there is anything I can do to fix it?


___
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




--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search 

Re: [Flashcoders] ::dk:: understanding roll over with addEventListener

2006-10-14 Thread dnk

eka wrote:

Hello :)

if you use Macromedia's V2 components, the Button component don't have 
over
and out event  you must override the class and add your custom 
events.


EKA+ :)


Pointers to any docs on how to do that?

Thanks!

d


___
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] hello, and interval management question

2006-10-14 Thread Giles Bowkett

Hi, I'm mainly a coder, with some experience on the arts side as well.
I've got a site where I need to be able to set and clear a bunch of
intervals dynamically. It's a visualization application which involves
node-link graphs with a potentially large number of nodes, and in
which you can generate new graphs by exploring particular nodes.
Various animations and things will have to happen, and one use of the
application could conceivably involve hundreds of intervals being set
and cleared. I need to be able to manage fade-outs, fade-ins, and
movement for all these different nodes without any of the interval
clearing or setting obliterating pre-existing intervals used in
different functions.

I've been reading various books and googling for a while and I really
just haven't found any sophisticated technique for doing what I want
to do.

There are limitations, too. The system is a prototype and has to be
finished very quickly. It's not object-oriented, it's in AS 2, and
I've probably made a number of hideous mistakes as my prior experience
is generally limited to bit101 tutorials and Jared Tarbell style art
experiments.

My question is, is there a way to pass an interval to the function
you're calling within setInterval? Should I create a NodeFader class
and pass it the interval?

nodefader = new NodeFader() ;
nodefader.interval = setInterval(nodefader, 50, node_to_fade) ;

Something like that?

My second question is, did I just answer my first question in the
process of asking it?

--
Giles Bowkett
http://www.gilesgoatboy.org
___
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