[Flashcoders] Singleton AS2

2007-09-08 Thread Helmut Granda
I have 5 applications and one of them was created with the Singleton
pattern, those 5 apps are being loaded at different times into a container,
when any of the movies is loaded and unloaded everything works fine but
everytime the movie with the Singleton pattern is loaded into the container
it creates a new copy of itself. one way to see that is creating a static
counter variable that increases everytime the movie is loaded into the
container.

Could some one point me to a site where I could understand why this is
happening. I understand what is going on but I can't grasp the reasoning
behind it so that I can avoid those duplicates.

TIA

-- 
...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] AIR & SWFLoader Question

2007-09-08 Thread Randy Troppmann
Eric, I have a brief blog post about getting the stage event here:

http://www.spintechnologies.ca/flashblog/archives/99.html

HTH

- Randy

On 9/8/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
> Oh, localConnection. was thinking of perhaps something else. ugh.
>
> On 9/8/07, Muzak <[EMAIL PROTECTED]> wrote:
> >
> > Use a LocalConnection for Flex->Flash communication.
> >
> > http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm
> >
> > http://kb.adobe.com/selfservice/viewContent.do?externalId=749eaa47&sliceId=1
> >
> > regards,
> > Muzak
> >
> > - Original Message -
> > From: "Eric E. Dolecki" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Sunday, September 09, 2007 12:50 AM
> > Subject: Re: [Flashcoders] AIR & SWFLoader Question
> >
> >
> > > swf is as2. how would i go about doing what you suggest?
> > >
> > > On Sep 8, 2007, at 10:19 AM, Randy Troppmann wrote:
> > >
> > >> Hi Eric. Is your swf AS2 or AS3? I think you will need to add logic to
> > >> your swf so that Flex can capture the stage resize event and call the
> > >> resize method in the swf.
> > >>
> > >> Randy
> > >>
> > >>
> > >> On 9/7/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
> > >>> I have a SWFLoader in Flex 3 that runs in a transparent  application.
> > I have
> > >>> the SWFLoader set to 100% height of the application window its in.
> > >>> I have a local SWF that I load in there, and I want it to resize  the
> > Flash
> > >>> to the height of the window. The SWF loads in fine, but
> > the  onResize() in
> > >>> the SWF isn't firing. How can I make sure that onResize
> > actually  happens? I
> > >>> have elements that lay themselves out based on that function in  the
> > SWF.
> > >>>
> > >>> - eric
> >
> >
> > ___
> > 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] AIR & SWFLoader Question

2007-09-08 Thread eric e. dolecki
Oh, localConnection. was thinking of perhaps something else. ugh.

On 9/8/07, Muzak <[EMAIL PROTECTED]> wrote:
>
> Use a LocalConnection for Flex->Flash communication.
>
> http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm
>
> http://kb.adobe.com/selfservice/viewContent.do?externalId=749eaa47&sliceId=1
>
> regards,
> Muzak
>
> - Original Message -
> From: "Eric E. Dolecki" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, September 09, 2007 12:50 AM
> Subject: Re: [Flashcoders] AIR & SWFLoader Question
>
>
> > swf is as2. how would i go about doing what you suggest?
> >
> > On Sep 8, 2007, at 10:19 AM, Randy Troppmann wrote:
> >
> >> Hi Eric. Is your swf AS2 or AS3? I think you will need to add logic to
> >> your swf so that Flex can capture the stage resize event and call the
> >> resize method in the swf.
> >>
> >> Randy
> >>
> >>
> >> On 9/7/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
> >>> I have a SWFLoader in Flex 3 that runs in a transparent  application.
> I have
> >>> the SWFLoader set to 100% height of the application window its in.
> >>> I have a local SWF that I load in there, and I want it to resize  the
> Flash
> >>> to the height of the window. The SWF loads in fine, but
> the  onResize() in
> >>> the SWF isn't firing. How can I make sure that onResize
> actually  happens? I
> >>> have elements that lay themselves out based on that function in  the
> SWF.
> >>>
> >>> - eric
>
>
> ___
> 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] Flex - How to get button ID name?

2007-09-08 Thread Brian Lesser
In general it is probably better, and more common, to pass the event and 
let the method decide what it needs from it:




private function getHandler( event:MouseEvent ):void {
   trace(event.target.id);
}

Yours truly,
-Brian

