Re: [flexcoders] Re: Creating JarJam button Effect.

2006-10-23 Thread Jeremy Rottman



I got one final question that really does not pertain to a problem of more then how to do something. I need to pass a filename through the function I'm running of createWindow(). When that function is run I need it to take that argument and do an addChild(filename) after the title window is created by actionscript. I have found a lot of examples of how to do this statically but none by an external source. Could someone point me in the right direction as far as a link or a simple sample script the help would be much appreciated. Once again the test app and source are at 
http://beta.homesmartagent.com/transitions/JamJarEffect.htmlOn 10/20/06, dougmccune
 <[EMAIL PROTECTED]> wrote:












  



I think this is what you want:
http://dougmccune.com/PanelTest/bin/JamJarEffect.html

View source to check it out. The key is a simple extension of
TitleWindow. It's called UndraggableTitleWindow and basically catches
the mouse down event on the titlebar and cancels it from propogating
so it never starts dragging.

You still have the problem that clicking on the button keeps making
new instances of the popup over and over, so that should probably be
fixed.

--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]>
wrote:
>
> Also just another quick note, using your code of event.currentTarget as
> DisplayObject rendered the error of "1067: Implicit coercion of a
value of
> type flash.display:DisplayObject to an unrelated type
> mx.core:IFlexDisplayObject."
> 
> On 10/20/06, mdoberenz <[EMAIL PROTECTED]> wrote:
> >
> >   You'll want to do this...
> >
> > public function removeMe(event:CloseEvent):void {
> > PopUpManager.removePopUp(event.currentTarget as
> > DisplayObject);
> > }
> >
> > Should work...
> >
> > By the way, I'd suggest not using a TitleWindow, but instead, use a
> > Panel. I noticed that I can move the TitleWindow around wherever I
> > want it to be. If that's a desired effect, then I'd remove the <
> > from the left-hand side b/c it's a bit confusing.
> >
> > However, if you do this, you probably won't use the PopUpManager to
> > create the TitleWindow. You'll need to position the panel and move
> > it wherever you'll need it using code.
> >
> > Just my take on it.
> >
> >
> > --- In flexcoders@yahoogroups.com ,

"Jeremy
> > Rottman" 
> > wrote:
> > >
> > > When I try this.
> > >
> > > public function removeMe(event:CloseEvent):void {
> > > PopUpManager.removePopUp(event.currentTarget);
> > > }
> > >
> > > I get this error.
> > > 1118: Implicit coercion of a value with static type Object to a
> > > possibly unrelated type mx.core:IFlexDisplayObject.
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com ,

> > "dougmccune"  wrote:
> > > >
> > > > How about:
> > > >
> > > > public function removeMe(event:CloseEvent){
> > > > PopUpManager.removePopUp(event.currentTarget);
> > > > }
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com ,

> > "Jeremy Rottman" 
> > > > wrote:
> > > > >
> > > > > I have tried using that, and it gives me a big goose egg.
> > > > >
> > > > > This is the updated code.
> > > > >
> > > > >
> > > > >
> > > > > public function createWindow(wTitle:String, wX:Number,
> > wY:Number,
> > > > > wWidth:Number, wHeight:Number):void {
> > > > > title = new TitleWindow();
> > > > > title.name = wTitle;
> > > > > title.id = wTitle;
> > > > > title.title = wTitle;
> > > > > title.x = wX;
> > > > > title.y = wY;
> > > > > title.visible = true;
> > > > > title.showCloseButton = true;
> > > > > title.addEventListener(CloseEvent.CLOSE, removeMe);
> > > > >
> > > > > windowArray.push(title);
> > > > > PopUpManager.addPopUp(title, mainCanvas);
> > > > > addStates(wX, wY, wWidth, wHeight);
> > > > > }
> > > > >
> > > > > public function removeMe(event:CloseEvent){
> > > > > PopUpManager.removePopUp(this)
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
,
> > "Dustin Mercer"
> > 
> > > > > wrote:
> > > > > >
> > > > > > Have you tried:
> > > > > >
> > > > > > title.addEventListener( CloseEvent.CLOSE, setState );
> > > > > >
> > > > > > instead of:
> > > > > >
> > > > > > title.addEventListener( MouseEvent.CLICK, setState );
> > > > > >
> > > > > >
> > > > > >
> > > > > > That should take care of it...
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> > > > > >
> > > > > > From: flexcoders@yahoogroups.com

> > [mailto:flexcoders@yahoogroups.com ]

> > > > > On
> > > > > > Behalf Of Jeremy Rottman
> > > > > > Sent: Thursday, October 19, 2006 1:55 PM
> > > > > > To: flexcoders@yahoogroups.com 

> > > > > > Subject: [flexcoders] Creating JarJam button Effect.
> > > > > >
> > > > > >
> > > > > >
> > > > > > I am taking an idea from the JarJam demo that adobe has
> > posted on
> > > > > adobe
> > > > > > labs and recreating it to suit our needs. I almost have it
> > complete
> > > > > and
> > > > > > working, b

[flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread dougmccune
I think this is what you want:
http://dougmccune.com/PanelTest/bin/JamJarEffect.html

View source to check it out. The key is a simple extension of
TitleWindow. It's called UndraggableTitleWindow and basically catches
the mouse down event on the titlebar and cancels it from propogating
so it never starts dragging.

You still have the problem that clicking on the button keeps making
new instances of the popup over and over, so that should probably be
fixed.



--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]>
wrote:
>
> Also just another quick note, using your code of event.currentTarget as
> DisplayObject rendered the error of "1067: Implicit coercion of a
value of
> type flash.display:DisplayObject to an unrelated type
> mx.core:IFlexDisplayObject."
> 
> On 10/20/06, mdoberenz <[EMAIL PROTECTED]> wrote:
> >
> >   You'll want to do this...
> >
> > public function removeMe(event:CloseEvent):void {
> > PopUpManager.removePopUp(event.currentTarget as
> > DisplayObject);
> > }
> >
> > Should work...
> >
> > By the way, I'd suggest not using a TitleWindow, but instead, use a
> > Panel. I noticed that I can move the TitleWindow around wherever I
> > want it to be. If that's a desired effect, then I'd remove the <
> > from the left-hand side b/c it's a bit confusing.
> >
> > However, if you do this, you probably won't use the PopUpManager to
> > create the TitleWindow. You'll need to position the panel and move
> > it wherever you'll need it using code.
> >
> > Just my take on it.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Jeremy
> > Rottman" 
> > wrote:
> > >
> > > When I try this.
> > >
> > > public function removeMe(event:CloseEvent):void {
> > > PopUpManager.removePopUp(event.currentTarget);
> > > }
> > >
> > > I get this error.
> > > 1118: Implicit coercion of a value with static type Object to a
> > > possibly unrelated type mx.core:IFlexDisplayObject.
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > "dougmccune"  wrote:
> > > >
> > > > How about:
> > > >
> > > > public function removeMe(event:CloseEvent){
> > > > PopUpManager.removePopUp(event.currentTarget);
> > > > }
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> > "Jeremy Rottman" 
> > > > wrote:
> > > > >
> > > > > I have tried using that, and it gives me a big goose egg.
> > > > >
> > > > > This is the updated code.
> > > > >
> > > > >
> > > > >
> > > > > public function createWindow(wTitle:String, wX:Number,
> > wY:Number,
> > > > > wWidth:Number, wHeight:Number):void {
> > > > > title = new TitleWindow();
> > > > > title.name = wTitle;
> > > > > title.id = wTitle;
> > > > > title.title = wTitle;
> > > > > title.x = wX;
> > > > > title.y = wY;
> > > > > title.visible = true;
> > > > > title.showCloseButton = true;
> > > > > title.addEventListener(CloseEvent.CLOSE, removeMe);
> > > > >
> > > > > windowArray.push(title);
> > > > > PopUpManager.addPopUp(title, mainCanvas);
> > > > > addStates(wX, wY, wWidth, wHeight);
> > > > > }
> > > > >
> > > > > public function removeMe(event:CloseEvent){
> > > > > PopUpManager.removePopUp(this)
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
,
> > "Dustin Mercer"
> > 
> > > > > wrote:
> > > > > >
> > > > > > Have you tried:
> > > > > >
> > > > > > title.addEventListener( CloseEvent.CLOSE, setState );
> > > > > >
> > > > > > instead of:
> > > > > >
> > > > > > title.addEventListener( MouseEvent.CLICK, setState );
> > > > > >
> > > > > >
> > > > > >
> > > > > > That should take care of it...
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 
> > > > > >
> > > > > > From: flexcoders@yahoogroups.com

> > [mailto:flexcoders@yahoogroups.com ]
> > > > > On
> > > > > > Behalf Of Jeremy Rottman
> > > > > > Sent: Thursday, October 19, 2006 1:55 PM
> > > > > > To: flexcoders@yahoogroups.com 
> > > > > > Subject: [flexcoders] Creating JarJam button Effect.
> > > > > >
> > > > > >
> > > > > >
> > > > > > I am taking an idea from the JarJam demo that adobe has
> > posted on
> > > > > adobe
> > > > > > labs and recreating it to suit our needs. I almost have it
> > complete
> > > > > and
> > > > > > working, but I have run into two little snags.
> > > > > >
> > > > > > When I create the titlewindow with actionscript, I am unable
> > to get
> > > > > the
> > > > > > close button at the top of the titlewindow to work. I have
> > looked at
> > > > > > every example I could find and not a single one works. With
> > the
> > > code I
> > > > > > have provided does anyone see why this wont work?
> > > > > >
> > > > > > Any help with this is greatly appreciated.
> > > > > >
> > > > > > Here is a link to my test application, and source.
> > > > > > http://beta.homesmartagent.com/transitions/JamJarEffect.html
> > > > > > 
> > > > > > http://beta.homesmartagent.com/transitio

Re: [flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread Jeremy Rottman



Also just another quick note, using your code of event.currentTarget as DisplayObject rendered the error of "1067: Implicit coercion of a value of type flash.display:DisplayObject to an unrelated type mx.core:IFlexDisplayObject
."On 10/20/06, mdoberenz <[EMAIL PROTECTED]> wrote:













  



You'll want to do this...

public function removeMe(event:CloseEvent):void {
	PopUpManager.removePopUp(event.currentTarget as 
DisplayObject);
}

Should work...

By the way, I'd suggest not using a TitleWindow, but instead, use a 
Panel.  I noticed that I can move the TitleWindow around wherever I 
want it to be.  If that's a desired effect, then I'd remove the < 
from the left-hand side b/c it's a bit confusing.

However, if you do this, you probably won't use the PopUpManager to 
create the TitleWindow.  You'll need to position the panel and move 
it wherever you'll need it using code.

Just my take on it.

--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> 
wrote:
>
> When I try this.
> 
> public function removeMe(event:CloseEvent):void {
> 	PopUpManager.removePopUp(event.currentTarget);
> }
> 
> I get this error. 
> 1118: Implicit coercion of a value with static type Object to a
> possibly unrelated type mx.core:IFlexDisplayObject.	
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "dougmccune"  wrote:
> >
> > How about:
> > 
> > public function removeMe(event:CloseEvent){
> >   PopUpManager.removePopUp(event.currentTarget);
> > }
> >  
> > 
> > --- In flexcoders@yahoogroups.com, "Jeremy Rottman" 
> > wrote:
> > >
> > > I have tried using that, and it gives me a big goose egg.
> > > 
> > > This is the updated code.
> > > 
> > > 
> > > 
> > > public function createWindow(wTitle:String, wX:Number, 
wY:Number,
> > > wWidth:Number, wHeight:Number):void {
> > >  title = new TitleWindow();
> > >  title.name = wTitle;
> > >  title.id = wTitle;
> > >  title.title = wTitle;
> > >  title.x = wX;
> > >  title.y = wY;
> > >  title.visible = true;
> > >  title.showCloseButton = true;
> > >  title.addEventListener(CloseEvent.CLOSE, removeMe);
> > > 
> > >  windowArray.push(title);
> > >  PopUpManager.addPopUp(title, mainCanvas);
> > >  addStates(wX, wY, wWidth, wHeight);
> > > }
> > > 
> > > public function removeMe(event:CloseEvent){
> > >  PopUpManager.removePopUp(this)
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Dustin Mercer" 

> > > wrote:
> > > >
> > > > Have you tried:
> > > >
> > > > title.addEventListener(  CloseEvent.CLOSE, setState );
> > > >
> > > > instead of:
> > > >
> > > > title.addEventListener(  MouseEvent.CLICK, setState );
> > > >
> > > >
> > > >
> > > > That should take care of it...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com]
> > > On
> > > > Behalf Of Jeremy Rottman
> > > > Sent: Thursday, October 19, 2006 1:55 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Creating JarJam button Effect.
> > > >
> > > >
> > > >
> > > > I am taking an idea from the JarJam demo that adobe has 
posted on
> > > adobe
> > > > labs and recreating it to suit our needs. I almost have it 
complete
> > > and
> > > > working, but I have run into two little snags.
> > > >
> > > > When I create the titlewindow with actionscript, I am unable 
to get
> > > the
> > > > close button at the top of the titlewindow to work. I have 
looked at
> > > > every example I could find and not a single one works. With 
the
> code I
> > > > have provided does anyone see why this wont work?
> > > >
> > > > Any help with this is greatly appreciated.
> > > >
> > > > Here is a link to my test application, and source.
> > > > http://beta.homesmartagent.com/transitions/JamJarEffect.html

> > > > 
> > > > http://beta.homesmartagent.com/transitions/srcview/
> > > > 

> > > >
> > >
> >
>


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Sw

Re: [flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread Jeremy Rottman



You are correct on not wanting to make the TitleWindow to be able to be dragged however I have yet to figure out how to disable the dragging on the TitleWindow. Our original idea was to use a panel however we would like it to be able to have the ability of a close button on the top right to imitate the jar jam, sadly though the panel does not come with this ability easily and the only custom panel component I have found works for 
1.5, if you have a solution to this with using a panel I would greatly appreciate your input.On 10/20/06, mdoberenz <
[EMAIL PROTECTED]> wrote:












  



You'll want to do this...

public function removeMe(event:CloseEvent):void {
	PopUpManager.removePopUp(event.currentTarget as 
DisplayObject);
}

Should work...

By the way, I'd suggest not using a TitleWindow, but instead, use a 
Panel.  I noticed that I can move the TitleWindow around wherever I 
want it to be.  If that's a desired effect, then I'd remove the < 
from the left-hand side b/c it's a bit confusing.

However, if you do this, you probably won't use the PopUpManager to 
create the TitleWindow.  You'll need to position the panel and move 
it wherever you'll need it using code.

Just my take on it.

--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> 
wrote:
>
> When I try this.
> 
> public function removeMe(event:CloseEvent):void {
> 	PopUpManager.removePopUp(event.currentTarget);
> }
> 
> I get this error. 
> 1118: Implicit coercion of a value with static type Object to a
> possibly unrelated type mx.core:IFlexDisplayObject.	
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "dougmccune"  wrote:
> >
> > How about:
> > 
> > public function removeMe(event:CloseEvent){
> >   PopUpManager.removePopUp(event.currentTarget);
> > }
> >  
> > 
> > --- In flexcoders@yahoogroups.com, "Jeremy Rottman" 
> > wrote:
> > >
> > > I have tried using that, and it gives me a big goose egg.
> > > 
> > > This is the updated code.
> > > 
> > > 
> > > 
> > > public function createWindow(wTitle:String, wX:Number, 
wY:Number,
> > > wWidth:Number, wHeight:Number):void {
> > >  title = new TitleWindow();
> > >  title.name = wTitle;
> > >  title.id = wTitle;
> > >  title.title = wTitle;
> > >  title.x = wX;
> > >  title.y = wY;
> > >  title.visible = true;
> > >  title.showCloseButton = true;
> > >  title.addEventListener(CloseEvent.CLOSE, removeMe);
> > > 
> > >  windowArray.push(title);
> > >  PopUpManager.addPopUp(title, mainCanvas);
> > >  addStates(wX, wY, wWidth, wHeight);
> > > }
> > > 
> > > public function removeMe(event:CloseEvent){
> > >  PopUpManager.removePopUp(this)
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Dustin Mercer" 

> > > wrote:
> > > >
> > > > Have you tried:
> > > >
> > > > title.addEventListener(  CloseEvent.CLOSE, setState );
> > > >
> > > > instead of:
> > > >
> > > > title.addEventListener(  MouseEvent.CLICK, setState );
> > > >
> > > >
> > > >
> > > > That should take care of it...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com]
> > > On
> > > > Behalf Of Jeremy Rottman
> > > > Sent: Thursday, October 19, 2006 1:55 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Creating JarJam button Effect.
> > > >
> > > >
> > > >
> > > > I am taking an idea from the JarJam demo that adobe has 
posted on
> > > adobe
> > > > labs and recreating it to suit our needs. I almost have it 
complete
> > > and
> > > > working, but I have run into two little snags.
> > > >
> > > > When I create the titlewindow with actionscript, I am unable 
to get
> > > the
> > > > close button at the top of the titlewindow to work. I have 
looked at
> > > > every example I could find and not a single one works. With 
the
> code I
> > > > have provided does anyone see why this wont work?
> > > >
> > > > Any help with this is greatly appreciated.
> > > >
> > > > Here is a link to my test application, and source.
> > > > http://beta.homesmartagent.com/transitions/JamJarEffect.html

> > > > 
> > > > http://beta.homesmartagent.com/transitions/srcview/
> > > > 

> > > >
> > >
> >
>


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  

[flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread mdoberenz
You'll want to do this...

public function removeMe(event:CloseEvent):void {
PopUpManager.removePopUp(event.currentTarget as 
DisplayObject);
}

Should work...

By the way, I'd suggest not using a TitleWindow, but instead, use a 
Panel.  I noticed that I can move the TitleWindow around wherever I 
want it to be.  If that's a desired effect, then I'd remove the < 
from the left-hand side b/c it's a bit confusing.

However, if you do this, you probably won't use the PopUpManager to 
create the TitleWindow.  You'll need to position the panel and move 
it wherever you'll need it using code.

Just my take on it.


--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]> 
wrote:
>
> When I try this.
> 
> public function removeMe(event:CloseEvent):void {
>   PopUpManager.removePopUp(event.currentTarget);
> }
> 
> I get this error. 
> 1118: Implicit coercion of a value with static type Object to a
> possibly unrelated type mx.core:IFlexDisplayObject.   
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "dougmccune"  wrote:
> >
> > How about:
> > 
> > public function removeMe(event:CloseEvent){
> >   PopUpManager.removePopUp(event.currentTarget);
> > }
> >  
> > 
> > --- In flexcoders@yahoogroups.com, "Jeremy Rottman" 
> > wrote:
> > >
> > > I have tried using that, and it gives me a big goose egg.
> > > 
> > > This is the updated code.
> > > 
> > > 
> > > 
> > > public function createWindow(wTitle:String, wX:Number, 
wY:Number,
> > > wWidth:Number, wHeight:Number):void {
> > >  title = new TitleWindow();
> > >  title.name = wTitle;
> > >  title.id = wTitle;
> > >  title.title = wTitle;
> > >  title.x = wX;
> > >  title.y = wY;
> > >  title.visible = true;
> > >  title.showCloseButton = true;
> > >  title.addEventListener(CloseEvent.CLOSE, removeMe);
> > > 
> > >  windowArray.push(title);
> > >  PopUpManager.addPopUp(title, mainCanvas);
> > >  addStates(wX, wY, wWidth, wHeight);
> > > }
> > > 
> > > public function removeMe(event:CloseEvent){
> > >  PopUpManager.removePopUp(this)
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Dustin Mercer" 

> > > wrote:
> > > >
> > > > Have you tried:
> > > >
> > > > title.addEventListener(  CloseEvent.CLOSE, setState );
> > > >
> > > > instead of:
> > > >
> > > > title.addEventListener(  MouseEvent.CLICK, setState );
> > > >
> > > >
> > > >
> > > > That should take care of it...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
> > > On
> > > > Behalf Of Jeremy Rottman
> > > > Sent: Thursday, October 19, 2006 1:55 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Creating JarJam button Effect.
> > > >
> > > >
> > > >
> > > > I am taking an idea from the JarJam demo that adobe has 
posted on
> > > adobe
> > > > labs and recreating it to suit our needs. I almost have it 
complete
> > > and
> > > > working, but I have run into two little snags.
> > > >
> > > > When I create the titlewindow with actionscript, I am unable 
to get
> > > the
> > > > close button at the top of the titlewindow to work. I have 
looked at
> > > > every example I could find and not a single one works. With 
the
> code I
> > > > have provided does anyone see why this wont work?
> > > >
> > > > Any help with this is greatly appreciated.
> > > >
> > > > Here is a link to my test application, and source.
> > > > http://beta.homesmartagent.com/transitions/JamJarEffect.html
> > > > 
> > > > http://beta.homesmartagent.com/transitions/srcview/
> > > > 
> > > >
> > >
> >
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread Jeremy Rottman



Sorry for the delay, that code ended up working. I now have a few more issues to deal with but this is a good start at least it's one less issue I have to deal with. Thanks for the post.
On 10/20/06, dougmccune <[EMAIL PROTECTED]> wrote:













  



try:

public function removeMe(event:CloseEvent):void {
   var window:TitleWindow = TitleWindow(event.currentTarget);
   PopUpManager.removePopUp(window);
}

--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]>
wrote:
>
> When I try this.
> 
> public function removeMe(event:CloseEvent):void {
> 	PopUpManager.removePopUp(event.currentTarget);
> }
> 
> I get this error. 
> 1118: Implicit coercion of a value with static type Object to a
> possibly unrelated type mx.core:IFlexDisplayObject.	
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "dougmccune"  wrote:
> >
> > How about:
> > 
> > public function removeMe(event:CloseEvent){
> >   PopUpManager.removePopUp(event.currentTarget);
> > }
> >  
> > 
> > --- In flexcoders@yahoogroups.com, "Jeremy Rottman" 
> > wrote:
> > >
> > > I have tried using that, and it gives me a big goose egg.
> > > 
> > > This is the updated code.
> > > 
> > > 
> > > 
> > > public function createWindow(wTitle:String, wX:Number, wY:Number,
> > > wWidth:Number, wHeight:Number):void {
> > >  title = new TitleWindow();
> > >  title.name = wTitle;
> > >  title.id = wTitle;
> > >  title.title = wTitle;
> > >  title.x = wX;
> > >  title.y = wY;
> > >  title.visible = true;
> > >  title.showCloseButton = true;
> > >  title.addEventListener(CloseEvent.CLOSE, removeMe);
> > > 
> > >  windowArray.push(title);
> > >  PopUpManager.addPopUp(title, mainCanvas);
> > >  addStates(wX, wY, wWidth, wHeight);
> > > }
> > > 
> > > public function removeMe(event:CloseEvent){
> > >  PopUpManager.removePopUp(this)
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Dustin Mercer" 

> > > wrote:
> > > >
> > > > Have you tried:
> > > >
> > > > title.addEventListener(  CloseEvent.CLOSE, setState );
> > > >
> > > > instead of:
> > > >
> > > > title.addEventListener(  MouseEvent.CLICK, setState );
> > > >
> > > >
> > > >
> > > > That should take care of it...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
> > > On
> > > > Behalf Of Jeremy Rottman
> > > > Sent: Thursday, October 19, 2006 1:55 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Creating JarJam button Effect.
> > > >
> > > >
> > > >
> > > > I am taking an idea from the JarJam demo that adobe has posted on
> > > adobe
> > > > labs and recreating it to suit our needs. I almost have it
complete
> > > and
> > > > working, but I have run into two little snags.
> > > >
> > > > When I create the titlewindow with actionscript, I am unable
to get
> > > the
> > > > close button at the top of the titlewindow to work. I have
looked at
> > > > every example I could find and not a single one works. With the
> code I
> > > > have provided does anyone see why this wont work?
> > > >
> > > > Any help with this is greatly appreciated.
> > > >
> > > > Here is a link to my test application, and source.
> > > > http://beta.homesmartagent.com/transitions/JamJarEffect.html

> > > > 
> > > > http://beta.homesmartagent.com/transitions/srcview/
> > > > 

> > > >
> > >
> >
>


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



[flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread dougmccune
try:

public function removeMe(event:CloseEvent):void {
   var window:TitleWindow = TitleWindow(event.currentTarget);
   PopUpManager.removePopUp(window);
}

--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]>
wrote:
>
> When I try this.
> 
> public function removeMe(event:CloseEvent):void {
>   PopUpManager.removePopUp(event.currentTarget);
> }
> 
> I get this error. 
> 1118: Implicit coercion of a value with static type Object to a
> possibly unrelated type mx.core:IFlexDisplayObject.   
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "dougmccune"  wrote:
> >
> > How about:
> > 
> > public function removeMe(event:CloseEvent){
> >   PopUpManager.removePopUp(event.currentTarget);
> > }
> >  
> > 
> > --- In flexcoders@yahoogroups.com, "Jeremy Rottman" 
> > wrote:
> > >
> > > I have tried using that, and it gives me a big goose egg.
> > > 
> > > This is the updated code.
> > > 
> > > 
> > > 
> > > public function createWindow(wTitle:String, wX:Number, wY:Number,
> > > wWidth:Number, wHeight:Number):void {
> > >  title = new TitleWindow();
> > >  title.name = wTitle;
> > >  title.id = wTitle;
> > >  title.title = wTitle;
> > >  title.x = wX;
> > >  title.y = wY;
> > >  title.visible = true;
> > >  title.showCloseButton = true;
> > >  title.addEventListener(CloseEvent.CLOSE, removeMe);
> > > 
> > >  windowArray.push(title);
> > >  PopUpManager.addPopUp(title, mainCanvas);
> > >  addStates(wX, wY, wWidth, wHeight);
> > > }
> > > 
> > > public function removeMe(event:CloseEvent){
> > >  PopUpManager.removePopUp(this)
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Dustin Mercer" 
> > > wrote:
> > > >
> > > > Have you tried:
> > > >
> > > > title.addEventListener(  CloseEvent.CLOSE, setState );
> > > >
> > > > instead of:
> > > >
> > > > title.addEventListener(  MouseEvent.CLICK, setState );
> > > >
> > > >
> > > >
> > > > That should take care of it...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
> > > On
> > > > Behalf Of Jeremy Rottman
> > > > Sent: Thursday, October 19, 2006 1:55 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Creating JarJam button Effect.
> > > >
> > > >
> > > >
> > > > I am taking an idea from the JarJam demo that adobe has posted on
> > > adobe
> > > > labs and recreating it to suit our needs. I almost have it
complete
> > > and
> > > > working, but I have run into two little snags.
> > > >
> > > > When I create the titlewindow with actionscript, I am unable
to get
> > > the
> > > > close button at the top of the titlewindow to work. I have
looked at
> > > > every example I could find and not a single one works. With the
> code I
> > > > have provided does anyone see why this wont work?
> > > >
> > > > Any help with this is greatly appreciated.
> > > >
> > > > Here is a link to my test application, and source.
> > > > http://beta.homesmartagent.com/transitions/JamJarEffect.html
> > > > 
> > > > http://beta.homesmartagent.com/transitions/srcview/
> > > > 
> > > >
> > >
> >
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: Creating JarJam button Effect.

2006-10-20 Thread Jeremy Rottman
When I try this.

public function removeMe(event:CloseEvent):void {
PopUpManager.removePopUp(event.currentTarget);
}

I get this error. 
1118: Implicit coercion of a value with static type Object to a
possibly unrelated type mx.core:IFlexDisplayObject. 



--- In flexcoders@yahoogroups.com, "dougmccune" <[EMAIL PROTECTED]> wrote:
>
> How about:
> 
> public function removeMe(event:CloseEvent){
>   PopUpManager.removePopUp(event.currentTarget);
> }
>  
> 
> --- In flexcoders@yahoogroups.com, "Jeremy Rottman" 
> wrote:
> >
> > I have tried using that, and it gives me a big goose egg.
> > 
> > This is the updated code.
> > 
> > 
> > 
> > public function createWindow(wTitle:String, wX:Number, wY:Number,
> > wWidth:Number, wHeight:Number):void {
> >  title = new TitleWindow();
> >  title.name = wTitle;
> >  title.id = wTitle;
> >  title.title = wTitle;
> >  title.x = wX;
> >  title.y = wY;
> >  title.visible = true;
> >  title.showCloseButton = true;
> >  title.addEventListener(CloseEvent.CLOSE, removeMe);
> > 
> >  windowArray.push(title);
> >  PopUpManager.addPopUp(title, mainCanvas);
> >  addStates(wX, wY, wWidth, wHeight);
> > }
> > 
> > public function removeMe(event:CloseEvent){
> >  PopUpManager.removePopUp(this)
> > }
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Dustin Mercer" 
> > wrote:
> > >
> > > Have you tried:
> > >
> > > title.addEventListener(  CloseEvent.CLOSE, setState );
> > >
> > > instead of:
> > >
> > > title.addEventListener(  MouseEvent.CLICK, setState );
> > >
> > >
> > >
> > > That should take care of it...
> > >
> > >
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> > On
> > > Behalf Of Jeremy Rottman
> > > Sent: Thursday, October 19, 2006 1:55 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Creating JarJam button Effect.
> > >
> > >
> > >
> > > I am taking an idea from the JarJam demo that adobe has posted on
> > adobe
> > > labs and recreating it to suit our needs. I almost have it complete
> > and
> > > working, but I have run into two little snags.
> > >
> > > When I create the titlewindow with actionscript, I am unable to get
> > the
> > > close button at the top of the titlewindow to work. I have looked at
> > > every example I could find and not a single one works. With the
code I
> > > have provided does anyone see why this wont work?
> > >
> > > Any help with this is greatly appreciated.
> > >
> > > Here is a link to my test application, and source.
> > > http://beta.homesmartagent.com/transitions/JamJarEffect.html
> > > 
> > > http://beta.homesmartagent.com/transitions/srcview/
> > > 
> > >
> >
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: Creating JarJam button Effect.

2006-10-19 Thread dougmccune
How about:

public function removeMe(event:CloseEvent){
  PopUpManager.removePopUp(event.currentTarget);
}
 

--- In flexcoders@yahoogroups.com, "Jeremy Rottman" <[EMAIL PROTECTED]>
wrote:
>
> I have tried using that, and it gives me a big goose egg.
> 
> This is the updated code.
> 
> 
> 
> public function createWindow(wTitle:String, wX:Number, wY:Number,
> wWidth:Number, wHeight:Number):void {
>  title = new TitleWindow();
>  title.name = wTitle;
>  title.id = wTitle;
>  title.title = wTitle;
>  title.x = wX;
>  title.y = wY;
>  title.visible = true;
>  title.showCloseButton = true;
>  title.addEventListener(CloseEvent.CLOSE, removeMe);
> 
>  windowArray.push(title);
>  PopUpManager.addPopUp(title, mainCanvas);
>  addStates(wX, wY, wWidth, wHeight);
> }
> 
> public function removeMe(event:CloseEvent){
>  PopUpManager.removePopUp(this)
> }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Dustin Mercer" 
> wrote:
> >
> > Have you tried:
> >
> > title.addEventListener(  CloseEvent.CLOSE, setState );
> >
> > instead of:
> >
> > title.addEventListener(  MouseEvent.CLICK, setState );
> >
> >
> >
> > That should take care of it...
> >
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Jeremy Rottman
> > Sent: Thursday, October 19, 2006 1:55 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Creating JarJam button Effect.
> >
> >
> >
> > I am taking an idea from the JarJam demo that adobe has posted on
> adobe
> > labs and recreating it to suit our needs. I almost have it complete
> and
> > working, but I have run into two little snags.
> >
> > When I create the titlewindow with actionscript, I am unable to get
> the
> > close button at the top of the titlewindow to work. I have looked at
> > every example I could find and not a single one works. With the code I
> > have provided does anyone see why this wont work?
> >
> > Any help with this is greatly appreciated.
> >
> > Here is a link to my test application, and source.
> > http://beta.homesmartagent.com/transitions/JamJarEffect.html
> > 
> > http://beta.homesmartagent.com/transitions/srcview/
> > 
> >
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



RE: [flexcoders] Re: Creating JarJam button Effect.

2006-10-19 Thread Dustin Mercer












In your removePopup statement you are
passing this, which is actually the application… try event.currentTarget
instead.

 

public function removeMe(event:CloseEvent){
PopUpManager.removePopUp(event.currentTarget)
}



 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Rottman
Sent: Thursday, October 19, 2006
2:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Creating
JarJam button Effect.



 







I have tried using that, and it gives me a big goose
egg.

This is the updated code.

public function createWindow(wTitle:String, wX:Number, wY:Number,
wWidth:Number, wHeight:Number):void {
title = new TitleWindow();
title.name = wTitle;
title.id = wTitle;
title.title = wTitle;
title.x = wX;
title.y = wY;
title.visible = true;
title.showCloseButton = true;
title.addEventListener(CloseEvent.CLOSE, removeMe);

windowArray.push(title);
PopUpManager.addPopUp(title, mainCanvas);
addStates(wX, wY, wWidth, wHeight);
}

public function removeMe(event:CloseEvent){
PopUpManager.removePopUp(this)
}

--- In [EMAIL PROTECTED]ups.com,
"Dustin Mercer" ...>
wrote:
>
> Have you tried:
>
> title.addEventListener( CloseEvent.CLOSE, setState );
>
> instead of:
>
> title.addEventListener( MouseEvent.CLICK, setState );
>
>
>
> That should take care of it...
>
>
>
>
>
> 
>
> From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of Jeremy Rottman
> Sent: Thursday, October 19, 2006 1:55 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] Creating JarJam button Effect.
>
>
>
> I am taking an idea from the JarJam demo that adobe has posted on
adobe
> labs and recreating it to suit our needs. I almost have it complete
and
> working, but I have run into two little snags.
>
> When I create the titlewindow with actionscript, I am unable to get
the
> close button at the top of the titlewindow to work. I have looked at
> every example I could find and not a single one works. With the code I
> have provided does anyone see why this wont work?
>
> Any help with this is greatly appreciated.
>
> Here is a link to my test application, and source.
> http://beta.homesmartagent.com/transitions/JamJarEffect.html
> <http://beta.homesmartagent.com/transitions/JamJarEffect.html>
> http://beta.homesmartagent.com/transitions/srcview/
> <http://beta.homesmartagent.com/transitions/srcview/>
>






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






[flexcoders] Re: Creating JarJam button Effect.

2006-10-19 Thread Jeremy Rottman
I have tried using that, and it gives me a big goose egg.

This is the updated code.



public function createWindow(wTitle:String, wX:Number, wY:Number,
wWidth:Number, wHeight:Number):void {
 title = new TitleWindow();
 title.name = wTitle;
 title.id = wTitle;
 title.title = wTitle;
 title.x = wX;
 title.y = wY;
 title.visible = true;
 title.showCloseButton = true;
 title.addEventListener(CloseEvent.CLOSE, removeMe);

 windowArray.push(title);
 PopUpManager.addPopUp(title, mainCanvas);
 addStates(wX, wY, wWidth, wHeight);
}

public function removeMe(event:CloseEvent){
 PopUpManager.removePopUp(this)
}









--- In flexcoders@yahoogroups.com, "Dustin Mercer" <[EMAIL PROTECTED]>
wrote:
>
> Have you tried:
>
> title.addEventListener(  CloseEvent.CLOSE, setState );
>
> instead of:
>
> title.addEventListener(  MouseEvent.CLICK, setState );
>
>
>
> That should take care of it...
>
>
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Jeremy Rottman
> Sent: Thursday, October 19, 2006 1:55 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Creating JarJam button Effect.
>
>
>
> I am taking an idea from the JarJam demo that adobe has posted on
adobe
> labs and recreating it to suit our needs. I almost have it complete
and
> working, but I have run into two little snags.
>
> When I create the titlewindow with actionscript, I am unable to get
the
> close button at the top of the titlewindow to work. I have looked at
> every example I could find and not a single one works. With the code I
> have provided does anyone see why this wont work?
>
> Any help with this is greatly appreciated.
>
> Here is a link to my test application, and source.
> http://beta.homesmartagent.com/transitions/JamJarEffect.html
> 
> http://beta.homesmartagent.com/transitions/srcview/
> 
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/