[Flashcoders] flash internal bitmap to PNG format ..

2006-08-11 Thread keitai guy

hi list -

I have extracted some pixels from a bitmapData object... can someone
tip me off how to convert this into a PNG file, or some other simple
high quality format? Ideally i dont want a complex JPG encoder in AS,
just a way to get data out that can be read by photoshop etc.

bitmap.getPixel( --x, y ).toString(16) + "|" ;

gives this in string format:

ff|ff|ff|ff|ff|ff|ff|ff|ff|ff|
ff|ff|ff|ff|ff|ff|ff|ff|ff|ff|

thanks!

/dc
___
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] Flash Extension Package

2006-08-11 Thread Jeroen Beckers
It still can't find your zip file

Ravi Marella wrote:
> Sorry guys the last URL..i donno wat the problem is..yahoo has closed my
> site...please check this link...
> In that on the top frame, therez a link called "RotatingMenu"...its the
> zip file...
> http://www.geocities.com/flywithoutwings_4350/
>
> As u can see in the bottom frame I've used the same component which is
> working perfectly...please gimme some advice over this..
>
>
> best regards
> RaviKiran Marella
>
>
>
>  
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
> Beckers
> Sent: Friday, August 11, 2006 3:44 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Flash Extension Package
>
> The .zip isn't working...
>
> Ravi Marella wrote:
>   
>> Hi list,
>> I've got a problem while packaging a component I've developed..it's a
>> rotating menu component which will display any number of menu item
>> around a circle, the fla is working properly but when I package it to
>> .mxp the menu is not rotating and also the component parameters are
>> 
> not
>   
>> getting displayed properly...can someone out there plz helpme with
>> this...please check the link for zip folder containing all the
>> 
> files
>   
>>  
>>  
>> http://www.geocities.com/ravi_marella/rotatingmenu.zip
>>  
>> best regards,
>> Ravi
>>  
>>
>>   
>>  
>> ___
>> 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 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] how to not overwrite methods, but append functionality

2006-08-11 Thread Matthias Dittgen

Hello list,

my tooltip class uses code like this "mc.onRollOver = function() {}"
to add its tooltip functionality to a movieclip mc. But this way it
overwrites the onRollOver method of mc and disables the functionality
like highlighting.

So now my question (probably a really simple one): How is it possible
to append functionality instead of overwriting? is there something
like "super()" is for cunstructors?

Thanks,
Matthias
___
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] how to not overwrite methods, but append functionality

2006-08-11 Thread Martin Wood



Matthias Dittgen wrote:

Hello list,

my tooltip class uses code like this "mc.onRollOver = function() {}"
to add its tooltip functionality to a movieclip mc. But this way it
overwrites the onRollOver method of mc and disables the functionality
like highlighting.

So now my question (probably a really simple one): How is it possible
to append functionality instead of overwriting? is there something
like "super()" is for cunstructors?


exactly.

super.onRollOver()

will call the method in the superclass.

martin

___
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] need help in drawing arrow

2006-08-11 Thread Janis Radins

You could do that witht those classe www.mediaverk.lv/asd
Arrow would be a laine or thin rectangle with triangle on begining or end

2006/8/11, Ravi Marella <[EMAIL PROTECTED]>:


Really sorry:(
The code is intended for drawing elliptical orbits not arrows...sorry
again :( :(

best regards
RaviKiran Marella






-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi
Marella
Sent: Friday, August 11, 2006 11:36 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] need help in drawing arrow

The following code worked for me perfectly:





onClipEvent (load) {
speed = 5;
radius = 100;
xcenter = 250;
ycenter = 200;
ellipticalOrbitX = 2;
ellipticalOrbitY = 1;
angle =120;
_root.lineStyle (2);
}
onClipEvent (enterFrame) {
_x = Math.cos (angle * Math.PI / 180) * radius *
ellipticalOrbitX + xcenter;
_y = Math.sin (angle * Math.PI / 180) * radius *
ellipticalOrbitY + ycenter;
_root.lineTo (_x, _y);
angle += speed;
if (angle > 359)
{
angle -= 360;
}
}






u can write the same code on the 1st[onClipEvent (load)] and 2nd frames
[onClipEvent (enterFrame)] and write



gotoandplay(2)



on 3rd frame...


if u 10 objects then all u hav to do is



angle=0;
angleShift=360/10;



and in each object,


angle=angle+angleShift;



this will keep the objects at a perfect distance in the orbit...

hope it'll be helpful 4 u...

best regards
RaviKiran Marella






-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rutul
Patel
Sent: Thursday, August 10, 2006 9:01 PM
To: Flashcoders mailing list
Subject: [Flashcoders] need help in drawing arrow

Hi people,
anybody know how to write AS of drawing arrow.
if anybody has can anybody tell me how?.
thanks
Rutul Patel
___
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 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] Flash Extension Package

2006-08-11 Thread Ravi Marella
But it's present at the link I've given :( ...i've sent it to my other
friends too and they don have any problem in seeing it...
I'm sending the same path again please check it ...


http://www.geocities.com/flywithoutwings_4350/rotatingmenu.zip

it opens the zip file directly...
http://www.geocities.com/flywithoutwings_4350
in this site I've used the component directly and it's workin
properly...


best regards
RaviKiran Marella



 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
Beckers
Sent: Friday, August 11, 2006 1:36 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Extension Package

It still can't find your zip file

Ravi Marella wrote:
> Sorry guys the last URL..i donno wat the problem is..yahoo has closed
my
> site...please check this link...
> In that on the top frame, therez a link called "RotatingMenu"...its
the
> zip file...
> http://www.geocities.com/flywithoutwings_4350/
>
> As u can see in the bottom frame I've used the same component which is
> working perfectly...please gimme some advice over this..
>
>
> best regards
> RaviKiran Marella
>
>
>
>  
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
> Beckers
> Sent: Friday, August 11, 2006 3:44 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Flash Extension Package
>
> The .zip isn't working...
>
> Ravi Marella wrote:
>   
>> Hi list,
>> I've got a problem while packaging a component I've developed..it's a
>> rotating menu component which will display any number of menu item
>> around a circle, the fla is working properly but when I package it to
>> .mxp the menu is not rotating and also the component parameters are
>> 
> not
>   
>> getting displayed properly...can someone out there plz helpme with
>> this...please check the link for zip folder containing all the
>> 
> files
>   
>>  
>>  
>> http://www.geocities.com/ravi_marella/rotatingmenu.zip
>>  
>> best regards,
>> Ravi
>>  
>>
>>   
>>  
>> ___
>> 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 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 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] Movement in an oval shape

2006-08-11 Thread Paul Steven
Thanks Ravi and others - that is very helpful indeed.

Cheers

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Marella
Sent: 11 August 2006 07:08
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Movement in an oval shape

The following code worked for me perfectly:





onClipEvent (load) {
speed = 5;
radius = 100;
xcenter = 250;
ycenter = 200;
ellipticalOrbitX = 2;
ellipticalOrbitY = 1;
angle =120;
_root.lineStyle (2);
}
onClipEvent (enterFrame) {
_x = Math.cos (angle * Math.PI / 180) * radius *
ellipticalOrbitX + xcenter;
_y = Math.sin (angle * Math.PI / 180) * radius *
ellipticalOrbitY + ycenter;
_root.lineTo (_x, _y);
angle += speed;
if (angle > 359)
{
angle -= 360;
}
}






u can write the same code on the 1st[onClipEvent (load)] and 2nd frames
[onClipEvent (enterFrame)] and write 



gotoandplay(2) 



on 3rd frame...


if u 10 objects then all u hav to do is 



angle=0;
angleShift=360/10;



and in each object,


angle=angle+angleShift;



this will keep the objects at a perfect distance in the orbit...

hope it'll be helpful 4 u...

best regards
RaviKiran Marella



 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rutul
Patel
Sent: Thursday, August 10, 2006 9:01 PM
To: Flashcoders mailing list
Subject: [Flashcoders] need help in drawing arrow

Hi people,
anybody know how to write AS of drawing arrow.
if anybody has can anybody tell me how?.
thanks
Rutul Patel
___
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

best regards
RaviKiran Marella



 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Stone
Sent: Thursday, August 10, 2006 7:04 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Movement in an oval shape


You can fake in with _xscale/_yscale changes...

var inc = 3;

_root.onEnterFrame = function() {
vStar_Object._x =
(Math.cos((vStar_Object.circlePos/180)*Math.PI))*160+vStar_Object.center
X;
vStar_Object._y =
(Math.sin((vStar_Object.circlePos/180)*Math.PI))*160+vStar_Object.center
Y;
vStar_Object.circlePos =
vStar_Object.circlePos+vStar_Object.speed;
//
if (vStar_Object.circlePos<180) {
vStar_Object._xscale -= inc;
vStar_Object._yscale = vStar_Object._xscale;
} else {
vStar_Object._xscale += inc;
vStar_Object._yscale = vStar_Object._xscale;
}
if (vStar_Object.circlePos == 360) {
vStar_Object.circlePos = 0;
}
if (vStar_Object._alpha<100) {
vStar_Object._alpha += 1;
}
};


-Andy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Steven
Sent: Thursday, August 10, 2006 9:06 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Movement in an oval shape

I have written some code to move some stars in a circle.

This is a snippet of the code:

vStar_Object._x = (Math.cos((vStar_Object.circlePos/180)*Math.PI))*160 +
vStar_Object.centerX;
vStar_Object._y =
(Math.sin((vStar_Object.circlePos/180)*Math.PI))*160 +
vStar_Object.centerY;


vStar_Object.circlePos =
vStar_Object.circlePos + vStar_Object.speed;


if (vStar_Object.circlePos == 360) {
vStar_Object.circlePos = 0;
}

if (vStar_Object._alpha < 100) {
vStar_Object._alpha +=1;
}

This seems to work just fine.

Anyway I need to change this so they move in an oval shape (like an egg
on
its side)

Not being a mathematic

Re: [Flashcoders] how to not overwrite methods, but append functionality

2006-08-11 Thread Matthias Dittgen

but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.

it's like that:

var mc:MovieClip = this.attachMovie(MyClipClass.SymbolName,"mc",
this.getNextHighestDepth());

var tooltip:MyTooltipClass = new MyTooltipClass(mc, "tooltiptext");


in MyClipClass, there is a public function onRollOver() {}, which
works well, as long as I don't apply MyTooltipClass.

in MyTooltipClass, there I call mc.onRollOver = function() {}, which
overwrites the former onRollOver. But I just want to add something to
the existing onRollOver.

Someone?


2006/8/11, Martin Wood <[EMAIL PROTECTED]>:



Matthias Dittgen wrote:
> Hello list,
>
> my tooltip class uses code like this "mc.onRollOver = function() {}"
> to add its tooltip functionality to a movieclip mc. But this way it
> overwrites the onRollOver method of mc and disables the functionality
> like highlighting.
>
> So now my question (probably a really simple one): How is it possible
> to append functionality instead of overwriting? is there something
> like "super()" is for cunstructors?

exactly.

super.onRollOver()

will call the method in the superclass.

martin

___
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] how to not overwrite methods, but append functionality

