Re: [Flashcoders] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Muzak
Have a look at the AS3 components:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/BaseButton.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/Button.html


- Original Message - 
From: Adam Pasztory [EMAIL PROTECTED]
To: Flashcoders@chattyfig.figleaf.com
Sent: Wednesday, June 27, 2007 6:40 AM
Subject: [Flashcoders] MovieClip Buttons in Flash CS3 ActionScript 3


 In ActionScript 2, I never used button symbols.  Instead I would create
 buttons as MovieClips, give the frames of the buttons labels -- _up,
 _down, _over -- and assign an event handler to them.

 I tried this in AS3, but it didn't seem to work.  Is there some new secret
 to MovieClip buttons in Flash 9?

 thanks,
 Adam


___
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] Watermarking FLV VIdeos

2007-06-27 Thread master
Hi, 

you can find the solution at http://www.flvsoft.com.

Best regards!




master
2007-06-27



From:  Tarjinder Kumar
Sent:  2007-06-27 01:24:40
To:  flashcoders@chattyfig.figleaf.com
CC:  
Subject:  [Flashcoders] Watermarking FLV VIdeos

Hi,

I want to watermark flv videos using command line utility. Can any one
suggest me some solution.


Thanks
Tarjinder Kumar
___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Jim Berkey
One way to instantiate a mc as a button in as3 is:

my_btn.addEventListener(MouseEvent.CLICK, myFunction);
my_btn.buttonMode = true;
function myFunction(event:MouseEvent):void {
//do something
}



jimbo
*** REPLY SEPARATOR  ***

On 6/26/2007 at 9:40 PM Adam Pasztory wrote:

In ActionScript 2, I never used button symbols.  Instead I would create
buttons as MovieClips, give the frames of the buttons labels -- _up,
_down, _over -- and assign an event handler to them.

I tried this in AS3, but it didn't seem to work.  Is there some new secret
to MovieClip buttons in Flash 9?

thanks,
Adam
___
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

s

___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Adam Pasztory

Thanks Jim,

I've set up the AS3 event handler as you've specified, and it does change
the cursor from an arrow to a pointer, but the _up, _down and _over states
don't work.  I pasted the same button symbol into an AS2 FLA file, and it
does work, so there isn't anything wrong with the way I've set my frame
labels in the button symbol.

According to the docs, it should work in AS3:
If you use the buttonMode property with the MovieClip class (which is a
subclass of the Sprite class), your button might have some added
functionality. If you include frames labeled _up, _over, and _down, Flash
Player provides automatic state changes (functionality similar to that
provided in previous versions of ActionScript for movie clips used as
buttons).

Can anyone else get this working in AS3???

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:


One way to instantiate a mc as a button in as3 is:

my_btn.addEventListener(MouseEvent.CLICK, myFunction);
my_btn.buttonMode = true;
function myFunction(event:MouseEvent):void {
//do something
}



jimbo
*** REPLY SEPARATOR  ***

On 6/26/2007 at 9:40 PM Adam Pasztory wrote:

In ActionScript 2, I never used button symbols.  Instead I would create
buttons as MovieClips, give the frames of the buttons labels -- _up,
_down, _over -- and assign an event handler to them.

I tried this in AS3, but it didn't seem to work.  Is there some new
secret
to MovieClip buttons in Flash 9?

thanks,
Adam
___
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

s

___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Jim Berkey
Yes, I can find nothing in as3 docs about support for that shortcut (_up,_over, 
_down frame labels). The buttonMode=true only affects the cursor - changes it 
from pointer to hand.
afaik, you need to set functions for each event - possible mouse events include:
CLICK
DOUBLE_CLICK
MOUSE_DOWN
MOUSE_MOVE
MOUSE_OUT
MOUSE_OVER
MOUSE_UP
MOUSE_WHEEL
ROLL_OUT
ROLL_OVER

So I think you need to do this:

my_btn.addEventListener(MouseEvent.CLICK, myFunction);
my_btn.buttonMode = true;
function myFunction(event:MouseEvent):void {
 //do something
 }

