[Flashcoders] EventDispatcher.removeEventListener

2006-02-06 Thread Simen Brekken
I'm having some issues with EventDispatcher, specifically removeEventListener
and delegates. The problem arises when I want to remove an existing event
listener but the target function no longer exists, is there any way to remove an
event listener without specifying the callback function?

On a side note, are there any improved alternatives to EventDispatcher?

--
Regards,
Simen Brekken


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] EventDispatcher.removeEventListener

2006-02-06 Thread Ramon Tayag
yup, check out gDispatcher by Mr. Skinner.  You can google it.

On 2/6/06, Simen Brekken [EMAIL PROTECTED] wrote:
 I'm having some issues with EventDispatcher, specifically removeEventListener
 and delegates. The problem arises when I want to remove an existing event
 listener but the target function no longer exists, is there any way to remove 
 an
 event listener without specifying the callback function?

 On a side note, are there any improved alternatives to EventDispatcher?

 --
 Regards,
 Simen Brekken


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FAME demands perfection

2006-02-06 Thread Galt Roarc
I just started using the FAME combo (Flashout, ASDT, MTASC and Eclipse) and
tried compiling an existing class and fla as my first run thru of flashout.

 

Flashout seems pretty strict -which is excellent for my own classes but it
complains about the ScrollView core mx class.

 

C:\Documents and Settings\rakesh.OSELLUS\Local Settings\Application
Data\Macromedia\Flash MX
2004\en\Configuration\Classes/mx/core/ScrollView.as:174: characters 1-42 :
type error Object should be String

 

Quite a lot of coding of mx core classes is admittedly lousy but how do I
get Flashout to ignore problems in the core classes?

 

Appreciated.

Galt

 

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date: 2/4/2006
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FAME demands perfection

2006-02-06 Thread gilles Bertrand
Have you tried to use the -mx options in mtasc line command That  
should do it


BERTRAND Gilles
Le 06-févr.-06 à 11:04, Galt Roarc a écrit :

I just started using the FAME combo (Flashout, ASDT, MTASC and  
Eclipse) and
tried compiling an existing class and fla as my first run thru of  
flashout.




Flashout seems pretty strict -which is excellent for my own classes  
but it

complains about the ScrollView core mx class.



C:\Documents and Settings\rakesh.OSELLUS\Local Settings\Application
Data\Macromedia\Flash MX
2004\en\Configuration\Classes/mx/core/ScrollView.as:174: characters  
1-42 :

type error Object should be String



Quite a lot of coding of mx core classes is admittedly lousy but  
how do I

get Flashout to ignore problems in the core classes?



Appreciated.

Galt






--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date:  
2/4/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


Re: [Flashcoders] As2 Event Broadcasting for fp 6.0.0.0 [was: 6.0]

2006-02-06 Thread Chris Velevitch
On 2/6/06, Giles Taylor [EMAIL PROTECTED] wrote:
 Sorry, should have said that I need it for fp 6.0.0.0 (rather than 6.0).
 EventDispatcher is 6.0.79.0.

I believe it should work as is, because the full source of the
EventDispatcher class is included in the mx classes.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] As2 Event Broadcasting for fp 6.0.0.0 [was: 6.0]

2006-02-06 Thread Giles Taylor
Yep, you are right!!! That will teach me for RTFM! ;)

Thanks for the help,
Giles 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Velevitch
Sent: 06 February 2006 11:34
To: Flashcoders mailing list
Subject: Re: [Flashcoders] As2 Event Broadcasting for fp 6.0.0.0 [was:
6.0]

On 2/6/06, Giles Taylor [EMAIL PROTECTED] wrote:
 Sorry, should have said that I need it for fp 6.0.0.0 (rather than
6.0).
 EventDispatcher is 6.0.79.0.

I believe it should work as is, because the full source of the
EventDispatcher class is included in the mx classes.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group www.flashdev.org.au
___
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] Bullet Angle