2006-08-11 Thread Alexis Glass

Do you mean you want to do something like...

 var oldRollOver:Function = this.onRollOver;
 this.onRollOver = function () {
   trace("new onRollOver functionality");
   oldRollOver();  //call pre-existing functionality
 }

Matthias Dittgen wrote:


but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.

it's like that:

var mc:MovieClip = this.attachMovie(MyClipClass.SymbolName,"mc",
this.getNextHighestDepth());

var tooltip:MyTooltipClass = new MyTooltipClass(mc, "tooltiptext");


in MyClipClass, there is a public function onRollOver() {}, which
works well, as long as I don't apply MyTooltipClass.

in MyTooltipClass, there I call mc.onRollOver = function() {}, which
overwrites the former onRollOver. But I just want to add something to
the existing onRollOver.

Someone?


2006/8/11, Martin Wood <[EMAIL PROTECTED]>:




Matthias Dittgen wrote:
> Hello list,
>
> my tooltip class uses code like this "mc.onRollOver = function() {}"
> to add its tooltip functionality to a movieclip mc. But this way it
> overwrites the onRollOver method of mc and disables the functionality
> like highlighting.
>
> So now my question (probably a really simple one): How is it possible
> to append functionality instead of overwriting? is there something
> like "super()" is for cunstructors?

exactly.

super.onRollOver()

will call the method in the superclass.

martin

___
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 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] how to not overwrite methods, but append functionality

2006-08-11 Thread Johannes Nel

var f:Function = mc.onRollOver

mx.onRollOver = function ()
{
f();
}

you might want  to look at function.apply to get it too call in the right
context.

On 8/11/06, Matthias Dittgen <[EMAIL PROTECTED]> wrote:


but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.

it's like that:

var mc:MovieClip = this.attachMovie(MyClipClass.SymbolName,"mc",
this.getNextHighestDepth());

var tooltip:MyTooltipClass = new MyTooltipClass(mc, "tooltiptext");


in MyClipClass, there is a public function onRollOver() {}, which
works well, as long as I don't apply MyTooltipClass.

in MyTooltipClass, there I call mc.onRollOver = function() {}, which
overwrites the former onRollOver. But I just want to add something to
the existing onRollOver.

Someone?


2006/8/11, Martin Wood <[EMAIL PROTECTED]>:
>
>
> Matthias Dittgen wrote:
> > Hello list,
> >
> > my tooltip class uses code like this "mc.onRollOver = function() {}"
> > to add its tooltip functionality to a movieclip mc. But this way it
> > overwrites the onRollOver method of mc and disables the functionality
> > like highlighting.
> >
> > So now my question (probably a really simple one): How is it possible
> > to append functionality instead of overwriting? is there something
> > like "super()" is for cunstructors?
>
> exactly.
>
> super.onRollOver()
>
> will call the method in the superclass.
>
> martin
>
> ___
> 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





--
j:pn
http://www.lennel.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


Re: [Flashcoders] how to not overwrite methods, but append functionality

2006-08-11 Thread Martin Wood
in MyTooltip you can re-assign the onRollOver to another name and call that from 
the new onRollOver, like this :


in MyTooltip

mc.onRollOver2 = mc.onRollOver;

mc.onRollOver = function()
{
   // some stuff here

   // call the original
   this.onRollOver2();
}

thats one way of doing it

martin

Matthias Dittgen wrote:

but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.

___
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] how to not overwrite methods, but append functionality

2006-08-11 Thread Mark Winterhalder

On 8/11/06, Matthias Dittgen <[EMAIL PROTECTED]> wrote:

but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.


You have two options (or more, but they are variations):

One is to do something like this:

var f = function () {
 mc.showToolTip();
 mc.call( mc, arguments.callee.oldRollOver );
};
f.oldRollOver = mc.onRollOver;
mc.onRollOver = f;

(Of course, you could also simply rename mc.onRollOver to
mc.oldRollOver and call that instead of doing the arguments.callee
thing.)

That's all nice as long as you only add new funtionality, but if you
want to remove one of the behaviours, you have a problem because it's
buried somewhere in the chain.

The alternative is to keep a table of onRollOvers:

mc.rollOvers = {};
mc.addRollOver = function ( id : String, behaviour : Function ) {
 this.rollOvers[ id ] = behaviour;
};
mc.removeRollOver = function ( id : String ) {
 delete this.rollOvers[ id ];
};
mc.onRollOver = function () {
 for( var i in this.rollOvers ) {
   this.rollOvers[ i ]();
 }
};

Use it like this:

mc.addRollOver( "highlight", mc.doHighLight );
mc.addRollOver( "tooltip", mc.showToolTip );


Both could of course be done much nicer, but you get the idea.

HTH,
Mark
___
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] how to not overwrite methods, but append functionality

2006-08-11 Thread julien castelain

hi,
maybe using mx.events.EventDispatcher could help
i'm probably wrong, but have you tried ?


class A {
 function onRollOver() {
  doTheRollOver();
  dispatchEvent({type:"onRollOver", target:this});
 }

function doTheRollOver() {
   // do somtehing here
}
}

class B {

 function B() {
var a:A = new A();
a.addEventListener("onRollOver", Delegate.create(this, onRollOver));
 }

 function onRollOver(e:Object) : Void {
   // do something else here
 }
}


On 8/11/06, Johannes Nel <[EMAIL PROTECTED]> wrote:

var f:Function = mc.onRollOver

mx.onRollOver = function ()
{
f();
}

you might want  to look at function.apply to get it too call in the right
context.