my_btn.addEventListener(MouseEvent.ROLL_OVER, myOverFunction);
function myOverFunction(event:MouseEvent):void {
 //do something
 }
my_btn.addEventListener(MouseEvent.ROLL_OUT, myOutFunction);
function myOutFunction(event:MouseEvent):void {
 //do something
 }


I'd love to learn otherwise, though. Of course, using the simple button 
component avoids this, maybe you could just skin it to your liking? All of the 
button states are separate editable mc's in the library.
jimbo

*** REPLY SEPARATOR  ***

On 6/27/2007 at 6:24 AM Adam Pasztory wrote:

Thanks Jim,

I've set up the AS3 event handler as you've specified, and it does change
the cursor from an arrow to a pointer, but the _up, _down and _over states
don't work.  I pasted the same button symbol into an AS2 FLA file, and it
does work, so there isn't anything wrong with the way I've set my frame
labels in the button symbol.

According to the docs, it should work in AS3:
If you use the buttonMode property with the MovieClip class (which is a
subclass of the Sprite class), your button might have some added
functionality. If you include frames labeled _up, _over, and _down, Flash
Player provides automatic state changes (functionality similar to that
provided in previous versions of ActionScript for movie clips used as
buttons).

Can anyone else get this working in AS3???

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:

 One way to instantiate a mc as a button in as3 is:

 my_btn.addEventListener(MouseEvent.CLICK, myFunction);
 my_btn.buttonMode = true;
 function myFunction(event:MouseEvent):void {
 //do something
 }



 jimbo
 *** REPLY SEPARATOR  ***

 On 6/26/2007 at 9:40 PM Adam Pasztory wrote:

 In ActionScript 2, I never used button symbols.  Instead I would create
 buttons as MovieClips, give the frames of the buttons labels -- _up,
 _down, _over -- and assign an event handler to them.
 
 I tried this in AS3, but it didn't seem to work.  Is there some new
 secret
 to MovieClip buttons in Flash 9?
 
 thanks,
 Adam
 ___
 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

 s

 ___
 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

s

___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Leandro Amano

Hi Adam,
Use the sample below for Button instances:

import flash.display.SimpleButton;
import flash.display.Sprite;

var up:Sprite = new Sprite();
up.graphics.beginFill(0x99);
up.graphics.drawRect(50, 50, 50, 50);
up.graphics.endFill();

var over:Sprite = new Sprite();
over.graphics.beginFill(0xFF);
over.graphics.drawRect(50, 50, 50, 50);
over.graphics.endFill();

var down:Sprite = new Sprite();
down.graphics.beginFill(0xCC);
down.graphics.drawRect(50, 50, 50, 50);
down.graphics.endFill();

var hit:Sprite = new Sprite();
hit.graphics.beginFill(0xCC);
hit.graphics.drawRect(50, 50, 50, 50);
hit.graphics.endFill();

var botao:SimpleButton = new SimpleButton(up);
botao.upState = up;
botao.overState = over;
botao.downState = down;
botao.hitTestState = hit;

this.addChild(botao);

best regards
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:


Yes, I can find nothing in as3 docs about support for that shortcut
(_up,_over, _down frame labels). The buttonMode=true only affects the cursor
- changes it from pointer to hand.
afaik, you need to set functions for each event - possible mouse events
include:
CLICK
DOUBLE_CLICK
MOUSE_DOWN
MOUSE_MOVE
MOUSE_OUT
MOUSE_OVER
MOUSE_UP
MOUSE_WHEEL
ROLL_OUT
ROLL_OVER

So I think you need to do this:

my_btn.addEventListener(MouseEvent.CLICK, myFunction);
my_btn.buttonMode = true;
function myFunction(event:MouseEvent):void {
//do something
}

my_btn.addEventListener(MouseEvent.ROLL_OVER, myOverFunction);
function myOverFunction(event:MouseEvent):void {
//do something
}
my_btn.addEventListener(MouseEvent.ROLL_OUT, myOutFunction);
function myOutFunction(event:MouseEvent):void {
//do something
}


I'd love to learn otherwise, though. Of course, using the simple button
component avoids this, maybe you could just skin it to your liking? All of
the button states are separate editable mc's in the library.
jimbo

*** REPLY SEPARATOR  ***

On 6/27/2007 at 6:24 AM Adam Pasztory wrote:

Thanks Jim,

I've set up the AS3 event handler as you've specified, and it does change
the cursor from an arrow to a pointer, but the _up, _down and _over
states
don't work.  I pasted the same button symbol into an AS2 FLA file, and it
does work, so there isn't anything wrong with the way I've set my frame
labels in the button symbol.

According to the docs, it should work in AS3:
If you use the buttonMode property with the MovieClip class (which is a
subclass of the Sprite class), your button might have some added
functionality. If you include frames labeled _up, _over, and _down, Flash
Player provides automatic state changes (functionality similar to that
provided in previous versions of ActionScript for movie clips used as
buttons).

Can anyone else get this working in AS3???

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:

 One way to instantiate a mc as a button in as3 is:

 my_btn.addEventListener(MouseEvent.CLICK, myFunction);
 my_btn.buttonMode = true;
 function myFunction(event:MouseEvent):void {
 //do something
 }



 jimbo
 *** REPLY SEPARATOR  ***

 On 6/26/2007 at 9:40 PM Adam Pasztory wrote:

 In ActionScript 2, I never used button symbols.  Instead I would
create
 buttons as MovieClips, give the frames of the buttons labels -- _up,
 _down, _over -- and assign an event handler to them.
 
 I tried this in AS3, but it didn't seem to work.  Is there some new
 secret
 to MovieClip buttons in Flash 9?
 
 thanks,
 Adam
 ___
 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

 s

 ___
 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

s

___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Adam Pasztory

Also, the client just wants the buttons delivered in a simple graphical
format, so they can add code later.  They don't want me to send them an FLA
with a ton of code in it, like in Leandro's example.

I would go ahead and just use button symbols, but my problem is that these
buttons also have an inactive state, which can be represented by a
SimpleButton object.  In AS2, I just would have added an _inactive frame
to the button.
___
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] Passing Text From Flash To ASP

2007-06-27 Thread vivek
Hi,

 

I was doing some RD on sending data from flash to Access database. Got one
example on the net, i tried modifying it and it worked. Now the problem is I
can't pass the text field values of flash to asp.

 

If I do it statically it works.

 

set objrecord=objconn.execute(insert into mydbdata(firstName,lastName)
values('john','Miranda')) //ASP code

 

What should be done to replace 'john' and 'Miranda' with actual values from
flash text fields?

 

 

 

Thanks  Regards,

Vivek Gaikwad

Flash Accessibility Developer

 

 

 

___
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] Passing Text From Flash To ASP

2007-06-27 Thread Johannes Nel

if its a post a request.form or if its a get a request.querystring

On 6/27/07, vivek [EMAIL PROTECTED] wrote:


Hi,



I was doing some RD on sending data from flash to Access database. Got
one
example on the net, i tried modifying it and it worked. Now the problem is
I
can't pass the text field values of flash to asp.



If I do it statically it works.



set objrecord=objconn.execute(insert into mydbdata(firstName,lastName)
values('john','Miranda')) //ASP code



What should be done to replace 'john' and 'Miranda' with actual values
from
flash text fields?







Thanks  Regards,

Vivek Gaikwad

Flash Accessibility Developer







___
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] Passing Text From Flash To ASP

2007-06-27 Thread Dave Burnett



set objrecord=objconn.execute(insert into mydbdata(firstName,lastName)
values('john','Miranda')) //ASP code



What should be done to replace 'john' and 'Miranda' with actual values from
flash text fields?



It depends on how the vars are sent from Flash.

If sent via a GET (i.e. the vars form part of the asp target page URL, as a 
querystring, then the asp uses:


Request.Querystring(some_value_name)

If the data is sent in the form of a POST request, then the asp is:

Request.Form(some_value_name)

HTH

_
Need a break? Find your escape route with Live Search Maps. 
http://maps.live.com/default.aspx?ss=Restaurants~Hotels~Amusement%20Parkcp=33.832922~-117.915659style=rlvl=13tilt=-90dir=0alt=-1000scene=1118863encType=1FORM=MGAC01


___
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] FMS, No event when client had lost connection?

2007-06-27 Thread Dennis - I Sioux

Hey Amir,

Thanks for your reply.

Yeah, that will resort to pinging clients at an interfal.. always nice 
ducktape.. but never what you really whant.. especially with high client 
numbers.


The adobe connection is indeed a nice one.. anyone from them reading along? 
(Ed?)


With kind regards,

Dennis
I Sioux

- Original Message - 
From: Amir T Rocker [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, June 27, 2007 1:43 PM
Subject: Re: [Flashcoders] FMS, No event when client had lost connection?



Hi Dennis,

I have experienced this with the FCS 1.5 - thought it to be fixed in FMS 
2.1.

Good to know - need to check it out.
As a work around one could try to loop thru the connected clients server 
side
and ask the client to confirm that he ist still there on a regular basis 
( performance hit though )

by using a client call - on fail kick the client ( uuuh tricky ...:)

lets see what happens once adobe knows that - would be nice of the m to 
fix it :)

cy
Amir

Am 05:25 PM 6/26/2007 schrieben Sie:

Hey guys,

Has anyone expierenced that the FMS server doesn't get an onDisconnect 
form a client that has lost his connection?

After a while (up to 10 min) the fms will throw the user out the list..
But by then the client could have reconnected again.. will get new Client 
ID and give trouble with the old ghost username in the peoplelist with 
people connected.


Off course this can be solved with ducktape and ping commands every now 
and then.. but has anyone got another approuch? Maybe server settings or 
something else?


This should be the 2.0.4 version

With kind regards,


Dennis
___
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] Passing Text From Flash To ASP

2007-06-27 Thread vivek
Hi,


'This is the ASP code.

%
Set objconn=server.createobject(adodb.connection)
objconn.open provider=microsoft.jet.oledb.4.0; data source= 
server.mappath(names.mdb)
set objrecord=server.createobject(adodb.recordset)

set objrecord=objconn.execute(insert into mydbdata(firstName)
values('record'))
%

//This is the Flash code

on (release)
 {
loadVariablesNum(data.asp?Record= add a, 0);
}


Thanks...

-Original Message-
From: Johannes Nel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 8:01 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Passing Text From Flash To ASP

if its a post a request.form or if its a get a request.querystring

On 6/27/07, vivek [EMAIL PROTECTED] wrote:

 Hi,



 I was doing some RD on sending data from flash to Access database. Got
 one
 example on the net, i tried modifying it and it worked. Now the problem is
 I
 can't pass the text field values of flash to asp.



 If I do it statically it works.



 set objrecord=objconn.execute(insert into mydbdata(firstName,lastName)
 values('john','Miranda')) //ASP code



 What should be done to replace 'john' and 'Miranda' with actual values
 from
 flash text fields?







 Thanks  Regards,

 Vivek Gaikwad

 Flash Accessibility Developer







 ___
 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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Adam Pasztory

According to the docs, it *is* supported.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Sprite.html#buttonMode

If you use the buttonMode property with the MovieClip class (which is a
subclass of the Sprite class), your button might have some added
functionality. If you include frames labeled _up, _over, and _down, Flash
Player provides automatic state changes (functionality similar to that
provided in previous versions of ActionScript for movie clips used as
buttons).

Yeah, I could use a component, but I don't think the client is going to want
that...  And we're trying to keep the file size minimal.

It would be really annoying if they took out this simple and useful feature.
:(
___
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] Passing Text From Flash To ASP

2007-06-27 Thread Dave Burnett

set objrecord=objconn.execute(insert into mydbdata(firstName)
values('  Request.QueryString(record)  ')


_
PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows 
Live Hotmail. 
http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_pcmag_0507


___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Jim Berkey
Hah, yes, it does work, just need to addChild:

my_btn.addEventListener(MouseEvent.CLICK, myFunction);
my_btn.buttonMode = true;
function myFunction(event:MouseEvent):void {
//do something
}
addChild(my_btn);

jimbo

*** REPLY SEPARATOR  ***

On 6/27/2007 at 7:14 AM Adam Pasztory wrote:

Also, the client just wants the buttons delivered in a simple graphical
format, so they can add code later.  They don't want me to send them an FLA
with a ton of code in it, like in Leandro's example.

I would go ahead and just use button symbols, but my problem is that these
buttons also have an inactive state, which can be represented by a
SimpleButton object.  In AS2, I just would have added an _inactive frame
to the button.
___
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] Flash working in Atlassian Confluence wiki?

2007-06-27 Thread Phil Dupré

Hi guys,

I'm developing a flash navigation project built in flex 2.  The
navigation will be living in a wiki that was made using the Atlassian
Confluence platform.  Anyone have any experience putting flash modules
in this platform.  Any pitfalls?  Things to watch out for?

Thanks for you help.
___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Adam Pasztory

Didn't work.  I posted the FLA in case anyone is bored and feels like taking
a look:
http://www.pasz.com/xfer/FinalAssets.zip

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:


Hah, yes, it does work, just need to addChild:

my_btn.addEventListener(MouseEvent.CLICK, myFunction);
my_btn.buttonMode = true;
function myFunction(event:MouseEvent):void {
//do something
}
addChild(my_btn);

jimbo

___
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: Flashcoders Digest, Vol 6, Issue 54

2007-06-27 Thread Josh Ettwein

FFMpeg is what we use...

http://ffmpeg.mplayerhq.hu/

As seen on the starwars mashup site - http://mashup.starwars.com. The  
StarWars.com logo watermark seen in all videos on this site is done  
with ffmpeg.


Josh

On Jun 27, 2007, at 7:08 AM, flashcoders- 
[EMAIL PROTECTED] wrote:



Hi,

I want to watermark flv videos using command line utility. Can any one
suggest me some solution.


Thanks
Tarjinder Kumar


___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Jim Berkey
funny, mine does . . . your setup looks the same?

http://jimbo.us/lab/buttonAs3.fla
http://jimbo.us/lab/buttonAs3.swf

*** REPLY SEPARATOR  ***

On 6/27/2007 at 8:39 AM Adam Pasztory wrote:

Didn't work.  I posted the FLA in case anyone is bored and feels like
taking
a look:
http://www.pasz.com/xfer/FinalAssets.zip

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:

 Hah, yes, it does work, just need to addChild:

 my_btn.addEventListener(MouseEvent.CLICK, myFunction);
 my_btn.buttonMode = true;
 function myFunction(event:MouseEvent):void {
 //do something
 }
 addChild(my_btn);

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

e

___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Adam Pasztory

Jim,

The problem seems to be that each of my button states is a MovieClip.  In
your version, the buttons states are just raw graphics and text the timeline
of the button.  Do a convert to symbol on your graphics, and change each
button state into a MovieClip.  The hit areas will no longer work.

This works in AS2, but not AS3, so I'm thinking it's a bug in Flash.

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:


funny, mine does . . . your setup looks the same?

http://jimbo.us/lab/buttonAs3.fla
http://jimbo.us/lab/buttonAs3.swf

*** REPLY SEPARATOR  ***

On 6/27/2007 at 8:39 AM Adam Pasztory wrote:

Didn't work.  I posted the FLA in case anyone is bored and feels like
taking
a look:
http://www.pasz.com/xfer/FinalAssets.zip

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:

 Hah, yes, it does work, just need to addChild:

 my_btn.addEventListener(MouseEvent.CLICK, myFunction);
 my_btn.buttonMode = true;
 function myFunction(event:MouseEvent):void {
 //do something
 }
 addChild(my_btn);

 jimbo

___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Leandro Amano

Adam,
Please, it sees the archive in the URL:

www.leandroamano.com.br/files/button_as3.fla

best regards

On 6/27/07, Adam Pasztory [EMAIL PROTECTED] wrote:


Jim,

The problem seems to be that each of my button states is a MovieClip.  In
your version, the buttons states are just raw graphics and text the
timeline
of the button.  Do a convert to symbol on your graphics, and change each
button state into a MovieClip.  The hit areas will no longer work.

This works in AS2, but not AS3, so I'm thinking it's a bug in Flash.

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:

 funny, mine does . . . your setup looks the same?

 http://jimbo.us/lab/buttonAs3.fla
 http://jimbo.us/lab/buttonAs3.swf

 *** REPLY SEPARATOR  ***

 On 6/27/2007 at 8:39 AM Adam Pasztory wrote:

 Didn't work.  I posted the FLA in case anyone is bored and feels like
 taking
 a look:
 http://www.pasz.com/xfer/FinalAssets.zip
 
 On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:
 
  Hah, yes, it does work, just need to addChild:
 
  my_btn.addEventListener(MouseEvent.CLICK, myFunction);
  my_btn.buttonMode = true;
  function myFunction(event:MouseEvent):void {
  //do something
  }
  addChild(my_btn);
 
  jimbo
___
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





--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
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] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Jim Berkey
You're right. Unfortunately, there are precious few examples in the flash docs 
for simple designer-type actionscript  - it's all Flex type class structure.


jimbo
*** REPLY SEPARATOR  ***

On 6/27/2007 at 9:22 AM Adam Pasztory wrote:

Jim,

The problem seems to be that each of my button states is a MovieClip.  In
your version, the buttons states are just raw graphics and text the
timeline
of the button.  Do a convert to symbol on your graphics, and change each
button state into a MovieClip.  The hit areas will no longer work.

This works in AS2, but not AS3, so I'm thinking it's a bug in Flash.

On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:

 funny, mine does . . . your setup looks the same?

 http://jimbo.us/lab/buttonAs3.fla
 http://jimbo.us/lab/buttonAs3.swf

 *** REPLY SEPARATOR  ***

 On 6/27/2007 at 8:39 AM Adam Pasztory wrote:

 Didn't work.  I posted the FLA in case anyone is bored and feels like
 taking
 a look:
 http://www.pasz.com/xfer/FinalAssets.zip
 
 On 6/27/07, Jim Berkey [EMAIL PROTECTED] wrote:
 
  Hah, yes, it does work, just need to addChild:
 
  my_btn.addEventListener(MouseEvent.CLICK, myFunction);
  my_btn.buttonMode = true;
  function myFunction(event:MouseEvent):void {
  //do something
  }
  addChild(my_btn);
 
  jimbo
___
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

i

___
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] Need help with Get Code for larger numbers

2007-06-27 Thread Mirkovich-Hamon, Sanja
I am writing getCode for smaller numbers and everything works until two
numeric digits together are entered by the user:

 

this.onKeyDown = function() {

// 0 (frm 1)

if (Key.getCode() == 48){

this.gotoAndStop(1);

// 1 (frm 2)

  } else if (Key.getCode() == 49){

this.gotoAndStop(2);

 

and the list goes on until the user imputs 10, 11, 12 thru 15.

 

How would I write this, when the keys are pressed for the larger
numbers? 

 

Any help would be great.

 

Thanks, Sanja

___

Sanja Mirkovich-Hamon

 

Corporate Marketing

Graphic Designer/Technical Illustrator

 

 

Weatherford Intl. Inc.

520 Post Oak Blvd., Suite 700

Houston, Texas 77027

713-386-8941 direct

[EMAIL PROTECTED]
BLOCKED::mailto:[EMAIL PROTECTED] 

 

NOTICE: This e-mail may contain information which is CONFIDENTIAL. If
you are not the intended recipient, you must not read, peruse, use,
disseminate, distribute or copy this e-mail or attachments. If you have
received this in error, please notify us immediately by return e-mail,
Thank you.

 

___
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] Estimating the time required for a project

2007-06-27 Thread James Deakin

Thanks for the once again for the advice. It has already proved useful.

Kind regards

James

On 6/19/07, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,

i think i'd recommend 'code complete', 'the mythical manmonth', 'software
project survival guide', but that's just based on personal preference,
picking up some books about agile development methodologies could be a
good
idea too. To be honest, I know the ideas in there, and read papers about
it,
but havent got to reading a lot of book on agile methods perse.

The thing you describe with the employee sounds familiar, but I think
there
are two separate issues:
* wrong estimates (the subject of your first email)
* different programming approaches (the subject of the last email)

An employee who hacks everything together might give off very accurate
estimates:), the main thing probably is trying to tell your manager WHY
that
is not the way to go. If you are a perfectionist you might wanna plan for
all those one in a million cases that happen 9 times out of 10, but if
your
boss asked you to develop a quick prototype, you are indeed wasting a lot
of
time with that formal approach (not saying you are, but just if).
The reason we still do it that way is probably that we know 99,% sure
that the quick prototype will end up in production before you blink your
eyes, and one way or another you've been manouvered in such a position
that
your biting dust either way.
However, i tend to keep all communication and assumptions on email, if
someone wants a quick prototype, i give them a quick prototype, ok here
is
the quick prototype you asked for. Note it has been hacked together,
meaning
it will probably crash, its unmaintainable, has to be rewritten from
scratch
if etc etc etc.. You might go on to tell them the nitty gritty details,
tell them to read a book on software project management, or tell m to just
trust you, depending on the kind of work relationship/environment you are
in.
(note that i am leaving out the option that you have a solid simple
framework, allowing you to put together prototypes more quickly with less
disadvantages such as the ones described above).

The books mentioned will give you a lot of information on how to educate
your boss why it takes you a factor 5 or 10 or 20 compared to your
collegue,
if he wants a maintainable production ready system. If your boss still
doesnt wanna listen, find another boss, more and more managers are seeing
the light of solid software development these days :). I had the kind of
collegue you mentioned and he was fired because he just couldnt get his
stuff bugfree.
And for yourself you need to decide what kind of project you are working
on,
and what kind of measures and overhead it demands. After all a nuclear
power
system control unit will require different methods than a bouncing flash
animation.

The estimate for the project I am currently working on, was originally a
year. We had to do it in 3 months. So we said ok, we'll do it in 3, BUT
documentation will be lacking, functionality will be lacking, it wont be
as
adaptable, etc, etc, but what we do create will be okay and bugfree.
However
if you ever want to incorporate more changes, we will have to refactor as
we
go along (which we are currently doing). Of course it didn't go quite as
smoothly as it sounds, but in the end we are getting there.

Sorry for the chaotic piece of text, but to conclude:
* go with the flow, but communicate about your assumptions so they dont
backfire
* i try to keep a 'we see possibilities' attitude with a note of warning,
instead of a 'we see only problems' attitude
* read up on books and try to educate your managers, and dont worry some
managers wont understand what you are trying to explain no matter how good
you do it:)
* if you have established that you are on the right track (based on what
you
read) and are still not valued and cant change it within your current
organisation, leave. Shame to let good talent rot to waste:)


just my 2 cnts and really the books explain these phenomena we all
encounter
way better than i just tried

greetz
JC




On 6/19/07, James Deakin [EMAIL PROTECTED] wrote:

 Thanks for taking the time to respond Hans. I actually record how long
 things take already. I think you are right though perhaps the hard part
is
 having the arguments to hand to support why it will take a while.

 Which books would you recommend?

 Where I work there is another employee who is willing to hack things
 together any old way. I like to do things properly and plan for the
cases
 where the application might fail and try to deal with those gracefully.
 But
 whenever I give estimates the project manager says well the other guy
can
 do it in 5 days. its driving me nuts.

 Thanks once again for the advice.

 James

 On 6/16/07, Hans Wichman [EMAIL PROTECTED] wrote:
 
  Hi,
 
  well one advice is to start recording your current measures and check
  afterwards how close you were.
  Record things you forget that made your estimates go 

Re: [Flashcoders] MovieClip Buttons in Flash CS3 ActionScript 3

2007-06-27 Thread Fumio Nonaka

This works in ActionScript 3.0, too.

You should use Graphic instances for your button's states.  Otherwise, 
set the InteractiveObject.mouseEnabled properties of MovieClips for each 
state to false.

_
Adam Pasztory wrote:

The problem seems to be that each of my button states is a MovieClip.  In
your version, the buttons states are just raw graphics and text the 
timeline

of the button.  Do a convert to symbol on your graphics, and change each
button state into a MovieClip.  The hit areas will no longer work.


Good luck,
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.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