2006-02-06 Thread JesterXL
I've got some bullet code that is dependent upon the rotation.  However, my 
results are backwards; meaning, I have to invert my results to get the 
bullet to move at the right angle.  Granted, it works, but I feel 
uncomfortable since I don't understand why it's backwards.  Anyone explain 
why, or give me a better algo?

// my ship
var theRadians:Number = Math.atan2((_y - goodGuy._y), (_x - goodGuy._x));
var theDegrees:Number = theRadians * 180 / Math.PI;
_rotation = theDegrees;

// the bullet code
var deltaX:Number = targetX - _x;
var deltaY:Number = targetY - _y;
var angle:Number = p_shipFiring._rotation;
angle = angle * Math.PI / 180;
theX = speed * Math.cos(angle);
theY = speed * Math.sin(angle);
// only works if I invert...???
theX *= -1;
theY *= -1;

Thanks if you can help!

--JesterXL 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Bullet Angle

2006-02-06 Thread Jobe Makar

Hi,

Reverse the difference calculation in the atan2 method. Those parameters 
determine the slope from the perspective of one of the two points. So change 
it to this and it should work:


var theRadians:Number = Math.atan2(( goodGuy._y-_y), (goodGuy._x-_x));

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: JesterXL [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, February 06, 2006 11:56 AM
Subject: [Flashcoders] Bullet Angle


I've got some bullet code that is dependent upon the rotation.  However, 
my

results are backwards; meaning, I have to invert my results to get the
bullet to move at the right angle.  Granted, it works, but I feel
uncomfortable since I don't understand why it's backwards.  Anyone explain
why, or give me a better algo?

// my ship
var theRadians:Number = Math.atan2((_y - goodGuy._y), (_x - goodGuy._x));
var theDegrees:Number = theRadians * 180 / Math.PI;
_rotation = theDegrees;

// the bullet code
var deltaX:Number = targetX - _x;
var deltaY:Number = targetY - _y;
var angle:Number = p_shipFiring._rotation;
angle = angle * Math.PI / 180;
theX = speed * Math.cos(angle);
theY = speed * Math.sin(angle);
// only works if I invert...???
theX *= -1;
theY *= -1;

Thanks if you can help!

--JesterXL

___
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] Flash Senior Developer/Copenhagen

2006-02-06 Thread Alexander Aghassipour
Flash Senior Developer


Effective-Learning is an independent IBM subsidiary specializing in
e-learning solutions. Our vision is to bring knowledge to action and
results. We employ 50 people in Copenhagen, Denmark. 

Job description:
Effective-Learning is looking for a world-class Flash senior developer to
work with us developing and delivering Flash based e-learning applications
for our clients who span across multiple industries. You will be working
tightly together with storyboarders, designers, developers and the client's
subject matter experts. You will also be responsible for the overall
architecture of our Flash based e-learning framework and backend
integration. 

The job is a fulltime position and is located in Copenhagen. 

Fluency in danish - written and verbal - is a prerequisite.

Skills:
Flash
Project management
Client relations
Systems integration, incl. web services and XML 

Contact Jens Lauritzen at [EMAIL PROTECTED] and say you heard of the vacancy
here.

--
Thanks,
Alexander


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Q:implementing quadtrees

2006-02-06 Thread bitstreams
I need to perform distance calculations between a number of fixed 'hotspots' 
and a draggable movie clip on a 2d plane.

To reduce the number of calcualtions I only want to be concerned with those 
'hotspots' that are 'closest to' the movieclip at any given time.

So I need to perform some sort of 'proximity test'

In an earlier post someone pointed out Grant Skinner's Proximity class, which 
is useful if all of your hot spots are moving.

Martin Wood alos opnend my eys to something called 'quadtrees' which is a 
method of spatial partitioning absolutely essential in reducing the number of 
calculations in 
games involving a lot of 3d rendering and spatial movement.
A great reference here:
http://www.gamedev.net/reference/articles/article1303.asp


The simple quadtree I have in mind would be composed of a 16X16 grid of cells 
or 'leaves'.
The dimensions of our draggable clip would also be smaller than each cell.
 To simplify things each 'base node' I would define as having 2X2 or 4 cells. 