On 8/11/06, Matthias Dittgen <[EMAIL PROTECTED]> wrote:
>
> but it doesn't work for me, because I don't want to get onRollOver
> from the superclass ( I don't do an extend). I just want to add some
> functionality to the onRollOver of the same instance of a movieclip.
>
> it's like that:
>
> var mc:MovieClip = this.attachMovie(MyClipClass.SymbolName,"mc",
> this.getNextHighestDepth());
>
> var tooltip:MyTooltipClass = new MyTooltipClass(mc, "tooltiptext");
>
>
> in MyClipClass, there is a public function onRollOver() {}, which
> works well, as long as I don't apply MyTooltipClass.
>
> in MyTooltipClass, there I call mc.onRollOver = function() {}, which
> overwrites the former onRollOver. But I just want to add something to
> the existing onRollOver.
>
> Someone?
>
>
> 2006/8/11, Martin Wood <[EMAIL PROTECTED]>:
> >
> >
> > Matthias Dittgen wrote:
> > > Hello list,
> > >
> > > my tooltip class uses code like this "mc.onRollOver = function() {}"
> > > to add its tooltip functionality to a movieclip mc. But this way it
> > > overwrites the onRollOver method of mc and disables the functionality
> > > like highlighting.
> > >
> > > So now my question (probably a really simple one): How is it possible
> > > to append functionality instead of overwriting? is there something
> > > like "super()" is for cunstructors?
> >
> > exactly.
> >
> > super.onRollOver()
> >
> > will call the method in the superclass.
> >
> > martin
> >
> > ___
> > 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
>



--
j:pn
http://www.lennel.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


___
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] how to not overwrite methods, but append functionality

2006-08-11 Thread Matthias Dittgen

whoooaaa!
Thank to all who answered!!!
I have to read through your answers and some testing before I can make
further comments.

Matthias
___
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] how to not overwrite methods, but append functionality

2006-08-11 Thread Ian Thomas

I agree with Julien - EventDispatcher is ideal for this purpose. It's
one of the reasons it exists - to allow more than one object to be
notified when an event occurs.

Ian

On 8/11/06, julien castelain <[EMAIL PROTECTED]> wrote:

hi,
maybe using mx.events.EventDispatcher could help
i'm probably wrong, but have you tried ?


class A {
  function onRollOver() {
   doTheRollOver();
   dispatchEvent({type:"onRollOver", target:this});
  }

 function doTheRollOver() {
// do somtehing here
 }
}

class B {

  function B() {
 var a:A = new A();
 a.addEventListener("onRollOver", Delegate.create(this, onRollOver));
  }

  function onRollOver(e:Object) : Void {
// do something else here
  }
}


___
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] need help in drawing arrow

2006-08-11 Thread Jim Kremens

Here's an AS1 way to do it, from the deep archives...

MovieClip.prototype.drawArrow = function(sp, ep, th, headL, headW, c) {
// sp, ep = startPoint, endPoint; (point objects, objects with xand y)
// th = line thickness
// headL = headLength, headW = headWidth
// c = color
this.lineStyle(th, c, 100);
this.moveTo(sp.x, sp.y);
this.lineTo(ep.x, ep.y);
this.arrowAngle = Math.atan2(ep.y-sp.y, ep.x-sp.x);
// value in Radians
if (headL>0 && headW>0) {
 this.drawArrowHead(ep.x, ep.y, this.arrowAngle, headL, headW, c);
}
};
MovieClip.prototype.drawArrowHead = function(x, y, a, l, w, c) {
// x, y = reg.point of arrowhead
// a = angle
// l = length, w = width
// c = color
var halveWay = (w/180*Math.PI);
// value in Radians
var AX = l*Math.cos(a+halveWay);
var AY = l*Math.sin(a+halveWay);
var BX = l*Math.cos(a-halveWay);
var BY = l*Math.sin(a-halveWay);
this.moveTo(x, y);
this.beginFill(c, 100);
this.lineTo(x-AX, y-AY);
this.lineTo(x-BX, y-BY);
this.lineTo(x, y);
this.endFill();
};
// usage:
this.createEmptyMovieClip("arrow", 10);
this.arrow.drawArrow({x:100, y:100}, {x:400, y:100}, 1, 50, 10, 0x33);


Jim Kremens
___
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] need help in drawing arrow

2006-08-11 Thread Florent JEAN

Hi,

Here is how I draw vector arrow (it's an extract of a more complete vector
renderer class): 

/*/

import flash.geom.Point;

//Parameters
var p0:Point = new Point(100, 100);
var p1:Point = new Point(200, 200);
var arrowWidth:Number = 4;
var arrowHeight:Number = 8;
var _thickness:Number = 2;
var _rgb:Number = 0x66;
var _alph:Number = 100;
var _buffer:MovieClip = this;

//Line style
_buffer.lineStyle(_thickness, _rgb, _alph);
//Draw the line p0 -> p1
_buffer.moveTo(p0.x, p0.y);
_buffer.lineTo(p1.x, p1.y);
//Get line angle
var angle:Number = Math.atan2(p1.y-p0.y, p1.x-p0.x);
//Drow the arrow
_buffer.lineTo(p1.x-arrowHeight*Math.cos(angle)-arrowWidth*Math.sin(angle),
p1.y-arrowHeight*Math.sin(angle)+arrowWidth*Math.cos(angle));
_buffer.lineTo(p1.x, p1.y);
_buffer.lineTo(p1.x-arrowHeight*Math.cos(angle)+arrowWidth*Math.sin(angle),
p1.y-arrowHeight*Math.sin(angle)-arrowWidth*Math.cos(angle));

/*/


__
Florent JEAN 
http://www.nowhen.net  
 

> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] De la part de Rutul Patel
> Envoyé : jeudi 10 août 2006 17:31
> À : Flashcoders mailing list
> Objet : [Flashcoders] need help in drawing arrow
> 
> Hi people,
> anybody know how to write AS of drawing arrow.
> if anybody has can anybody tell me how?.
> thanks
> Rutul Patel
> ___
> 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] print question

2006-08-11 Thread Flash guru

ohh come on guys, why google something when i can get the right answer from
here.


On 8/10/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


Especially a Flash guru ;)


BLITZ | Steven Sacks - 310-551-0200 x209

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Chris Hill
> Sent: Thursday, August 10, 2006 4:32 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] print question
>
> Not to sound like a jerk, but you really should check google before
> posting such beginner questions:
>
> http://www.devx.com/webdev/Article/27318
>
> Peace
> Chris
>
> Flash guru wrote:
>
> > Hey,
> >
> > Can anyone tell me if it's possible to print a swf?
> >
> > this is what im thinking
> >
> > var myPrinter = new Printer();
> > myPrinter.printFile("/swfs/plan1.swf");
> >
> > Side questions?
> >
> > Is something like that in existance?
> > Can you do this through the builtin classes?
> >
> >
> > thanks in advance
> > ___
> > 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 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] need help in drawing arrow

2006-08-11 Thread Rutul Patel

Thank you guys for replying me soon..
it really help me.

thanks


On 8/11/06, Florent JEAN <[EMAIL PROTECTED]> wrote:



Hi,

Here is how I draw vector arrow (it's an extract of a more complete vector
renderer class):

/*/

import flash.geom.Point;

//Parameters
var p0:Point = new Point(100, 100);
var p1:Point = new Point(200, 200);
var arrowWidth:Number = 4;
var arrowHeight:Number = 8;
var _thickness:Number = 2;
var _rgb:Number = 0x66;
var _alph:Number = 100;
var _buffer:MovieClip = this;

//Line style
_buffer.lineStyle(_thickness, _rgb, _alph);
//Draw the line p0 -> p1
_buffer.moveTo(p0.x, p0.y);
_buffer.lineTo(p1.x, p1.y);
//Get line angle
var angle:Number = Math.atan2(p1.y-p0.y, p1.x-p0.x);
//Drow the arrow
_buffer.lineTo(p1.x-arrowHeight*Math.cos(angle)-arrowWidth*Math.sin
(angle),
p1.y-arrowHeight*Math.sin(angle)+arrowWidth*Math.cos(angle));
_buffer.lineTo(p1.x, p1.y);
_buffer.lineTo(p1.x-arrowHeight*Math.cos(angle)+arrowWidth*Math.sin
(angle),
p1.y-arrowHeight*Math.sin(angle)-arrowWidth*Math.cos(angle));

/*/


__
Florent JEAN
http://www.nowhen.net


