RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2010-01-07 Thread dennis
Hey. what are you doing here. you cheat! J

I know how to make Constraints / Anchors with onResize Event; I just
wondering if there is a chance to work with the already implemented (by
Adobe) Constraints mechanisms. But probably there is no something like this.
at least on the level we are talking (UIComponent and so on).

 

Ok, I got it, I will implemented my own Constraints / Anchors mechanisms. 

Thank you for your time Tracy.

 

In computers, it is not enough to know what you can do, more precious is to
know what you cannot do.

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Friday, January 01, 2010 8:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Below is my test code.  Oddly, the second panel is disabled and I do  not
know why, but it does reposition correctly:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 

layout=absolute

creationComplete=initApp() 

resize=onResize(event)

mx:Script![CDATA[

 import mx.managers.PopUpManager;

 import mx.containers.Panel;

 

  private var _popup:Panel;

 

  /** Runs on creationComplete */

  private function initApp():void

 {

_popup = Panel(PopUpManager.createPopUp(this, 

  Panel, 

  true));  //instantiate and show the popup

_popup.width = 350;//set some
properties

_popup.height = 80;

_popup.title = Resize App to test(uses onResize an manual position);

_popup.x = this.width - 360;

  

var pnl:Panel = new Panel();

pnl.width = 350;//set some
properties

pnl.height = 80;

pnl.title = Resize App to test(uses constraints);

pnl.setStyle(bottom, 10);

pnl.setStyle(right, 10);

this.addChild(pnl);

   



 }//initApp

 

 /** Runs on application resize event */

 private function onResize(oEvent:Event):void

 {

   if (_popup) {//test for existence
of popup

 _popup.x =  this.width - 360;  //re-position the
popup

   }

 }//onResize

]]/mx:Script 

 

/mx:Application

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Tuesday, December 29, 2009 9:00 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Hi again. 

 

I wrote the follow (as you did the same).

  var aPanel:Panel = new Panel();

  aPanel.width=100;aPanel.height=50;

  aPanel.setStyle(bottom,30);

  aPanel.setStyle(right,30);

  addChild(aPanel);

but the panel is not anchored.

What it is wrong here? Please send me your code where the constraints are
working.

 

Also I found that current stage doesn't know the event RESIZE or it doesn't
resized J, I don't know this detail.

With other words, the follow Listener's registration is not triggered.

addEventListener(flash.events.Event.RESIZE,listenerCurrentStageOnResize);

 

On the other hand. the Application is Resized and the follow Listener's
registration has effect.

Application(Application.application).addEventListener(flash.events.Event.RES
IZE,ListenerAppOnResize);

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Monday, December 28, 2009 3:12 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  

I just added a panel component to that example (via AS) and constrained it
with a bottom and right styles, and it positions correctly.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Sunday, December 27, 2009 7:44 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Constraints should work in a application parent container. Are you certain
that the application is resizing correctly?  Set up a onResize listener for
debugging purposes and make sure it is getting fired on browser resize.

 

If it is, and constraints are still not woking, then you can use that
listener to reposition you component.

 

Here is an example that positions a popup component on application resize,
it should help if you need to go the manual route.

 

Tracy Spratt,

Lariat Services, development services

RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-29 Thread dennis
Hi again. 

 

I wrote the follow (as you did the same).

  var aPanel:Panel = new Panel();

  aPanel.width=100;aPanel.height=50;

  aPanel.setStyle(bottom,30);

  aPanel.setStyle(right,30);

  addChild(aPanel);

but the panel is not anchored.

What it is wrong here? Please send me your code where the constraints are
working.

 

Also I found that current stage doesn't know the event RESIZE or it doesn't
resized J, I don't know this detail.

With other words, the follow Listener's registration is not triggered.

addEventListener(flash.events.Event.RESIZE,listenerCurrentStageOnResize);

 

On the other hand. the Application is Resized and the follow Listener's
registration has effect.

Application(Application.application).addEventListener(flash.events.Event.RES
IZE,ListenerAppOnResize);

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Monday, December 28, 2009 3:12 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  

I just added a panel component to that example (via AS) and constrained it
with a bottom and right styles, and it positions correctly.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Sunday, December 27, 2009 7:44 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Constraints should work in a application parent container. Are you certain
that the application is resizing correctly?  Set up a onResize listener for
debugging purposes and make sure it is getting fired on browser resize.

 

If it is, and constraints are still not woking, then you can use that
listener to reposition you component.

 

Here is an example that positions a popup component on application resize,
it should help if you need to go the manual route.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Sunday, December 27, 2009 2:57 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hi

 

The layout it is absolute. the
Application(Application.application).layout.toString() returns absolute.

I think the better way is to anchor my component manually L

Share your thoughts.

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Wednesday, December 23, 2009 5:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

You are clear that constraint based layout requires a Canvas or application
or panel with absolute layout?

 

Either extend one of those for your component, or size and position your
child component manually.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Monday, December 21, 2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hello to all

Can anybody else help on this topic???

Any other suggestion how to anchor an UIComponent object?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Saturday, December 19, 2009 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints

RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-27 Thread dennis
Hi

 

The layout it is absolute. the
Application(Application.application).layout.toString() returns absolute.

I think the better way is to anchor my component manually L

Share your thoughts.

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Wednesday, December 23, 2009 5:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

You are clear that constraint based layout requires a Canvas or application
or panel with absolute layout?

 

Either extend one of those for your component, or size and position your
child component manually.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Monday, December 21, 2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hello to all

Can anybody else help on this topic???

Any other suggestion how to anchor an UIComponent object?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Saturday, December 19, 2009 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationComplete=init()


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended Sprite object and I put in on the Stage (via addChild).
 
 How may I anchor it on runtime on the Stage? 
 
 How may I constraint it in Columns and Rows?
 
 
 
 Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
 right edge of the Stage, even if the Stage resized.
 
 
 
 Thank in advance.
 
 Dennis




__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



__ NOD32 4643 (20091127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





__ NOD32 4712 (20091223) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-27 Thread Tracy Spratt
Constraints should work in a application parent container. Are you certain
that the application is resizing correctly?  Set up a onResize listener for
debugging purposes and make sure it is getting fired on browser resize.

 

If it is, and constraints are still not woking, then you can use that
listener to reposition you component.

 

Here is an example that positions a popup component on application resize,
it should help if you need to go the manual route.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Sunday, December 27, 2009 2:57 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hi

 

The layout it is absolute. the
Application(Application.application).layout.toString() returns absolute.

I think the better way is to anchor my component manually :-(

Share your thoughts.

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Wednesday, December 23, 2009 5:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

You are clear that constraint based layout requires a Canvas or application
or panel with absolute layout?

 

Either extend one of those for your component, or size and position your
child component manually.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Monday, December 21, 2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hello to all

Can anybody else help on this topic???

Any other suggestion how to anchor an UIComponent object?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Saturday, December 19, 2009 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml layout=absolute creationComplete=init()


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended

RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-27 Thread Tracy Spratt
I just added a panel component to that example (via AS) and constrained it
with a bottom and right styles, and it positions correctly.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Sunday, December 27, 2009 7:44 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Constraints should work in a application parent container. Are you certain
that the application is resizing correctly?  Set up a onResize listener for
debugging purposes and make sure it is getting fired on browser resize.

 

If it is, and constraints are still not woking, then you can use that
listener to reposition you component.

 

Here is an example that positions a popup component on application resize,
it should help if you need to go the manual route.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Sunday, December 27, 2009 2:57 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hi

 

The layout it is absolute. the
Application(Application.application).layout.toString() returns absolute.

I think the better way is to anchor my component manually :-(

Share your thoughts.

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Wednesday, December 23, 2009 5:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

You are clear that constraint based layout requires a Canvas or application
or panel with absolute layout?

 

Either extend one of those for your component, or size and position your
child component manually.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Monday, December 21, 2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hello to all

Can anybody else help on this topic???

Any other suggestion how to anchor an UIComponent object?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Saturday, December 19, 2009 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com

RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-23 Thread Tracy Spratt
You are clear that constraint based layout requires a Canvas or application
or panel with absolute layout?

 

Either extend one of those for your component, or size and position your
child component manually.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Monday, December 21, 2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re:
constraintColumns/constraintRows on extended Sprite object REFdn6025643069

 

  

Hello to all

Can anybody else help on this topic???

Any other suggestion how to anchor an UIComponent object?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Saturday, December 19, 2009 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml layout=absolute creationComplete=init()


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended Sprite object and I put in on the Stage (via addChild).
 
 How may I anchor it on runtime on the Stage? 
 
 How may I constraint it in Columns and Rows?
 
 
 
 Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
 right edge of the Stage, even if the Stage resized.
 
 
 
 Thank in advance.
 
 Dennis




__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset. http://www.eset.com com



__ NOD32 4643 (20091127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset. http://www.eset.com com





RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-21 Thread dennis
Hello to all

Can anybody else help on this topic???

Any other suggestion how to anchor an UIComponent object?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Saturday, December 19, 2009 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationComplete=init()


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended Sprite object and I put in on the Stage (via addChild).
 
 How may I anchor it on runtime on the Stage? 
 
 How may I constraint it in Columns and Rows?
 
 
 
 Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
 right edge of the Stage, even if the Stage resized.
 
 
 
 Thank in advance.
 
 Dennis




__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





__ NOD32 4643 (20091127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-18 Thread dennis
Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationComplete=init()


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended Sprite object and I put in on the Stage (via addChild).
 
 How may I anchor it on runtime on the Stage? 
 
 How may I constraint it in Columns and Rows?
 
 
 
 Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
 right edge of the Stage, even if the Stage resized.
 
 
 
 Thank in advance.
 
 Dennis




__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





__ NOD32 4643 (20091127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-11-27 Thread Tracy Spratt
The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml layout=absolute creationComplete=init()


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended Sprite object and I put in on the Stage (via addChild).
 
 How may I anchor it on runtime on the Stage? 
 
 How may I constraint it in Columns and Rows?
 
 
 
 Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
 right edge of the Stage, even if the Stage resized.
 
 
 
 Thank in advance.
 
 Dennis




__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset. http://www.eset.com com





RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-11-26 Thread dennis
Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationComplete=init()


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended Sprite object and I put in on the Stage (via addChild).
 
 How may I anchor it on runtime on the Stage? 
 
 How may I constraint it in Columns and Rows?
 
 
 
 Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
 right edge of the Stage, even if the Stage resized.
 
 
 
 Thank in advance.
 
 Dennis






__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com