So there would be a total of 256 cells and 64 'base nodes'. The total number of 
nodes in this scenario would be:
4   (1st level nodes)
+
4X4  (2nd level nodes)
+
4X(4X4) (3rd level or 'base nodes')
=
84 total nodes

So, to begin, I create this grid, then create my nodes array (or arrays). Each 
node in the array would be composed of x,y,width,height (probably simpler to do 
the width, height calculation up front than simply using bounding points)

At any given time there would be four 'base nodes' that would be considered 
'nearest neighbours'..we need to check for and return the current plus 3 
additional 'base nodes' depending on which one of four cells in the current 
'base node' we're 'over' at any given time (this is easier to ilustrate on a 
sheet of graph paper). 

But the net result is that we are dealing with only 4 as opposed to 64(the 
entire grid)  'base nodes' or 16 vs 256 cells...a savings or reduction of 16X.


So i guess what I'm asking is 
What is the best way to set up the node array(s)? (nested , associative, using 
objects, etc)
and
Given the current x,y coordinates of the draggable movieclip and the nodes 
array(s), how to perform the quadtrees calculaton?

Thanks
Jim Bachalo

[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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Attn: John Grden

2006-02-06 Thread John Grden
Man, guy takes a few days off...

Ryan...what up!  i'm back

On 2/3/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 I think it's more along the lines of:
 var correctEmail:Boolean= manueSaintVictor.canMultiTask();

 It was one of those days.

 M

 On 2/3/06, hank williams [EMAIL PROTECTED] wrote:
 
  It  was a pascal snippet.
 
  Hank
 
  On 2/3/06, Chris Allen [EMAIL PROTECTED] wrote:
   On 2/3/06, Michael Stuhr [EMAIL PROTECTED] wrote:
   
hank williams schrieb:
 hmm...

 Does John Grden = Manuel Saint-Victor?


   
you mean like John Grden === Manuel Saint-Victor ?
   
seems not the case
   
micha
  
  
   Good point Micha,
  
   I think Hank was setting John to be Manuel.  A typical syntax error,
  which
   might have evaluated to true in the end, and not to mention it would
  have
   been tough to debug. :-) Yikes, what a thought.
  
   Have a great weekend.
  
   -Chris
   ___
   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




--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Timeline sound delay

2006-02-06 Thread Marcelo Wolfgang
Hi list,

I'm doing a freelance project, and I'm having problems with sound
sync. I've placed a sound in the timeline and syncronized the
animation, it was ok on the movie preview so I've published it.
In my browser the syncing was all wrong, and again I fixed it.

So I finished of the job and send it to my contractor, the sound was
so delayed that he made me cut the animation in about 10 secs to
almost sync with his computer.

Now it is completely off sync in my machine, and I can't understand
why that difference happens.

Can anyone here throw some light in this issue ? Please, I want any
tip you can offer.

TIA,
Grillo
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Timeline sound delay

2006-02-06 Thread Tom Rhodes
set it to stream

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcelo
Wolfgang
Sent: 06 February 2006 20:02
To: Flashcoders mailing list
Subject: [Flashcoders] Timeline sound delay

Hi list,

I'm doing a freelance project, and I'm having problems with sound
sync. I've placed a sound in the timeline and syncronized the
animation, it was ok on the movie preview so I've published it.
In my browser the syncing was all wrong, and again I fixed it.

So I finished of the job and send it to my contractor, the sound was
so delayed that he made me cut the animation in about 10 secs to
almost sync with his computer.

Now it is completely off sync in my machine, and I can't understand
why that difference happens.

Can anyone here throw some light in this issue ? Please, I want any
tip you can offer.

TIA,
Grillo
___
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] serviceName property being added to Flash Remoting Data

2006-02-06 Thread Sam Shrefler
Has anyone ever noticed when using PendingCall and Responder with Flash
remoting that an extra property: serviceName gets added to the result of the
ResultEvent?

Any idea why this happens?  Currently I'm just doing:  delete
resultObj.result.serviceName;