> -Message d'origine-
> De: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] De la part de Rutul Patel
> Envoyé: jeudi 10 août 2006 17:31
> À: Flashcoders mailing list
> Objet: [Flashcoders] need help in drawing arrow
>
> Hi people,
> anybody know how to write AS of drawing arrow.
> if anybody has can anybody tell me how?.
> thanks
> Rutul Patel
> ___
> 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





--
Regards,
Rutul Patel
___
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] print question

2006-08-11 Thread julien castelain

hi guru, did you have a look at the PrintJob class?




On 8/11/06, Flash guru <[EMAIL PROTECTED]> wrote:

ohh come on guys, why google something when i can get the right answer from
here.


On 8/10/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
>
> Especially a Flash guru ;)
>
>
> BLITZ | Steven Sacks - 310-551-0200 x209
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:flashcoders-
> > [EMAIL PROTECTED] On Behalf Of Chris Hill
> > Sent: Thursday, August 10, 2006 4:32 PM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] print question
> >
> > Not to sound like a jerk, but you really should check google before
> > posting such beginner questions:
> >
> > http://www.devx.com/webdev/Article/27318
> >
> > Peace
> > Chris
> >
> > Flash guru wrote:
> >
> > > Hey,
> > >
> > > Can anyone tell me if it's possible to print a swf?
> > >
> > > this is what im thinking
> > >
> > > var myPrinter = new Printer();
> > > myPrinter.printFile("/swfs/plan1.swf");
> > >
> > > Side questions?
> > >
> > > Is something like that in existance?
> > > Can you do this through the builtin classes?
> > >
> > >
> > > thanks in advance
> > > ___
> > > 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 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 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] Datagrid Sorting

2006-08-11 Thread Brandon Krakowsky/MTC
I have a datagrid populated with a dataprovider.  I add items to the 
dataprovider with the following type of statement:
dataprovider.addItem({u:{label:clearUser, role:clearRole}, 
uState:clearState, sel:false, data:l});

I can sort according to "uState" no problem with the following:
dataprovider.sortItemsBy("uState", Array.CASEINSENSITIVE);

I'm having trouble sorting according to "u".
dataprovider.sortItemsBy("u.role","u.label", Array.CASEINSENSITIVE);

This doesn't seem to work.  Should I access the "u" object differently?

Thanks,
Brandon
___
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] print question

2006-08-11 Thread Blumenthal, Peter

> ohh come on guys, why google something when i can get the 
> right answer from
> here.

http://www.slash7.com/pages/vampires

Peter 


This email may contain confidential material.  If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
___
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] Flash Extension Package

2006-08-11 Thread Ravi Marella
Sorry guys that was a very stupid mistake that I've not initialized a
variable which caused the error, which I've fixed now :)

best regards
RaviKiran Marella



 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
Beckers
Sent: Friday, August 11, 2006 1:36 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Extension Package

It still can't find your zip file

Ravi Marella wrote:
> Sorry guys the last URL..i donno wat the problem is..yahoo has closed
my
> site...please check this link...
> In that on the top frame, therez a link called "RotatingMenu"...its
the
> zip file...
> http://www.geocities.com/flywithoutwings_4350/
>
> As u can see in the bottom frame I've used the same component which is
> working perfectly...please gimme some advice over this..
>
>
> best regards
> RaviKiran Marella
>
>
>
>  
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
> Beckers
> Sent: Friday, August 11, 2006 3:44 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Flash Extension Package
>
> The .zip isn't working...
>
> Ravi Marella wrote:
>   
>> Hi list,
>> I've got a problem while packaging a component I've developed..it's a
>> rotating menu component which will display any number of menu item
>> around a circle, the fla is working properly but when I package it to
>> .mxp the menu is not rotating and also the component parameters are
>> 
> not
>   
>> getting displayed properly...can someone out there plz helpme with
>> this...please check the link for zip folder containing all the
>> 
> files
>   
>>  
>>  
>> http://www.geocities.com/ravi_marella/rotatingmenu.zip
>>  
>> best regards,
>> Ravi
>>  
>>
>>   
>>  
>> ___
>> 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 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 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] how to not overwrite methods, but append functionality

2006-08-11 Thread janosch

Hello,

some time ago i postet at flashforum.de how this can be done, without 
drawbacks to the rest of the application:

http://www.flashforum.de/forum/showthread.php?t=207998
Its in german but the code is more or less internation :)

Janosch





Matthias Dittgen schrieb:


Hello list,

my tooltip class uses code like this "mc.onRollOver = function() {}"
to add its tooltip functionality to a movieclip mc. But this way it
overwrites the onRollOver method of mc and disables the functionality
like highlighting.

So now my question (probably a really simple one): How is it possible
to append functionality instead of overwriting? is there something
like "super()" is for cunstructors?

Thanks,
Matthias
___
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] print question

2006-08-11 Thread Flash guru

Alright apparentlymy question was stupid, but no one has yet to answer it,
and yes i have read the pringjob class and nothing i read would lead me to
believe i can print an external swf with 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


[Flashcoders] desperate! works locally, not on server

2006-08-11 Thread Lisa Haitz
I was told this is where the experts are...I'm trying to mount a flash document 
I didn't write.
   
  http://www.libraries.uc.edu/instruction/Module1/Module_1.html
   
  All files are here in this folder:
  http://www.libraries.uc.edu/instruction/Module1/
   
   
  The problem is, when I test the movie, debug the movie, play it, etc... on my 
machine, or any other machine locally, it works fine. If we open the local file 
in a browser- works fine.
   
  But, when viewed at the above url, two things dont work:
   
  1-slides do not advance correctly
  2-narration doesnt play (which might be due to the first problem).
   
  The way this was put together has me stumped- the action script looks right- 
so I think there must be something I am missing.
   
  Would appreciate any insight!
   
  Lisa
___
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] print question

2006-08-11 Thread Mike Mountain
Have you thought of perhaps loading the swf into an MC offstage and
using the printjob class to print that. And googling first is just plain
courtesy man. Otherwise the quality of the forums decline and all the
people who would've had the answer to your problem move on elsewhere.

M 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Flash guru
> Sent: 11 August 2006 14:24
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] print question
> 
> Alright apparentlymy question was stupid, but no one has yet 
> to answer it, and yes i have read the pringjob class and 
> nothing i read would lead me to believe i can print an 
> external swf with 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
> 
___
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] print question

2006-08-11 Thread julien castelain

LOL :) good luck then

On 8/11/06, Flash guru <[EMAIL PROTECTED]> wrote:

Alright apparentlymy question was stupid, but no one has yet to answer it,
and yes i have read the pringjob class and nothing i read would lead me to
believe i can print an external swf with 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


___
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] desperate! works locally, not on server

2006-08-11 Thread Jim Berkey
Many times this can be caused by case differences - locally MySwf.swf and 
myswf.swf are the same, but on the server, they are not. Maybe check the case 
of all the links?
jimbo
*** REPLY SEPARATOR  ***

On 8/11/2006 at 6:24 AM Lisa Haitz wrote:

>I was told this is where the experts are...I'm trying to mount a flash
>document I didn't write.
>
>  http://www.libraries.uc.edu/instruction/Module1/Module_1.html
>
>  All files are here in this folder:
>  http://www.libraries.uc.edu/instruction/Module1/
>
>
>  The problem is, when I test the movie, debug the movie, play it, etc...
>on my machine, or any other machine locally, it works fine. If we open the
>local file in a browser- works fine.
>
>  But, when viewed at the above url, two things dont work:
>
>  1-slides do not advance correctly
>  2-narration doesnt play (which might be due to the first problem).
>
>  The way this was put together has me stumped- the action script looks
>right- so I think there must be something I am missing.
>
>  Would appreciate any insight!
>
>  Lisa
>___
>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

a

___
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] desperate! works locally, not on server

2006-08-11 Thread Lisa Haitz
Wow, I was just thinking about that, will test.

Jim Berkey <[EMAIL PROTECTED]> wrote:  Many times this can be caused by case 
differences - locally MySwf.swf and myswf.swf are the same, but on the server, 
they are not. Maybe check the case of all the links?
jimbo
*** REPLY SEPARATOR ***

On 8/11/2006 at 6:24 AM Lisa Haitz wrote:

>I was told this is where the experts are...I'm trying to mount a flash
>document I didn't write.
>
> http://www.libraries.uc.edu/instruction/Module1/Module_1.html
>
> All files are here in this folder:
> http://www.libraries.uc.edu/instruction/Module1/
>
>
> The problem is, when I test the movie, debug the movie, play it, etc...
>on my machine, or any other machine locally, it works fine. If we open the
>local file in a browser- works fine.
>
> But, when viewed at the above url, two things dont work:
>
> 1-slides do not advance correctly
> 2-narration doesnt play (which might be due to the first problem).
>
> The way this was put together has me stumped- the action script looks
>right- so I think there must be something I am missing.
>
> Would appreciate any insight!
>
> Lisa
>___
>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

a

___
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] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
Hi list...

I'm trying to access a mc within a mc in my class as follows:

class linker extends MovieClip {
function linker() {
trace(theClip);
}
}

The linker clip is on the stage, and there's a mc within it called
theClip.  I get the error "There is no property with the name
'theClip'."  What am I missing to access it?

Thanks,
- MM

___
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] Can't access mc

2006-08-11 Thread Arul Prasad M L

declare theClip as a member of the class linker.
like,

private var theClip:MovieClip;

Also, try to keep ur code out of the constructor. Write a onLoad function
and put ur code in there.

private function onLoad()
{
trace(theClip);
}

On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


Hi list...

I'm trying to access a mc within a mc in my class as follows:

class linker extends MovieClip {
function linker() {
trace(theClip);
}
}

The linker clip is on the stage, and there's a mc within it called
theClip.  I get the error "There is no property with the name
'theClip'."  What am I missing to access it?

Thanks,
- MM

___
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] Can't access mc

2006-08-11 Thread Shane Korin

I think it's because Flash thinks your trying to refer to a member variable
of your class (which hasnt been declared)

If you put like:

class linker extends MovieClip {

   var theClip:MovieClip;

   function linker() {
   trace(theClip);
   }
}


It shouldn't give you an error, and I think it should work.

If anyone knows a better solution for this problem please say so!

-s


On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


Hi list...

I'm trying to access a mc within a mc in my class as follows:

class linker extends MovieClip {
function linker() {
trace(theClip);
}
}

The linker clip is on the stage, and there's a mc within it called
theClip.  I get the error "There is no property with the name
'theClip'."  What am I missing to access it?

Thanks,
- MM

___
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] Can't access mc

2006-08-11 Thread julien castelain

hi micheal,

you have to declare that property inside your class before you can access it


class linker extends MovieClip {


 var theClip:MovieClip;

 function linker() {

   trace(theClip);
   }
}


cheers

On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:

Hi list...

I'm trying to access a mc within a mc in my class as follows:

class linker extends MovieClip {
   function linker() {
   trace(theClip);
   }
}

The linker clip is on the stage, and there's a mc within it called
theClip.  I get the error "There is no property with the name
'theClip'."  What am I missing to access it?

Thanks,
- MM

___
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] Can't access mc

2006-08-11 Thread Merrill, Jason
Classes are unaware of the timeline they are imported into.  So you need
to pass a reference.  Also, wouldn't make sense to me to do an extends
on MovieClip if you are going to refer to another clip altogether.  So
instead of that, pass a reference to the timeline through your
constructor function:

class Linker {
function Linker(target_mc:MovieClip) {
trace(target_mc.theClip);
}
}

var myLinker:Linker = new Linker(this)

however, (and I don't know what your class will be for) if you DO want
to extend MovieClip, then set that class as the class in the movie
clip's linkage properties in the library.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael
>>Sent: Friday, August 11, 2006 9:47 AM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Can't access mc
>>
>>Hi list...
>>
>>I'm trying to access a mc within a mc in my class as follows:
>>
>>class linker extends MovieClip {
>>  function linker() {
>>  trace(theClip);
>>  }
>>}
>>
>>The linker clip is on the stage, and there's a mc within it called
>>theClip.  I get the error "There is no property with the name
>>'theClip'."  What am I missing to access it?
>>
>>Thanks,
>>- MM
>>
>>___
>>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] Can't access mc

2006-08-11 Thread John Mark Hawley
Class 'linker' is not dynamic. This means that unless you add something like

private var theClip:MovieClip;

(or:

dynamic class linker extends MovieClip)

to your class definition, you can't reference it within the class.


> 
> From: "Mendelsohn, Michael" <[EMAIL PROTECTED]>
> Date: 2006/08/11 Fri AM 08:47:08 CDT
> To: "Flashcoders mailing list" 
> Subject: [Flashcoders] Can't access mc
> 
> Hi list...
> 
> I'm trying to access a mc within a mc in my class as follows:
> 
> class linker extends MovieClip {
>   function linker() {
>   trace(theClip);
>   }
> }
> 
> The linker clip is on the stage, and there's a mc within it called
> theClip.  I get the error "There is no property with the name
> 'theClip'."  What am I missing to access it?
> 
> Thanks,
> - MM
> 
> ___
> 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
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
All the solutions worked perfectly, thanks everyone.  But, Arul, what is
the advantage of putting it in an onLoad function instead of the
constructor?





declare theClip as a member of the class linker.
like,

private var theClip:MovieClip;

Also, try to keep ur code out of the constructor. Write a onLoad
function
and put ur code in there.

private function onLoad()
{
trace(theClip);
}

___
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] Can't access mc

2006-08-11 Thread Arul Prasad M L

But, Arul, what is the advantage of putting it in an onLoad function

instead of the constructor?
Just to be on the safer side, thats all :)

Try this:

add a trace each in the constructor and the onLoad. And test your movie.
You'll see that the constructor gets called even before onLoad.

Now, if your movie clip had a V2 component instance in it, and you added
code in the constructor to addEventListener to the component,it wont work.
Because the component wouldnt have initialize by the time of the call to the
constructor.
Placing that code instead in the onLoad method makes sure that it will work.

~Arul Prasad.



On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


All the solutions worked perfectly, thanks everyone.  But, Arul, what is
the advantage of putting it in an onLoad function instead of the
constructor?




___
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] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
> Placing that code instead in the onLoad method makes sure that it will
work.


Great explanation, thanks Arul.

- MM

___
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] print question

2006-08-11 Thread Flash guru

Hey Mike,

Thanks for the suggestion, it looks like I might have to do it that way.
___
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] Invert text in textbox

2006-08-11 Thread Jayson K Hanes
Are there any new ways to invert text in a text box with html tags or
otherwise? (such as white text on a black background for THAT text only
among other text in the same box).. as we can do in browser html/css
with:

Inverted
blacknot invertedInverted green

?

-Jayson

___
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] flash internal bitmap to PNG format ..

2006-08-11 Thread James Deakin

the only way to do this that I know of is to use libraries like GD (for PHP)
to convert that information into a physical file. If there are other
solutions I would be interested in finding out.

On 8/11/06, keitai guy <[EMAIL PROTECTED]> wrote:


hi list -

I have extracted some pixels from a bitmapData object... can someone
tip me off how to convert this into a PNG file, or some other simple
high quality format? Ideally i dont want a complex JPG encoder in AS,
just a way to get data out that can be read by photoshop etc.

bitmap.getPixel( --x, y ).toString(16) + "|" ;

gives this in string format:

ff|ff|ff|ff|ff|ff|ff|ff|ff|ff|
ff|ff|ff|ff|ff|ff|ff|ff|ff|ff|

thanks!

/dc
___
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] TextField._height reported incorrectly with wordWrap = true

2006-08-11 Thread Kjel Anderson
Hey list,

Has anyone had a problem with textField._height being reported incorrectly 
when the text wraps to a second line? I tried to get around this by using 
the ._height variable of the MovieClip in question, but it is reporting it's 
height incorrectly as well. I am using the latest version of MTASC.

Thanks,

Kjel
___
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] DK - redrawing interface elements after destruction]

2006-08-11 Thread Bbt Lists

Anthony Lee wrote:



At any rate - when i create my thumbnails, all works fine the first 
time, but after they have been wiped out, and I recall my method to 
re-draw the thumbnails, for some reason my buttons are not working. 
Now I did a bunch of tracing tests to see if:

Hi dnk,

This may not be a proper answer to your question, but when faced with 
this kind of headache I stick all the problem buttons, thumbnails etc 
in a single movieclip, delete that clip to clear them, and redraw the 
whole thing from scratch. Bad for the processor, good for my sanity.


Tony


Ok - as an update I realized why this was not working - my buttons were being 
wiped out and recreated,
but the original delegates (onPress) were the issue. When my class was 
initialized the delegates were
calling their respective functions as it should. The issue I had was that when 
the 2nd page of thumbnails
were loaded - the buttons were still listening to hte original delegate functions. I have written those 
functions to use variables to load the images - but it seems that when the functions used by delegate - had

