[flexcoders] Re: imports in super and sub class

2008-06-22 Thread learner
hmm thanks :)

On Thu, Jun 19, 2008 at 5:24 PM, learner [EMAIL PROTECTED] wrote:

 Hi all,
 this is a dumb confusion that I have
 I have a sub class extending its a parent class

 Now if i import a class in some parent class .
 .so do i also need to import that class in sub class if i need anything
 from that imported class in sub class?

 Please clarify




[flexcoders] imports in super and sub class

2008-06-19 Thread learner
Hi all,
this is a dumb confusion that I have
I have a sub class extending its a parent class

Now if i import a class in some parent class .
.so do i also need to import that class in sub class if i need anything from
that imported class in sub class?

Please clarify


[flexcoders] error while extending button component

2008-03-31 Thread learner
Hi all,
I am trying to create a headerRenderer for Accordion..
and whenever I try to create class which extends a Button Class


package
{
import mx.controls.Button;

public class headerRenderer extends Button
{
public function headerRenderer()
{
super();
}

}
}


I get a error as : Interface method setFocus in namespace
mx.managers:IFocusManagerComponent is implemented with an incompatible
signature in class
??
can anybody explain me this ???/


Re: [flexcoders] Adding an ellipsis to truncated text in Text control

2008-03-31 Thread learner
did u try this :
mx:Text
truncateToFit = 'true' /

On Mon, Mar 31, 2008 at 2:53 PM, geraldshastri [EMAIL PROTECTED]
wrote:

   I am using a text control but it's not showing the ellipsis ('...')
 after the truncated text. The documentation clearly says that it
 should be added. Do I have to toggle some settings to get the ellipsis
 after the truncated text?

 Thanks.

  



[flexcoders] Re: [flexcomponents] error while extending button component

2008-03-31 Thread learner
Alex
 there are no classes which defines setFocus

Valdhor,

It does not matter if i change the class  name.. same effect...
what do I do :(


On Mon, Mar 31, 2008 at 11:12 PM, Alex Harui [EMAIL PROTECTED] wrote:

In which class is setFocus different?


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Monday, March 31, 2008 2:21 AM
 *To:* flexcoders@yahoogroups.com; [EMAIL PROTECTED]
 *Subject:* [flexcomponents] error while extending button component



 Hi all,
 I am trying to create a headerRenderer for Accordion..
 and whenever I try to create class which extends a Button Class


 package
 {
 import mx.controls.Button;

 public class headerRenderer extends Button
 {
 public function headerRenderer()
 {
 super();
 }

 }
 }


 I get a error as : Interface method setFocus in namespace
 mx.managers:IFocusManagerComponent is implemented with an incompatible
 signature in class
 ??
 can anybody explain me this ???/

  



[flexcoders] air app inside air app

2008-02-26 Thread learner
Hi all,
Is it possible to load a air app in another air app...
What I am trying to do is :
I am loading a swf compiled using air runtime inot another air application.
it did get loaded successfully ...
But the problem is that it does not keep the maximize state of the
parent appliction

in my code:

this.nativeWindow.maximize();

loadswf(myswf) // another window application swf

//

the result is i see the final windowof the size loaded swf.. i have to
click on maximize button to restore the state.

Any help!

Regards
PS


[flexcoders] Re: [flexcomponents] simple renderer please help..........please review it

2008-02-18 Thread learner
yes got that !

Thanks !


On Feb 18, 2008 12:31 PM, Alex Harui [EMAIL PROTECTED] wrote:

Sorry, don't have time to look it up right now, but you're probabl
 missing implements IListItemRenderer


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Sunday, February 17, 2008 10:22 PM
 *To:* [EMAIL PROTECTED]
 *Cc:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcomponents] simple renderer please
 help..please review it







 Can you please also give me the link to the this template in doc??

 When I changed the code and made my itemrender to extend
 UIcomponent...
its giving me error as :
Type Coercion failed: cannot convert
 ms.messengermodule::[EMAIL PROTECTED] to
 mx.controls.listClasses.IListItemRenderer.



 Thanks
 Ps

 On Feb 16, 2008 12:11 AM, Alex Harui [EMAIL PROTECTED] wrote:

Not bad for a first try.



 I would:

 1) extend UIComponent instead of Canvas.  You aren't using any of Canvas's
 features so you'll save on size and performance

 2) only call invalidateProperties() in the data setter.  Move the code in
 there to commitProperties instead.  That'll probably remove the need for the
 try/catch block.  The way it is coded now, you'll get exceptions if the data
 setter is run before child objects have been set up in createChildren

 3) Move the positioning of your components to updateDisplayList().

 4) Calculate measuredWidth/Height in measure(), but you shouldn't set x,y
 there as you may not actually be sized to your measured size and in general,
 you'll probably want to react to that in updateDisplayList().  The measure
 method should compute measuredWidth/Height from the
 getExplicitOrMeasuredWidth/Height of the child components plus any spacing
 and gap styles or properties.

 5) not bother to set the avatarholder's imagesource in measure().  If
 these are external images, they won't be measureable in measure() because
 loading external images is asynchronous.



 I don't see any particular reason for why your images end up on the wrong
 row.  Maybe there's some problem with AvatarHolder?



 *The 'template' for this is in our docs.   I'm sure our doc team would
 love to know why the docs weren't clear enough for you.*



 -Alex


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Friday, February 15, 2008 12:52 AM
 *To:* flexcoders@yahoogroups.com; [EMAIL PROTECTED]
 *Subject:* [flexcomponents] simple renderer please help..please
 review it



 Hi all,
 I am doing my constant effort to learn and make a decent item renderer for
 a list ..
 I have also attached a code that i have written for it...
 please please have a look at it and tell me where i am doing wrong and
 loopholes are...

 the problem that i am facing is ;
 in my image holder the images are  not shown properly ... meaning
 sometimes the image from the different row gets displayed in the other row..
 I guessed that there is a way  in which u can cache the bitmap in image
 holder and things like that.. don't know in details ...

 can any body please suggest me the proper way to design a renderer for
 this..  please review the following code...

 (Would be a great help if any body can design this properly for me...i
 know its too much too ask.. but that will give me guideline and a sort of
 template .
 And I once for all ,will get the authentic way to make renderer...till
 this time .. for me its just blind chess  which has really exhausted me
 )

 Thanks

 my item rendere contains :
 1)  image..
 2) a text comming next to image
 3) a text comming below  the text in 2)

 (Code file is attached)
 package ms.messengermodule
 {
 import mx.containers.Canvas;
 import mx.controls.Image;
 import mx.controls.Label;

 public class ContactBox extends Canvas
 {

 /*private var memberStatus:Label;*/

 [Embed(source='style.swf', symbol='memberOnline')]
 private var onlineIcon:Class;

 [Embed(source='style.swf', symbol='memberOffline')]
 private var offlineIcon:Class;

 [Embed(source='ms/felix/css

 /assets/felixStyle.swf', symbol='memberBusy')]
 private var busyIcon:Class;

 [Embed(source='style.swf', symbol='organizer')]
 private var organizerIcon:Class;

 private var memberName:Label;

 private var memberDescription1:Label;
 private var memberDescription2:Label;
 private var memberDescription3:Label;

 private var avatarHolder:ImageHolder;

 private var description1:String;
 private var description2:String;
 private var description3:String;

 private var contactObject:ContactObject;
 private var statusImage:Image;
 private var statusIcon:Object;
 private var memberNamestr:String;
 private var userImage:String;

 /**
  * Constructor

[flexcoders] Re: [flexcomponents] simple renderer please help..........please review it

2008-02-17 Thread learner
 measured size and in general,
 you'll probably want to react to that in updateDisplayList().  The measure
 method should compute measuredWidth/Height from the
 getExplicitOrMeasuredWidth/Height of the child components plus any spacing
 and gap styles or properties.

 5) not bother to set the avatarholder's imagesource in measure().  If
 these are external images, they won't be measureable in measure() because
 loading external images is asynchronous.



 I don't see any particular reason for why your images end up on the wrong
 row.  Maybe there's some problem with AvatarHolder?



 The 'template' for this is in our docs.   I'm sure our doc team would love
 to know why the docs weren't clear enough for you.



 -Alex


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Friday, February 15, 2008 12:52 AM
 *To:* flexcoders@yahoogroups.com; [EMAIL PROTECTED]
 *Subject:* [flexcomponents] simple renderer please help..please
 review it



 Hi all,
 I am doing my constant effort to learn and make a decent item renderer for
 a list ..
 I have also attached a code that i have written for it...
 please please have a look at it and tell me where i am doing wrong and
 loopholes are...

 the problem that i am facing is ;
 in my image holder the images are  not shown properly ... meaning
 sometimes the image from the different row gets displayed in the other row..
 I guessed that there is a way  in which u can cache the bitmap in image
 holder and things like that.. don't know in details ...

 can any body please suggest me the proper way to design a renderer for
 this..  please review the following code...

 (Would be a great help if any body can design this properly for me...i
 know its too much too ask.. but that will give me guideline and a sort of
 template .
 And I once for all ,will get the authentic way to make renderer...till
 this time .. for me its just blind chess  which has really exhausted me
 )

 Thanks

 my item rendere contains :
 1)  image..
 2) a text comming next to image
 3) a text comming below  the text in 2)

 (Code file is attached)
 package ms.messengermodule
 {
 import mx.containers.Canvas;
 import mx.controls.Image;
 import mx.controls.Label;

 public class ContactBox extends Canvas
 {

 /*private var memberStatus:Label;*/

 [Embed(source='style.swf', symbol='memberOnline')]
 private var onlineIcon:Class;

 [Embed(source='style.swf', symbol='memberOffline')]
 private var offlineIcon:Class;

 [Embed(source='ms/felix/css

 /assets/felixStyle.swf', symbol='memberBusy')]
 private var busyIcon:Class;

 [Embed(source='style.swf', symbol='organizer')]
 private var organizerIcon:Class;

 private var memberName:Label;

 private var memberDescription1:Label;
 private var memberDescription2:Label;
 private var memberDescription3:Label;

 private var avatarHolder:ImageHolder;

 private var description1:String;
 private var description2:String;
 private var description3:String;

 private var contactObject:ContactObject;
 private var statusImage:Image;
 private var statusIcon:Object;
 private var memberNamestr:String;
 private var userImage:String;

 /**
  * Constructor
  */
 function ContactBox() {
 super();
 this.horizontalScrollPolicy = off;
 this.verticalScrollPolicy = off;

 }

 override public function set data(value:Object):void {
 try{
 super.data = value;
 contactObject  = value as ContactObject;
 description1 = contactObject.extensionObject[E]; // take
 the value from some dictinory object
 memberNamestr = contactObject.name.split( )[0];
 userImage = contactObject.imageUrl; // user image
 statusIcon = ;
 getStatusIcon();
 invalidateProperties();
 }
 catch(e:Error){
  trace(e.message);
 }
 }



 private function getStatusIcon():void {
 if(contactObject.presence == Constants.Online_Presence){
 statusIcon = new onlineIcon() ;
 }
 if(contactObject.presence == Constants.offline_Presence){
 statusIcon = new offlineIcon();
 }
 if(contactObject.presence == Constants.Busy_Presence){
 statusIcon = new busyIcon();
 }
 }



 override protected function createChildren():void {

 avatarHolder = new ImageHolder();
 addChild(avatarHolder);
 avatarHolder.height = 38;
 avatarHolder.width = 38;
 //avatarHolder.imageSource = ;

 memberName = new Label

[flexcoders] Re: [flexcomponents] simple renderer please help..........please review it

2008-02-17 Thread learner
Can you please also give me the link to the this template in doc??

Thanks
Ps

On Feb 16, 2008 12:11 AM, Alex Harui [EMAIL PROTECTED] wrote:

Not bad for a first try.



 I would:

 1) extend UIComponent instead of Canvas.  You aren't using any of Canvas's
 features so you'll save on size and performance

 2) only call invalidateProperties() in the data setter.  Move the code in
 there to commitProperties instead.  That'll probably remove the need for the
 try/catch block.  The way it is coded now, you'll get exceptions if the data
 setter is run before child objects have been set up in createChildren

 3) Move the positioning of your components to updateDisplayList().

 4) Calculate measuredWidth/Height in measure(), but you shouldn't set x,y
 there as you may not actually be sized to your measured size and in general,
 you'll probably want to react to that in updateDisplayList().  The measure
 method should compute measuredWidth/Height from the
 getExplicitOrMeasuredWidth/Height of the child components plus any spacing
 and gap styles or properties.

 5) not bother to set the avatarholder's imagesource in measure().  If
 these are external images, they won't be measureable in measure() because
 loading external images is asynchronous.



 I don't see any particular reason for why your images end up on the wrong
 row.  Maybe there's some problem with AvatarHolder?



 *The 'template' for this is in our docs.   I'm sure our doc team would
 love to know why the docs weren't clear enough for you.*



 -Alex


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Friday, February 15, 2008 12:52 AM
 *To:* flexcoders@yahoogroups.com; [EMAIL PROTECTED]
 *Subject:* [flexcomponents] simple renderer please help..please
 review it



 Hi all,
 I am doing my constant effort to learn and make a decent item renderer for
 a list ..
 I have also attached a code that i have written for it...
 please please have a look at it and tell me where i am doing wrong and
 loopholes are...

 the problem that i am facing is ;
 in my image holder the images are  not shown properly ... meaning
 sometimes the image from the different row gets displayed in the other row..
 I guessed that there is a way  in which u can cache the bitmap in image
 holder and things like that.. don't know in details ...

 can any body please suggest me the proper way to design a renderer for
 this..  please review the following code...

 (Would be a great help if any body can design this properly for me...i
 know its too much too ask.. but that will give me guideline and a sort of
 template .
 And I once for all ,will get the authentic way to make renderer...till
 this time .. for me its just blind chess  which has really exhausted me
 )

 Thanks

 my item rendere contains :
 1)  image..
 2) a text comming next to image
 3) a text comming below  the text in 2)

 (Code file is attached)
 package ms.messengermodule
 {
 import mx.containers.Canvas;
 import mx.controls.Image;
 import mx.controls.Label;

 public class ContactBox extends Canvas
 {

 /*private var memberStatus:Label;*/

 [Embed(source='style.swf', symbol='memberOnline')]
 private var onlineIcon:Class;

 [Embed(source='style.swf', symbol='memberOffline')]
 private var offlineIcon:Class;

 [Embed(source='ms/felix/css

 /assets/felixStyle.swf', symbol='memberBusy')]
 private var busyIcon:Class;

 [Embed(source='style.swf', symbol='organizer')]
 private var organizerIcon:Class;

 private var memberName:Label;

 private var memberDescription1:Label;
 private var memberDescription2:Label;
 private var memberDescription3:Label;

 private var avatarHolder:ImageHolder;

 private var description1:String;
 private var description2:String;
 private var description3:String;

 private var contactObject:ContactObject;
 private var statusImage:Image;
 private var statusIcon:Object;
 private var memberNamestr:String;
 private var userImage:String;

 /**
  * Constructor
  */
 function ContactBox() {
 super();
 this.horizontalScrollPolicy = off;
 this.verticalScrollPolicy = off;

 }

 override public function set data(value:Object):void {
 try{
 super.data = value;
 contactObject  = value as ContactObject;
 description1 = contactObject.extensionObject[E]; // take
 the value from some dictinory object
 memberNamestr = contactObject.name.split( )[0];
 userImage = contactObject.imageUrl; // user image
 statusIcon = ;
 getStatusIcon();
 invalidateProperties();
 }
 catch(e:Error){
  trace

[flexcoders] Re: [flexcomponents] simple renderer please help..........please review it

2008-02-17 Thread learner
Can you please also give me the link to the this template in doc??

   When I changed the code and made my itemrender to extend UIcomponent...
   its giving me error as :
   Type Coercion failed: cannot convert
ms.messengermodule::[EMAIL PROTECTED] to
mx.controls.listClasses.IListItemRenderer.



 Thanks
 Ps

 On Feb 16, 2008 12:11 AM, Alex Harui [EMAIL PROTECTED] wrote:

 Not bad for a first try.
 
 
 
  I would:
 
  1) extend UIComponent instead of Canvas.  You aren't using any of
  Canvas's features so you'll save on size and performance
 
  2) only call invalidateProperties() in the data setter.  Move the code
  in there to commitProperties instead.  That'll probably remove the need for
  the try/catch block.  The way it is coded now, you'll get exceptions if the
  data setter is run before child objects have been set up in createChildren
 
  3) Move the positioning of your components to updateDisplayList().
 
  4) Calculate measuredWidth/Height in measure(), but you shouldn't set
  x,y there as you may not actually be sized to your measured size and in
  general, you'll probably want to react to that in updateDisplayList().  The
  measure method should compute measuredWidth/Height from the
  getExplicitOrMeasuredWidth/Height of the child components plus any spacing
  and gap styles or properties.
 
  5) not bother to set the avatarholder's imagesource in measure().  If
  these are external images, they won't be measureable in measure() because
  loading external images is asynchronous.
 
 
 
  I don't see any particular reason for why your images end up on the
  wrong row.  Maybe there's some problem with AvatarHolder?
 
 
 
  *The 'template' for this is in our docs.   I'm sure our doc team would
  love to know why the docs weren't clear enough for you.*
 
 
 
  -Alex
 
 
   --
 
  *From:* [EMAIL PROTECTED] [mailto:
  [EMAIL PROTECTED] *On Behalf Of *learner
  *Sent:* Friday, February 15, 2008 12:52 AM
  *To:* flexcoders@yahoogroups.com; [EMAIL PROTECTED]
  *Subject:* [flexcomponents] simple renderer please help..please
  review it
 
 
 
  Hi all,
  I am doing my constant effort to learn and make a decent item renderer
  for a list ..
  I have also attached a code that i have written for it...
  please please have a look at it and tell me where i am doing wrong and
  loopholes are...
 
  the problem that i am facing is ;
  in my image holder the images are  not shown properly ... meaning
  sometimes the image from the different row gets displayed in the other row..
  I guessed that there is a way  in which u can cache the bitmap in image
  holder and things like that.. don't know in details ...
 
  can any body please suggest me the proper way to design a renderer for
  this..  please review the following code...
 
  (Would be a great help if any body can design this properly for me...i
  know its too much too ask.. but that will give me guideline and a sort of
  template .
  And I once for all ,will get the authentic way to make renderer...till
  this time .. for me its just blind chess  which has really exhausted me
  )
 
  Thanks
 
  my item rendere contains :
  1)  image..
  2) a text comming next to image
  3) a text comming below  the text in 2)
 
  (Code file is attached)
  package ms.messengermodule
  {
  import mx.containers.Canvas;
  import mx.controls.Image;
  import mx.controls.Label;
 
  public class ContactBox extends Canvas
  {
 
  /*private var memberStatus:Label;*/
 
  [Embed(source='style.swf', symbol='memberOnline')]
  private var onlineIcon:Class;
 
  [Embed(source='style.swf', symbol='memberOffline')]
  private var offlineIcon:Class;
 
  [Embed(source='ms/felix/css
 
  /assets/felixStyle.swf', symbol='memberBusy')]
  private var busyIcon:Class;
 
  [Embed(source='style.swf', symbol='organizer')]
  private var organizerIcon:Class;
 
  private var memberName:Label;
 
  private var memberDescription1:Label;
  private var memberDescription2:Label;
  private var memberDescription3:Label;
 
  private var avatarHolder:ImageHolder;
 
  private var description1:String;
  private var description2:String;
  private var description3:String;
 
  private var contactObject:ContactObject;
  private var statusImage:Image;
  private var statusIcon:Object;
  private var memberNamestr:String;
  private var userImage:String;
 
  /**
   * Constructor
   */
  function ContactBox() {
  super();
  this.horizontalScrollPolicy = off;
  this.verticalScrollPolicy = off;
 
  }
 
  override public function set data(value:Object):void {
  try{
  super.data = value;
  contactObject  = value as ContactObject;
  description1

[flexcoders] simple renderer please help..........please review it

2008-02-15 Thread learner
Hi all,
I am doing my constant effort to learn and make a decent item renderer for a
list ..
I have also attached a code that i have written for it...
please please have a look at it and tell me where i am doing wrong and
loopholes are...

the problem that i am facing is ;
in my image holder the images are  not shown properly ... meaning sometimes
the image from the different row gets displayed in the other row..
I guessed that there is a way  in which u can cache the bitmap in image
holder and things like that.. don't know in details ...

can any body please suggest me the proper way to design a renderer for
this..  please review the following code...

(Would be a great help if any body can design this properly for me...i know
its too much too ask.. but that will give me guideline and a sort of
template .
And I once for all ,will get the authentic way to make renderer...till this
time .. for me its just blind chess  which has really exhausted me
)

Thanks

my item rendere contains :
1)  image..
2) a text comming next to image
3) a text comming below  the text in 2)

(Code file is attached)
package ms.messengermodule
{
import mx.containers.Canvas;
import mx.controls.Image;
import mx.controls.Label;

public class ContactBox extends Canvas
{

/*private var memberStatus:Label;*/

[Embed(source='style.swf', symbol='memberOnline')]
private var onlineIcon:Class;

[Embed(source='style.swf', symbol='memberOffline')]
private var offlineIcon:Class;

[Embed(source='ms/felix/css/assets/felixStyle.swf',
symbol='memberBusy')]
private var busyIcon:Class;

[Embed(source='style.swf', symbol='organizer')]
private var organizerIcon:Class;

private var memberName:Label;

private var memberDescription1:Label;
private var memberDescription2:Label;
private var memberDescription3:Label;

private var avatarHolder:ImageHolder;

private var description1:String;
private var description2:String;
private var description3:String;

private var contactObject:ContactObject;
private var statusImage:Image;
private var statusIcon:Object;
private var memberNamestr:String;
private var userImage:String;

/**
 * Constructor
 */
function ContactBox() {
super();
this.horizontalScrollPolicy = off;
this.verticalScrollPolicy = off;

}

override public function set data(value:Object):void {
try{
super.data = value;
contactObject  = value as ContactObject;
description1 = contactObject.extensionObject[E]; // take
the value from some dictinory object
memberNamestr = contactObject.name.split( )[0];
userImage = contactObject.imageUrl; // user image
statusIcon = ;
getStatusIcon();
invalidateProperties();
}
catch(e:Error){
 trace(e.message);
}
}



private function getStatusIcon():void {
if(contactObject.presence == Constants.Online_Presence){
statusIcon = new onlineIcon() ;
}
if(contactObject.presence == Constants.offline_Presence){
statusIcon = new offlineIcon();
}
if(contactObject.presence == Constants.Busy_Presence){
statusIcon = new busyIcon();
}
}



override protected function createChildren():void {

avatarHolder = new ImageHolder();
addChild(avatarHolder);
avatarHolder.height = 38;
avatarHolder.width = 38;
//avatarHolder.imageSource = ;

memberName = new Label();
memberName.styleName = NormalTextBoldSmall
memberName.setStyle(color,0xbababa);
memberName.text=;
addChild(memberName);

memberDescription1 = new Label();
memberDescription1.styleName = NormalText;
memberDescription1.setStyle(fontWeight,normal);
memberDescription1.text=
addChild(memberDescription1);

memberDescription2 = new Label();
memberDescription2.styleName = NormalTextSmall;
memberDescription2.text=
addChild(memberDescription2);

memberDescription3 = new Label();
memberDescription3.styleName = NormalTextSmall;
memberDescription3.text=
addChild(memberDescription3);

statusImage = new Image();
addChild(statusImage);
statusImage.height = 10;
statusImage.width = 10;
super.createChildren();
this.styleName=messengerlistRenderer;
}




override protected function measure():void{
//trace( measure MemberBox+ 

[flexcoders] event type not available error:

2008-02-14 Thread learner
hi all ,

I am getting this compile time error:

Event type 'MessengerEvent:ITEM_ROLL_OVER' is unavailable.  

and the code that I have written is:

contentholder.mxml :


mx:Metadata
[Event(name=itemRollOver, type=MessengerEvent.ITEM_ROLL_OVER)]
/mx:Metadata

function  somef(){
dispatchEvent(new MessengerEvent(MessengerEvent.ITEM_ROLL_OVER));
}




in main.mxml  :

mycomp:ContentHolder width=100% id=contentHolder
itemRollOver=showFlyOut(event)/ // this is where i am getting error


can any body tell me what is the problem?


Re: [flexcoders] Re: event type not available error:

2008-02-14 Thread learner
thats the catch!
thanks

On Thu, Feb 14, 2008 at 2:25 PM, rueter007 [EMAIL PROTECTED] wrote:

   type property in the metadata should be the name of the event with the
 complete package structure.

 mx:Metadata
 [Event(name=itemRollOver, type=com.myCompany.MessengerEvent)]
 /mx:Metadata


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, learner
 [EMAIL PROTECTED] wrote:
 
  hi all ,
 
  I am getting this compile time error:
 
  Event type 'MessengerEvent:ITEM_ROLL_OVER' is unavailable. 
 
  and the code that I have written is:
 
  contentholder.mxml :
 
 
  mx:Metadata
  [Event(name=itemRollOver,
 type=MessengerEvent.ITEM_ROLL_OVER)]
  /mx:Metadata
 
  function somef(){
  dispatchEvent(new MessengerEvent(MessengerEvent.ITEM_ROLL_OVER));
  }
 
 
 
 
  in main.mxml :
 
  mycomp:ContentHolder width=100% id=contentHolder
  itemRollOver=showFlyOut(event)/ // this is where i am getting error
 
 
  can any body tell me what is the problem?
 

  



[flexcoders] fonts

2008-02-14 Thread learner
hi all ,
I have a very simple question..
to a label in my application i want to set a font other than verdana , arial
or anything else that comes in flex builder's drop down..
I know its too dumb question.. but i may be too dumb to get its answer.. can
somebody help me out with this

Regards
Ps


Re: [flexcoders] fonts

2008-02-14 Thread learner
so they need to be in css ??
will they be  embedded in output swf?

On Thu, Feb 14, 2008 at 7:29 PM, Sherif Abdou [EMAIL PROTECTED] wrote:

   this is how you do it
 @font-face
 {
 src: url(assets/MyriadWebPro-Bold.ttf);
 font-family: myriad;
 font-style: normal;
 font-weight: bold;
 }
 then in Label you would chos fontFamilty=myriad;

 - Original Message 
 From: learner [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 14, 2008 5:31:47 AM
 Subject: [flexcoders] fonts

  hi all ,
 I have a very simple question..
 to a label in my application i want to set a font other than verdana ,
 arial or anything else that comes in flex builder's drop down..
 I know its too dumb question.. but i may be too dumb to get its answer..
 can somebody help me out with this

 Regards
 Ps


 --
 Looking for last minute shopping deals? Find them fast with Yahoo! 
 Search.http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 



Re: [flexcoders] Re: [flexcomponents] autoresize text area as a itemrenderer

2008-02-03 Thread learner
thanks Manish and Alex, that gives me a clue...

these things sounds like a mystery unfolding to me...

* Flex component can not set their own height/width... they have to set
measure height/width.
* set width of the flex Text Area and then  set the height...
* many more.
.. which create a mixed feeling of curiosity and
confusion about the way to  reuse flex component...
But i guess experiment and experience will give me better insight... But
still i wish  the reuse of flex component should be more simple and
straightforward (May be i am dumb and not understanding originally simple
component architecture )  ..Just curious to know... Do everybody experiences
the more or less same level of difficulty in developing/reusing flex
component.

On Feb 2, 2008 1:26 AM, Manish Jethani [EMAIL PROTECTED] wrote:

   On 2/1/08, learner [EMAIL PROTECTED] peacocksea%40gmail.com
 wrote:

  thanks Manish,
  But in which function shall i do that??
  In measure(), in updateDisplayList () or commitProperty().
  and . also the height of the textArea should affect the row height
 in
  list...
  so i also need to dosomething like this
 
  this.height = messageTxt.heigt+messageTxt.y

 If you want your item renderer to affect the height of the row, all
 you have to do is set the correct measuredHeight in your measure()
 implementation. Note that you have to set your measuredHeight, not
 your height! Flex components don't set their own width/height: that's
 a rule. You set your measuredWidth and measuredHeight and let the
 parent decide how it wants to size you.

 Now, to compute your measuredHeight, you need to use the
 measuredHeight of the TextArea object. TextArea objects don't measure
 their size based on their contents -- it's always a certain default
 size. So you'll have to extend TextArea to create a CustomTextArea,
 override measure(), and do something like what Text does (see Text.as
 from the framework source). If you look in the archives, there should
 be examples of this already.

 Manish
  



Re: [flexcomponents] RE: [flexcoders] update complete of list component

2008-02-01 Thread learner
got it...
I changed my code and checked if the lenght of the dataprovider is greater
than 0
but thats a kinda of hack which i did not like :(

On Feb 1, 2008 12:37 PM, Alex Harui [EMAIL PROTECTED] wrote:

updateComplete will be called several times during the lifetime of a
 List.  Your code will have to handle that fact.  If MemberBox invalidates
 the List you'll get more than one updateComplete


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Thursday, January 31, 2008 9:02 PM
 *To:* [EMAIL PROTECTED]
 *Cc:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcomponents] RE: [flexcoders] update complete of list
 component



 I am setting the data provider only once ..
 they way i have created list is something like this  :


 vList = new List();
 vList.itemRenderer = new ClassFactory(MemberBox);
 vList.visible = false;
 vList.addEventListener(FlexEvent.UPDATE_COMPLETE,showList);
addChild(vList);
var watcherSetter:ChangeWatcher = 
 BindingUtils.bindSetter(setDataProviderList,
 this, dataProvider);

 ---

 private function setDataProviderList(value:ArrayCollection):void{

 trace(setting dataProvioder);
 vList.dataProvider = value;
 invalidateSize();
}


 private function showList(event:FlexEvent):void {
 trace(update complete of member list)
 //vList.visible = true;
 //callSpinner.visible = false;
}




  The function showList gets called twice... where as the trace setting
 data Provider  gets displayed only once... please help




 

 On Fri, Feb 1, 2008 at 12:42 AM, Alex Harui [EMAIL PROTECTED] wrote:

 Updatecomplete should work. Depending on when you set the dataprovider it
 might get fired more than once.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *learner
 *Sent:* Thursday, January 31, 2008 4:02 AM
 *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
 *Subject:* [flexcoders] update complete of list component



 Hi all,
 Is there any way in which we can find out the list has shown all the rows
 in visible area..
 I tried to use updateComplete event but..it did not help me much...

 Regards
 PS



  



[flexcoders] Fwd: autoresize text area as a itemrenderer

2008-02-01 Thread learner
Hi all,
I want to have my list variable row height ...precisely the height of the
row should the  height of the text displayed in it..

I have my item rendere like this  ..it has image to show and textArea which
will have html text to display in it...


public class MessageBox extends Canvas
{
override public function set data(value:Object):void{
this.msgObject = value as MessageObject;
avatarHolder.visible = false;
memberName.visible = false;
showUserImageAndName();
setMessage();
invalidateProperties();
}

override protected function createChildren():void {
avatarHolder = new ImageHolder();
avatarHolder.x=0;
avatarHolder.y=0;
avatarHolder.height = 35;
avatarHolder.width = 35;
addChild(avatarHolder);


messageTxt = new TextArea();

addChild(messageTxt);


}

  override protected function measure():void{
trace(measure for message box  + msgObject.message)
super.measure();
messageTxt.x = 55;
messageTxt.width = this.width - 55 - timeStamp.width;
// should i set the height of the messageTxt here  as
messageTxt.height = messageTxt.textHeight but it does not work
correctly..
  }

}



Please please help

Regards
PS


[flexcoders] Re: [flexcomponents] autoresize text area as a itemrenderer

2008-02-01 Thread learner
thanks Manish,
But in which function shall i do that??
In measure(), in updateDisplayList () or commitProperty().
and . also the height of the textArea should affect the row height in
list...
so i also need to dosomething like this

this.height = messageTxt.heigt+messageTxt.y

how can i achieve this... are there any samples like this.. in sample given
by Alex i could not find anything which addresses this problem.

On Feb 1, 2008 6:52 PM, Manish Jethani [EMAIL PROTECTED] wrote:

   On 2/1/08, learner [EMAIL PROTECTED] peacocksea%40gmail.com
 wrote:

  I want to have my list variable row height ...precisely the height of
 the row should the height of the text displayed in it..
 
  I have my item rendere like this ..it has image to show and textArea
 which will have html text to display in it...

 [snip]

  messageTxt = new TextArea();

  override protected function measure():void{
  trace(measure for message box  + msgObject.message)
  super.measure();
  messageTxt.x = 55;
  messageTxt.width = this.width - 55 - timeStamp.width;
  // should i set the height of the messageTxt here as messageTxt.height =
 messageTxt.textHeight but it does not work correctly..
  }

 Try calling messageTxt.validateNow() before accessing the height. The
 TextArea object needs to remeasure its height based on the width
 you've set.

 Manish
  



[flexcoders] update complete of list component

2008-01-31 Thread learner
Hi all,
Is there any way in which we can find out the list has shown all the rows in
visible area..
I tried to use updateComplete event but..it did not help me much...

Regards
PS


[flexcoders] style of panel and titlewindow

2008-01-31 Thread learner
Hi all,

In my stylesheet i have done something like this :

Panel{
borderSkin:Embed(source='assets/felixStyle.swf',
symbol='felixPanelBorder');

titleBackgroundSkin:Embed(source='assets/felixStyle.swf',symbol='felixpanelHeader');
color:#ff;
fontFamily:Verdana;
fontSize:14;

}

and now I have some where in my application a instance of titleWindow :

mx:TitleWindow 
.
dropShadowEnabled = true /

the titleWindow gets the the look and feel of panel style but it does not
shows shadow ..
what could be the reason?

Regards
PS


Re: [flexcomponents] RE: [flexcoders] update complete of list component

2008-01-31 Thread learner
I am setting the data provider only once ..
they way i have created list is something like this  :


vList = new List();
vList.itemRenderer = new ClassFactory(MemberBox);
vList.visible = false;
vList.addEventListener(FlexEvent.UPDATE_COMPLETE,showList);
   addChild(vList);
   var watcherSetter:ChangeWatcher =
BindingUtils.bindSetter(setDataProviderList,
this, dataProvider);

---

private function setDataProviderList(value:ArrayCollection):void{

trace(setting dataProvioder);
vList.dataProvider = value;
invalidateSize();
   }


private function showList(event:FlexEvent):void {
trace(update complete of member list)
//vList.visible = true;
//callSpinner.visible = false;
   }




 The function showList gets called twice... where as the trace setting data
Provider  gets displayed only once... please help





On Fri, Feb 1, 2008 at 12:42 AM, Alex Harui [EMAIL PROTECTED] wrote:

Updatecomplete should work. Depending on when you set the dataprovider
 it might get fired more than once.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *learner
 *Sent:* Thursday, January 31, 2008 4:02 AM
 *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
 *Subject:* [flexcoders] update complete of list component



 Hi all,
 Is there any way in which we can find out the list has shown all the rows
 in visible area..
 I tried to use updateComplete event but..it did not help me much...

 Regards
 PS

   



Re: [flexcoders] style of panel and titlewindow

2008-01-31 Thread learner
:( that does not help :(

On Feb 1, 2008 10:29 AM, shrikant.patil [EMAIL PROTECTED] wrote:


 hi,
 you need to define style for the drop shadow in your style as below:

 Panel{
 borderSkin:Embed(source='assets/felixStyle.swf',
 symbol='felixPanelBorder');
 dropShadowEnabled: true;
 shadowDistance: 8;
 shadowDirection: right;
 dropShadowColor: #33;


 titleBackgroundSkin:Embed(source='assets/felixStyle.swf',symbol='felixpanelHeader');
 color:#ff;
 fontFamily:Verdana;
 fontSize:14;

 }

 hope it may help
 regards
 shrikant



 learner-2 wrote:
 
  Hi all,
 
  In my stylesheet i have done something like this :
 
  Panel{
  borderSkin:Embed(source='assets/felixStyle.swf',
  symbol='felixPanelBorder');
 
 
 titleBackgroundSkin:Embed(source='assets/felixStyle.swf',symbol='felixpanelHeader');
  color:#ff;
  fontFamily:Verdana;
  fontSize:14;
 
  }
 
  and now I have some where in my application a instance of titleWindow :
 
  mx:TitleWindow 
  .
  dropShadowEnabled = true /
 
  the titleWindow gets the the look and feel of panel style but it does
 not
  shows shadow ..
  what could be the reason?
 
  Regards
  PS
 
 

 --
 View this message in context:
 http://www.nabble.com/style-of-panel-and-titlewindow-tp15220693p15220756.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  



Re: [flexcoders] Re: setting effect to UI component

2008-01-18 Thread learner
Hey thanks Nick,

Its really great to have a reply from you...
I got the way to put the reszie effect (in that matter , any other effect)..
to the component in actionscript.
and got the things working..
but  i am curious that..
how the Flexbuilder understand resizeEffect as the one of the standered
property of the UIcomponent or container,
when i put in the mxml file ...


On Jan 18, 2008 1:46 AM, Uber_Nick [EMAIL PROTECTED] wrote:

   Hello PS,

 I responded to this two days ago and the reply hasn't shown up yet, so
 I apologize if this eventually comes up as a dupe.

 If you ever want to know how to do something in actionscript, take
 your mxml example and put it in a project. Then goto project -
 properties - flex compiler, and add -keep-generated-actionscript into
 the field for additional compiler arguments. Now, when the compiler
 converts mxml to actionscript, the actionscript source will appear in
 the 'generated' folder.

 Along with using the generated code for examples, take a look at this
 resource; it explains how everything fits together:


 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=behaviors_068_09.html

 The gist of it is
 1) Create new effect
 2) set up from and to properties.
 3) listen for a certain event to be dispatched
 4) intercept that event, then play your effect

 Hope this helps. If you're still having issues, post some examples of
 your source. You may be making things more complicated than they need
 to be.

 -Nick Matelli
 Amentra, Inc


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, learner
 [EMAIL PROTECTED] wrote:
 
  hi all,
  what would I do if I have to set a resize effect to my custom
 component...
  My component is in as file and is getting added to a mxml using addChild
  method.
  So I can not do something like this :
  MyComp resizeEffect=Resize/
 
  Is there any way to achieve same thing in as components ?
 
  Any help is greatly appreciated.
 
  Regards
  PS
 

  



[flexcoders] setting effect to UI component

2008-01-14 Thread learner
hi all,
what would I do if I have to set a resize effect to my custom component...
My component is in as file and is getting added to a mxml using addChild
method.
So I can not do something like this :
MyComp resizeEffect=Resize/

Is there any way to achieve same thing in as components ?

Any help is greatly appreciated.

Regards
PS


[flexcoders] Re: [flexcomponents] item renderer for list

2008-01-13 Thread learner
but if I don't extend canvas...it does not let me override the set data
method if i don't make a override for set datahow can modify the
properties of the data supplied to item render  from dataprovider...??

On Jan 11, 2008 11:56 PM, Alex Harui [EMAIL PROTECTED] wrote:

You should extend UIComponent and not Canvas.  You are not using any
 Canvas features so you don't need the weight.


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Friday, January 11, 2008 2:23 AM
 *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
 *Subject:* [flexcomponents] item renderer for list



 hi all,
 while creating a Itemrender of for the list , I am facing stranger
 problems
 1. the data displayed in the itemrendere gets screwed up while scrolling
 2. it takes lots of time ( 1 sec ) to render list


 Can somebody please anyalyse this and tell me that what is that which is
 taking resources ...
 Any help would be great.



 here is the itemrendere :


 package ms.chatmodule.view
 {
 import flash.events.MouseEvent;

 import ms.chatmodule.controls.ChatController;
 import ms.imfusion.model.MemberObject;
 import ms.imfusion.util.view.ImageHolder;

 import mx.containers.Canvas ;
 import mx.controls.Image;
 import mx.controls.Label;
 import mx.controls.listClasses.BaseListData;
 import mx.controls.listClasses.IDropInListItemRenderer;
 import mx.controls.listClasses.IListItemRenderer ;
 import mx.controls.listClasses.ListData;
 import mx.core.BitmapAsset;
 import mx.core.IDataRenderer;
 import mx.core.UITextField;


 /**
  * Displays one row in memberList
  */
 public class MemberBox extends Canvas implements IDataRenderer,
   IDropInListItemRenderer, IListItemRenderer
 {
 private var memberName:Label;

 private var memberStatus:UITextField;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='memberOnline')]
 private var onlineIcon:Class;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='memberOffline')]
 private var offlineIcon:Class;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='memberBusy')]
 private var busyIcon:Class;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='organizer')]
 private var organizerIcon:Class;

 private var memberObject:MemberObject;
 private var statusImage:Image;
 private var orgnizerImage:Image;
 private var imgObj:BitmapAsset;
 private var avatarHolder:ImageHolder;
 private var serviceStatus:String;
 private var memberColor:uint;
 private var statusIcon:Object;
 private var statusString:String;
 /**
  * Constructor
  */
 function MemberBox() {
 super();
 this.horizontalScrollPolicy = off;
 this.verticalScrollPolicy = off
 }

 override public function set data(value:Object):void {
 super.data = value;
 memberObject = value as MemberObject;
 memberColor = 0xbababa;
 orgnizerImage.source =  new organizerIcon();
 if(memberObject.userRole == A){
 orgnizerImage.visible = true;
 }
 else{
 orgnizerImage.visible = false;
 }
 avatarHolder.unloadImage();
 //trace(setData MemberBox  + memberObject.name +  ---  +
 this.listData.owner[listData].label)
 serviceStatus = this.listData.owner[listData].label;

 statusString = ;
 statusIcon = ;
 getMemberStatuts();
 getStatusIcon();
 invalidateProperties();
 }

 private function getMemberStatuts():void {
 if(serviceStatus == L) { // event is locked
   if(memberObject.responseToLockedChoice == Y) {
   memberColor = 0x196a0c;
   }else if(memberObject.responseToLockedChoice == N) {
 memberColor = 0xff2a0e;
   }
 }
 else if(memberObject.hasResponded == 'Y'){
 memberColor = 0x0a92cb;
 }
 if(memberObject.hasSeen == U) {
 statusString = (Not Seen Yet);
 if(memberObject.inviteEmailStatus == FD) {
  statusString= (Delivery Failed);
 }
 }
 }


 private function getStatusIcon():void {
 if(memberObject.presence == Online){
 statusIcon = new onlineIcon() ;
 }
 if(memberObject.presence == Offline){
 statusIcon = new offlineIcon();
 }
 if(memberObject.presence == Busy){
 statusIcon = new busyIcon

[flexcoders] Re: [flexcomponents] item renderer for list

2008-01-13 Thread learner
yes thanks seeing it !
On Jan 14, 2008 11:36 AM, Alex Harui [EMAIL PROTECTED] wrote:

You implement your own setter for data.  You don't need to override
 anything.  See ListItemRenderer or TextInput or Label for examples


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Sunday, January 13, 2008 8:56 PM
 *To:* [EMAIL PROTECTED]
 *Cc:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcomponents] item renderer for list




 but if I don't extend canvas...it does not let me override the set data
 method if i don't make a override for set datahow can modify the
 properties of the data supplied to item render  from dataprovider...??

 On Jan 11, 2008 11:56 PM, Alex Harui [EMAIL PROTECTED] wrote:

 You should extend UIComponent and not Canvas.  You are not using any
 Canvas features so you don't need the weight.


  --

 *From:* [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] *On Behalf Of *learner
 *Sent:* Friday, January 11, 2008 2:23 AM
 *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
 *Subject:* [flexcomponents] item renderer for list



 hi all,
 while creating a Itemrender of for the list , I am facing stranger
 problems
 1. the data displayed in the itemrendere gets screwed up while scrolling
 2. it takes lots of time ( 1 sec ) to render list


 Can somebody please anyalyse this and tell me that what is that which is
 taking resources ...
 Any help would be great.



 here is the itemrendere :


 package ms.chatmodule.view
 {
 import flash.events.MouseEvent;

 import ms.chatmodule.controls.ChatController;
 import ms.imfusion.model.MemberObject;
 import ms.imfusion.util.view.ImageHolder;

 import mx.containers.Canvas ;
 import mx.controls.Image;
 import mx.controls.Label;
 import mx.controls.listClasses.BaseListData;
 import mx.controls.listClasses.IDropInListItemRenderer;
 import mx.controls.listClasses.IListItemRenderer ;
 import mx.controls.listClasses.ListData;
 import mx.core.BitmapAsset;
 import mx.core.IDataRenderer;
 import mx.core.UITextField;


 /**
  * Displays one row in memberList
  */
 public class MemberBox extends Canvas implements IDataRenderer,
   IDropInListItemRenderer, IListItemRenderer
 {
 private var memberName:Label;

 private var memberStatus:UITextField;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='memberOnline')]
 private var onlineIcon:Class;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='memberOffline')]
 private var offlineIcon:Class;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='memberBusy')]
 private var busyIcon:Class;

 [Embed(source='ms/felix/css/assets/felixStyle.swf',
 symbol='organizer')]
 private var organizerIcon:Class;

 private var memberObject:MemberObject;
 private var statusImage:Image;
 private var orgnizerImage:Image;
 private var imgObj:BitmapAsset;
 private var avatarHolder:ImageHolder;
 private var serviceStatus:String;
 private var memberColor:uint;
 private var statusIcon:Object;
 private var statusString:String;
 /**
  * Constructor
  */
 function MemberBox() {
 super();
 this.horizontalScrollPolicy = off;
 this.verticalScrollPolicy = off
 }

 override public function set data(value:Object):void {
 super.data = value;
 memberObject = value as MemberObject;
 memberColor = 0xbababa;
 orgnizerImage.source =  new organizerIcon();
 if(memberObject.userRole == A){
 orgnizerImage.visible = true;
 }
 else{
 orgnizerImage.visible = false;
 }
 avatarHolder.unloadImage();
 //trace(setData MemberBox  + memberObject.name +  ---  +
 this.listData.owner[listData].label)
 serviceStatus = this.listData.owner[listData].label;

 statusString = ;
 statusIcon = ;
 getMemberStatuts();
 getStatusIcon();
 invalidateProperties();
 }

 private function getMemberStatuts():void {
 if(serviceStatus == L) { // event is locked
   if(memberObject.responseToLockedChoice == Y) {
   memberColor = 0x196a0c;
   }else if(memberObject.responseToLockedChoice == N) {
 memberColor = 0xff2a0e;
   }
 }
 else if(memberObject.hasResponded == 'Y'){
 memberColor = 0x0a92cb;
 }
 if(memberObject.hasSeen == U) {
 statusString = (Not Seen Yet);
 if(memberObject.inviteEmailStatus == FD

[flexcoders] item renderer for list

2008-01-11 Thread learner
hi all,
while creating a Itemrender of for the list , I am facing stranger problems
1. the data displayed in the itemrendere gets screwed up while scrolling
2. it takes lots of time ( 1 sec ) to render list


Can somebody please anyalyse this and tell me that what is that which is
taking resources ...
Any help would be great.



here is the itemrendere :


package ms.chatmodule.view
{
import flash.events.MouseEvent;

import ms.chatmodule.controls.ChatController;
import ms.imfusion.model.MemberObject;
import ms.imfusion.util.view.ImageHolder;

import mx.containers.Canvas;
import mx.controls.Image;
import mx.controls.Label;
import mx.controls.listClasses.BaseListData;
import mx.controls.listClasses.IDropInListItemRenderer;
import mx.controls.listClasses.IListItemRenderer;
import mx.controls.listClasses.ListData;
import mx.core.BitmapAsset;
import mx.core.IDataRenderer;
import mx.core.UITextField;


/**
 * Displays one row in memberList
 */
public class MemberBox extends Canvas implements IDataRenderer,
  IDropInListItemRenderer, IListItemRenderer
{
private var memberName:Label;

private var memberStatus:UITextField;

[Embed(source='ms/felix/css/assets/felixStyle.swf',
symbol='memberOnline')]
private var onlineIcon:Class;

[Embed(source='ms/felix/css/assets/felixStyle.swf',
symbol='memberOffline')]
private var offlineIcon:Class;

[Embed(source='ms/felix/css/assets/felixStyle.swf',
symbol='memberBusy')]
private var busyIcon:Class;

[Embed(source='ms/felix/css/assets/felixStyle.swf',
symbol='organizer')]
private var organizerIcon:Class;

private var memberObject:MemberObject;
private var statusImage:Image;
private var orgnizerImage:Image;
private var imgObj:BitmapAsset;
private var avatarHolder:ImageHolder;
private var serviceStatus:String;
private var memberColor:uint;
private var statusIcon:Object;
private var statusString:String;
/**
 * Constructor
 */
function MemberBox() {
super();
this.horizontalScrollPolicy = off;
this.verticalScrollPolicy = off
}

override public function set data(value:Object):void {
super.data = value;
memberObject = value as MemberObject;
memberColor = 0xbababa;
orgnizerImage.source =  new organizerIcon();
if(memberObject.userRole == A){
orgnizerImage.visible = true;
}
else{
orgnizerImage.visible = false;
}
avatarHolder.unloadImage();
//trace(setData MemberBox  + memberObject.name +  ---  +
this.listData.owner[listData].label)
serviceStatus = this.listData.owner[listData].label;

statusString = ;
statusIcon = ;
getMemberStatuts();
getStatusIcon();
invalidateProperties();
}

private function getMemberStatuts():void {
if(serviceStatus == L) { // event is locked
  if(memberObject.responseToLockedChoice == Y) {
  memberColor = 0x196a0c;
  }else if(memberObject.responseToLockedChoice == N) {
memberColor = 0xff2a0e;
  }
}
else if(memberObject.hasResponded == 'Y'){
memberColor = 0x0a92cb;
}
if(memberObject.hasSeen == U) {
statusString = (Not Seen Yet);
if(memberObject.inviteEmailStatus == FD) {
 statusString= (Delivery Failed);
}
}
}


private function getStatusIcon():void {
if(memberObject.presence == Online){
statusIcon = new onlineIcon() ;
}
if(memberObject.presence == Offline){
statusIcon = new offlineIcon();
}
if(memberObject.presence == Busy){
statusIcon = new busyIcon();
}
}

override protected function createChildren():void {
//trace(createChildren MemberBox);
super.createChildren();
orgnizerImage = new Image();
addChild(orgnizerImage);
orgnizerImage.height = 10;
orgnizerImage.width = 10;

avatarHolder = new ImageHolder();
addChild(avatarHolder);
avatarHolder.height = 35;
avatarHolder.width = 35;

memberName = new Label();
memberName.styleName = NormalTextBoldSmall
addChild(memberName);

memberStatus = new UITextField();
memberStatus.styleName = NormalTextSmall;
addChild(memberStatus);

statusImage = new Image();

[flexcoders] delay in rendering UIcomponent

2008-01-11 Thread learner
Hi all  ,

My component has following configuration
HdivideBox
List/
VBox
TabNavigator/
 Hbox/
/VBox
HdivideBox


When I creates this component, it takes lots of time (1/2 second) before
rendering itself on UI and all the processing on UI hangs.
the main reason that i think could be
1. A dataProvider to a list which has custom item rendering which contains
images , 4-5 labels and a textArea.
2. to TabNavigator  I add Vbox, to which i add many rows in loop to, (rows
are a component which contains textArea and image)

I wanted to show a preloader till all this processing is happening...
How to improve this .. and is there any way by which i can trac the
processing...

thanks in advance ..please Help

Regards
PS


[flexcoders] Logging

2008-01-09 Thread learner
Hi all,
Is there any way in which I get the caller function name. As in :

class Aclass{

instanceB:Bclass;
   function a(){
  instanceB.b(this)
   }

}

class Bclass{
 function b(Obj){
// How to trace function name and class name
  }
}


I have traced out class name by getFullyQualifiedClassName(Obj) but how to
trace function name ???

Please somebody guide me .. its very important for me.

Regards


Re: [flexcoders] Re: Logging

2008-01-09 Thread learner
I had used error class and was able to get the stack trace
and notice that it does not work when I make a package for air installer
so how should make a debug player for the air packaging?


On Jan 10, 2008 6:55 AM, Nathan Arizona [EMAIL PROTECTED]
wrote:


 In flex2 perhaps you can use describeType found in flash.utils.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, learner
 [EMAIL PROTECTED] wrote:
 
  Hi all,
  Is there any way in which I get the caller function name. As in :
 
  class Aclass{
 
  instanceB:Bclass;
  function a(){
  instanceB.b(this)
  }
 
  }
 
  class Bclass{
  function b(Obj){
  // How to trace function name and class name
  }
  }
 
 
  I have traced out class name by getFullyQualifiedClassName(Obj) but
 how to
  trace function name ???
 
  Please somebody guide me .. its very important for me.
 
  Regards
 

  



[flexcoders] showing last child of vbox..

2007-12-27 Thread learner
Hi all,
I have a VBox, in which i keep on adding childs (of varying height) as an
when some event is triggered...
is there any why..to display the last child which is addedi mean to set
the scrollbar position to the last by default.


Thanks in advance
PS


[flexcoders] what is wrong with the following code: datagrid ItemRenderer

2007-11-28 Thread learner
In the following code :
the last item remain selected.. can somebody help me to debug this. this is
really driving me crazy..

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=init()
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var  initDG:ArrayCollection = new ArrayCollection()
public function init(){
var a:Object = new Object();
 a.Artist = 'Pavement';
 a.Album = 'Slanted and Enchanted'
 a.Price=11.99
 a.Cover='slanted.jpg'
 initDG.addItemAt(a,0)
 initDG.addItemAt(a,1)
 initDG.addItemAt(a,2)
 initDG.addItemAt(a,3)
 myGrid.dataProvider = initDG
}



]]
/mx:Script

mx:DataGrid id=myGrid dataProvider={initDG}
variableRowHeight=true
mx:columns

mx:DataGridColumn dataField=Album
mx:itemRenderer
mx:Component
mx:Button label={data.Album}/
   mx:Component
/mx:itemRenderer
/mx:DataGridColumn

/mx:columns
/mx:DataGrid
/mx:Application

Thanks in advance
Regards


[flexcoders] Index of item in list

2007-11-25 Thread learner
I am using a list control and trying to give a alternate styles to it.
(not just alternate colors).
Hence I want to know the  index at which the current Item is going..

Is there any way to know the instance of item renderer  it's
currentIndex in List?

Something like this :

mx:List itemRenderer = myItem dataProvider ={p}/


comp myItem :

[Bindable] index:Number // index in the list.

Thanks in advance
Regards
PS


[flexcoders] alternate style of list

2007-11-22 Thread learner
Hi all,
How can set the alternate styles to list items ?

ex: something like :

.style1{

}


.style2{

}

mx:list id=mylist/

mylist.alternateStyle = [];


Re: [flexcoders] Re: lineHeight of TextArea

2007-10-15 Thread learner
yes it works !
thanks :)
i was doing some typo error

On 10/12/07, Randy Martin [EMAIL PROTECTED] wrote:

   Did you put the style in a css stylesheet or in a mx:Style block? The
 reason I ask is that I have an existing app that uses textareas, I went in
 and added the following:

 mx:TextArea leading=-5.

 I recompiled, ran the app, and the lines in the textarea were sitting
 right on top of each other, as you would expect. I then took it out of the
 mx:TextArea tag and added it to the css for the application. Same result,
 text lines sitting on top of each other.

 I tried this both in FB 2.01 and FB 3 beta 2. It works in both.

 ~randy


 --- In flexcoders@yahoogroups.com, learner [EMAIL PROTECTED] wrote:
 
  You got it right but its not working :(
 
  On 10/12/07, Randy Martin [EMAIL PROTECTED] wrote:
  
   I assume you mean the space between the lines? If that's what you
 mean,
   you can do this:
  
   TextArea {
   leading: -2;
   }
  
   ~randy
  
   --
   *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 *On
   Behalf Of *learner
   *Sent:* Friday, October 12, 2007 6:15 AM
   *To:* flexcoders@yahoogroups.com
   *Subject:* [flexcoders] lineHeight of TextArea
  
   Is there any way by which i can reduce the lineHeight of the textArea?
  
   Regards
   PS
  
  
   No virus found in this outgoing message.
   Checked by AVG.
   Version: 7.5.488 / Virus Database: 269.14.8/1064 - Release Date:
   10/11/2007 3:09 PM
  
  
  
 

  



[flexcoders] Re: [flex_india:3558] Re: Objects over socket and AMF encoding

2007-10-05 Thread learner
Thanks Malik,

Requirement is urgent. and we I had settled down on sending the string and
retrieving the string from server .
But your answer gives me hope..it will be great if u can make the concept
available. I will always prefer object serialization over any string
exchange.


Thanks  a ton
Regards
PS



On 10/4/07, smalik [EMAIL PROTECTED] wrote:


 Until and unless you have a deserializer on java side, it will not
 work. Try sending your object as XML or String or something like that.

 You can also manually serialize your class into a byte array (meaning
 writing byte by byte) and then manually deserialize on the java side
 (reading byte by byte).

 When I started building my application, I faced the same problem, and
 knowing that AMF is a proprietary encoding and Red5 etc will use a
 reverse engineered version which could potentially run into copy
 right legal hassles, I had to build my own custom serialization
 protocol on similar terms with AMF and java serialization.

 One of these days, I am planning to donate it as open source and
 create a google project for it, it's just that it requires some
 polishing. If your requirement is urgent and nothing else works out
 for you, let me know.


 Regards,
 Sandeep

 On Oct 4, 2:21 pm, learner [EMAIL PROTECTED] wrote:
  Hi all,
  I am trying to send Objects over socket connection from flex client to
  java..basically I want  to set up the push channel.
  i figured out that i need to user AMF -encoding on java side to read
  actionscript object.
  I am trying to look at the RMTP package of the red5 server..but not
 getting
  much clue..
  Can somebody point me to that ?
  at IFBN I saw that Thed Patrick  has written something for it,,but only
 mxml
  file is available there . no java code ..
 
  Thanks  Regards
  PS


 --~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups
 Flex India Community group.
 To post to this group, send email to [EMAIL PROTECTED]
 To unsubscribe from this group, send email to
 [EMAIL PROTECTED]
 For more options, visit this group at
 http://groups.google.com/group/flex_india?hl=en
 -~--~~~~--~~--~--~---




[flexcoders] Objects over socket and AMF encoding

2007-10-04 Thread learner
Hi all,
I am trying to send Objects over socket connection from flex client to
java..basically I want  to set up the push channel.
i figured out that i need to user AMF -encoding on java side to read
actionscript object.
I am trying to look at the RMTP package of the red5 server..but not getting
much clue..
Can somebody point me to that ?
at IFBN I saw that Thed Patrick  has written something for it,,but only mxml
file is available there . no java code ..

Thanks  Regards
PS


Re: [flexcoders] Problem with FB3

2007-10-03 Thread learner
thanks Alex got it!
I had the default.swf which was compiled  to default.swf when i was using
FB2...
after compiling it again..i got it working!
Thanks


On 10/3/07, Alex Harui [EMAIL PROTECTED] wrote:

Sounds like you have to recompile the resource bundles.

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *learner
 *Sent:* Tuesday, October 02, 2007 10:13 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Problem with FB3

  Hi all,
 I am trying to migrate my application from FB3 beta 1 - air beta 1 to FB3
 beta2 - air beta 2
 and whenever i am trying to run this application after making changes to
 tha app.xml I am getting following error...
 please please please help...Its really becoming a complete show stopper
 for me.

 The error is :

 ArgumentError: Error #1063: Argument count mismatch on
 mx.resources::ResourceManager/http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBundles
 (). Expected 3, got 2.
 at mx.core::FlexModuleFactory/private::installCompiledResourceBundles
 ()
 at mx.core::FlexModuleFactory/private::docFrameHandler()

 Regards
 PS

  



[flexcoders] adding img tag to TextArea

2007-10-03 Thread learner
Hi All,
I am trying  to assign  html Text to the textArea
Wheneve I try to do some thing like

[Bindable]myText =  This is img src='images/default/emoticons/2.gif'/

mx:TextArea  htmlText={myText} /

It inserts one \n before it displays the images that is image is displayed
in the next line .. can somebody suggest me the   work around for it ?

Regards
PS


Re: [flexcoders] adding img tag to TextArea

2007-10-03 Thread learner
oops!
then how do we create a chat window where.. user constantly sends the
messages..with smilies?
do we have to use mx:HTMLmx:htmlText//mx:HTML
???

On 10/3/07, Daniel Freiman [EMAIL PROTECTED] wrote:

   From the livedocs (
 http://livedocs.adobe.com/flex/201/langref/flash/text/TextField.html):

 In general, an image embedded in a text field appears on the line
 following the img tag. However, when the img tag is the first
 character in the text field, the image appears on the first line of the text
 field.

 I'm pretty sure there's no way to change this.

 - Dan Freiman


 On 10/3/07, learner [EMAIL PROTECTED] wrote:
 
Hi All,
  I am trying  to assign  html Text to the textArea
  Wheneve I try to do some thing like
 
  [Bindable]myText =  This is img
  src='images/default/emoticons/2.gif'/
 
  mx:TextArea  htmlText={myText} /
 
  It inserts one \n before it displays the images that is image is
  displayed in the next line .. can somebody suggest me the   work around for
  it ?
 
  Regards
  PS
 
 
  



[flexcoders] Problem with FB3

2007-10-02 Thread learner
Hi all,
I am trying to migrate my application from FB3 beta 1 - air beta 1 to FB3
beta2 - air beta 2
and whenever i am trying to run this application after making changes to tha
app.xml I am getting following error...
please please please help...Its really becoming a complete show stopper for
me.

The error is :

ArgumentError: Error #1063: Argument count mismatch on
mx.resources::ResourceManager/http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBundles().
Expected 3, got 2.
at mx.core::FlexModuleFactory/private::installCompiledResourceBundles()
at mx.core::FlexModuleFactory/private::docFrameHandler()

Regards
PS


[flexcoders] scale nine

2007-09-27 Thread learner
Hi all,

I am trying to use the assets from the my own swf to skin flex components
just as done in sample skin files from adobe and  have  also studied the
fla templates  from http://www.scalenine.com/.
but the problem I am facing to skin the components with rounded corner.
The article form 
http://www.adobe.com/devnet/flex/articles/flex_skins_04.html; adobe says
that when we are using the rounded corner assets from swf, u will have to
align grids to corners, etc etc.
I am not understanding exactly what they mean.
Only aligning grid will work or do I have to specify in css also  something
like :

Button
{
disabledSkin: Embed
   (Embed(source=/Styles/asessts/felixStyle.swf, symbol=RollOverEventItem);
scaleGridLeft=4,
scaleGridTop=4,
scaleGridRight=78,
scaleGridBottom=18);

}


Can somebody point me in right direction. If they mean that only aligning
the gird in fla is enough..then what exactly I have to do in flash file?

Regards
PS.


Re: [flexcoders] Re: scale nine

2007-09-27 Thread learner
Thanks Juan!

That helped a lot

Regards
PS

On 9/27/07, scalenine [EMAIL PROTECTED] wrote:

   Here's another article that might help:

 http://www.adobe.com/devnet/flex/quickstart/embedding_assets/

 When using Flash assets you can either set the scale9 grids in Flash
 or you can do it in the Embed in your CSS. I usually use Flash and set
 the grids in Flash as well. You can edit the scaleGrid by editing the
 symbol, but make sure when you make the symbol you check the box that
 says something like Use 9scale guides.

 Working with rounded corners you'll want to set the left scaleGrid
 right after the end of the top left curve, for the right scaleGrid set
 it right before the top right curve starts, for the top scaleGrid set
 it right after the top left and top right vertical curve ends, and for
 the bottom scaleGrid set it before the bottom left and bottom right
 vertical curves start. The artwork inside that box or boundaries
 will be the content that stretches, while everything outside of it
 will not.

 Here's a snippet from LiveDocs that has good visuals of what I'm
 talking about:

 livedocs.adobe.com/flex/2/docs/0976.html

 Hope that helps.

 Juan
 scalenine.com
 degrafa.com


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, learner
 [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I am trying to use the assets from the my own swf to skin flex
 components
  just as done in sample skin files from adobe and have also
 studied the
  fla templates from http://www.scalenine.com/.
  but the problem I am facing to skin the components with rounded corner.
  The article form 
  http://www.adobe.com/devnet/flex/articles/flex_skins_04.html; adobe says
  that when we are using the rounded corner assets from swf, u will
 have to
  align grids to corners, etc etc.
  I am not understanding exactly what they mean.
  Only aligning grid will work or do I have to specify in css also
 something
  like :
 
  Button
  {
  disabledSkin: Embed
  (Embed(source=/Styles/asessts/felixStyle.swf,
 symbol=RollOverEventItem);
  scaleGridLeft=4,
  scaleGridTop=4,
  scaleGridRight=78,
  scaleGridBottom=18);
 
  }
 
 
  Can somebody point me in right direction. If they mean that only
 aligning
  the gird in fla is enough..then what exactly I have to do in flash file?
 
  Regards
  PS.
 

  



[flexcoders] state enter /exit

2007-09-20 Thread learner
Hi All,
I observed that the creationComplete event of the compoent  is fired
everytime the state of the component is changed.

Ex:

mx:Canvas
creationComplete= init() xmlns:mx=http://www.adobe.com/2006/mxml; 

mx:Script
   public function init(){
   // some action

   }
/mx:Script

mx:states
mx:State name=NormalState
mx:AddChild 
mx:Panel
 /mx:AddChild 

mx:State name=rollOverState basedOn=NormalState
mx:AddChild position=lastChild 
  mx:Button  /
/mx:State
/mx:states

mx:Canvas

if i change the state of this  compoenet ... the creation complete gets
fired everytime
is there any work arround to avoid this ??

Regards
PS


Re: [flexcoders] state enter /exit

2007-09-20 Thread learner
It is getting destroyed and re-created.but the intialization variables
that are kept on
init() ..are getting initialized again and again...
how to avoid that..


On 9/20/07, Alex Harui [EMAIL PROTECTED] wrote:

You sure the Canvas isn't getting destroyed and re-created?


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *learner
 *Sent:* Thursday, September 20, 2007 1:25 AM
 *To:* flexcoders@yahoogroups.com; Flex India Community
 *Subject:* [flexcoders] state enter /exit



 Hi All,
 I observed that the creationComplete event of the compoent  is fired
 everytime the state of the component is changed.

 Ex:

 mx:Canvas
 creationComplete= init() xmlns:mx= http://www.adobe.com/2006/mxml; 

 mx:Script
public function init(){
// some action

}
 /mx:Script

 mx:states
 mx:State name=NormalState
 mx:AddChild 
 mx:Panel
  /mx:AddChild 

 mx:State name=rollOverState basedOn=NormalState
 mx:AddChild position=lastChild 
   mx:Button  /
 /mx:State
 /mx:states

 mx:Canvas

 if i change the state of this  compoenet ... the creation complete gets
 fired everytime
 is there any work arround to avoid this ??

 Regards
 PS






[flexcoders] Dynamic class name

2007-09-18 Thread learner
Hi all,
How can we instantiate the object of the class when class name is dynamic.

What I am trying to implement is something like this:

var classArr= [mxmlcomp1, mxmlcomp2 ...] // array of class name

(for var i:int=0;iclassArr.length;i++)
{
 var compObj = new classArr[i]   // something like this. I am not sure, is
this the way we can do it?
}

suggestions would be great help.

Regards
PS


Re: [flexcoders] Dynamic class name

2007-09-18 Thread learner
Cool , Thanks

On 9/18/07, Alex Harui [EMAIL PROTECTED] wrote:

getDefinitionByName


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *learner
 *Sent:* Monday, September 17, 2007 11:28 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Dynamic class name



 Hi all,
 How can we instantiate the object of the class when class name is dynamic.

 What I am trying to implement is something like this:

 var classArr= [mxmlcomp1, mxmlcomp2 ...] // array of class name

 (for var i:int=0;iclassArr.length;i++)
 {
  var compObj = new classArr[i]   // something like this. I am not sure, is
 this the way we can do it?
 }

 suggestions would be great help.

 Regards
 PS

  



Re: [flexcoders] asdocs for as3 and ant files

2007-09-17 Thread learner
yeah got that ...
Thanks ..
I can not build asdocs using the build files..but .. just curious.. why
those files are there?
Can you please share ur knowledge?

Regards
Mayur



On 9/17/07, Stephen Gilson [EMAIL PROTECTED] wrote:

   Hi,

 When you open the Help in FlexBuilder, do you see an entry for the doc
 called Adobe Flex 3.0 Help?

 Under that should be an entry for Adobe(r) Flex(tm) 3 Language
 Reference.

 You cannot build the ASDoc for yourself using the build.xml file in
 \moxie\asdoc.

 Stephen


 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of learner
 Sent: Monday, September 17, 2007 1:47 AM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] asdocs for as3 and ant files

 Hi All,
 I am trying to access asdocs , but its not there in my flexbuilder's
 help.

 I tried and search in the flex installation directory.I found a folder
 asdocs here :
 C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\asdoc\

 I found the index.hml in template folder inside asdoc directory..but
 .page not found is displayed when I open the it.
 I see one build.xml  in asdoc directory ..after running this ant
 script it gives me a build fail error.

 I see one more ant file in the framework directory of installation (here
 C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\frameworks\)

 Can some body please explain me for what these build.xmls' are there and
 what is the use...and also where can I find the asdocs for the as3
 clasess.

 Thanks in advance.
 Regards
 PS

  



[flexcoders] asdocs for as3 and ant files

2007-09-16 Thread learner
Hi All,
I am trying to access asdocs , but its not there in my flexbuilder's help.

I tried and search in the flex installation directory.I found a folder
asdocs
here  :
C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\asdoc\

I found the index.hml in template folder inside asdoc directory..but .page
not found is displayed when I open the it.
I see one build.xml  in  asdoc directory ..after running this ant script
it gives me a build fail error.

I see one more ant file in the framework directory of installation (here
C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\frameworks\)

Can some body please explain me for what these build.xmls' are there and
what is the use...and also where can I find the asdocs for the as3 clasess.

Thanks in advance.
Regards
PS


Re: [flexcoders] Showing item roll over color in a data grid manually

2007-05-29 Thread learner

use the hitData object of the ChartItemEvent class

sample is as follows :


?xml version=1.0?
!-- Simple example to demonstrate the PieChart control. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.collections.ArrayCollection;
   import mx.charts.events.ChartItemEvent;
   [Bindable]
   private var medalsAC:ArrayCollection = new ArrayCollection( [
   { Country: USA, Gold: 35, Silver:39, Bronze: 29 },
   { Country: China, Gold: 32, Silver:17, Bronze: 14 },
   { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]);

   private function displayGold(data:Object, field:String,
index:Number, percentValue:Number):String {
   var temp:String= (  + percentValue).substr(0,6);
   return data.Country + :  + '\n' + Total Gold:  + data.Gold +
'\n' + temp + %;
   }
   private function rollOverp(evt:ChartItemEvent){
   dg.selectedIndex =evt.hitData.chartItem.index
   }
   ]]
   /mx:Script

   mx:PieChart id=chart height=334 width=374
   showDataTips=true dataProvider={medalsAC}  x=21 y=10
themeColor=#804000   itemRollOver=rollOverp(event) 
   mx:series
   mx:PieSeries labelPosition=callout field=Gold
labelFunction=displayGold/
   /mx:series
   /mx:PieChart
   mx:DataGrid  id =dg dataProvider={medalsAC} x=441 y=323/
/mx:Application

Regards
PS ε

On 5/26/07, Sandeep Malik [EMAIL PROTECTED] wrote:


  Guys,

We are having a data grid and a pie chart which show the same data.
What we want is when user does a mouse over (or item roll over)
over a wedge in pie chart, then the corresponding row in data grid
should also show a itemRollOver color and vice versa.

Any suggestions will be appreciated.

Regards,
Sandeep

 



Re: [flexcoders] compiling java classes for flex data services

2007-05-28 Thread learner

Yes ! you are correct!
I got that working after  some brainstorming.
Thanks !

Regards
PS ε




On 5/29/07, Dimitrios Gianninas  [EMAIL PROTECTED]
wrote:


  You need to add the flex-messaging.jar to your IDE's classpath. The jar
is located in the WEB-INF/lib folder I believe.

Dimitrios Gianninas
Optimal Payments Inc.


-Original Message-
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf
of learner
Sent: Sun 5/27/2007 4:29 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] compiling java classes for flex data services

I have trying the sample examples for the flex data service and following
the CRM samples .

I could write good value object class in both AS and JAVA , and also the
class to communicate with database(my-sql in my case).

but while looking at the EmployeeAssembler.java in the sample and tried to
modify to suit my needs
I am getting following error

samples\crm\EmployeeAssembler.java:21package flex.data does not exist
import
flex.data.ChangeObject;

samples\crm\EmployeeAssembler.java:22package flex.data does not exist
import
flex.data.DataSyncException;

samples\crm\EmployeeAssembler.java:23package flex.data does not exist
import
flex.data.DataServiceTransaction;

samples\crm\EmployeeAssembler.java:23 package flex.data does not exist
import flex.data.assemblers.AbstractAssembler;

Can any body put light on this?

Regards http://www.google.com/reader/shared/01613629439254822020
PS ?

--
WARNING
---
This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use
of the intended recipient. No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message. If
you are not the intended recipient of this message, or if you have received
it in error, you should immediately stop reading this message and delete it
and all attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients is
unauthorized and may be unlawful. If you have received this e-mail in error,
please notify the sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés
au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation. Si vous
n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
que toutes ses pièces jointes, de votre système. La lecture, la
distribution, la copie ou tout autre usage du présent message ou de ses
pièces jointes par des personnes autres que le destinataire visé ne sont pas
autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
électronique par erreur, veuillez en aviser l'expéditeur.

 





[flexcoders] compiling java classes for flex data services

2007-05-27 Thread learner

I have trying the sample examples for the flex data service and following
the CRM samples .

I could write good value object class in both AS and JAVA , and also the
class to communicate with database(my-sql in my case).

but while looking at the EmployeeAssembler.java in the sample and tried to
modify to suit my needs
I am getting following error

samples\crm\EmployeeAssembler.java:21package flex.data does not exist import
flex.data.ChangeObject;

samples\crm\EmployeeAssembler.java:22package flex.data does not exist import
flex.data.DataSyncException;

samples\crm\EmployeeAssembler.java:23package flex.data does not exist import
flex.data.DataServiceTransaction;

samples\crm\EmployeeAssembler.java:23 package flex.data does not exist
import flex.data.assemblers.AbstractAssembler;

Can any body put light on this?

Regards http://www.google.com/reader/shared/01613629439254822020
PS ε


[flexcoders] Few Questions

2007-05-21 Thread learner

I have some questions which are bit confusing for me.
It will great if  you guys can put your thoughts on it and help me get the
clear picture:


* When we create a application in flex builder to use fsd we get these two
options , what is the differance :

   1) Compile application locally in Flex Builder

   2) Compile application on the server when the page is viewed.

* Whats the difference between httpservice and webservice

*What is the default channel in  remoting-congif.xml file and
what exactly  following thing mean :

   my-amf

   my-secure-amf

   my-rtmp

   my-polling-amf

*When exactly we use

 -data-management-config.xml,

 -messaging-config.xml,

- remoting-config.xml,

-services-config.xml

while specifying  the destination of our dataservice object.


Regards
PS  ε


[flexcoders] Apollo SDK

2007-03-20 Thread learner

Hi All,
I have a very basic question about getting started with Apollo.

I downloaded Apollo SDK zip and checked out its content. It contains :
1) bin - all exe's to compile from command line
2) Frame work - swc's and action script classes
3) lib - contains jar
4) runtime - dll's
5) samples - sample application
6) src - contains application

Now, I am using flex builder to develop  flex application. After reading
document , I understood that i need to install the Apollo extension for flex
builder.
But can I not work with flex builder and Apollo sdk? and how do I install
apollo runtime from SDK zip.
Is it neccessary to download Apollo extension for flex builder if i want to
develop Apollo application.
Can I not make to work by copy pasting the files form Apollo SDK  to
particular locations or something like that.

Please guide me.

Regards
Ps


Re: [flexcoders] Apollo SDK

2007-03-20 Thread learner

I downloaded the Apollo SDK before downloading the plugin for flexbuilder.
Now thinking that it should be possible to work with Apollo SDK  and
flexbuilder
by copying the files from Apollo SDK to flex sdk in corresponding directory
and replacing the
mxmlc.jar in libs and version (as mentioned in documentation) .
It may require changing the configuration xmls. Not sure what exactly i need
to change.
Just wondering that it must be possible.  I may be wrong though.
Thanks for your  reply. please clarify my doubts.

Regards
Mayur



On 3/20/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Tuesday 20 Mar 2007, learner wrote:
 I downloaded Apollo SDK zip and checked out its content. It contains :
..
 Now, I am using flex builder to develop  flex application.

You don't want the SDK download then, you want the plugin.

 and how do I install
 apollo runtime from SDK zip.

You can't - separate download.

 Is it neccessary to download Apollo extension for flex builder if i want
to
 develop Apollo application.

No, you can use the SDK or FB or Eclipse (with and without the FB plugin).

 Can I not make to work by copy pasting the files form Apollo SDK  to
 particular locations or something like that.

You could in principle make a directory watcher that launched the SDK
compiler
when files in a directory changed.
Why would you want that though ?

--
Tom Chiverton
Helping to continually visualize out-of-the-box bandwidth
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.




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






Re: [flexcoders] Apollo SDK

2007-03-20 Thread learner

Thanks !
downloading the plugin .

Thanks once again for quick Replies.

Regards


On 20 Mar 2007 03:46:42 -0700, Andrew Muller [EMAIL PROTECTED]
wrote:


  Mayur

You'll save yourself a lot of time and grief if you were to download
and install the plugin for Flex Builder, especially if you're already
using Flex Builder for development.

It's made to work seemlessly...

Andrew


On 20/03/07, learner [EMAIL PROTECTED] peacocksea%40gmail.com
wrote:






 I downloaded the Apollo SDK before downloading the plugin for
flexbuilder.
 Now thinking that it should be possible to work with Apollo SDK and
 flexbuilder
 by copying the files from Apollo SDK to flex sdk in corresponding
directory
 and replacing the
 mxmlc.jar in libs and version (as mentioned in documentation) .
 It may require changing the configuration xmls. Not sure what exactly i
need
 to change.
 Just wondering that it must be possible. I may be wrong though.
 Thanks for your reply. please clarify my doubts.

 Regards
 Mayur




 On 3/20/07, Tom Chiverton  [EMAIL PROTECTED]tom.chiverton%40halliwells.com
wrote:
  On Tuesday 20 Mar 2007, learner wrote:
   I downloaded Apollo SDK zip and checked out its content. It contains
:
  ..
   Now, I am using flex builder to develop flex application.
 
  You don't want the SDK download then, you want the plugin.
 
   and how do I install
   apollo runtime from SDK zip.
 
  You can't - separate download.
 
   Is it neccessary to download Apollo extension for flex builder if i
want
 to
   develop Apollo application.
 
  No, you can use the SDK or FB or Eclipse (with and without the FB
plugin).
 
   Can I not make to work by copy pasting the files form Apollo SDK to
   particular locations or something like that.
 
  You could in principle make a directory watcher that launched the SDK
 compiler
  when files in a directory changed.
  Why would you want that though ?
 
  --
  Tom Chiverton
  Helping to continually visualize out-of-the-box bandwidth
  On: http://thefalken.livejournal.com
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in
England
 and Wales under registered number OC307980 whose registered office
address
 is at St James's Court Brown Street Manchester M2 2JF. A list of members
is
 available for inspection at the registered office. Any reference to a
 partner in relation to Halliwells LLP means a member of Halliwells LLP.
 Regulated by the Law Society.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named above
and
 may be confidential or legally privileged. If you are not the addressee
you
 must not read it and must not use any information contained in nor copy
it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 8008.
 
  For more information about Halliwells LLP visit www.halliwells.com.
 
 
 
 
  --
  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
 
 
 
 





--
--
Andrew Muller
http://www.webqem.com

linkedin: http://www.linkedin.com/pub/1/151/905

 



Re: [flexcoders] duplicate function definition

2007-02-13 Thread learner

Thanks I got that :)

On 2/13/07, Stembert Olivier (BIL) [EMAIL PROTECTED]
wrote:


   Hi Mayur,

When you define a member variable, a setter method is internally created.

You have to rename your variable vbox and define it as private.

private var _vbox:VBox;

public function set vbox(val:VBox):void
{
_vbox = val;
}

Rgds,

Olivier

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *learner
*Sent:* Tuesday, February 13, 2007 7:54 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] duplicate function definition



Hello all,
When I am doing this :

 public var vbox:VBox;

 public function set vbox(val):void{
   vbox = val
   }


Why am i getting a error like *Duplicate function definition *when i am
defining my set vbox function.

Regards
Mayur

 -

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-



-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-







[flexcoders] duplicate function definition

2007-02-12 Thread learner

Hello all,
When I am doing this :

public var vbox:VBox;

public function set vbox(val):void{
  vbox = val
  }


Why am i getting a error like *Duplicate function definition *when i am
defining my set vbox function.

Regards
Mayur


Re: [flexcoders] functionality to open n close a panel?

2007-02-06 Thread learner

try this :



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

   mx:Resize id=expand target={img}  heightTo=350/
   mx:Resize id=contract target={img} heightTo=60/

   mx:Panel title=Resize Effect Example width=534 height=350
   paddingTop=10 paddingLeft=10 paddingRight=10
paddingBottom=10 id=img



   /mx:Panel
   mx:Button label=Expand click=expand.end(); expand.play();/
   mx:Button label=Contract click=contract.end(); contract.play();/
/mx:Application
Regards,
Ps

On 2/6/07, sanjaypmg [EMAIL PROTECTED] wrote:


  Hi All,

Please hav a look on the following mentioned URL:

http://www.asfusion.com/apps/homelocator/

There is a panel on the right hand side with MAP which have been
created using Yahoo API... there is one more panel on the same with
SrollBar. this panel has an pointed arrow in the middle of the
scroll bar.

When you click on this left pointed arrow, a panel opens and left
poninted arrow converts to right pointd arrow.

when you click on the right pointed arrow, the same panel closes and
right pointed arrow changes to left pointed arrow.

I want to create the same panel in my flex application...

Can anyone help me to create the same feature or if someone has the
same example, can he/she share the same with this group?

It would be a great help...

thanks,
Sanjay sharma





Re: [flexcoders] Re: Minimum size of a Flex 2.0 application

2006-11-07 Thread Flex Learner



By flash file generator, i meant that i use Flex Builder tolayout all the controls (texboxes, images etc) , events , logic etc- since i'm comfortable with mxml (obviously, i'm not a legacy Flash developer) and the generated swf is hosted on a HTML page. There's no Flex server. Seems like core AS is the only way out.

On 11/6/06, bjorn.schultheiss [EMAIL PROTECTED] wrote:





120kb is about the smallest possible filesize for any flex app basedoff mx:Applicationthat figure will rise quickly though. 120kb is a 
flex app with nothingBjorn 
--- In flexcoders@yahoogroups.com, Flex Learner 
[EMAIL PROTECTED] wrote: Hi,  What's the lightest Flex 2.0 app we can get ? . An empty app withjust an mx:Application tag weighs in at 120 KB. It'll be great if there are any
 compiler options we can use to minimize this further. I'm using Flexas a Flash file generator that'll be embedded into a HTML page - and theentire page weight must be around 200 to 300KB. 
 Let me know if Flex-generated swf is a viable option for me.  Thanks, Joseph
 

__._,_.___





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

  




__,_._,___



Re: [flexcoders] Changing mx:Application's width during runtime

2006-11-06 Thread Flex Learner



Hi All,

I've a similar requirement, but can we change the size of application using AS ? . Any ideas for changing the size of application when modules (Flex 2 Beta) are loaded . As observed, we can change the Flash size using js in the embedded HTML


Thanks
Joseph
On 10/30/06, Igor Costa [EMAIL PROTECTED] wrote:





PilThe problem it's that Flex changed your Application width size at run time, but also, when you tested in the browser it's still at same time due to the HTML it's still with Application width fixed.
So, How to change that? Open your html-template base and change the _javascript_ in there, to 100%.Than, when you try again it will fix this issue. so, try to resize and it will happens the changes.
Regards.
On 10/29/06, pilby1 [EMAIL PROTECTED]
 wrote: 





When I run my application where mx:Application's width is 640x480, by default, it shows a gradient blue square depicting those screen dimensions.I then try to dynamically change the width to 1024 in actionscript when 
a button is clicked. I had trace'd the application width after changing it, and it does say the width is now 1024, but the screen still shows 640x480. How can I make the application refresh to reflect 
this new change in width? I tried invalidateSize(), invalidateProperties, but neither works.Thanks.
-- Igor Costawww.igorcosta.com 
 

__._,_.___





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

  




__,_._,___



Re: [flexcoders] Minimum size of a Flex 2.0 application

2006-11-06 Thread Flex Learner



Thanks for your responses. I tried optimize=true, but that does not reduce the size (remains at 120K). Robert, I did not understand your reply. I do want to use Flex with mx:application (or it's AS equivalent) as the root tag.

On 10/31/06, Tom Chiverton [EMAIL PROTECTED] wrote:
On Tuesday 31 October 2006 00:06, Flex Learner wrote: compiler options we can use to minimize this further. I'm using Flex as a
--optimize=true ?--Tom ChivertonHelping to competently foster eigth-generation contentThis email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF.A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.
CONFIDENTIALITYThis email is intended only for the use of the addressee named above and may be confidential or legally privileged.If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents.If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.
For more information about Halliwells LLP visit www.halliwells.com.--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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] Minimum size of a Flex 2.0 application

2006-10-30 Thread Flex Learner



Hi,

What's the lightest Flex 2.0 app we can get ? . An empty app with just an mx:Application tag weighs in at 120 KB. It'll be great if there are any compiler options we can use to minimize this further. I'm using Flex as a Flash file generator that'll be embedded into a HTML page - and the entire page weight must be around 200 to 300KB.


Let me know if Flex-generated swf is a viable option for me.

Thanks,
Joseph


__._,_.___





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

  




__,_._,___



Re: [flexcoders] gloablToLocal , localToGlobal

2006-10-18 Thread learner




yeah
I understand that they return point , a new point which contains modified x,y


Hence we do like :

SomeNewPoint :Point = globalToLocal(oldPoint);

In my problem, my combination of globalToLocal and 
localToGlobal was getting wrong.
what i did is:


desiredPoint = Vboxid.globalToLocal (TemplateArea.localToGlobal (oldPoint))


and it worked. Thanks ! 


Regards,

Ps



On 10/17/06, Gordon Smith [EMAIL PROTECTED] wrote:







Are you aware that globalToLocal() and localToGlobal() don't modify the point you pass in? They return the modified point.

 

- Gordon





From: [EMAIL PROTECTED]
ups.com [mailto:flexcoders@
yahoogroups.com] On Behalf Of learnerSent: Monday, October 16, 2006 1:56 AM
To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] gloablToLocal , localToGlobal







Hello all,



Ihave a application where i have one canvas -- TemplateArea , a Vbox -- Vboxid in TemplateArea and ImageComponent inside that Vboxid


on mouseDownEvent i am drawing the rectangle on Canvas TemplateArea, What i need to do if i have to track the co-ordinates with respect to Vboxid. 


Itried with gloablToLocal and localToGlobal..but not working



Can any one please suggest me what exactllyI need to do?



Regards

Ps.




 

__._,_.___





--
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] adding btuttons to panle titel bar

2006-10-18 Thread learner




Hi all,

I am using panel component and I want to add some button to the title bar of this panel component, How should I achieve this?

Please suggest me the way.

Regards,
Ps



__._,_.___





--
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] Erro:The supplied index is out of bounds.

2006-10-18 Thread learner




Hello all,

Till now I came across this error lots of time. But I am not able to figure out its cause in the following senario.


I get this out of bounds. error when I do the following thing 


for (var i:int=lastSlot; i  slot; i++) { var image:productthumbnail =
thumbcontainer.getChildAt(i); }

 

but the error got removed when do the following:

 var childArr:Array= thumbcontainer.getChildren() for (var i:int=lastSlot; i  slot; i++)
 { var image:productthumbnail =childArr[i] as productthumbnail }


Can anybody tell me whats the reason behind it?
Regards
Ps


__._,_.___





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

  




__,_._,___



Re: [flexcoders] Stack Overflow in swf to swf include

2006-10-18 Thread Flex Learner



Thanks Pete. Adding makeObjectsBinadble=false solved the problem. Yes, the service returns a simple XML generated from a cfm file.
userPrefdevicephone/device/userPref
I'm curious to know how this is related to the stack overflow. Does makeObjectsBinadble=false restrict any functionality ? - since i need the included swf to communicate with the loader swf and also with the hosting HTML page (via some callbackjs fns).

-Joseph

On 10/18/06, Peter Farland [EMAIL PROTECTED] wrote:






I could reproduce your problem- I'll log a bug on your behalf.

Out of curiosity, does your HTTPService return XML? If so, any chance you could show us what the XML looks like? As a work around for now you could either set makeObjectsBinadble=false on your HTTPService tag or set resultFormat=e4x or resultFormat=text (instead of the default, which is object).


Thanks,
 Pete



From: [EMAIL PROTECTED]ups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Flex LearnerSent: Tuesday, October 17, 2006 2:45 PMTo: [EMAIL PROTECTED]
ups.comSubject: [flexcoders] Stack Overflow in swf to swf include




HI,

I'm trying to include an swf file (generated from FlexBuilder) within another swf file using mx:image. The included file is located on a different server, and the include works fine. Now, if a HTTPService is added to the included file, the call fails with the following exception. 


Error: Error #1023: Stack overflow occurred.at Object$/Object::_hasOwnProperty()at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()at Object$/Object::_hasOwnProperty().at Object$/Object::_hasOwnProperty() is repeated many times. 


It appears like an infinite loop that's triggered internally and terminates with a stack overflow.

The mxml for the caller swf (located on www.abc.com) is as follows : 
==

?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 layout=horizontal mx:Script![CDATA[import flash.system.Security;
Security.allowDomain(www.xyz.com);
]]/mx:Scriptmx:Image source=http://www.xyz.com/test/Loadee.swf
 x=300 y=350 showBusyCursor=true/ /mx:Application
mxml for the called swf (Loadee.swf) 
==
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 layout=horizontal width=270 height=54 creationComplete= getState.send();mx:Text text=Initial Text x=300 y=300 id=thisText/
mx:HTTPService url=""  href="http://www.xyz.com/ServersideScript.do" target="_blank">http://www.xyz.com/ServersideScript.do  id=getState result=chgState()/
mx:Script![CDATA[function chgState() {// ideally do something with the HTTP response here,thisText.text= HTTP call succeeded;}]]/mx:Script

/mx:Application
Any inputs here will be greatly helpful. 
Thanks,
Joseph


 

__._,_.___





--
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: adding btuttons to panle titel bar

2006-10-18 Thread learner



yeah ,
I too did the same way, 
put panel inside the canvas and give canvas the shadow where as no shadow to panel inside it.
and use this as a seperate coutom component.Its a dirty way but worked.

:)


On 10/18/06, learner [EMAIL PROTECTED] wrote:


Hi all,

I am using panel component and I want to add some button to the title bar of this panel component, How should I achieve this? 

Please suggest me the way.

Regards,
Ps



__._,_.___





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

  




__,_._,___



Re: [flexcoders] Why am I getting an error accessing null property

2006-10-18 Thread learner



try tracing the model.currentUser.firstName, trace(model.currentUser.firstName)
and then put this vaule in textfield like:
textid.text = model.currentUser.firstName
and then 
Alert.Show(textid.text);

I had come acrros the same problem.
where i could value into trace but while passing to some function , it was null
Itried with this and it worked..It sound wired but its true...

Regards,
PS
On 10/16/06, boy_trike [EMAIL PROTECTED] wrote:





[Bindable]public var model:ModelLocator = ModelLocator.getInstance();private function processLoginResults( event : ResultEvent) : void {model.currentUser = new Users();model.currentUser = event.result
 as Users;Alert.show(model.currentUser.firstName);}snippet of code above, I get the error in the Alert.show function. What am I doing wrong?ThanksBruce Lomasky
 

__._,_.___





--
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] Stack Overflow in swf to swf include

2006-10-17 Thread Flex Learner



HI,

I'm trying to include an swf file (generated from FlexBuilder) within another swf file using mx:image. The included file is located on a different server, and the include works fine. Now, if a HTTPService is added to the included file, the call fails with the following exception.


Error: Error #1023: Stack overflow occurred.at Object$/Object::_hasOwnProperty()at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()at Object$/Object::_hasOwnProperty().at Object$/Object::_hasOwnProperty() is repeated many times.


It appears like an infinite loop that's triggered internally and terminates with a stack overflow.

The mxml for the caller swf (located on www.abc.com) is as follows : 
==

?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=horizontal
mx:Script![CDATA[import flash.system.Security;
Security.allowDomain(www.xyz.com);
]]/mx:Scriptmx:Image source=http://www.xyz.com/test/Loadee.swf x=300 y=350 showBusyCursor=true/ 
/mx:Application
mxml for the called swf (Loadee.swf) 
==
?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=horizontal width=270 height=54 creationComplete=
getState.send();mx:Text text=Initial Text x=300 y=300 id=thisText/mx:HTTPService url="" href="http://www.xyz.com/ServersideScript.do">http://www.xyz.com/ServersideScript.do
 id=getState result=chgState()/mx:Script![CDATA[function chgState() {// ideally do something with the HTTP response here,thisText.text=
HTTP call succeeded;}]]/mx:Script
/mx:Application
Any inputs here will be greatly helpful. 
Thanks,
Joseph

__._,_.___





--
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] gloablToLocal , localToGlobal

2006-10-16 Thread learner



Hello all,

Ihave a application where i have one canvas -- TemplateArea , a Vbox -- Vboxid in TemplateArea and ImageComponent inside that Vboxid
on mouseDownEvent i am drawing the rectangle on Canvas TemplateArea, What i need to do if i have to track the co-ordinates with respect to Vboxid. 
Itried with gloablToLocal and localToGlobal..but not working

Can any one please suggest me what exactllyI need to do?

Regards
Ps.



__._,_.___





--
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] addChild RemoveChild

2006-10-16 Thread learner




Hello all ,
Is there any way by which i can decide if the any component contains a particular component or not.
something like this : 

box:: VBox = new VBox();
box.width = 100;box.height = 100;

if(Vboxid[box]== undefined){
  Vboxid.addChild( box );}
 box.x = Vboxid.mouseX;  box.y = Vboxid.mouseY;


Igetrun timeerror at if condition ,The simplestwayI thought was to keep one Boolean and toggle it ..But I think there should be someother way

Please tell me what is correct way todo it?
Regards
Ps


__._,_.___





--
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: Including one swf file from another (crossdomain)

2006-10-16 Thread Flex Learner



Answering my own question..the solution was to add : 

Security.allowDomain(www.xyz.com); in the loader file . But i'm now having other issues when the include happens.
On 10/11/06, Flex Learner [EMAIL PROTECTED] wrote:

Hi,

Can anyone please post an example of including an swf from another swf – where the 2 files are in different domains. 

The simplest way I could think is to have an mx:Image source=
www.xyz.com/a.swf / - but this gives a security issue  stating : 

SecurityError: Error #2047: Security sandbox violation: parent: 
http://abc.com/abc.swf cannot access http://xyz.com/xyz.swf.
 at flash.display::DisplayObject/get parent()
 at mx.managers::SystemManager/::executeCallbacks() 
 at mx.managers::SystemManager/::frameEndHandler() 

I've http://xyz.com/
crossdomain.xml (and abc.com too - just trying my luck) as : 


?xml version=1.0?!-- http://www.foo.com/
crossdomain.xml --cross-domain-policy allow-access-from domain=*/ /cross-domain-policy
Any pointers will really be helpful, since i'm not able to figure what i'm missing conceptually. 
The scenario is to provide a lightweight swf to our clients, and have it call the main swf - which is hosted on our company domain - and the lite swf can handle timeout/retry etc.
Thanks!
Joseph





__._,_.___





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

  




__,_._,___



Re: [flexcoders] Re: sprites in MXML

2006-10-16 Thread learner



this is good explanation by Lee,

http://www.cynergysystems.com/blogs/page/keunlee?entry=flex_2_beta_3_sprites
Regards
Ps
On 10/12/06, newLearner learner [EMAIL PROTECTED] wrote:








Thanks Dan,
I understood how to use sprites; I would take some more time to perfectly understand how 
its been used in mxml to get more advantage, In Flash-As3 applications, there is no problem using it.
But with mxml I really need to understand its tricks to use it. For now your example was a great help 

Thanks and Regards

fl

- Original Message From: Daniel Freiman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]ups.comSent: Wednesday, 11 October, 2006 7:45:20 PMSubject: Re: [flexcoders] Re: sprites in MXML


I think one of us is confused, but I think it's me. In any event, I can't find a way to add a sprite using pure mxml, but until someone shows us what we're missing, the actionscript is pretty easy:?xml version= 
1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml
 creationComplete=init() mx:Script  ![CDATA[ public function init():void {  var sprite:Sprite = new Sprite(); // replace Sprite (both places) with class you want to add 
  // drawing a rectangle on the sprite to prove adding the sprite worked in this example  sprite.graphics. beginFill( 0);  
sprite.graphics. drawRect( 0,0,200,400) ;  holder.addChild( sprite); // add the sprite to any UIComponent } ]] /mx:Script
 mx:UIComponent id=holder //mx:ApplicationAdditionally, intead of creating a Flex Project, you could create an Actionscript Project which I think uses Sprite as it's base class instead of Application. 
- Dan
On 10/11/06, flexlearner flexlearner@ yahoo.co. in
 wrote: 
Yes, Thanks Dan. I perfectly understand that Sprite class shouldextend UIComponent class to get added in UIcomponent by AddChildmethod. But its actually vice versa. But then How should try all
those samples which comes in Flex builder help and extends the class sprite.What I believe is if they have given example there should be some wayto use it also... How should I try all those code samples that is
given in flex builder help.Regardsfl--- In [EMAIL PROTECTED] ups.com
, Daniel Freiman [EMAIL PROTECTED] .wrote: Containers require all children to be a UIComponent (or maybe it'simplement IUIComponent) .I think all other objects that can have children 
require chlidren to be DisplayObjects.So you can add a DisplayObject as achild to a Sprite, UIComponent, DisplayObjectContai ner, etc.I mostly workwith Actionscript so I don't know about puting Sprites in MXML, but if 
you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner flexlearner@ ... wrote:   No not in canvas only..
   My general question is if at all we have to use sprites in ourmxml  file..how should we do it.. what will the approach   Regards,  fl  
  --- In [EMAIL PROTECTED] ups.com, flex-guitar flex@ wrote:
 I've had trouble with this as well. I ended up putting a   UIComponent in the   Canvas and adding children to it instead of to the Canvas.  
   I don't know why Canvas throws an error, since it is a subclassof   UIComponent, but it does.  HTH,   Derek -Original Message-
   From: [EMAIL PROTECTED] ups.com   [mailto:
[EMAIL PROTECTED] ups.com]On   Behalf Of newLearner learner   Sent: Tuesday, October 10, 2006 8:10 AM   To: 
[EMAIL PROTECTED] ups.com   Subject: [flexcoders] sprites in MXML Hello ,   I have a very basic question 
   Please can somebody tell me how should I use sprites in my  mxmlfile   i get errors everytime i try to something like:Canvas_instance. addChild( spriteInstace) 
 Please tell me the way out  - - - - - ---   
   --   Find out what India is talking about on - Yahoo! Answers India   Send FREE SMS to your friend's mobile from Yahoo! Messenger  Version 8. Get   it NOW 
 __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. 
   http://www.eset. com 
  --  Flexcoders Mailing List   FAQ:
http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt  Search Archives: 
http://www.mail- archive.com/ flexcoders%40yahoogroups. com  Yahoo! Groups Links
   --Flexcoders Mailing ListFAQ: 
http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: 
http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! 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:
 flexcoders-digest@ yahoogroups. commailto:flexcoders-fullfeat [EMAIL PROTECTED] .com
* To unsubscribe from this group, send an email to:
flexcoders-unsubscr [EMAIL PROTECTED] com* Your use of Yahoo! Groups is subject to:
http

[flexcoders] Re: addChild RemoveChild

2006-10-16 Thread learner



that helped ,
Thanks a lot 
Regards
Ps 
On 10/16/06, learner [EMAIL PROTECTED] wrote:


Hello all ,
Is there any way by which i can decide if the any component contains a particular component or not.
something like this : 

box:: VBox = new VBox();
box.width = 100;box.height = 100;

if(Vboxid[box]== undefined){
  Vboxid.addChild( box );}
 box.x = Vboxid.mouseX;  box.y = Vboxid.mouseY;


Igetrun timeerror at if condition ,The simplestwayI thought was to keep one Boolean and toggle it ..But I think there should be someother way 

Please tell me what is correct way todo it?
Regards
Ps


__._,_.___





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

  




__,_._,___



Re: [flexcoders] Re: sprites in MXML

2006-10-14 Thread newLearner learner



Thanks Dan,
I understood how to use sprites; I would take some more time to perfectly understand how 
its been used in mxml to get more advantage, In Flash-As3 applications, there is no problem using it.
But with mxml I really need to understand its tricks to use it. For now your example was a great help 

Thanks and Regards

fl

- Original Message From: Daniel Freiman [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, 11 October, 2006 7:45:20 PMSubject: Re: [flexcoders] Re: sprites in MXML

I think one of us is confused, but I think it's me. In any event, I can't find a way to add a sprite using pure mxml, but until someone shows us what we're missing, the actionscript is pretty easy:?xml version=" 1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml" creationComplete="init()" mx:Script  ![CDATA[ public function init():void {  var
 sprite:Sprite = new Sprite(); // replace "Sprite" (both places) with class you want to add   // drawing a rectangle on the sprite to prove adding the sprite worked in this example  sprite.graphics. beginFill( 0);  sprite.graphics. drawRect( 0,0,200,400)
 ;  holder.addChild( sprite); // add the sprite to any UIComponent } ]] /mx:Script mx:UIComponent id="holder" //mx:ApplicationAdditionally, intead of creating a Flex Project, you could create an Actionscript Project which I think uses Sprite as it's base class instead of Application. - Dan
On 10/11/06, flexlearner flexlearner@ yahoo.co. in wrote:
Yes, Thanks Dan. I perfectly understand that Sprite class shouldextend UIComponent class to get added in UIcomponent by AddChildmethod. But its actually vice versa. But then How should try allthose samples which comes in Flex builder help and extends the class sprite.What I believe is if they have given example there should be some wayto use it also... How should I try all those code samples that isgiven in flex builder help.Regardsfl--- In [EMAIL PROTECTED] ups.com, "Daniel Freiman" [EMAIL PROTECTED] .wrote: Containers require all children to be a UIComponent (or maybe it'simplement IUIComponent) .I think all other objects that can have children require chlidren to be DisplayObjects.So you can add a
 DisplayObject as achild to a Sprite, UIComponent, DisplayObjectContai ner, etc.I mostly workwith Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner flexlearner@ ... wrote:   No not in canvas only..   My general question is if at all we have to use sprites in ourmxml  file..how should we do it.. what will the approach   Regards,  fl--- In [EMAIL PROTECTED] ups.com, "flex-guitar" flex@ wrote: I've had trouble with this as well. I ended up putting a   UIComponent in the   Canvas and adding children to it
 instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclassof   UIComponent, but it does.  HTH,   Derek -Original Message-   From: [EMAIL PROTECTED] ups.com   [mailto:[EMAIL PROTECTED] ups.com]On   Behalf Of newLearner learner   Sent: Tuesday, October 10, 2006 8:10 AM   To: [EMAIL PROTECTED] ups.com   Subject: [flexcoders] sprites in MXML   
  Hello ,   I have a very basic questionPlease can somebody tell me how should I use sprites in my  mxmlfile   i get errors everytime i try to something like:Canvas_instance. addChild( spriteInstace)  Please tell me the way out  - - - - - ---  --   Find out what India is talking about on - Yahoo! Answers India   Send FREE SMS to your friend's mobile from Yahoo! Messenger  Version 8. Get   it NOW  __ NOD32
 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system.http://www.eset. com   --  Flexcoders Mailing List   FAQ:http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt  Search Archives: http://www.mail- archive.com/ flexcoders%40yahoogroups. com  Yahoo! Groups Links   
--Flexcoders Mailing ListFAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! 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: flexcoders-digest@ yahoogroups. commailto:flexcoders-fullfeat [EMAIL PROTECTED] .com* To unsubscribe from this group, send an email to:flexcoders-unsubscr [EMAIL PROTECTED] com* Your use of Yahoo! Groups is subject to:http://docs. yahoo.com/ info/terms/ 

	

	
		 
Find out what India is talking about on  - Yahoo! Answers India  
S

[flexcoders] cropping image...with Copypixels

2006-10-12 Thread learner



hello ,
Iam trying to do cropping of image which is dynamically assigned to a vbox componentand i have used following Code:var bd : BitmapData = new BitmapData(h,w);var m1 : Matrix = new Matrix();bd.draw
 (target, m1);var puzzlePieceBmp:BitmapData = new BitmapData(target.width,target.height);puzzlePieceBmp.copyPixels(bd, new Rectangle(x1,y1,h,w), new Point(0, 0));imageid.source = puzzlePieceBmp;this is not working properly, The cropped portion is not of desired height and width, Can any body suggest me how the Rectangle parameter works for copypixesl method.
Its been more than 2 days i am working on this part and i tired searching all forum ..reading live docs about copypixelsbut no gain please guide me in this. Or any one can point me to some URL where the cropping in flex is demonstrated.
I would be very gratefulRegardsPS

__._,_.___





--
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] Including one swf file from another (crossdomain)

2006-10-11 Thread Flex Learner



Hi,

Can anyone please post an example of including an swf from another swf – where the 2 files are in different domains. 


The simplest way I could think is to have an mx:Image source="www.xyz.com/a.swf" / - but this gives a security issue
 stating : 

SecurityError: Error #2047: Security sandbox violation: parent: http://abc.com/abc.swf
 cannot access http://xyz.com/xyz.swf.
 at flash.display::DisplayObject/get parent()
 at mx.managers::SystemManager/::executeCallbacks()

 at mx.managers::SystemManager/::frameEndHandler()


I've http://xyz.com/crossdomain.xml (and 
abc.com too - just trying my luck) as : 


?xml version=1.0?!-- http://www.foo.com/crossdomain.xml --cross-domain-policy allow-access-from domain=*/
/cross-domain-policy
Any pointers will really be helpful, since i'm not able to figure what i'm missing conceptually. 
The scenario is to provide a lightweight swf to our clients, and have it call the main swf - which is hosted on our company domain - and the lite swf can handle timeout/retry etc.
Thanks!
Joseph





__._,_.___





--
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] sprites in MXML

2006-10-10 Thread newLearner learner



Hello ,  I have a very basic question  Please can somebody tell me how should I use sprites in my mxmlfile  i get errors everytime i try to something like:Canvas_instance.addChild(spriteInstace)Please tell me the way out  Regards  Mayur 
	

	
		 
Find out what India is talking about on  - Yahoo! Answers India  
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
__._,_.___





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

  




__,_._,___



RE: [flexcoders] var in Loop

2006-10-10 Thread newLearner learner



You are right,  I tried this way. dynamic public class Templateobjects{  // class structure   }  and in mxml filelistobj = new Templateobjects();// adding new property dynamically to classlistobj.newporp = "NewProp"for(var i in listobj){ trace("Object found");  }  and i could get the trace only once.  --  Sorry to ask more question but i could not understand that why it is so.  In flash , when I create movieClips in side a movieClip   and run a for in loop on parent movieclip, i can get all the
 children and the variables declarein parent movieClip.  Does theConcept of (for in loop ) is changed in Flex??Please help me to clear my conceptsThanks in advance  Regards  Mayur  Dirk Eismann [EMAIL PROTECTED] wrote:  No, this does not work. for var in loops only work on dynamicallyattached properties (i.e.
 your class is dynamic or you loop over theprops of an untyped Object instance)To introspect a typed class instance use describeType(), it returns ane4x XML structure that describes the type (hmm, probably the reason whythey named it that way)Dirk. -Original Message- From: [EMAIL PROTECTED]ups.com  [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of flexlearner Sent: Monday, October 09, 2006 12:54 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] var in Loop  hello all, I have a action script class which is bindable and  instantiates objects of other class as :--
 --  [Bindable] public class Templateobjects {  public var template1 = new sampleTemplate1();  public var template2 = new sampleTemplate2();  public function Templateobjects(){  // constructor function  }  }   -- -- and in my mxml file i import this class as and trying to access this  variables in this class, as:  import Templateobjects; public var templatelistObject:Templateobjects = new Templateobjects();  for(var i:Objects in Templateobjects){ trace(" found objects"); }   i am not getting the trace... please tell me how should i go about this.
  Regards Flex Learner-- 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  
	

	
		 
Find out what India is talking about on  - Yahoo! Answers India  
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW 
	

	
		 
Find out what India is talking about on  - Yahoo! Answers India  
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
__._,_.___





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

  




__,_._,___