Any other thoughts on how to keep this from happening?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] serviceName property being added to Flash Remoting Data

2006-02-06 Thread Rich Rodecker
i beleive that is something internally in the flash player itself, and as
far as I know there is no way to stop it.





On 2/6/06, Sam Shrefler [EMAIL PROTECTED] wrote:

 Has anyone ever noticed when using PendingCall and Responder with Flash
 remoting that an extra property: serviceName gets added to the result of
 the
 ResultEvent?

 Any idea why this happens?  Currently I'm just doing:  delete
 resultObj.result.serviceName;

 Any other thoughts on how to keep this from happening?
 ___
 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] serviceName property being added to Flash Remoting Data

2006-02-06 Thread elibol
I get a kind of meta data from from the objects generated via database
queries. along with my items property, there comes result.mRecordsAvailable,
result.serverInfo ( usually null ), and result.uniqueID. I really don't know
what purpose it would serve for client side scripts, since all this
information, maybe except uniqueID, can be determined with other properties.
I've had serviceName in some instances, except, if I recall correctly, it's
always been null.

I use CF for remoting, what do you guys use? I wonder if it has something to
do with the serverside language appending redundant data due to some
configuration switches. Maybe serverside reconfigurations can stop it.

M.

On 2/6/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 i beleive that is something internally in the flash player itself, and as
 far as I know there is no way to stop it.





 On 2/6/06, Sam Shrefler [EMAIL PROTECTED] wrote:
 
  Has anyone ever noticed when using PendingCall and Responder with Flash
  remoting that an extra property: serviceName gets added to the result of
  the
  ResultEvent?
 
  Any idea why this happens?  Currently I'm just doing:  delete
  resultObj.result.serviceName;
 
  Any other thoughts on how to keep this from happening?
  ___
  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] Q:implementing quadtrees

2006-02-06 Thread Martin Wood
So i guess what I'm asking is 
What is the best way to set up the node array(s)? (nested , associative, using objects, etc)


What i would suggest is that when you classify the hotspots, you only create the 
nodes that you need.


For the data structure each node can have 4 children, so a simple array will do 
containing references to its 4 child nodes, or even just 4 member variables if 
you dont want to loop :)


So when constructing the tree you can just create the nodes that actually 
contain hotspots..


e.g. (in the node class)

function classify(hotspot)
{
// flag to indicate if the hotspot is entirely contained
// within a leaf node
var containedInLeafNode:Boolean = false;

for(var n=0;n4;n++)
{
// test bounds of child[n] to see if it can hold the hotspot
if(isInQuadrant(n,hotspot))
{
// Make a new node if we dont already have it.
if(childNodes[n] == undefined)
{
childNodes[n] = new Node();
}   
childNodes[n].classify(hotspot);
containedInLeafNode = true;
}
}

// If none of the leaf nodes 'took ownership' of the hotspot
// then hold onto it here.
if(!containedInLeafNode)
{
candidates.push(hotspot);
}
}

So this will recurse down the tree, making sure that any item is contained 
within the smallest possible leaf node. Of course you'll want to put a limit on 
how small a node can get. How small that is depends on the sizes of the items 
you want to classify, if i remember correctly (which i wouldnt assume i do) then 
the best target size is somewhere just around the size of the smallest object 
you are trying to classify, unless you are classifying lots of very small 
objects relative to screen size then you can just cap it somewhere like 4 or 5 
levels deep.


Then when you come to query the tree for nodes that contain items that may be 
within distance of your draggable object you only need to bother with the nodes 
that exist


for speed you could even not bother with a loop and also take advantage of the 
fact that calling a function on something that doesnt exist wont generate an error :


so instead of

for(i=0;i4;i++)
{
if(childNodes[n] != undefined)
{
   // check childNodes[n] for candidates
}
}

you just do

candidateList.concat(childNodes[0].getThingsThatAreClose(draggableObject))
candidateList.concat(childNodes[1].getThingsThatAreClose(draggableObject))
etc..