not updated the variables.. it seemed to only want to do that on the initial 
load. I hope i am explaining this properly.
For the way I seem to think about code - it would be nice if there was a way to 
write dynamic functions. But that is another posting.




--
dnk

___
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] TextField._height reported incorrectly with wordWrap = true

2006-08-11 Thread Ramon Miguel M. Tayag

My runs fine.  I didn't try it with MTASC though.  Have you tried
using the IDE?  It should be the same either case though...

On 8/12/06, Kjel Anderson <[EMAIL PROTECTED]> wrote:

Hey list,

Has anyone had a problem with textField._height being reported incorrectly
when the text wraps to a second line? I tried to get around this by using
the ._height variable of the MovieClip in question, but it is reporting it's
height incorrectly as well. I am using the latest version of MTASC.

Thanks,

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




--
Ramon Miguel M. Tayag
___
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] HTML in XML

2006-08-11 Thread Paul Venton
Crazy talk my arse!  ;-)

I've used XML with HTML and CSS to drive several commercial products I've
developed.  So long as all tags are correctly terminated it makes sense to
use XML; where do you think XHTML came from?

XML is, by nature, a portable document that can be used and interpreted by
other programs.  You only use CDATA as a last resort as it can be a real
pain to process in some other languages.  Flash Player doesn't even
recognise CDATA nodes as a type; only element and text nodes.

With XML, you know the structure of the document you're working with as it
is defined at some point.  If I know that all data inside my content element
is XHTML then I only need to fetch its contents or rather its child nodes.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: 10 August 2006 17:31
To: Flashcoders mailing list
Subject: Re: [Flashcoders] HTML in XML

this advice is all crazy talk.

the proper way to do it is to use CDATA tags.



On Aug 9, 2006, at 12:04 PM, Ryan Potter wrote:

> Another way that works pretty well is to do a join on the child nodes.
>
> So your trace would look like this:
>
> trace(newsNode.childNodes[i].childNodes.join(""));
>
> As long as your html is xml compliant ( instead of ) it will
> work just fine.
>

___
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] TextField._height reported incorrectly with wordWrap = true

2006-08-11 Thread Kjel Anderson
No IDE for Linux yet :( Can't find any coding errors. Single line text fields 
are lining up just fine. When I ask flash for the size of the double line 
text field, it adds thirteen to the _height. I am using embedded fonts. Maybe 
I'll try it without the embedded fonts.

Kjel

On Friday 11 August 2006 12:47 pm, Ramon Miguel M. Tayag wrote:
> My runs fine.  I didn't try it with MTASC though.  Have you tried
> using the IDE?  It should be the same either case though...
>
> On 8/12/06, Kjel Anderson <[EMAIL PROTECTED]> wrote:
> > Hey list,
> >
> > Has anyone had a problem with textField._height being reported
> > incorrectly when the text wraps to a second line? I tried to get around
> > this by using the ._height variable of the MovieClip in question, but it
> > is reporting it's height incorrectly as well. I am using the latest
> > version of MTASC.
> >
> > Thanks,
> >
> > Kjel
> > ___
> > 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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Bbt Lists

Hi there

Can you write dynamic methods in a class?


for example

for (var i:Number = 0; i < 11; i++)
{
   function onBtnPress + i()
   {
  trace("Button number: " + i + "was pressed");
   }
}

So then that would essentially create 10 methods (onBtnPress0 to 
onBtnPress9) to be used by various onPress events.


Is this possible? Then at the same time you could write the delegate and 
create the buttons and so one as well.


Then continuing on my thought - could you then over-write the onBtnPress 
functions with new values (say for example the trace would be:


trace("Button number: " + i + "was pressed with the currValue of " + 
externalVariable);


instead of the original:

trace("Button number: " + i + "was pressed");


I am a hobby AS coder, and I am probably way off here. All I am trying 
to do is build a thumbnail nav for a gallery.


Thanks in advance!

--
dnk

___
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] Re: Flash 9 ready for kiosk use?

2006-08-11 Thread Joe Cutting


>>
> I've just downloaded the Adobe Flash 9 Public alpha and used it to 
compile one of my old kiosk
> projects. As far as I can see it has none of memory leak issues 
which affected Flash 8 and stopped

> it being suitable for kiosks. This is great

This is very interesting. Is it just a matter of loading a Flash 8 fla,
and making a Flash 9 swf? Or would we need to convert from AS2 to AS3, etc.?
>>

Yes. Just load it up, set the player version to 9 and away you go.

To answer my original question I did some digging and discovered that 
people were having some issues
with FP9 occasionally crashing when using AS3. Although these may 
have been fixed by now I decided that using AS3 with an alpha 
development environment and a "v.0" player probably wasn't a good way 
to go right now as using another player or dev environment would 
require a rewrite back to AS2.0. As it is I'll stick to AS2 and the 
FP9 player and if I have problems I can always downgrade.


Cheers

Joe



Joe Cutting
Computer exhibits and installations
www.joecutting.com
96 Heslington Road, York, YO10 5BL
01904 627428
___
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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Ramon Miguel M. Tayag

I don't think you can create dynamic functions.. even if you could, I
don't see the need to.

use your arguments to make your functions all-purpose.

Ex.

function onBtnPress(n:Number):Void
{
 trace(n + " was pressed.");
}

button0.onRelease = Delegate.create(this, onBtnPress, 0);
button1.onRelease = Delegate.create(this, onBtnPress, 1);

On 8/12/06, Bbt Lists <[EMAIL PROTECTED]> wrote:

Hi there

Can you write dynamic methods in a class?


for example

for (var i:Number = 0; i < 11; i++)
{
function onBtnPress + i()
{
   trace("Button number: " + i + "was pressed");
}
}

So then that would essentially create 10 methods (onBtnPress0 to
onBtnPress9) to be used by various onPress events.

Is this possible? Then at the same time you could write the delegate and
create the buttons and so one as well.

Then continuing on my thought - could you then over-write the onBtnPress
functions with new values (say for example the trace would be:

trace("Button number: " + i + "was pressed with the currValue of " +
externalVariable);

instead of the original:

trace("Button number: " + i + "was pressed");


I am a hobby AS coder, and I am probably way off here. All I am trying
to do is build a thumbnail nav for a gallery.

Thanks in advance!

--
dnk


--
Ramon Miguel M. Tayag
___
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] TextField._height reported incorrectly with wordWrap = true

2006-08-11 Thread Matthias Dittgen

this happens to me only sometimes and when I use negative leadings.
Try to encapsulate your textfield with a movieclip and grab the height
of the movieclip instead of the textfield height. That's the common
workaround, I think.

Have fun,
Matthias

2006/8/11, Kjel Anderson <[EMAIL PROTECTED]>:

No IDE for Linux yet :( Can't find any coding errors. Single line text fields
are lining up just fine. When I ask flash for the size of the double line
text field, it adds thirteen to the _height. I am using embedded fonts. Maybe
I'll try it without the embedded fonts.

Kjel

On Friday 11 August 2006 12:47 pm, Ramon Miguel M. Tayag wrote:
> My runs fine.  I didn't try it with MTASC though.  Have you tried
> using the IDE?  It should be the same either case though...
>
> On 8/12/06, Kjel Anderson <[EMAIL PROTECTED]> wrote:
> > Hey list,
> >
> > Has anyone had a problem with textField._height being reported
> > incorrectly when the text wraps to a second line? I tried to get around
> > this by using the ._height variable of the MovieClip in question, but it
> > is reporting it's height incorrectly as well. I am using the latest
> > version of MTASC.
> >
> > Thanks,
> >
> > Kjel
> > ___
> > 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 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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Bbt Lists

Ramon Miguel M. Tayag wrote:

I don't think you can create dynamic functions.. even if you could, I
don't see the need to.

use your arguments to make your functions all-purpose.

Ex.

function onBtnPress(n:Number):Void
{
 trace(n + " was pressed.");
}

button0.onRelease = Delegate.create(this, onBtnPress, 0);
button1.onRelease = Delegate.create(this, onBtnPress, 1);




Ah! I never knew you could throw args like that to your functions 
through delegate


Sweet!


That totally makes more sense!

Now my next question

Say for example I needed to throw a different arg to that function?

IE this time I needed one var, and later I needed another?

var nMyNum:Number = 0;

button0.onRelease = Delegate.create(this, onBtnPress, nMyNum);

nMyNum = 10;

//need to update the delegate here
//button0.onRelease = Delegate.create(this, onBtnPress, nMyNum);

Can you remove or overwrite delegate instances?



--
dnk

___
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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Ramon Miguel M. Tayag

Sorry, I'm using a custom delegate class.. I completely forgot.  Let
me dig up that post that has what you need...

On 8/12/06, Bbt Lists <[EMAIL PROTECTED]> wrote:

Ramon Miguel M. Tayag wrote:
> I don't think you can create dynamic functions.. even if you could, I
> don't see the need to.
>
> use your arguments to make your functions all-purpose.
>
> Ex.
>
> function onBtnPress(n:Number):Void
> {
>  trace(n + " was pressed.");
> }
>
> button0.onRelease = Delegate.create(this, onBtnPress, 0);
> button1.onRelease = Delegate.create(this, onBtnPress, 1);
>
>

Ah! I never knew you could throw args like that to your functions
through delegate

Sweet!


That totally makes more sense!

Now my next question

Say for example I needed to throw a different arg to that function?

IE this time I needed one var, and later I needed another?

var nMyNum:Number = 0;

button0.onRelease = Delegate.create(this, onBtnPress, nMyNum);

nMyNum = 10;

//need to update the delegate here
//button0.onRelease = Delegate.create(this, onBtnPress, nMyNum);

Can you remove or overwrite delegate instances?



--
dnk

___
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




--
Ramon Miguel M. Tayag
___
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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Ramon Miguel M. Tayag

http://board.flashkit.com/board/showthread.php?t=662329&highlight=delegate

On 8/12/06, Ramon Miguel M. Tayag <[EMAIL PROTECTED]> wrote:

Sorry, I'm using a custom delegate class.. I completely forgot.  Let
me dig up that post that has what you need...


--
Ramon Miguel M. Tayag
___
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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Bbt Lists

Ramon Miguel M. Tayag wrote:

Sorry, I'm using a custom delegate class.. I completely forgot.  Let
me dig up that post that has what you need...

I was just reading a reference to a "proxy" class that does similar to 
delegate, but allows args to the functions. So I was not entirely insane 
(as in not knowing about passing args with delegate).


Curious to see if you are referencing the same class.

And also I still have my question about re-assigning a new arg.

--
dnk

___
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] Web Services and Flash (PART 2)

2006-08-11 Thread Patrick Jean
Greetings. If anybody have experience with web services and flash, I have a
question.

 

I can communicate with the web service no problems, but in my case, I need
to pass some xml attributes to the service and I couldn't find any proper
example.

 

thanks for your time

 

Pat

 

 

Patrick Jean

Directeur de projets internet

Monac'OH Data Mercantour

http://www.monacoh.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: Re: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread John Mark Hawley
com.dynamicflash.utils.Delegate is the other Delegate class that allows 
argument passing.

http://dynamicflash.com/2005/02/delegate-class-refined/

-mark

> 
> From: Bbt Lists <[EMAIL PROTECTED]>
> Date: 2006/08/11 Fri PM 12:54:04 CDT
> To: Flashcoders mailing list 
> Subject: Re: [Flashcoders] |:::| can you write dynamic meathods in a class?
> 
> Ramon Miguel M. Tayag wrote:
> > Sorry, I'm using a custom delegate class.. I completely forgot.  Let
> > me dig up that post that has what you need...
> >
> I was just reading a reference to a "proxy" class that does similar to 
> delegate, but allows args to the functions. So I was not entirely insane 
> (as in not knowing about passing args with delegate).
> 
> Curious to see if you are referencing the same class.
> 
> And also I still have my question about re-assigning a new arg.
> 
> -- 
> dnk
> 
> ___
> 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
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] parsing XML RPC responses in AS...

2006-08-11 Thread keitai guy

hi -

I am trying to display results of a web service app that is returning
data in the XML-RPC format as per below.

This seems very hard to parse in any of the tools  I've found...

XPath seems useless against it since the only thing different is the
_contents_ (value?) of each  node. The node names themselves are
all the same...

Am I missing something? Can anyone suggest better ways to work with
this type of data?







 SCRIPT_NAME
 /index.php


 requests
 
   
  
 msg
 

...

c_member

c_member_id
2

nickname
oga

birth_year
1982

birth_month

Thanks!

/dc
___
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] parsing XML RPC responses in AS...

2006-08-11 Thread Shaw, Matt (MTVN)
http://sourceforge.net/projects/xmlrpcflash/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of keitai
guy
Sent: Friday, August 11, 2006 2:08 PM
To: Flashcoders mailing list
Subject: [Flashcoders] parsing XML RPC responses in AS...

hi -

I am trying to display results of a web service app that is returning
data in the XML-RPC format as per below.

This seems very hard to parse in any of the tools  I've found...

XPath seems useless against it since the only thing different is the
_contents_ (value?) of each  node. The node names themselves are
all the same...

Am I missing something? Can anyone suggest better ways to work with this
type of data?







  SCRIPT_NAME
  /index.php


  requests
  

   
  msg
  

...

c_member

c_member_id
2

nickname
oga

birth_year
1982

birth_month

Thanks!

/dc
___
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] scrollRect....bad idea?

2006-08-11 Thread Chris Hill
Last night I learned about how cool scrollRect is. It made things a lot 
simpler, and faster, for basic rectangular masking. I was pretty stoked. 
So stoked that I decided to replace my mask within my BaseComponent 
class with a scrollRect. This worked ok for a bit, until I used a class 
that drew directly into BaseComponent, and got flash to consistently 
blow up in my face:


http://newmedia.cdws.ucf.edu/b2evolution/index.php?blog=6&title=scrollrect_mystery_crash&more=1&c=1&tb=1&pb=1

Thankfully this smart guy has already dealt with it. I went and 
retrofitted my classes to not draw into the root of BaseComponent, and 
things no longer crashfor now.


So my question is: Do you use scrollRect? Does it work for you? Do you 
have to constantly be careful of this problem, or do you just not use 
scrollRect and live with the performance hit?


Thanks,
Chris Hill
Director of Flash Interrogation
___
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] Web Services and Flash (PART 2)

2006-08-11 Thread jcanistrum

http://www.adobe.com/devnet/flash/articles/flashpro_asp.html

2006/8/11, Patrick Jean <[EMAIL PROTECTED]>:


Greetings. If anybody have experience with web services and flash, I have
a
question.



I can communicate with the web service no problems, but in my case, I need
to pass some xml attributes to the service and I couldn't find any proper
example.



   thanks for your time



   Pat





Patrick Jean

Directeur de projets internet

Monac'OH Data Mercantour

http://www.monacoh.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





--
João Carlos
___
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] Play Sound Backwards or in Slow Motion during RunTime

2006-08-11 Thread Helmut Granda

Does anyone knows of a technique to play a sound backwards or in Slow Motion
with AS?

So far this task seems imposible, bt I was wondering if some one would have
some pointers.

Thanks!
...helmut
___
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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Jeroen Beckers
Just to be complete: Yes, it is possible!

Example:

var myFoo = new Foo();
myFoo["test"+5] = function()
{
trace("hello world!");   
}
myFoo.test5();


//Foo.as
dynamic class Foo
{
   
   
}

And to your second question:

Delegate returns a function. Setting the onRelease to
'Delegate.create()' is nothing more than setting the onRelease to an
ordinary function like this:
btn.onRelease = function()
{
trace("Hello World");
}

the only thing Delegate do, is modifie the scope of the function.
So, yes, you CAN overwrite 'delegate instances'.

Ps: "Delegate instances" isn't even the right term since you don't
create an instance of the Delegate class. The 'create' method is a
static method that just takes some arguments and returns a function.

Got it ? :)



Bbt Lists wrote:
> Hi there
>
> Can you write dynamic methods in a class?
>
>
> for example
>
> for (var i:Number = 0; i < 11; i++)
> {
>function onBtnPress + i()
>{
>   trace("Button number: " + i + "was pressed");
>}
> }
>
> So then that would essentially create 10 methods (onBtnPress0 to
> onBtnPress9) to be used by various onPress events.
>
> Is this possible? Then at the same time you could write the delegate
> and create the buttons and so one as well.
>
> Then continuing on my thought - could you then over-write the
> onBtnPress functions with new values (say for example the trace would be:
>
> trace("Button number: " + i + "was pressed with the currValue of " +
> externalVariable);
>
> instead of the original:
>
> trace("Button number: " + i + "was pressed");
>
>
> I am a hobby AS coder, and I am probably way off here. All I am trying
> to do is build a thumbnail nav for a gallery.
>
> Thanks in advance!
>
___
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] AS2 - (this) vs "this"

2006-08-11 Thread Steven Sacks | BLITZ
> Is there a reason to wrap "this" in parentheses?

(no)

BLITZ | Steven Sacks - 310-551-0200 x209

___
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] Flash 9 ready for kiosk use?

2006-08-11 Thread Steven Sacks | BLITZ
Ok, so it's very specific to BitmapData objects, and even in Grant's
example, it's because he's using a temporary variable which isn't
getting cleaned up, and he has the solution (which IS the solution) to
hold on to the reference to dispose of it later.

The person who posted on the second link isn't using bitmap data because
he was able to publish as 7, so he's having some other issue and I'm
willing to bank that he is experiencing memory waste (a leak is
different) because of orphaned objects and functions due to scope chain
ignorance.  Fear not, because education awaits those who seek it out!
:)

http://timotheegroleau.com/Flash/articles/scope_chain.htm

___
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] AS2 - (this) vs "this"

2006-08-11 Thread Rich Rodecker

(wow thats exactly what i was going to say steven)

On 8/11/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


> Is there a reason to wrap "this" in parentheses?

(no)

BLITZ | Steven Sacks - 310-551-0200 x209

___
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] Web Services and Flash (PART 2)

2006-08-11 Thread Radley Marx




I would expect you'd pack the variables into a properly formatted  
object and pass the object...


-radley



On Aug 11, 2006, at 11:02 AM, Patrick Jean wrote:

Greetings. If anybody have experience with web services and flash,  
I have a

question.



I can communicate with the web service no problems, but in my case,  
I need
to pass some xml attributes to the service and I couldn't find any  
proper

example.



thanks for your time



Pat





Patrick Jean

Directeur de projets internet

Monac'OH Data Mercantour

http://www.monacoh.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






 
--

Radley Marx
[EMAIL PROTECTED]
310.220.4088
http://www.radleymarx.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] Flash 9 ready for kiosk use?

2006-08-11 Thread Darren Cook
> he was able to publish as 7, so he's having some other issue and I'm
> willing to bank that he is experiencing memory waste (a leak is
> different) ...

No: the flash player is able to correctly delete the memory when I
minimize then maximize the window. If I was still somehow holding on to
a pointer to the memory (which was my original thought too) it would not
be able to do that.

Or in other words, whatever additional clean-up it does when I minimize
the window it should be doing when running normally, every 10 seconds or
something. It doesn't, even after running for hours. Therefore I
describe it as a bug.

It sounds like Flash 9 may have fixed that bug; hopefully my client will
request a Flash 9 version and I can find out for sure.

Darren
___
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] RE: (Auto-Reply) Flashcoders Digest, Vol 19, Issue 36

2006-08-11 Thread pdouble
I will be out of the office beginning Friday Aug. 10 until Monday Aug. 19.

== Original Message Headers Follow == 

>From [EMAIL PROTECTED]  Fri Aug 11 22:32:23 2006
Received: from chattyfig.figleaf.com (wammo.org [146.145.88.77])
by s1.mail-in.isp.wdc.eggn.net (Postfix) with ESMTP id 17FF422682
for <[EMAIL PROTECTED]>; Fri, 11 Aug 2006 22:32:16 -0400 (EDT)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by chattyfig.figleaf.com (Postfix) with ESMTP id 9CAC5183344;
Fri, 11 Aug 2006 22:33:51 -0400 (EDT)
From: [EMAIL PROTECTED]
Subject: Flashcoders Digest, Vol 19, Issue 36
To: flashcoders@chattyfig.figleaf.com
Reply-To: flashcoders@chattyfig.figleaf.com
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-BeenThere: flashcoders@chattyfig.figleaf.com
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Flashcoders mailing list 
List-Unsubscribe: , 

List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,

Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
Date: Fri, 11 Aug 2006 22:33:51 -0400 (EDT)
___
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] trivial or mysterious problem with component?

2006-08-11 Thread Costello, Rob R
Dear all

 I have a strange problem getting a V2 component to initialize
I can copy code works that fine in one class, compiled into another
class (and another swf), and it no longer works - just fails silently

This is the essence of it :

import mx.controls.Button;

class Mysterious {
function Mysterious () {
doStuff()
}

function doStuff() {
var endNoteButt = _root.createClassObject(Button,
"endNoteButt",1000);
trace(endNoteButt);
;
}
}


In the original class, it traces : _level0.endNoteButt
In the new class it traces : undefined

Very odd ...i might well be missing something trivial / obvious, but I
can't see it...

I know that V2 objects need some time to fully initialize, but they
shouldn't return undefined?

Bit more info that might help someone advise me here
(1) in the first (working) case, Mysterious is instantiated from another
class - in the second from the main timeline
(2) using MX2004 IDE - both swf's compile and run fine - no errors
(3) this is a new PC. fscommand also seems to have stopped working on
this machine - unrelated? Security issue?
(4) both have same directory location, and class paths set for the swf

Help?!

TIA
Rob

Important -
This email and any attachments may be confidential. If received in error, 
please contact us and delete all copies. Before opening or using attachments 
check them for viruses and defects. Regardless of any loss, damage or 
consequence, whether caused by the negligence of the sender or not, resulting 
directly or indirectly from the use of any attached files our liability is 
limited to resupplying any affected attachments. Any representations or 
opinions expressed are those of the individual sender, and not necessarily 
those of the Department of Education & Training..
___
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] Uncompress a gzipped file

2006-08-11 Thread Claus Wahlers



Right now there's several things that could be done with this that I
can think of. Like Claus said, a tool could be created that takes
regular zip files and adds checksum info without damaging
compatibility.


A quick progress report, just in case somebody is interested:

We kinda got it working.

See here for a rough demo:
http://codeazur.com.br/stuff/fzip/
Flash Player 9 required, obviously.

I grabbed the original ZIP from here:
http://www.famfamfam.com/lab/icons/silk/
and use it as is. It contains 1002 icons in PNG format. Flash Player 
loads the ZIP via URLStream and decodes it on the fly. This works 
because the zipped PNGs are not being recompressed (PNG already uses 
compression).


Max wrote a small Python script that unobtrusively injects Adler32 
checksums into ZIPs, so very soon we'll be able to properly uncompress 
slightly modified, but still standard ZIP archives.


Sources are going to be released soon, stay tuned.
Cheers,
Claus.
___
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] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Jim Kremens

Also, look into __resolve.

The Flash docs have excellent examples.

Jim Kremens

On 8/11/06, Jeroen Beckers <[EMAIL PROTECTED]> wrote:

Just to be complete: Yes, it is possible!

Example:

var myFoo = new Foo();
myFoo["test"+5] = function()
{
trace("hello world!");
}
myFoo.test5();


//Foo.as
dynamic class Foo
{


}

And to your second question:

Delegate returns a function. Setting the onRelease to
'Delegate.create()' is nothing more than setting the onRelease to an
ordinary function like this:
btn.onRelease = function()
{
trace("Hello World");
}

the only thing Delegate do, is modifie the scope of the function.
So, yes, you CAN overwrite 'delegate instances'.

Ps: "Delegate instances" isn't even the right term since you don't
create an instance of the Delegate class. The 'create' method is a
static method that just takes some arguments and returns a function.

Got it ? :)



Bbt Lists wrote:
> Hi there
>
> Can you write dynamic methods in a class?
>
>
> for example
>
> for (var i:Number = 0; i < 11; i++)
> {
>function onBtnPress + i()
>{
>   trace("Button number: " + i + "was pressed");
>}
> }
>
> So then that would essentially create 10 methods (onBtnPress0 to
> onBtnPress9) to be used by various onPress events.
>
> Is this possible? Then at the same time you could write the delegate
> and create the buttons and so one as well.
>
> Then continuing on my thought - could you then over-write the
> onBtnPress functions with new values (say for example the trace would be:
>
> trace("Button number: " + i + "was pressed with the currValue of " +
> externalVariable);
>
> instead of the original:
>
> trace("Button number: " + i + "was pressed");
>
>
> I am a hobby AS coder, and I am probably way off here. All I am trying
> to do is build a thumbnail nav for a gallery.
>
> Thanks in advance!
>
___
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




--
Jim Kremens
___
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