ben gomez farrell wrote:

OK I'm still new to Flex, but as I've been playing with it all day, I 
think I can answer this.
Your click function is coded in such a way that you've ignored the 
event coming coming in.  Yah, "getHandler" gets called on click, but 
there's some more details you could get when it gets clicked.


Here's how I'd do it:
click="getHandler(event.target.id)" />


private function getHandler( id:String ):void {
trace(id);
}

Or you could pass in the whole target: click="getHandler(event.target)"

and get it in the getHandler(target:Button) by doing trace(target.id);

That help?
ben

macromedia flash wrote:


Hi there,

I am working on Flex and need to get the button ID in function, do 
you have

any ideas?




http://www.adobe.com/2006/mxml";>













___
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




--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__

___
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] AIR & SWFLoader Question

2007-09-08 Thread Muzak
Use a LocalConnection for Flex->Flash communication.

http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm
http://kb.adobe.com/selfservice/viewContent.do?externalId=749eaa47&sliceId=1

regards,
Muzak

- Original Message - 
From: "Eric E. Dolecki" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, September 09, 2007 12:50 AM
Subject: Re: [Flashcoders] AIR & SWFLoader Question


> swf is as2. how would i go about doing what you suggest?
>
> On Sep 8, 2007, at 10:19 AM, Randy Troppmann wrote:
>
>> Hi Eric. Is your swf AS2 or AS3? I think you will need to add logic to
>> your swf so that Flex can capture the stage resize event and call the
>> resize method in the swf.
>>
>> Randy
>>
>>
>> On 9/7/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
>>> I have a SWFLoader in Flex 3 that runs in a transparent  application. I have
>>> the SWFLoader set to 100% height of the application window its in.
>>> I have a local SWF that I load in there, and I want it to resize  the Flash
>>> to the height of the window. The SWF loads in fine, but the  onResize() in
>>> the SWF isn't firing. How can I make sure that onResize actually  happens? I
>>> have elements that lay themselves out based on that function in  the SWF.
>>>
>>> - eric


___
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] Flex - How to get button ID name?

2007-09-08 Thread Muzak









You should probably consider joining FlexCoders:
http://tech.groups.yahoo.com/group/flexcoders/

regards,
Muzak

- Original Message - 
From: "macromedia flash" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, September 08, 2007 11:02 PM
Subject: [Flashcoders] Flex - How to get button ID name?


> Hi there,
>
> I am working on Flex and need to get the button ID in function, do you have
> any ideas?
>
>
> 
> 
> http://www.adobe.com/2006/mxml";>
>
>
>
>
>
>
>
>
>
>
>
>
> 


___
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] AIR & SWFLoader Question

2007-09-08 Thread Eric E. Dolecki

swf is as2. how would i go about doing what you suggest?

On Sep 8, 2007, at 10:19 AM, Randy Troppmann wrote:


Hi Eric. Is your swf AS2 or AS3? I think you will need to add logic to
your swf so that Flex can capture the stage resize event and call the
resize method in the swf.

Randy


On 9/7/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
I have a SWFLoader in Flex 3 that runs in a transparent  
application. I have

the SWFLoader set to 100% height of the application window its in.
I have a local SWF that I load in there, and I want it to resize  
the Flash
to the height of the window. The SWF loads in fine, but the  
onResize() in
the SWF isn't firing. How can I make sure that onResize actually  
happens? I
have elements that lay themselves out based on that function in  
the SWF.


- eric
___
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] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread John VanHorn
http://www.kirupa.com/forum/showthread.php?p=1948052#post1948052


On 9/7/07, Patrick Matte|BLITZ <[EMAIL PROTECTED]> wrote:
>
> In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
>
> They seem to be the same as MOUSE_OVER and MOUSE_OUT...
>
> ___
> 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 Van Horn
[EMAIL PROTECTED]
___
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] Flex - How to get button ID name?

2007-09-08 Thread ben gomez farrell
OK I'm still new to Flex, but as I've been playing with it all day, I 
think I can answer this.
Your click function is coded in such a way that you've ignored the event 
coming coming in.  Yah, "getHandler" gets called on click, but there's 
some more details you could get when it gets clicked.


Here's how I'd do it:
click="getHandler(event.target.id)" />


private function getHandler( id:String ):void {
trace(id);
}