anyway, im just typing it out as it comes into my head..some of it from hazy 
memories of implementations past. :)


Theres no real canonical way of working with quadtrees, the beauty is that you 
can adapt them according to your particular requirements.


Id be interested to hear other peoples opinions and experiences or just 'why 
bother, you can do 'x' because its easier and quicker'


thanks,

Martin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Is podcasting possible with Flash MX 2004 Pro ?

2006-02-06 Thread Rich Rodecker
not sure exactly what you are asking.  'Podcasting' generally means using a
special tag (i'm pretty sure the tag name is 'enclosure' but im not 100%) in
an rss feed which indicate a path to a file (mp3 generally.  Programs like
itunes 'subscribe' to that rss feed (meaning they listen for new entries).
When a new post is found, the program will download the file indicated in
the special tag.

Being that rss is basically xml in a special format, you can read the in the
rss feed and fork with that...then download the mp3 file you want and play
it.





On 2/6/06, a f [EMAIL PROTECTED] wrote:

 Hello,

 Is podcasting possible with Flash MX 2004 Pro ?


 Thank you
 Tony

 ___
 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] EventDispatcher.removeEventListener

2006-02-06 Thread blists
You can also remove a listener from an object using the __q_click array of 
the object the listener is on.


Add a listener like this:
cancel_btn.addEventListener(click, Delegate.create(this, this.somefunction));

And remove that listener like this:
cancel_btn.removeEventListener(click, cancel_btn.__q_click[0]);

If you had multiple listeners, you might be able to loop over the __q_click 
array and do a comparison but I'm not sure how.


Brookd


At 12:43 PM 2/6/2006, you wrote:

What I've figured out with removeEventListener and Delegate is you can
remove the listener on dispatchEvent like so:

private function someEventHandler (e:Object) {
var target = e.target;
if (removeHandler) target.removeEventListener(event, 
arguments.caller);

}

Of course this only works after removeHandler is set to true and the
event is dispatched once again. Yet, is some instances its enough.
___
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] EventDispatcher.removeEventListener

2006-02-06 Thread Ian Thomas
Or perhaps a bit simpler and safer:

var myFunction:Function=Delegate.create(this,somefunction);

cancel_btn.addEventListener(click,myFunction);

and later:
cancel_btn.removeEventListener(click,myFunction);

You could always store myFunction as a property...

Ian

On 2/6/06, blists [EMAIL PROTECTED] wrote:

 You can also remove a listener from an object using the __q_click array of
 the object the listener is on.

 Add a listener like this:
 cancel_btn.addEventListener(click, Delegate.create(this,
 this.somefunction));

 And remove that listener like this:
 cancel_btn.removeEventListener(click, cancel_btn.__q_click[0]);

 If you had multiple listeners, you might be able to loop over the
 __q_click
 array and do a comparison but I'm not sure how.

 Brookd


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FAME demands perfection

2006-02-06 Thread Galt Roarc
I did actually. Doesn't seem to do it. Or perhaps MTASC is not reading the
-mx setting that's been set via eclipse correctly. I'll give it a go with
direct command line and see how it goes.
Thanks mate.


-Original Message-
From: gilles Bertrand [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 06, 2006 5:13 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] FAME demands perfection

Have you tried to use the -mx options in mtasc line command That  
should do it

BERTRAND Gilles
Le 06-fйvr.-06 а 11:04, Galt Roarc a йcrit :

 I just started using the FAME combo (Flashout, ASDT, MTASC and  
 Eclipse) and
 tried compiling an existing class and fla as my first run thru of  
 flashout.



 Flashout seems pretty strict -which is excellent for my own classes  
 but it
 complains about the ScrollView core mx class.



 C:\Documents and Settings\rakesh.OSELLUS\Local Settings\Application
 Data\Macromedia\Flash MX
 2004\en\Configuration\Classes/mx/core/ScrollView.as:174: characters  
 1-42 :
 type error Object should be String



 Quite a lot of coding of mx core classes is admittedly lousy but  
 how do I
 get Flashout to ignore problems in the core classes?



 Appreciated.

 Galt






 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date:  
 2/4/2006

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/252 - Release Date: 2/6/2006
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How do you code your Flash applications?

2006-02-06 Thread Nathan Derksen
You make it sound like I'm forcing it to work. I'm not forcing it, it  
works as a nice byproduct of how I normally setup and group my movie  
clips. I see this as being good coding practice. Things that are  
grouped together share a parent movie clip, making control of the  
group easier and making depth management easer as each movie clip  
manages the depths of its children. I hate renumbering depths, and I  
don't like having to figure out blocks of depths then later finding  
that I need to move a block later on. This works very cleanly for me,  
both from architecting movie clips into a logical hierarchy and from  
preventing annoying depth collisions. I don't deny that it will not  
work in all situations, nor did I claim so, nor do I know your  
particular experiences with depth management. I do however have a  
hard time imagining that manual depth management is a best practice.


   Anyway, this has gone on long enough. If you haven't gotten the  
point yet you're never going to.


Nonsense, this is a great debate IMHO, and I would love to hear more  
from others as well. This is something that everyone has to deal  
with, and I genuinely thought that others would make more use of  
getNextHighestDepth() and was surprised that you and others avoid it.  
What are the situations that you have come across where only manual  
depth management would work? Do you have other ways of managing depth?


Nathan
http://www.nathanderksen.com


On Feb 6, 2006, at 3:10 PM, ryanm wrote:


Then I create a placeholder movie clip...

   You miss the point. Doing something because you can usually find  
a way to make it work doesn't make it a valid replacement for good  
coding practices. That you rarely come across a scenario that you  
can't handle that way only means that there *are* scenarios that  
won't work that way, and that it is likely that at least some of  
the time when it does work for you it would still be better (more  
efficient, more readable, etc) to do it a different way. Also, just  
because you rarely run into situations that don't work that way  
doesn't mean that others don't run into them all the time, which  
means your method probably isn't the best one to be recommending  
broadly in a thread about best practices. Why not pick a good,  
standardized way to manage depths that works in every scenario?


   Anyway, this has gone on long enough. If you haven't gotten the  
point yet you're never going to.


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] How do you code your Flash applications?

2006-02-06 Thread Grant Cox
Just to throw my 2c in, I personally only use getNextHighestDepth(), and 
as yet haven't had any problems with it.  The majority of our screens 
are already placed in the Flash timeline, I use attachMovie almost only 
to populate scrollpanes, and loadMovie only into graphic components.


To keep our code separated from the design, we will use placeholders / 
components in the Flash file to define where external elements are 
loaded.  This lets the designers fiddle with what they like, without 
having to bother me :)


Regards,
Grant Cox

Nathan Derksen wrote:



Nonsense, this is a great debate IMHO, and I would love to hear more  
from others as well. This is something that everyone has to deal  
with, and I genuinely thought that others would make more use of  
getNextHighestDepth() and was surprised that you and others avoid it.  
What are the situations that you have come across where only manual  
depth management would work? Do you have other ways of managing depth?


Nathan
http://www.nathanderksen.com


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] plz suggest.....urgent

2006-02-06 Thread Grant Cox
Please explain what you mean by checkboxes in a scrollbar.  Do you 
mean a list component (scrollable), where each row contains a checkbox?  
If so, you want to use a CellRenderer.


Or do you mean just two checkboxes, in a bounding area that can have 
scrollbars?  If so, you probably want a ScrollPane, with the content 
being a movieclip containing the checkboxes.


Regards,
Grant Cox


[EMAIL PROTECTED] wrote:

how can i add 2 checkboxes in a scrollbar..is it using 
contentpath?? 
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or [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] plz suggest.....urgent

2006-02-06 Thread srishti
I want a ScrollPane, with the content 
being  movieclip containing 2 checkboxes and labels next to 
them.
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] plz suggest.....urgent

2006-02-06 Thread Grant Cox
Then yes, contentPath is what you want.  The contentPath can be either a 
Linkage Id, or a url of an external SWF.