Or you could pass in the whole target: click="getHandler(event.target)"

and get it in the getHandler(target:Button) by doing trace(target.id);

That help?
ben

macromedia flash wrote:

Hi there,

I am working on Flex and need to get the button ID in function, do you have
any ideas?




http://www.adobe.com/2006/mxml";>













___
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] Flex - How to get button ID name?

2007-09-08 Thread macromedia flash
Hi there,

I am working on Flex and need to get the button ID in function, do you have
any ideas?




http://www.adobe.com/2006/mxml";>













___
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] Animate dynamic text

2007-09-08 Thread EECOLOR
There are two possible ways to achieve this:

1. Make sure the text is embedded. In order for text to have an alpha value
or rotation is needs to be embedded.
2. Make a 'screenshot' of the text using BitmapData.draw() and animate that.


Greetz Erik

> Hello
> > I want to know that there is any way of animating a text which we load
> > from
> > an external file .txt and then animate this text. Like we do with static
> > text which is inside the .fla.
> > Please help if any ideas.
> > Thanx
> > chand
>
___
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] Copy and paste a movieClip?

2007-09-08 Thread EECOLOR
Yes in AS3 you can move DisplayObjects to other parents without problems.
One thing to note is that you need to remove it from the current display
list before you add it to the other.

Something like this:

parent1.removeChild(theClip);
parent2.addChild(theClip);


Greetz Erik


On 9/6/07, T. Michael Keesey <[EMAIL PROTECTED]> wrote:
>
> On 9/6/07, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:
> > Just as I suspected, Julian.  Thanks for your reply.  Doesn't this
> > feature exist in AS3?  (I have no experience with it yet.)
>
___
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] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread Rich Shupe

>> In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
>> 
>> They seem to be the same as MOUSE_OVER and MOUSE_OUT...
> 
> ROLL_OVER and ROLL_OUT = mouse button down
> 
> MOUSE_OVER and MOUSE_OUT = no mouse button down

I don't think this is true, but someone correct me if I'm wrong. I may not
understand. I can't tell if this means that no mouse down is fired with
MOUSE_OVER/_OUT or if a mouse down is fired automatically with
ROLL_OVER/_OUT, or something else.

What I guessed this means is that ROLL_OVER/_OUT occurs when the mouse is
down when the rollovers occur, and MOUSE_OVER/_OUT occurs when the mouse is
up when the rollovers occur.

In any case, I can't find an instance where mouse down has any impact.

The short story is, ROLL_OVER/_OUT was introduced to prevent out/over
sequences between touching/overlapping children of a display object
container. For example, if you created a menu by grouping three touching
buttons inside a display object container, and rolled into the first,
through the middle and out the last, you would get this with
ROLL_OVER/_OUT...

over
out

...but this with MOUSE_OVER/_OUT...

over
out
over
out
over
out

You can see this by setting up a file this way: button or clip 1, touching
button or clip 2, inside a parent clip in the main timeline, then make
another copy of the parent clip, instancing the first "doc1" and the second
"doc2", using this code:

doc1.addEventListener(MouseEvent.ROLL_OVER, report)
doc1.addEventListener(MouseEvent.ROLL_OUT, report)

doc2.addEventListener(MouseEvent.MOUSE_OVER, report)
doc2.addEventListener(MouseEvent.MOUSE_OUT, report)

function report(evt:MouseEvent):void {
trace(evt)
}

Rich

>From the documentation:
"The purpose of the rollOver event is to simplify the coding of rollout
behaviors for display object containers with children. When the mouse leaves
the area of a display object or the area of any of its children to go to an
object that is not one of its children, the display object dispatches the
rollOver event. This is different behavior than that of the mouseOver event,
which is dispatched each time the mouse enters the area of any child object
of the display object container, even if the mouse was already over another
child object of the display object container."


___
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] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread Paul Venton
>From the docs:

The purpose of the rollOver event is to simplify the coding of rollout 
behaviors for display object containers with children. When the mouse leaves 
the area of a display object or the area of any of its children to go to an 
object that is not one of its children, the display object dispatches the 
rollOver event. This is different behavior than that of the mouseOver event, 
which is dispatched each time the mouse enters the area of any child object of 
the display object container, even if the mouse was already over another child 
object of the display object container.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael Keesey
Sent: 08 September 2007 19:22
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

On 9/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
> >
> > They seem to be the same as MOUSE_OVER and MOUSE_OUT...
>
> ROLL_OVER and ROLL_OUT = mouse button down

Wouldn't that be DRAG_OVER and DRAG_OUT?

> MOUSE_OVER and MOUSE_OUT = no mouse button down

-- 
Mike Keesey
___
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] #SharedObject not so shared

2007-09-08 Thread R�kos Attila

Movies running in different sandboxes cannot access shared objects of
each other. The "/" passed to getLocal() do not mean the root of all
shared objects (#SharedObjects folder), but the root of the domain
where the running SWF is originated from (#SharedObjects\BFYLPV7P\localhost,
#SharedObjects\2S7GJDMQ\pandora.com, etc.)

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Troy Gardner <[EMAIL PROTECTED]>
To:  flashcoders@chattyfig.figleaf.com 
Date:Saturday, September 8, 2007, 12:19:06 AM
Subject: [Flashcoders] #SharedObject not so shared
--===--
We are running into a baffelling behavior using SharedObject. 

We have a a few Desktop Flash applications: One is a main application, the
other an update utility for the main app. They use a Flash Cookie to find each
other, as the main app could be installed anywhere (USB, C).   The apps are
based in Director using the Flash8 Xtra.

Say we start with a completely empty SharedObjects  folder

Running the main app sets a cookie into a folder like

Flash Player\#SharedObjects\BFYLPV7P\localhost\02000.sol

via a call like 

var so : SharedObject = SharedObject.getLocal ("02000", "/");

where "/" should see the root of the Flash Cookies.

then say Pandora (or any other flash based website using cookies) runs it
generates a new sandbox

Flash Player\#SharedObjects\2S7GJDMQ\pandora.com

and then all future read requests are against that new '2S7GJDMQ' folder
instead of the "BFYLPV7P" folder, and then neither the app or the updater, can
see the old shared local object folder anymore. Which in the case of it
containing lots of persistent configuration data, is the equivalent of clearing
the Browser cache and forgetting everything.

Trying to understand how it's created, I can delete the contents of the shared
Objects folder and then republish in the Flash IDE and get a new hash for the
folder every time so it seems to be either random or time based. It's not as
far as I can tell the behaviour documented, it's certainly not behaving as I
would expect. 

Anybody have any ideas?


___
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] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread R�kos Attila

Citation from the doc:

"The purpose of the rollOut event is to simplify the coding of
rollover behaviors for display object containers with children. When
the mouse leaves the area of a display object or the area of any of
its children to go to an object that is not one of its children, the
display object dispatches the rollOut event. This is different
behavior than that of the mouseOut event, which is dispatched each
time the mouse leaves the area of any child object of the display
object container, even if the mouse remains over another child object
of the display object container."

 Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Patrick Matte|BLITZ <[EMAIL PROTECTED]>
To:  flashcoders@chattyfig.figleaf.com 
Date:Saturday, September 8, 2007, 2:55:22 AM
Subject: [Flashcoders] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?
--===--
In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?

They seem to be the same as MOUSE_OVER and MOUSE_OUT...

___
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] RE: AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread Erica Norton
Hi Patrick,

MOUSE_OVER and MOUSE_OUT target the specific display objects that are
moused over and out.  The ROLL_OVER and ROLL_OUT target the display
objects parent display objects as well.

Given the following display object (a) with child (b) which has children
(c) and (d) and so forth:  

  a
   /  
  b 
   / \  
  c   d
   \   \  
e   f
   /  
  g

Say the mouse is currently over (g), but is moving onto (f) without
encountering any of the various parents. The following events will be
dispatched in the following order:

(g) mouseOut
(g) rollOut
(e) rollOut
(c) rollOut
(d) rollOver
(f) rollOver
(f) mouseOver


I hope that helps!
-Erica
AIR QE (formerly Flash Player QE)

> In the AS3 class MouseEvent, what is the use for ROLL_OVER 
> and ROLL_OUT?
> 
> They seem to be the same as MOUSE_OVER and MOUSE_OUT...
___
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] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread T. Michael Keesey
On 9/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
> >
> > They seem to be the same as MOUSE_OVER and MOUSE_OUT...
>
> ROLL_OVER and ROLL_OUT = mouse button down

Wouldn't that be DRAG_OVER and DRAG_OUT?

> MOUSE_OVER and MOUSE_OUT = no mouse button down

-- 
Mike Keesey
___
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] AIR & SWFLoader Question

2007-09-08 Thread Randy Troppmann
Hi Eric. Is your swf AS2 or AS3? I think you will need to add logic to
your swf so that Flex can capture the stage resize event and call the
resize method in the swf.

Randy


On 9/7/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
> I have a SWFLoader in Flex 3 that runs in a transparent application. I have
> the SWFLoader set to 100% height of the application window its in.
> I have a local SWF that I load in there, and I want it to resize the Flash
> to the height of the window. The SWF loads in fine, but the onResize() in
> the SWF isn't firing. How can I make sure that onResize actually happens? I
> have elements that lay themselves out based on that function in the SWF.
>
> - eric
> ___
> 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] Photoshop CS3 breaks Flash development workflow

2007-09-08 Thread Gilles Roquefeuil

Hi Francis,

i'm always looking for workflow time-saving techniques, and yours is  
really great

thanx a lot

Gilles

Le 8 sept. 07 à 17:22, Francis Turmel a écrit :


Hey Steven, you can always go another route to have the same result.
At the bottom of the History palette, there's a button called  
"Create new

document from current state".
You could use this and then flatten the image.

I'm not sure if you're using this action to export to PNG/JPG, but  
I've been

using an action to do this
that I'd like to share, it's been incredibly useful for me.
I've mapped it to F2, so I can just set the desired selection and  
hit the

shortcut.
1. Create new document from current state
2. Crop (it will remember the previous selection)
3. save (with prompt)
4. close (no save)

Try it out here: http://www.nectere.ca/ps_actions.zip

F3 is mapped to the same behavior, but it also expands the canvas  
with an

additional 2 pixels
transparent border ( oldschool bitmap shift fix ).





___
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] #SharedObject not so shared

2007-09-08 Thread EECOLOR
I remember asking the same question years ago. The answer was something like
this:

SharedObject.getRemote("my_so", "rtmp:/./..", "/");

I am not completely sure and do not have time to test it. As I forgot my
mailing list password I couldnt search the archives... And next to that, I'm
not sure if it still works in the current players.


Greetz Erik


On 9/8/07, Troy Gardner <[EMAIL PROTECTED]> wrote:
>
> We are running into a baffelling behavior using SharedObject.
>
> We have a a few Desktop Flash applications: One is a main application, the
> other an update utility for the main app. They use a Flash Cookie to find
> each
> other, as the main app could be installed anywhere (USB, C).   The apps
> are
> based in Director using the Flash8 Xtra.
>
> Say we start with a completely empty SharedObjects  folder
>
> Running the main app sets a cookie into a folder like
>
> Flash Player\#SharedObjects\BFYLPV7P\localhost\02000.sol
>
> via a call like
>
> var so : SharedObject = SharedObject.getLocal ("02000", "/");
>
> where "/" should see the root of the Flash Cookies.
>
> then say Pandora (or any other flash based website using cookies) runs it
> generates a new sandbox
>
> Flash Player\#SharedObjects\2S7GJDMQ\pandora.com
>
> and then all future read requests are against that new '2S7GJDMQ' folder
> instead of the "BFYLPV7P" folder, and then neither the app or the updater,
> can
> see the old shared local object folder anymore. Which in the case of it
> containing lots of persistent configuration data, is the equivalent of
> clearing
> the Browser cache and forgetting everything.
>
> Trying to understand how it's created, I can delete the contents of the
> shared
> Objects folder and then republish in the Flash IDE and get a new hash for
> the
> folder every time so it seems to be either random or time based. It's not
> as
> far as I can tell the behaviour documented, it's certainly not behaving as
> I
> would expect.
>
> Anybody have any ideas?
>
>
___
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] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?

2007-09-08 Thread hermit
> In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT?
>
> They seem to be the same as MOUSE_OVER and MOUSE_OUT...

ROLL_OVER and ROLL_OUT = mouse button down

MOUSE_OVER and MOUSE_OUT = no mouse button down

HTH
Hermit



___
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] Photoshop CS3 breaks Flash development workflow

2007-09-08 Thread Francis Turmel
Hey Steven, you can always go another route to have the same result.
At the bottom of the History palette, there's a button called "Create new
document from current state".
You could use this and then flatten the image.

I'm not sure if you're using this action to export to PNG/JPG, but I've been
using an action to do this
that I'd like to share, it's been incredibly useful for me.
I've mapped it to F2, so I can just set the desired selection and hit the
shortcut.
1. Create new document from current state
2. Crop (it will remember the previous selection)
3. save (with prompt)
4. close (no save)

Try it out here: http://www.nectere.ca/ps_actions.zip

F3 is mapped to the same behavior, but it also expands the canvas with an
additional 2 pixels
transparent border ( oldschool bitmap shift fix ).



On 9/5/07, Andreas Rønning <[EMAIL PROTECTED]> wrote:
>
> Specific to yours anyway.
>
> Regardless, i can definitely see the frustration.
> I'm more keen on Adobe fixing the ridiculous issues with the Flash CS3 UI
> though. The insane depth sorting of windows (i love it when my library tab
> comes out underneath the output window) and how CS3 basically crawls
> whenever i drag a window (nice fancy transparency effect there) really,
> really, really detract from the other benefits of upgrading. Thank god i
> only script in Flashdevelop.
>
> I'm surprised the new actions record clipboard dimensions for copy
> actions. That's pretty incredible.
>
> - Andreas R
>
> - Original Message -
> From: "Steven Sacks" <[EMAIL PROTECTED]>
> To: flashcoders@chattyfig.figleaf.com
> Sent: Thursday, September 6, 2007 1:16:31 AM (GMT+0100) Europe/Berlin
> Subject: Re: [Flashcoders] Photoshop CS3 breaks Flash development workflow
>
> It's not OT because it's specific to Flash development.
>
>
> Glen Pike wrote:
> > Someone broke mine by changing the "Back" and "Forward" functionality
> > in Thunderbird - now reading threaded mails from Flashcoders is a
> > nightmare - I have to close thje one I am reading and click on the
> > next one because the new "Previous" & "Next" buttons are broken.
> >
> > Coupled with OT messages, my RSI is starting to get really bad...  :)
> >
> > Steven Sacks wrote:
> >> And I'd like to also add that if you set the "Make" action (new
> >> document) to have a Modal dialog pop-up so you can set the dimensions
> >> manually during that step of the action, the option in the drop-down
> >> to choose "Clipboard" is disabled.  That's right, the default
> >> Photoshop behavior is disabled!  For no reason!  WTF???
> >>
> >>
> >>
> >> Steven Sacks wrote:
> >>> So I upgraded to CS3 and Flash development workflow is broken.
> >>>
> >>> Photoshop CS3 actions do not work like all previous versions of
> >>> Photoshop.
> >>>
> >>> I have an action I've used in Photoshop for YEARS which I call
> >>> "Breakup".  All this action does is
> >>>
> >>> 1. Copy Merged
> >>> 2. Create New Document
> >>> 3. Paste
> >>>
> >>> The default behavior in Photoshop when you copy and then create a
> >>> new document is to use the size of the clipboard to determine the
> >>> dimensions of the new file.
> >>>
> >>> In Photoshop CS2 and prior, if you record an action with these three
> >>> steps, it does not hard-code the dimensions of the new document and
> >>> instead INTELLIGENTLY defers to Photoshop's DEFAULT BEHAVIOR of
> >>> using the clipboard to determine dimensions.
> >>>
> >>> In Photoshop CS3, it records the specific dimensions of the
> >>> clipboard when you recorded the copy merged action and you cannot
> >>> alter this AT ALL!  As far as I'm concerned, this is BROKEN.  The
> >>> reason it is BROKEN is because ALL VERSIONS BEFORE CS3 did not
> >>> behave this way.  The reason it is BROKEN is because it stupidly
> >>> overrides Photoshop's INTELLIGENT DEFAULT BEHAVIOR for no reason.
> >>>
> >>> I am now forced to uninstall Photoshop CS3 and use CS2 until this is
> >>> fixed.  Who do I complain to?  This action is critical for me to do
> >>> breakup for Flash without wanting to quit and join a monestary.  The
> >>> Photoshop import in Flash CS3 is not good enough to make up for this
> >>> kind of broken behavior and now I can't use Photoshop CS3 which
> >>> means I wasted money on a product I can't use.
> >>>
> >>>
> >>>
> >>> ___
> >>> 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