[EMAIL PROTECTED] wrote:

I want a ScrollPane, with the content 
being  movieclip containing 2 checkboxes and labels next to 
them.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [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] How do you code your Flash applications?

2006-02-06 Thread Tyler Wright
 Why not pick a good, standardized
 way to manage depths that works in every scenario?


...tag, you're it!

Anyway, this has gone on long enough. If you haven't gotten the point
 yet you're never going to.


...I don't feel like playing anymore.


ok, let's not talk down to others who have good coding practices, even if
they're not your coding practices. It's a good discussion.

Managing the depths the way Ryan does it allows for a lot of control.
getNextHighestDepth can be limiting as you have to predict the appropiate
order of display items which can be problematic in a larger application. But
the manual method sounds even more limiting, labeling depths that not only
are now hard-coded in, but have to be understood and kept track of. I said
it before, order matters, relational depths and not numbers.

This is something that everyone has to deal
 with, and I genuinely thought that others would make more use of
 getNextHighestDepth()


I have my own solution, but everyone else I know of uses getNextHighestDepth.
Those who don't are the proud exception.

Tyler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] plz suggest.....urgent

2006-02-06 Thread srishti
Grant,i want a scrollpane.
Actually,my application displays contents in a 
Datagrid.then,on click of a button,a pop up window appears 
which contains the column names and checkboxes next to 
them.User selects few checkboxes(present on a scrollpane) in 
the pop-up Window,clicks ok button.Then,the selected 
checkboxes/column names should only be visible in the 
datagrid. Remaining columns should not appear in the 
datagrid. 
Can anyone suggest how can i add checkboxes (in the 
scrollpane)equal to the number of column names? 
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] plz suggest.....urgent

2006-02-06 Thread srishti
ok,scrollpane_instance.contentPath=linkage id of a 
checkbox.This adds a single checkbox.is it?
How to add 2 checkboxes?
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] plz suggest.....urgent

2006-02-06 Thread srishti
is itlinkage id of a movieclip class which contains adding 
2 checkboxes?Actually,i am new to flash.
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Setting the last pressed key in the Key class

2006-02-06 Thread Tyler Wright
Define your own static MyKey class and have it subscribe as a listener to
Flash's Key. It can then be your applications Key class. Meaning your
objects listen to MyKey while MyKey listens to Key. Then MyKey can at
anytime listen to something else that feeds it input. There's nothing magic
about the Key class you can't use the MyKey class for. MyKey can then also
store the last key pressed (whether it was a real key from the Key class or
a virtual key from somewhere else).

Good luck,
Tyler

On 1/25/06, elibol [EMAIL PROTECTED] wrote:

 I have another idea, would it be possible to delegate Key class functions
 to
 a custom class I've built?

 I've tried

 _global.ASSetPropFlags(Key,null,6,true);

 It still doesn't allow me to delegate the functions. Does anyone know of a
 way around this?

 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] How do you code your Flash applications?

2006-02-06 Thread ryanm
What are the situations that you have come across where only manual  depth 
management would work? Do you have other ways of managing depth?


   It's not a matter of getNextHighestDepth not working, it's a matter of 
controlling the depth to avoid unexpected behaviors. I've never had a 
problem with accidentally creating a movie clip at the same depth as 
something else, and that's one less thing I have to think about when 
debugging.


   The only time when setting depth constants was inconvenient for me was 
in a windowing system I built, in which case I built a window manager class 
that managed depth for me. The window manager class kept windows on a 
timeline where nothing but windows would ever be created, and always kept 
the depths of the windows consecutive, so when a window was closed it was 
swapped to the top before closing, and there were never gaps in the depths. 
I *could* have used getNextHighestDepth and saved myself the trouble of 
swapping windows to the top before closing them, but then if a user left the 
app open overnight and used it for several days in a row, they could 
theoretically open enough windows to hit the 65,535 depth limit and 
unexpected things could happen. So I went ahead and wrote the extra 10 lines 
of code to keep the depths consecutive, and circumvented the problem before 
it ever occurred.


ryanm 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders