RE: [flexcoders] Does the [SWF] meta tag really support widthPercect and heightPercent attribute?

2009-02-13 Thread Alex Harui
If you use %, the size gets set to 500x375 and %'s get pushed into the html 
template.  I'd just set usePreloader=false and show your own mx:ProgressBar.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dave Kong
Sent: Friday, February 13, 2009 5:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Does the [SWF] meta tag really support widthPercect and 
heightPercent attribute?


link here http://www.actionscript.org/forums/showthread.php3?p=834470
seems to suggest that in addition to pixel width, I can specify
percent value (similar to how I do it in html flash wrapper). But I
can't get it to work. Is it really supported?

[SWF(widthPercent="100", heightPercent="100")]

Background:

The reason I need it is to force a nested swf's size to match its
parent container (loader?) width/height, so that the preloader is
shown centered with respect to the parent application.

Right now, while loading, the nested swf seems to be at a size of
500x325 (not sure where that value came from). And it is not center
aligned wrt the parent. And I end up with a preloader that is off center.

Any suggestions?



RE: [flexcoders] Memory consumption. Part 2. ItemRenderers

2009-02-13 Thread Alex Harui
ListItemRenderer.as adds and removes its icon in commitProperties.  If it is 
the same 3 icons, and they are small, they should be embedded and then you 
don't need the Image class and will save lots of memory that way too.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dmitri Girski
Sent: Friday, February 13, 2009 7:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Memory consumption. Part 2. ItemRenderers


Hi Everybody,

I have identified the memory consumption problem within the custom
ItemRenderer. This IR is derived from UIComponent and besides other
elements has 3 Image members to display 3 possible icons.
The grid has around 200 elements, so 200 IRs are created at the
startup. Each IR creates 3 Images in createChildren() method with
source = null. Source is set in the commitProperties() method, when we
know the data. In reality only 10-15 IRs are displaying icons, the
rest are just waisting the space (600 instances of Image consumes
aroung 700Kb according to Profiler).

My question is how can I improve the efficiency of this IR?

Is this possible to create Image instances on demand, not in the
createChildren() method?

I tried to create and destroy Images in commitProperties() according
to data, but then I bumped into the problem that updateDisplayList()
for the IR could be called with inconsistent data. I.e. data says that
we need icons, but the the Image objects is null, they have not been
created yet by commitProperties()/set data() for this instance.
Is this a recycling feature that the order of
commitProperties()/updateDIsplayList() are not guaranteed? Or I have
overseen something?

Thanks in advance!

Regards,
Dmitri.



[flexcoders] Memory consumption. Part 2. ItemRenderers

2009-02-13 Thread Dmitri Girski
Hi Everybody,

I have identified the memory consumption problem within the custom 
ItemRenderer. This IR is derived  from UIComponent and besides other 
elements has 3 Image members to display 3 possible icons.
The grid has around 200 elements, so 200 IRs are created at the 
startup. Each IR creates 3 Images in createChildren() method with 
source = null. Source is set in the commitProperties() method, when we 
know the data. In reality only 10-15 IRs are displaying icons, the 
rest are just waisting the space (600 instances of Image consumes 
aroung 700Kb according to Profiler).

My question is how can I improve the efficiency of this IR? 

Is this possible to create Image instances on demand, not in the 
createChildren() method? 

I tried to create and destroy Images in commitProperties() according 
to data, but then I bumped into the problem that updateDisplayList() 
for the IR could be called with inconsistent data. I.e. data says that 
we need icons, but the the Image objects is null, they have not been 
created yet by commitProperties()/set data() for this instance.
Is this a recycling feature that the order of 
commitProperties()/updateDIsplayList() are not guaranteed? Or I have 
overseen something?


Thanks in advance!

Regards,
Dmitri.







[flexcoders] Does the [SWF] meta tag really support widthPercect and heightPercent attribute?

2009-02-13 Thread Dave Kong
link here http://www.actionscript.org/forums/showthread.php3?p=834470
seems to suggest that in addition to pixel width, I can specify
percent value (similar to how I do it in html flash wrapper). But I
can't get it to work.  Is it really supported?

[SWF(widthPercent="100", heightPercent="100")]

Background:

The reason I need it is to force a nested swf's size to match its
parent container (loader?) width/height, so that the preloader is
shown centered with respect to the parent application.

Right now, while loading, the nested swf seems to be at a size of
500x325 (not sure where that value came from). And it is not center
aligned wrt the parent. And I end up with a preloader that is off center.

Any suggestions?



RE: [flexcoders] AIR Application is not Appearing

2009-02-13 Thread Alex Harui
Did they try uninstalling and re-installing?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Ashish Verma
Sent: Friday, February 13, 2009 7:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR Application is not Appearing


Hello All,

I created an AIR Application which was previously based on AIR 1.0 and I am 
some more features in that application and compiling with the update of Flex 3 
and targeting it for AIR 1.5. After making air file I am putting it onto sever 
to access by users. But when any user trying to run it after uploading it's not 
displaying any window only showing task-bar button and doing noting. When I use 
the task-bar context to move command I can see the dotted rectangle on the 
desktop. I also checked for the installation folder of the application in 
C:\Documents and Settings\username\Local Settings but there was no any folder 
for it.

Please help me out.


Best,
Ashish



RE: [flexcoders] Re: tilelist HighlightIndicator effects

2009-02-13 Thread Alex Harui
Looks ok to me.  If you're using FlexBuilder, clean the project and re-build.  
If that doesn't work, try a simple subclass with only that override

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of stinasius
Sent: Friday, February 13, 2009 7:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: tilelist HighlightIndicator effects


hi i have tried everything you have said but i get an error. here is
the code i use for clearing the highlightIndicator. the error i get is
"method marked override must override another method"

override protected function clearHighlightIndicator(indicator:Sprite,
itemRenderer:IListItemRenderer):void{
if(highlightIndicator)
Tweener.addTween(indicator,({alpha:0, time:1,
transition:"easeOutCubic",
onComplete:function():void{Sprite(highlightIndicator).graphics.clear()}}));



RE: [flexcoders] Is there a 'token' equivalent to use with the URLLoader class?

2009-02-13 Thread Ryan Graham

> var myloader:URLLoader = new URLLoader();
> myloader.addEventListener(Event.COMPLETE, loadHandler);
> var token:AsyncToken = myloader.load(new URLRequest("getdata.com")); 
> token.artist = "artist";

 

Maybe use a global dictionary with each instance of the loader as the
key:

 

public var dic:Dictionary = new Dictionary();

...

dic[myLoader] = "artist";

 

then in the COMPLETE handler, look it up:

 

var token:String = dic[URLLoader(event.target)];

 

HTH,

Ryan_._,___



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: {Disarmed} [flexcoders] "AIR update framework" only works to update AIR file?

2009-02-13 Thread Kevin Benz
You need to be aware of the two paths to update Air applications. The UI
approach, one where you configure the UI of the update process through a
XML file and an API approach where you take programmatic control of the
update. Ultimately the goal of the UpdaterUI was to update the Air file
alone (and then start it)so if you need to move files around, update
SQLite or something like that, you are going to have to do what you need
in Actionscript. The update framework  in no-way has the capabilities of
commercial installers. Can't call external processes, directly move
files around, etc

 

Since the updater mechanisms are running in the old code, not the new
Air file, it can't know what needs to updated, meaning you are going to
end up writing code in your app's normal bootstrap process that
determines that an update has occurred and makes the necessary changes.
There are a number of references about determining whether it's the
first-run or not so adaptation of those techniques is probably worth
looking at.

 

In our apps, we have the current client version in the SQLite database.
If the running client does not match that version number, we call
whatever update process we need and on completion update SQLite to the
current running client version id.

KFB

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of handitan
Sent: Friday, February 13, 2009 1:02 PM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} [flexcoders] "AIR update framework" only works to
update AIR file?

 

Hi all,

I have been reading articles about using "AIR update framework."
To my understanding this only works to update AIR file??

I hope I am wrong...
Since my AIR app is using Flex-only swcs and is loading Flex-only 
modules.

Anybody can shed a light on this? 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is

believed to be clean. 

<><>

Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread - -
Thank you very much Tracy it worked :)

-David





From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 5:49:57 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.


styleName is not a property, it is a style. You have to use setStyle();

Also, debug your loop, make sure you have a good refrence to the button.

Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 5:31 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Hi Tracy, I can get it to work as a var, but when I try to access the Array, I 
get: 
Cannot access a property or method of a null object reference.

This is my array:
 
[Bindable]
private var buttons:Array = new Array("test001" , "test002", "test003");
 
for each(var target:String in buttons)
{
this[target] .styleName = linkButton; 
}
 
Thanks again! :)

 _ _ _ _
From: Tracy Spratt 
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 5:15:22 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Yes, sailorsea, see that link.
 
Also, be careful of terminology.  I said "store references".  This is not the 
same as storing "IDs".
 
You can do this using ids, with bracket notation.  
var sId:String = "test001";
this[sId].setStyle( );  //should work
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Ryan Graham
Sent: Friday, February 13, 2009 5:08 PM
To: flexcod...@yahoogro ups.com
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hey now, you knew this was in the docs... :D
 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=03_ Language_ 
and_Syntax_ 16.html
 
HTH,
Ryan
 
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I created an array of all the IDs of my linkButtons, can you show me 
an example how to loop in the array?
 
Thanks.
 
 _ _ _ _
From: Tracy Spratt 
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Store references to each in an Array, then loop over the array.
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 
 _ _ _ _
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;







private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton} " when a linkButton is clicked?

Thank you.
 
This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.





  

RE: [flexcoders] Is there a 'token' equivalent to use with the URLLoader class?

2009-02-13 Thread Tracy Spratt
What does the class reference say about that method?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: Friday, February 13, 2009 5:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a 'token' equivalent to use with the
URLLoader class?

 

Is there a 'token' equivalent to use with the URLLoader class?

I need to keep track of my events.

I can use token with an HttpService.send() request, how do I use it
with URLLoader?

ex:

var myloader:URLLoader = new URLLoader();
myloader.addEventListener(Event.COMPLETE, loadHandler);
var token:AsyncToken = myloader.load(new URLRequest("getdata.com")); 
token.artist = "artist"; 

I get:
1067: Implicit coercion of a value of type void to an unrelated type
mx.rpc:AsyncToken.





RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread Tracy Spratt
styleName is not a property, it is a style.  You have to use setStyle();

Also, debug your loop, make sure you have a good refrence to the button.

Tracy Spratt 
Lariat Services 
Flex development bandwidth available 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of - -
Sent: Friday, February 13, 2009 5:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Hi Tracy, I can get it to work as a var, but when I try to access the Array, I 
get: 
Cannot access a property or method of a null object reference.

This is my array:
 
[Bindable]
private var buttons:Array = new Array("test001", "test002", "test003");
 
for each(var target:String in buttons)
{
this[target].styleName = linkButton; 
}
 
Thanks again! :)


From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 5:15:22 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Yes, sailorsea, see that link.
 
Also, be careful of terminology.  I said "store references".  This is not the 
same as storing "IDs".
 
You can do this using ids, with bracket notation.  
var sId:String = "test001";
this[sId].setStyle( );  //should work
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 

From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Ryan Graham
Sent: Friday, February 13, 2009 5:08 PM
To: flexcod...@yahoogro ups.com
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hey now, you knew this was in the docs... :D
 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=03_ Language_ 
and_Syntax_ 16.html
 
HTH,
Ryan
 
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I created an array of all the IDs of my linkButtons, can you show me 
an example how to loop in the array?
 
Thanks.
 

From: Tracy Spratt 
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Store references to each in an Array, then loop over the array.
 
Tracy Spratt 
Lariat Services 
Flex development bandwidth available 

From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;







private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton} " when a linkButton is clicked?

Thank you.
 
This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.





[flexcoders] Is there a 'token' equivalent to use with the URLLoader class?

2009-02-13 Thread luvfotography
Is there a 'token' equivalent to use with the URLLoader class?

I need to keep track of my events.

I can use token with an HttpService.send() request, how do I use it
with URLLoader?

ex:

var myloader:URLLoader = new URLLoader();
myloader.addEventListener(Event.COMPLETE, loadHandler);
var token:AsyncToken = myloader.load(new URLRequest("getdata.com"));
token.artist = "artist";  


I get:
 1067: Implicit coercion of a value of type void to an unrelated type
mx.rpc:AsyncToken.



Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread - -
Hi Tracy, I can get it to work as a var, but when I try to access the Array, I 
get:Cannot access a property or method of a null object reference.
This is my array:

[Bindable]private
 {
}
 
Thanks again! :)foreach(vartarget:String inbuttons)this[target].styleName = 
linkButton; varbuttons:Array = newArray("test001", "test002", "test003");




From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 5:15:22 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.


Yes, sailorsea, see that link.
 
Also, be careful of terminology.  I said “store references”.  This is not the 
same as storing “IDs”.
 
You can do this using ids, with bracket notation.  
var sId:String = “test001”;
this[sId].setStyle( );  //should work
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Ryan Graham
Sent: Friday, February 13, 2009 5:08 PM
To: flexcod...@yahoogro ups.com
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hey now, you knew this was in the docs… :D
 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=03_ Language_ 
and_Syntax_ 16.html
 
HTH,
Ryan
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I created an array of all the IDs of my linkButtons, can you show me 
an example how to loop in the array?
 
Thanks.
 



From:Tracy Spratt 
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Store references to each in an Array, then loop over the array.
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;







private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton} " when a linkButton is clicked?

Thank you.
 
This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system. 



  

Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread - -
Hi Ryan, thanks :) I knew that... :) 
but the problem I'm having is that the values in my array are Strings. so the 
following gives me an error... 

The values are the IDs of the linkButtons that I would like to target 

[Bindable]privatevarbuttons:Array = newArray("test001", "test002", "test003");
{

I get the following error: Cannot create property styleName on String.
 
I understand the problem but I don't know how to set my array to object or IDs 
???
 
Thanks for your help!
 
-David




From: Ryan Graham 
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 5:08:17 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.


Hey now, you knew this was in the docs… :D
 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=03_ Language_ 
and_Syntax_ 16.html
 
HTH,
Ryan
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
Hi Tracy, I created an array of all the IDs of my linkButtons, can you show me 
an example how to loop in the array?
 
Thanks.
 



From:Tracy Spratt 
To: flexcod...@yahoogro ups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
Store references to each in an Array, then loop over the array.
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;







private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton} " when a linkButton is clicked?

Thank you.
 
This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.
 
foreach(varbutton inbuttons)    button.styleName = linkButton; }


  

RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread Tracy Spratt
Yes, sailorsea, see that link.

 

Also, be careful of terminology.  I said "store references".  This is
not the same as storing "IDs".

 

You can do this using ids, with bracket notation.  

var sId:String = "test001";

this[sId].setStyle();  //should work

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Friday, February 13, 2009 5:08 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

Hey now, you knew this was in the docs... :D

 

http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_
Syntax_16.html
 

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

Hi Tracy, I created an array of all the IDs of my linkButtons, can you
show me an example how to loop in the array?

 

Thanks.

 



From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Store references to each in an Array, then loop over the array.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcod...@yahoogro ups.com   [mailto:flexcoders@
yahoogroups. com] On Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;







private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton} " when a linkButton is clicked?

Thank you.

 

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.





RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread Ryan Graham

Hey now, you knew this was in the docs... :D

 

http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_
Syntax_16.html

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Friday, February 13, 2009 2:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

Hi Tracy, I created an array of all the IDs of my linkButtons, can you
show me an example how to loop in the array?

 

Thanks.

 



From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

Store references to each in an Array, then loop over the array.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcod...@yahoogro ups.com   [mailto:flexcoders@
yahoogroups. com] On Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;







private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton} " when a linkButton is clicked?

Thank you.

 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Locale Resource Problem Compiling Automation with Maven

2009-02-13 Thread Brad Keck
 I am trying to compile my code with automation libraries so that it
can be tested with silk.  Currently, I am able to do this without 
trouble in Flex Builder using this command line argument: 
-include-libraries "...\automation.swc" "...\automation_agent.swc" 
"...\FlexTechDomain.swc"  (... represents the full path on my local
machine)   However, we have continuous integration using a maven build
so I am  trying to get it to build that way.  When I do so, however, I
am  getting these error messages:  [ERROR] Unable to resolve resource
bundle "automation" for  locale "en_US". [ERROR] Unable to resolve
resource bundle "automation_agent" for  locale "en_US".  Any clue why
this is?  Here are the dependencies in my pom: 
com.adobe.Flex.sdk   
automation_agentswc   
3.0.0internal  
   com.adobe.Flex.sdk   
automationswc   
3.0.0   internal  
   com.adobe.Flex.sdk   
FlexTechDomainswc   
3.0.0internal  Thank
you,-Brad Keck


Re: [flexcoders] Re: Idiots guide to crossdomain.xml

2009-02-13 Thread Nate Beck
That is the most down to earth explanation of cross domain policies that I
have ever read.

Thanks Sunil!

On Fri, Feb 13, 2009 at 1:38 PM, sunild99  wrote:

>   If your SWF is hosted on server A, and it needs to access data from
> servers B, C, and D
> then you need to put a cross domain policy file on servers B, C, and D that
> permit access
> from server A.
>
> Note, these servers (A,B,C,D) are different servers ... the names are not
> aliases. It kind of
> sounded like one of your host names is an alias for the other.
>
> The cross domain policy file you deploy on each web server should allow
> access from
> server A, since that is where your SWF is hosted:
>
> 
>
> Also, newer versions of the Flash player will complain if your cross domain
> policy file does
> not have a "site-control" tag. Here's a simple one I use:
>
>
> 
>
> Which means there's only one policy file for my site.
>
> Adobe has some good resources on their site:
> http://www.adobe.com/devnet/security/
>
> Check out the articles titled "Cross-domain policy file specification" and
> "Understanding
> security changes in Flash Player 10".
>
> Regards,
> Sunil
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Re: Idiots guide to crossdomain.xml

2009-02-13 Thread sunild999999
If your SWF is hosted on server A, and it needs to access data from servers B, 
C, and D 
then you need to put a cross domain policy file on servers B, C, and D that 
permit access 
from server A.

Note, these servers (A,B,C,D) are different servers ... the names are not 
aliases. It kind of 
sounded like one of your host names is an alias for the other.

The cross domain policy file you deploy on each web server should allow access 
from 
server A, since that is where your SWF is hosted:



Also, newer versions of the Flash player will complain if your cross domain 
policy file does 
not have a "site-control" tag.  Here's a simple one I use:



Which means there's only one policy file for my site.

Adobe has some good resources on their site:
http://www.adobe.com/devnet/security/

Check out the articles titled "Cross-domain policy file specification" and 
"Understanding 
security changes in Flash Player 10".

Regards,
Sunil



[flexcoders] sprite.startDrag() - Only one sprite is draggable at a time :-(

2009-02-13 Thread Mic
Requirements are for a draggable "calculator" pop-up that looks like a
calculator i.e. the calculator image is the frame/border - irregular
shape - no rectangularPanel/TitleWindow. I created 2 components, the
calculator Image and an "inner" Panel component with calculator
functionality, titleBar drag and resizing.
   The size of the outer calculator Image is bound to the resize of
the inner Panel e.g.

var watcherSetter:ChangeWatcher = 
BindingUtils.bindSetter(calculatorImageWidth,sPanel,"width");

and this works perfectly. So I coded the synchronized drag of the 2
components with a titleBarMoveHandler() on the alpha=0 TitleBar of the
inner Panel:

this.startDrag();
calculatorImage.startDrag();

and then found the fine print - sprite.startDrag() - Only one sprite
is draggable at a time. So somebody gets left behind :-)

Can google no examples of this kind of thing, so any pointers
appreciated. TIA,

Mic.



Re: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread - -
Hi Tracy, I created an array of all the IDs of my linkButtons, can you show me 
an example how to loop in the array?

Thanks.





From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Friday, February 13, 2009 4:11:05 PM
Subject: RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.


Store references to each in an Array, then loop over the array.
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.
 
I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton' ;

[Bindable]
private var linkButtonOff: String = 'linkButtonOff' ;







private function setType(result: Event):void
{
result.currentTarge t.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton} " when a linkButton is clicked?

Thank you.



  

Re: [flexcoders]Does Flex 4 Gumbo support styles and other questions

2009-02-13 Thread dorkie dork from dorktown
Addendum:

6. If I have a skin in Flex Builder and I want to edit it visually, how
would I do that? For example, in some of the design tools, if I have a
movieclip or a component when I double click on it takes me into the sub
view where I can edit the graphics and parts that make up that movieclip /
component. If I double click on a Gumbo component in Flex Builder how does
it handle it?


RE: [flexcoders] Re: how to bubble and catch events

2009-02-13 Thread Tracy Spratt
Iv'e lost you.  If this is no longer about bubbling and catching events,
start a new thread.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stevepruitt97
Sent: Friday, February 13, 2009 1:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to bubble and catch events

 

I have bigger problems. By changing the events to standard ADD and 
REMOVE and modifying



I at least got past the compile problems. I am now trying to select 
the view choices in the ViewStack with

actionColumn.selectedIndex = 1;

But actionColumn is not visible at the top level. This is my first 
foray into embedded components and trying to inline renderers. I may 
have to break down and start customizing.

Thanks in advance.

-S







--- In flexcoders@yahoogroups.com 
, "Tracy Spratt"  wrote:
>
> That should work, the second argument in the event constructor 
makes it
> bubble.
> 
> 
> 
> I don't see your listener defined. You should do that in a function
> called on creation complete of the application:
> 
> this.addEventListener(Event.ADDED, onAction)
> 
> 
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of stevepruitt97
> Sent: Friday, February 13, 2009 12:08 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] how to bubble and catch events
> 
> 
> 
> I have the following scenario. I need to catch the click events for 
> either of the two buttons. I tried putting the event handler on the 
> DataGrid, but I'm getting an unresolved error for it. Is this even 
> possible?
> 
> Thanks in advance for any help.
> 
> -S
> 
> http://www.adobe.com/2006/mxml
 
>  > ">
> 
> 
> 
>  rowCount="5" dataProvider="{_content}" action="onAction(event)">
> 
> 
> 
> 
> 
> 
> [Event(name = "action", type 
> = "flash.events.Event")]
> 
> 
> 
> 
> 
>  click="onAction(event)"/>
>  click="onAction(event)"/>
>  
> 
> 
> 
>  >
>  headerText="Template"/>
>  headerText="Description"/>
>  headerText="Version"/>
> 
> 
> 
>





RE: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread Tracy Spratt
Store references to each in an Array, then loop over the array.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sailorsea21
Sent: Friday, February 13, 2009 4:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DYNAMIC LINKBUTTONS styleNames.

 

I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton';

[Bindable]
private var linkButtonOff:String = 'linkButtonOff';







private function setType(result:Event):void
{
result.currentTarget.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton}" when a linkButton is clicked?

Thank you.





[flexcoders]Does Flex 4 Gumbo support styles and other questions

2009-02-13 Thread dorkie dork from dorktown
I've read about and seen the presentation on Flex 4 Gumbo components but I'm
still unclear on how it works. Note: These questions pertain to Flex
Builder.

1. If I add a Gumbo component to the stage (design view) am I able to set
styles on it? Do these styles affect vector FXG graphics that already exist
in the skin file or are they drawn with the graphics object like in the halo
set, graphics.drawRectangle() etc?

2. Will Illustrator, Photoshop, Fireworks and Flash (henceforth known as
PIFF) export a FXG button skin that we can drop into Flex and have it work
or does it export FXG markup and we then connect the data?

3. Can we import a Gumbo skin into PIFF and then style or change the
graphics in the design tool and then export that back out, sans whatever
Flash Catalyst?

4. What would be a better acronym than PIFF (photoshop, illustrator,
fireworks and flash), sounds like a graphic format :P? Any other compatible
graphic tools I'm missing?

5. A few members of the Photoshop community have talked about support for
the Flash renderer in PIF (flash already has the FP renderer). This renderer
would mix with the current design tool's renderer to provide a live
design-time rendering of the Flex components and a separate property
inspector to set styles of the components. Of course, you would also be able
to work with the graphic elements as well. This would also pave the way to
allow the design tools use any of the Flex containers to aide the designer
in the layout of the design (using hbox, vbox, etc). Is there any interest
in this?


[flexcoders] "AIR update framework" only works to update AIR file?

2009-02-13 Thread handitan
Hi all,

I have been reading articles about using "AIR update framework."
To my understanding this only works to update AIR file??

I hope I am wrong...
Since my AIR app is using Flex-only swcs and is loading Flex-only 
modules.

Anybody can shed a light on this? 



[flexcoders] DYNAMIC LINKBUTTONS styleNames.

2009-02-13 Thread sailorsea21
I have a series of 3 linkButtons.
I am able to switch the styleName of a linkButton when I click on it 
as follows:

[Bindable]
private var linkButton:String = 'linkButton';

[Bindable]
private var linkButtonOff:String = 'linkButtonOff';







private function setType(result:Event):void
{
result.currentTarget.styleName = linkButtonOff;
}

How can I automatically reset all the other linkButtons styleNames 
to "{linkButton}" when a linkButton is clicked?

Thank you.



[flexcoders] Re: Problem calling a web service - error 2032

2009-02-13 Thread guy.tomer
Yep, this error doesn't give any info...

I took a look at the server side, apparently the server (Java xFire) 
was throwing an error "There must be a method name element.". 

I'm stopping the digging here since I have a work around - adding a 
dummy parameter to the method and avoiding a web service method with 
no parameters works around this annoying bug. 

I must say that this together with other bugs I encountered with Flex 
webservices makes me wonder if this is a mature technology...

G
--- In flexcoders@yahoogroups.com, "Adrian Resa Jones" 
 wrote:
>
> This is a very annoying error that appears to have a zillion 
different
> causes - all it means is that something went wrong when flex tried 
to
> execute your code - it could mean that the file was not found or it
> could mean that it bombed for some reason. 
> 
> After hunting around on the web for endless hours, I figured out 
that
> the only way to resolve this error is to debug the webservice or
> function call by typing in the url directly.
> 
> In my case, It turned out to be the simple fact that I copied over 
the
> wrong (buggy) file to my server thanks to the way that flexbuilder
> caches source code to my local host.  
> 
> --- In flexcoders@yahoogroups.com, "guy.tomer"  wrote:
> >
> > Hello,
> > 
> > I've been struggling half a day with this Error 2032 returning 
from 
> > one of the APIs in my webservice. This API already worked and 
somehow 
> > after regenerating the proxies it stopped! Finally I figured out 
the 
> > only difference between this API and the others that work is that 
this 
> > one gets no parameters... crazy as it sounds when I added a 
parameter 
> > to the API and regenerated the classes everything began to work...
> > 
> > Does anyone have an explanation? or do I have to leave this ugly 
dummy 
> > and mark it as another bug in the generated classes 
implementation...
> > 
> > Anyway - at least maybe this will save others the fight.
> > 
> > Guy
> >
>





RE: [flexcoders] How to get input language in Flex 3 app

2009-02-13 Thread Alex Harui
Check the archives.  I think that's a known issue.  Capabilities is the OS 
language version not the input language.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of bobmeyering
Sent: Friday, February 13, 2009 8:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get input language in Flex 3 app


I am using Flex Builder 3, IE 7 and windows OS (XP and 2008 server). Is
there a way to programnatically determine the current input language as
set in the "language bar"? The Capabilities class always returns "en"
even after I select Chinese ("ch") as my input language (using the
language bar).



[flexcoders] Re: Preventing Item Renderers from Inheriting Styles from Parent List Component

2009-02-13 Thread Amy
--- In flexcoders@yahoogroups.com, "Thomas, Erik"  
wrote:
>
> Hi all:
>  
> I have a custom component derived from VBox with a specific styleName.
> When used in a Repeater, or stand-alone, the styles are perfect.
>  
> However, when I use the custom component in a List by setting the
> itemRenderer property of the List component, the fonts are all wrong 
and
> the text in Button labels are getting truncated.
>  
> During debugging, I found the Flex 3 List component causes item
> renderers to inherit styles! It actually sets the styleName to the
> instance variable of the List component!
>

oops, wrong link.

Try

http://flexdiary.blogspot.com/2008/06/using-css-typeselector-with.html



[flexcoders] Re: Preventing Item Renderers from Inheriting Styles from Parent List Component

2009-02-13 Thread Amy
--- In flexcoders@yahoogroups.com, "Thomas, Erik"  
wrote:
>
> Hi all:
>  
> I have a custom component derived from VBox with a specific styleName.
> When used in a Repeater, or stand-alone, the styles are perfect.
>  
> However, when I use the custom component in a List by setting the
> itemRenderer property of the List component, the fonts are all wrong 
and
> the text in Button labels are getting truncated.
>  
> During debugging, I found the Flex 3 List component causes item
> renderers to inherit styles! It actually sets the styleName to the
> instance variable of the List component!

http://www.blogger.com/posts.g?
blogID=8847948271397805362&searchType=ALL&txtKeywords=&label=CSS



[flexcoders] Re: HTML > advice please

2009-02-13 Thread markgoldin_2000
I have been using iFrame solution. Works fine, I am using it to show 
SQL Reports.

--- In flexcoders@yahoogroups.com, "aphexyuri"  wrote:
>
> Hi All
> 
> As far as I know, we can't load complex HTML pages into a Flex
> control, but I was wondering if anybody has had experience with 
this.
> 
> Its for a dashboard app that has flex elements, but must be able to
> load full websites into specific "containers" of the dashboard.
> 
> I'm not sure what other technologies would be able to do this, Ajax,
> JavaScript?
> 
> Any suggestions would be appreciated...thanks
> 
> Yuri
>




[flexcoders] Re: [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?

2009-02-13 Thread jim.abbott45
Just as a suggestion, Why not take Maté and add Java/BlazeDS support
to it?

(OK, I admit it, I really like what I've seen of Maté so far--IMHO a
Developer could do a lot worse using another framework.)

--Jim


--- In flexcoders@yahoogroups.com, Josh McDonald  wrote:
>
> Hey guys, I have a small request:
> 
> I'd like to know what grinds your gears, and what makes you smile
about the
> Flex library, and about whatever other libraries you use on a daily
basis to
> get your work done. If you have time, please post here or to me
off-list a
> quick summary of your thoughts, some bullet points, or even a link to
> somebody else's blog posting that sums up your ideas. Anything
you've got to
> say, even if it's no more than "PureMVC ftw!", I'd like to hear it.
> 
> I have a keen interest in frameworks, and I'm planning on building
something
> that takes the best ideas I can find (and cook up) from these and my
> experiences maintaining a mostly-closed-source framework at my 9-5.
It's for
> my own apps, I'll be dog-fooding it, but it will be open source.
It's going
> to be a full-stack framework with an optional Java+Warp+BlazeDS
component,
> so if you think you've got some good ideas, or would like to help,
please
> drop me a line.
> 
> Cheers,
> 
> -Josh
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> Josh 'G-Funk' McDonald
>   -  j...@...
>   -  http://twitter.com/sophistifunk
>   -  http://flex.joshmcdonald.info/
>




[flexcoders] Re: how to bubble and catch events

2009-02-13 Thread stevepruitt97
I have bigger problems.  By changing the events to standard ADD and 
REMOVE and modifying



I at least got past the compile problems.  I am now trying to select 
the view choices in the ViewStack with

actionColumn.selectedIndex = 1;

But actionColumn is not visible at the top level.  This is my first 
foray into embedded components and trying to inline renderers.  I may 
have to break down and start customizing.

Thanks in advance.


-S







--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> That should work, the second argument in the event constructor 
makes it
> bubble.
> 
>  
> 
> I don't see your listener defined.  You should do that in a function
> called on creation complete of the application:
> 
> this.addEventListener(Event.ADDED, onAction)
> 
>  
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On
> Behalf Of stevepruitt97
> Sent: Friday, February 13, 2009 12:08 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] how to bubble and catch events
> 
>  
> 
> I have the following scenario. I need to catch the click events for 
> either of the two buttons. I tried putting the event handler on the 
> DataGrid, but I'm getting an unresolved error for it. Is this even 
> possible?
> 
> Thanks in advance for any help.
> 
> -S
> 
> http://www.adobe.com/2006/mxml
>  ">
> 
> 
> 
>  rowCount="5" dataProvider="{_content}" action="onAction(event)">
> 
> 
> 
> 
> 
> 
> [Event(name = "action", type 
> = "flash.events.Event")]
> 
> 
> 
> 
> 
>  click="onAction(event)"/>
>  click="onAction(event)"/>
>  
> 
> 
> 
>  >
>  headerText="Template"/>
>  headerText="Description"/>
>  headerText="Version"/>
> 
> 
> 
>




[flexcoders] Re: Binding Array to Effect Questions

2009-02-13 Thread flexlingie
--- In flexcoders@yahoogroups.com, "flexlingie"  wrote:
>
> I have an array that I'm dynamically updating while my application
> runs. I've declared the array bindable:
> [Bindable]
> public var myArray : Array = new Array();
> 
> Then I have a Glow effect:
>  repeatCount="0" strength="100" targets="{myArray}"
> perElementOffset="250" duration="500"
> alphaFrom="0.0" alphaTo="1.0" blurXFrom="0" blurXTo="5" blurYFrom="0"
> blurYTo="5" />
> 
> I "play" the Glow (myGlow.play()), but I'm not getting glowing. Do I
> need to pause and restart after the array changes? If I clear the
> array entirely can I just call myGlow.stop() ?
> 
> Thanks!
>

OK - I got an answer on the Adobe Flex forum and I wanted to post here
to follow up.  Arrays cannot be used in binding expressions, but
ArrayCollections can.  So I created an ArrayCollection, then set the
effect's targets attribute to ArrayCollection.source. That worked.



[flexcoders] single & double click event handling on same component

2009-02-13 Thread Michael Pelz-Sherman
I need to handle both single & double clicks on a UIComponent.

Unfortunately my single click handler is preventing the double click handler 
from executing.

I found a nice blog post that explains a workaround for this:

http://blogs.sophiacom.fr/flex/2008/08/double-click.html

Before I implement this workaround, is there a better way?

- Michael

[flexcoders] Re: Mapping complex objects to custom components with data binding?

2009-02-13 Thread Keith Hughitt
"Why do not you make a custom class and bind on this?"

Could you please give an example? I'm not entirely sure of what you mean.

Thanks!
Keith



[flexcoders] Re: Problem calling a web service - error 2032

2009-02-13 Thread Adrian Resa Jones
This is a very annoying error that appears to have a zillion different
causes - all it means is that something went wrong when flex tried to
execute your code - it could mean that the file was not found or it
could mean that it bombed for some reason. 

After hunting around on the web for endless hours, I figured out that
the only way to resolve this error is to debug the webservice or
function call by typing in the url directly.

In my case, It turned out to be the simple fact that I copied over the
wrong (buggy) file to my server thanks to the way that flexbuilder
caches source code to my local host.  

--- In flexcoders@yahoogroups.com, "guy.tomer"  wrote:
>
> Hello,
> 
> I've been struggling half a day with this Error 2032 returning from 
> one of the APIs in my webservice. This API already worked and somehow 
> after regenerating the proxies it stopped! Finally I figured out the 
> only difference between this API and the others that work is that this 
> one gets no parameters... crazy as it sounds when I added a parameter 
> to the API and regenerated the classes everything began to work...
> 
> Does anyone have an explanation? or do I have to leave this ugly dummy 
> and mark it as another bug in the generated classes implementation...
> 
> Anyway - at least maybe this will save others the fight.
> 
> Guy
>




Re: [flexcoders] HTML editor for Flex Builder 3?

2009-02-13 Thread Alan K
Download Eclipse PDT and install Flex Builder as a Plug ­in.

You will have code hinting and debugging for HTML, XML, PHP as well as other
nifty stuff.

http://www.eclipse.org/pdt/release-notes/pdt2_0.php



Alan


RE: [flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-13 Thread Tracy Spratt
I think I suggested already that you just need to debug this.  Find an
item that does not filter as you expect, step through the code til you
hit that item, then step through the code to see why the filter function
is not returning the expected value.  It will almost certainly be
obvious.

 

For us to help, we need to do that process a a thought experiment.  It
will be much easier for you do do it in the debugger.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of johndoematrix
Sent: Friday, February 13, 2009 10:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: filter arraycollection with checkbox acting
wired

 

can someone please help me out here..thanks





[flexcoders] Re: local file thumbnail preview :: possible?

2009-02-13 Thread app.developer
--- In flexcoders@yahoogroups.com, "artur_desig2dev"  wrote:
>
> nevermind.. found it:
> 
>
http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/
> 
> * thanks Juan!
>


Uhh 
Isn't that using Flex 4 (Gumbo).  How do you do it with Flex 3.2?

P



RE: [flexcoders] how to bubble and catch events

2009-02-13 Thread Tracy Spratt
That should work, the second argument in the event constructor makes it
bubble.

 

I don't see your listener defined.  You should do that in a function
called on creation complete of the application:

this.addEventListener(Event.ADDED, onAction)

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stevepruitt97
Sent: Friday, February 13, 2009 12:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to bubble and catch events

 

I have the following scenario. I need to catch the click events for 
either of the two buttons. I tried putting the event handler on the 
DataGrid, but I'm getting an unresolved error for it. Is this even 
possible?

Thanks in advance for any help.

-S

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










[Event(name = "action", type 
= "flash.events.Event")]







 















RE: [flexcoders] 3D flip effect

2009-02-13 Thread Russ Ferguson
 

Thanks for the info.

 I am getting a type error 1009 cant access properties of null objects.

I don't think there are any classes I need to import but maybe im
missing something?

 

Thanks again.

 ...russ

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Steve Mathews
Sent: Friday, February 13, 2009 10:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] 3D flip effect

 

I used this and it worked great: 
http://www.tink.ws/blog/papervision3d-effects-for-flex-source 

 

On Thu, Feb 12, 2009 at 8:23 PM, Ryan Graham 
wrote:

I believe so... the docs suggest you have to hack it since the
registration point is always top left. Do a translation in the negative
by half the component's width and height (this will get you centered),
rotate it, then do the reverse translation to put it back in it's
original spot.  This was working fairly reasonably for me in an
ENTER_FRAME handler with an image:

img.transform.matrix3D.appendTranslation(-1 * img.width / 2, -1 *
img.height / 2, 0);
img.transform.matrix3D.appendRotation(1, Vector3D.Y_AXIS);
img.transform.matrix3D.appendTranslation(img.width / 2, img.height / 2,
0);

That'll just rotate infinitely -- it would be up to you to turn this
into a reusable effect...

HTH,
Ryan



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Russ Ferguson
Sent: Thu 2/12/2009 4:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] 3D flip effect

Thanks. Im targeting air 1.5. it seems to be working but I want to
rotate from center and not from the top left hand corner.

I think it has to do with matrix3D



Any thoughts?

Thanks

...russ



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Thursday, February 12, 2009 3:09 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] 3D flip effect



Yeah, it's possible with 3.2. As long as you are targeting FP10, check
out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in
the docs...



If you're targeting FP9, it's a much more manual process to organize the
math and such...



HTH,

Ryan



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Russ Ferguson
Sent: Thursday, February 12, 2009 12:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 3D flip effect



Hi,

 Im looking to rotate a canvas in 3d space.
 I know you can do this with gumbo but I wanted to see if you can do it
with the 3.2 sdk.



All the examples I have found rotate on a slider. Im looking to rotate
during a transition.

Thanks.

...russ

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847

Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links

   http://groups.yahoo.com/group/flexcoders/



 



<><>

RE: [flexcoders] HTML > advice please

2009-02-13 Thread Tracy Spratt
I have tried a couple and I prefer Alistair Rutherford's component.

http://ccgi.arutherford.plus.com/blog/wordpress/?page_id=171
 

 

Note that a fairly recent change to the code has made it so that it
requires history management in the Flex wrapper,  Since I always turn
this off, I had to make a small modification to the code to make it work
for me.

 

But other than that, it works flawlessly, seamlessly, in a word, great.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Maya Tulchinsky
Sent: Friday, February 13, 2009 8:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTML > advice please

 

Check out this one:
http://www.deitte.com/IFrameDemo3/IFrameDemo.html

Here is blog about Iframe use in flex:
http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex-using
-iframe.html

Good luck,

Maya


--- On Fri, 2/13/09, aphexyuri  wrote:

From: aphexyuri 
Subject: [flexcoders] HTML > advice please
To: flexcoders@yahoogroups.com
Date: Friday, February 13, 2009, 5:31 AM

Hi All

As far as I know, we can't load complex HTML pages into a Flex
control, but I was wondering if anybody has had experience with this.

Its for a dashboard app that has flex elements, but must be able to
load full websites into specific "containers" of the dashboard.

I'm not sure what other technologies would be able to do this, Ajax,
JavaScript?

Any suggestions would be appreciated. ..thanks

Yuri

 





[flexcoders] Re: PNG transparencies no longer work, when printing as Vector

2009-02-13 Thread flexawesome
I had the same experience of this issue. Is there any way to get ride
of the background?

thank you

--- In flexcoders@yahoogroups.com, "Mike Anderson"  wrote:
>
> Hello All,
> 
> When sending my FlexPrintJobs to the printer as a Vector
> (printAsBitmap=false), any thing that was previously transparent on the
> image shows up as Black on the printout.
> 
> This sort of defeats the purpose of Alpha Channels don't ya think??
> 
> Although sending the PrintJob as a Bitmap fixes the transparency issues,
> it degrades the output quality so badly, that printing as a Bitmap no
> longer has any use to me.
> 
> Does anybody have any suggestions on how I can address this issue?
> 
> Thanks in advance for any help offered.
> 
> Mike
>




[flexcoders] how to bubble and catch events

2009-02-13 Thread stevepruitt97
I have the following scenario.  I need to catch the click events for 
either of the two buttons.  I tried putting the event handler on the 
DataGrid, but I'm getting an unresolved error for it.  Is this even 
possible?

Thanks in advance for any help.

-S

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










[Event(name = "action", type 
= "flash.events.Event")]







 













Re: [flexcoders] filter arraycollection with checkbox acting wired

2009-02-13 Thread Henrique
What's the type of your property pizza? Boolean? yes/no is not  Boolean...
If you have Boolean values, you have to do like this..

private function processFilter(item:Object):Boolean {

return Boolean(item.value) == true;

}


Or... string values, yes/no values:


private function processFilter(item:Object):Boolean {

var isYes:Boolean = item.value == "yes" ? true : false;

return checkBox.selected == isYes;

}


Henrique F. Marino

http://blog.dclick.com.br

www.dclick.com.br




On Fri, Feb 13, 2009 at 2:34 PM, Haykel BEN JEMIA wrote:

>   Try this (not tested!):
>
> private var pizzaSelected:Boolean;
>
> private function pizzaFilter():void
> {
>   pizzaSelected = pizza_ckb.selected;
>   filterGrid();
> }
>
> private function filterGrid() :void
> {
>   pizzaAr.filterFunction = myFilterFunction;
>   pizzaAr.refresh();
> }
>
> private function myFilterFunction(item:Object): Boolean
> {
>   return (item.pizza == pizzaSelected) ;
> }
>
> Haykel Ben Jemia
>
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>
>
>
>
> On Mon, Feb 9, 2009 at 2:52 PM, johndoematrix wrote:
>
>>   hi i am trying to filter an array collection using a checkbox, but
>> when i select the check box all the data disappears. here is my filter
>> function
>>
>> private var pizzaSelected:Boolean;
>>
>> private function pizzaFilter():void {
>> if (pizza_ckb.selected == true)
>> pizzaSelected = pizza_ckb.data;
>> filterGrid();
>> pizzaAr.refresh();
>> }
>>
>> private function filterGrid() :void
>> {
>> pizzaAr.filterFunction=myFilterFunction;
>> pizzaAr.refresh();
>> }
>>
>> private function myFilterFunction(item:Object): Boolean
>> {
>> return
>> (item.pizza == pizzaSelected) ;
>> }
>>
>> then on my pizza_ckb checkbox on the click event i call
>> pizzaFilter(); is there something am doing wrong. if there is pizza
>> then the result is true and pizza records show if false nothing is
>> supposed to show up.
>>
>>
>  
>


[flexcoders] Re: Air application and local hardware

2009-02-13 Thread markgoldin_2000
I have checked it out.
Unfortunately I am not developing in Java.

--- In flexcoders@yahoogroups.com, "Ryan Graham"  
wrote:
>
> 
> Nate B has mentioned before that the Merapi project is aimed at
> providing this functionality:
> 
>  
> 
> http://www.merapiproject.net/
> 
>  
> 
> HTH,
> 
> Ryan
> 
>  
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On
> Behalf Of markgoldin_2000
> Sent: Friday, February 13, 2009 9:33 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Air application and local hardware
> 
>  
> 
> Can an AIR application access a serial port? Can an AIR 
application 
> read/get data from a scanner attached to a serial port?
> 
> Thanks
> 
> 
> 
> 
> 
> This message is private and confidential. If you have received 
it in error, please notify the sender and remove it from your 
system.
>




[flexcoders] HTML editor for Flex Builder 3?

2009-02-13 Thread huu...@ymail.com
I'm really enjoying using Flex Builder 3, however, I'd like to have an
integrated HTML editor.  I tried installing Aptana, but the Message
Center is a major annoyance.

Does any have a recommendation for a plugin that integrates easily
with FB3?



RE: [flexcoders] Air application and local hardware

2009-02-13 Thread Ryan Graham

Nate B has mentioned before that the Merapi project is aimed at
providing this functionality:

 

http://www.merapiproject.net/

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: Friday, February 13, 2009 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Air application and local hardware

 

Can an AIR application access a serial port? Can an AIR application 
read/get data from a scanner attached to a serial port?

Thanks





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Re: [flexcoders] filter arraycollection with checkbox acting wired

2009-02-13 Thread Haykel BEN JEMIA
Try this (not tested!):

private var pizzaSelected:Boolean;

private function pizzaFilter():void
{
  pizzaSelected = pizza_ckb.selected;
  filterGrid();
}

private function filterGrid() :void
{
  pizzaAr.filterFunction = myFilterFunction;
  pizzaAr.refresh();
}

private function myFilterFunction(item:Object): Boolean
{
  return (item.pizza == pizzaSelected) ;
}

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Feb 9, 2009 at 2:52 PM, johndoematrix wrote:

>   hi i am trying to filter an array collection using a checkbox, but
> when i select the check box all the data disappears. here is my filter
> function
>
> private var pizzaSelected:Boolean;
>
> private function pizzaFilter():void {
> if (pizza_ckb.selected == true)
> pizzaSelected = pizza_ckb.data;
> filterGrid();
> pizzaAr.refresh();
> }
>
> private function filterGrid() :void
> {
> pizzaAr.filterFunction=myFilterFunction;
> pizzaAr.refresh();
> }
>
> private function myFilterFunction(item:Object): Boolean
> {
> return
> (item.pizza == pizzaSelected) ;
> }
>
> then on my pizza_ckb checkbox on the click event i call
> pizzaFilter(); is there something am doing wrong. if there is pizza
> then the result is true and pizza records show if false nothing is
> supposed to show up.
>
>  
>


[flexcoders] Air application and local hardware

2009-02-13 Thread markgoldin_2000
Can an AIR application access a serial port? Can an AIR application 
read/get data from a scanner attached to a serial port?

Thanks



[flexcoders] How to get input language in Flex 3 app

2009-02-13 Thread bobmeyering
I am using Flex Builder 3, IE 7 and windows OS (XP and 2008 server). Is 
there a way to programnatically determine the current input language as 
set in the "language bar"? The Capabilities class always returns "en" 
even after I select Chinese ("ch") as my input language (using the 
language bar).



Re: [flexcoders] Re: how to use a list's change event to refresh an array that is bound to it.

2009-02-13 Thread Haykel BEN JEMIA
Can you give a real example of what you want to do?

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Fri, Feb 13, 2009 at 4:56 PM, stinasius  wrote:

>   hello any help out there?
>
>  
>


[flexcoders] Help Me for SharedObject and registerClassAlias method

2009-02-13 Thread thelordsince1984
Hi,

i've yet posted this question but i can't resolve this problem..

i've created a custom value object class..a simple class with private
properties and getters methods to retrieve them.

public class WindowInfo
{   

private var _id:String;

private var _module:String

private var _xpos:int;

private var _ypos:int;

private var _width:int;

private var _height:int;

public function WindowInfo(id:String, module:String, xpos:int,
ypos:int, width:int, height:int)
{
this._id = id;
this._module = module;
this._xpos = xpos;
this._ypos = ypos;
this._width = width;
this._height = height;
}

public function get id():String {
return _id;
}

public function get module():String {
return _module;
}

public function get xpos():int {
return _xpos;
}

public function get ypos():int {
return _ypos;
}

public function get width():int {
return _width;
}

public function get height():int {
return _height;
}
}

then i created an array collection where each item is an istance of
value object.
then i have a shared object manager that looks like this:

package util{

import flash.net.SharedObject;

import mx.collections.ArrayCollection;

public class SharedObjectApplicationManager {

private var mySO:SharedObject;
private var ac:ArrayCollection;
private var lsoType:String;

public function SharedObjectApplicationManager(s:String) {
init(s);
}

private function init(s:String):void {
mySO = SharedObject.getLocal(s);
if (getf()) {
getf();
}
}

public function getf():ArrayCollection {
return mySO.data.arrayc;
}

private function adda(array:ArrayCollection):void {
mySO.data.arrayc = new ArrayCollection();
mySO.data.arrayc = array;
mySO.flush();
}
}
}

so when i try to get arraycollection with getf method i get an
arraycollection of generic objects…not with windowinfo objects..in
this manner i can't get value properties of value object class.

so i would use registerClassAlias("Info", WindowInfo) where WindowInfo
is the VO..but where?

the architecture of my app is:

-main application (verify the shared object, if full then call a
public function of canvas to create windows with specific parameters
saved in windowinfo class)
–canvas (contains one or more windows)

any suggestions?

Thanks in advance

Regards Lorenzo



[flexcoders] Re: how to use a list's change event to refresh an array that is bound to it.

2009-02-13 Thread stinasius
hello any help out there?



[flexcoders] Re: filter arraycollection with checkbox acting wired

2009-02-13 Thread johndoematrix
can someone please help me out here..thanks



Re: [flexcoders] 3D flip effect

2009-02-13 Thread Steve Mathews
I used this and it worked great:
http://www.tink.ws/blog/papervision3d-effects-for-flex-source

On Thu, Feb 12, 2009 at 8:23 PM, Ryan Graham wrote:

> I believe so... the docs suggest you have to hack it since the registration
> point is always top left. Do a translation in the negative by half the
> component's width and height (this will get you centered), rotate it, then
> do the reverse translation to put it back in it's original spot.  This was
> working fairly reasonably for me in an ENTER_FRAME handler with an image:
>
> img.transform.matrix3D.appendTranslation(-1 * img.width / 2, -1 *
> img.height / 2, 0);
> img.transform.matrix3D.appendRotation(1, Vector3D.Y_AXIS);
> img.transform.matrix3D.appendTranslation(img.width / 2, img.height / 2, 0);
>
> That'll just rotate infinitely -- it would be up to you to turn this into a
> reusable effect...
>
> HTH,
> Ryan
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com on behalf of Russ Ferguson
> Sent: Thu 2/12/2009 4:46 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] 3D flip effect
>
> Thanks. Im targeting air 1.5. it seems to be working but I want to
> rotate from center and not from the top left hand corner.
>
> I think it has to do with matrix3D
>
>
>
> Any thoughts?
>
> Thanks
>
> ...russ
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Ryan Graham
> Sent: Thursday, February 12, 2009 3:09 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] 3D flip effect
>
>
>
> Yeah, it's possible with 3.2. As long as you are targeting FP10, check
> out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in
> the docs...
>
>
>
> If you're targeting FP9, it's a much more manual process to organize the
> math and such...
>
>
>
> HTH,
>
> Ryan
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Russ Ferguson
> Sent: Thursday, February 12, 2009 12:55 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] 3D flip effect
>
>
>
> Hi,
>
>  Im looking to rotate a canvas in 3d space.
>  I know you can do this with gumbo but I wanted to see if you can do it
> with the 3.2 sdk.
>
>
>
> All the examples I have found rotate on a slider. Im looking to rotate
> during a transition.
>
> Thanks.
>
> ...russ
>
> This message is private and confidential. If you have received it in
> error, please notify the sender and remove it from your system.
>
>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: tilelist HighlightIndicator effects

2009-02-13 Thread stinasius
hi i have tried everything you have said but i get an error. here is
the code i use for clearing the highlightIndicator. the error i get is
"method marked override must override another method"

override protected function clearHighlightIndicator(indicator:Sprite,
itemRenderer:IListItemRenderer):void{
  if(highlightIndicator)
   Tweener.addTween(indicator,({alpha:0, time:1,
transition:"easeOutCubic",
onComplete:function():void{Sprite(highlightIndicator).graphics.clear()}}));



[flexcoders] Re: Problem calling a web service - error 2032

2009-02-13 Thread oneworld95
Check out this blog on the error; tons of good info to help you:
http://www.judahfrangipane.com/blog/?p=87

- Alex

--- In flexcoders@yahoogroups.com, "guy.tomer"  wrote:
>
> Hello,
> 
> I've been struggling half a day with this Error 2032 returning from 
> one of the APIs in my webservice. This API already worked and somehow 
> after regenerating the proxies it stopped! Finally I figured out the 
> only difference between this API and the others that work is that this 
> one gets no parameters... crazy as it sounds when I added a parameter 
> to the API and regenerated the classes everything began to work...
> 
> Does anyone have an explanation? or do I have to leave this ugly dummy 
> and mark it as another bug in the generated classes implementation...
> 
> Anyway - at least maybe this will save others the fight.
> 
> Guy
>




RE: [flexcoders] pie chart question

2009-02-13 Thread Kenneth Sutherland
Yes, if you listen for the itemClick event on the PieChart. Then inside
the event you'll find that the event.hitData.id will be the element
number from your dataprovider.  So depending on how your data is set up
you'll be able to take it from there.

 

Kenneth.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Vik
Sent: 13 February 2009 08:41
To: flexcoders@yahoogroups.com
Subject: [flexcoders] pie chart question

 

Hie

 

I have requirement in which i have pie chart. I want to click on a
particular pie area to open another pie chart.

 

is it possible? if yes then how?

 

 
Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com



Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

[flexcoders] AIR Application is not Appearing

2009-02-13 Thread Ashish Verma
Hello All,
I created an AIR Application which was previously based on AIR 1.0 and I am
some more features in that application and compiling with the update of Flex
3 and targeting it for AIR 1.5. After making air file I am putting it onto
sever to access by users. But when any user trying to run it after uploading
it's not displaying any window only showing task-bar button and doing
noting. When I use the task-bar context to move command I can see the dotted
rectangle on the desktop. I also checked for the installation folder of the
application in C:\Documents and Settings\username\Local Settings but there
was no any folder for it.

Please help me out.


Best,
Ashish


[flexcoders] Re: AIR Application optimizing...

2009-02-13 Thread nathanpdaniel
But hey - they look cook... I got 2! :D

--- In flexcoders@yahoogroups.com, Tom Chiverton  
wrote:
>
> On Wednesday 11 Feb 2009, nathanpdaniel wrote:
> > would bring to cut out 200-300kb from an AIR application.
> > Anyone else have any thoughts on it?
> 
> It's being distributed on really cheap USB keys ?
> 
> -- 
> Tom Chiverton
> Helping to autoschediastically monetize compelling meta-services
> 
> 
> 
> 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 Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB.  A list of members is available 
for inspection at the registered office together with a list of those 
non members who are referred to as partners.  We use the word ?
partner? to refer to a member of the LLP, or an employee or 
consultant with equivalent standing and qualifications. Regulated by 
the Solicitors Regulation Authority.
> 
> 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 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: A very simple code of ImageSnapshot

2009-02-13 Thread flexawesome
hey chet, thanks for the input and it works perfect :))

--- In flexcoders@yahoogroups.com, Chet Haase  wrote:
>
> 
> You're not giving any height to your uiHolder and then you're using
the height dimension when creating the BitmapData, so it fails because
you're asking it to create a BitmapData with invalid dimensions. Try
it with real values for both width and height and you'll get a better
result.
> 
> Note that you're also creating an opaque BitmapData here, so you get
a white background by default.
> 
> Chet.
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of flexawesome
> Sent: Thursday, February 12, 2009 6:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: A very simple code of ImageSnapshot
> 
> I have also tried this code, it didn't work as well -_--
> 
> would u pls take a look? thank you
> 
> ==
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute"
> initialize="init();">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "flexawesome"  wrote:
> >
> > I was trying to take snapshot of the uiHolder.
> >
> > However, I got an error msg of ==>> ArgumentError: Error #2015:
> > Invalid BitmapData.
> >
> > the simple code is here: http://www.privatepaste.com/b7gooBq4EJ
> >
> >
> > Do you have any suggestions?
> >
> > Thank you so much
> >
>




[flexcoders] Register custom URI Scheme on the OS for AIR applications?

2009-02-13 Thread Marcello Teodori
Hi all, I am building a chat client with Flex and AIR and I was wondering if it 
was possible to 
let the application register a custom URI scheme on the host OS like the Skype 
client does 
with:
  callto:?call for text chat
and
 callto:?chat for audio/video chat
so that I can build a web page or mail signature using those and automatically 
trigger the 
start of my AIR application executing a specific function like the text or 
audio/video chat in 
this case.

All the documentation I've found on the Adobe web site only talks about file 
extensions 
associations, but not URI schemes, so my guess is that this feature is 
currently not 
supported.
Should I file it as an enhancement request, is it correct to use the Flash 
Player Jira also for requests for AIR?
  http://bugs.adobe.com/jira/browse/FP

Thanks for any insight,
  Marcello




Re: [flexcoders] HTML > advice please

2009-02-13 Thread Maya Tulchinsky
Check out this one:
http://www.deitte.com/IFrameDemo3/IFrameDemo.html

Here is blog about Iframe use in flex:
http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex-using-iframe.html

Good luck,

Maya


--- On Fri, 2/13/09, aphexyuri  wrote:
From: aphexyuri 
Subject: [flexcoders] HTML  > advice please
To: flexcoders@yahoogroups.com
Date: Friday, February 13, 2009, 5:31 AM












Hi All



As far as I know, we can't load complex HTML pages into a Flex

control, but I was wondering if anybody has had experience with this.



Its for a dashboard app that has flex elements, but must be able to

load full websites into specific "containers" of the dashboard.



I'm not sure what other technologies would be able to do this, Ajax,

JavaScript?



Any suggestions would be appreciated. ..thanks



Yuri




 

  




 

















  

[flexcoders] HTML > advice please

2009-02-13 Thread aphexyuri
Hi All

As far as I know, we can't load complex HTML pages into a Flex
control, but I was wondering if anybody has had experience with this.

Its for a dashboard app that has flex elements, but must be able to
load full websites into specific "containers" of the dashboard.

I'm not sure what other technologies would be able to do this, Ajax,
JavaScript?

Any suggestions would be appreciated...thanks

Yuri



[flexcoders] need visual design work done

2009-02-13 Thread stinasius
hi i need a very good visual design to do some visual work for me.
what is need is listed below

1- nice dark background that matches the darkroom theme(am using
darkroom theme and need a background image)

2- nice effects (resize, move, fade or zoom) for popup ie titlewindow
when popuping up and when closing

3- very fluid change effects for viewstack children

4- filter effects for tilelist

5- custom titlewindow with header background image and anchored round
close button(dont like the skinned titlewindow of darkroom theme)

6- whatever you feel is good that i have left out.

remember that they should be compatible with both flex sdk 2 and sdk
3. am currently using sdk 2. let me know how much it costs. thanks



[flexcoders] Problem calling a web service - error 2032

2009-02-13 Thread guy.tomer
Hello,

I've been struggling half a day with this Error 2032 returning from 
one of the APIs in my webservice. This API already worked and somehow 
after regenerating the proxies it stopped! Finally I figured out the 
only difference between this API and the others that work is that this 
one gets no parameters... crazy as it sounds when I added a parameter 
to the API and regenerated the classes everything began to work...

Does anyone have an explanation? or do I have to leave this ugly dummy 
and mark it as another bug in the generated classes implementation...

Anyway - at least maybe this will save others the fight.

Guy



[flexcoders] Dragging an image out of a tilelist

2009-02-13 Thread lanekelly5
First post to the group.  Glad I found this as a resource...


I have a TileList control with cells that contain an image and a 
label. See the itemRenderer code:

Code:
http://www.adobe.com/2006/mxml";
horizontalAlign="center"
verticalAlign="middle">






What I want to do is give the user the ability to drag just the image 
portion of the cell onto a different canvas. Here's where I am so far 
on the TileList code:

Code:

Not sure if I should be using "mouseMove" to start the drag or some 
other event. But in the handler, I'm unsure of how to reference the 
image inside the cell of the TileList. I want to show that as the 
dragProxy (I think that's the correct term) and also resize it so it 
isn't the thumbnail size shown in the TileList.  I don't want the 
label to be part of the dragged item (it should just disappear).

Any thoughts would be greatly appreciated. If I need to provide more 
code to make this question more clear, please let me know.

Thanks.



[flexcoders] Extending classes (within classes) best/fastest approach to finding what you need (in FlexBuilder)

2009-02-13 Thread David Kramer
I have a simple desire today and figured I'd be able to get a nice quick
answer. During an Alert I want to override (which may be mixed
terminology I understand) the "fade" effect on the parent "window" during
an Alert.show.

I'm using Flex Builder 3, not a surprise, and I'm thinking there's
probably a way, while debug mode, to find the line that triggers that
effect stepwise, thus finding the class as well no?

I'd love the solution to what I'm doing, yes (and bring it on sure), but
I'd like to know the best way to find things in the future. (If I was
clear...hopefully)

Thanks to all in advance.


[flexcoders] Preventing Item Renderers from Inheriting Styles from Parent List Component

2009-02-13 Thread Thomas, Erik
Hi all:
 
I have a custom component derived from VBox with a specific styleName.
When used in a Repeater, or stand-alone, the styles are perfect.
 
However, when I use the custom component in a List by setting the
itemRenderer property of the List component, the fonts are all wrong and
the text in Button labels are getting truncated.
 
During debugging, I found the Flex 3 List component causes item
renderers to inherit styles! It actually sets the styleName to the
instance variable of the List component!
 
// in mx.controls.List.as:
override public function createItemRenderer...

{

  ...

  var renderer:IListItemRenderer;

  ...

  renderer = factory.newInstance();

  renderer.styleName = this;  

  ...

  return renderer;

}

 

We have a CSS Type selector for List and if I comment it out of the css
file, the problem goes away, but we have lots of other List instances in
our code base and I don't want to change them all to use CSS Class
selectors in order to work around this issue.

 

I've overridden the styleName setter in the renderer and explicitly set
it to my own style class selector and it doesn't work. My buttons in the
renderer even specifically set a styleName, and I'm able to override the
font issue in a brute force way, but the text continues to get
truncated, as though there is some measurement that is wrong, and I have
no idea which style to override to fix the truncation.

 

Q. Is there a simple way to prevent my item renderer from inheriting any
styles from the parent List component?

 

Thanks!

 

Erik



[flexcoders] Re: advanced datagrid error weirdness

2009-02-13 Thread Johannes Nel
ok to follow up.
in the initListData function it is the first line after the first call to
getStyle (after the call to getDisplayDisclosureIcon).

the offending line(s) was in my css, added by somebody else in ignorance. :(
   folderOpenIcon: null;
disclosureOpenIcon: null;

anyway, obviously getStyle returned a null bla bla. less black box debugging
would have made this much easier :(




and commenting it out solved the problem. will report later

On Fri, Feb 13, 2009 at 11:24 AM, Johannes Nel wrote:

> hey,
> actually hoping someone from the adg team can tell me what on a certain
> line would be giving an error.
>
> I use sdk 3.0
>
> so i have an adg which renderers another adg. detail is not really that
> important. i have a mock data set in 2 different projects (1 being the main
> app i am working on and the other being an adg sample to try and replicate
> my error).
>
> the sample app uses the same IFactory, ADGRenderer, columns, hierachial
> data descriptor (and of course the mock data set).
>
>  the error i get is
> TypeError: Error #1034: Type Coercion failed: cannot convert "null" to
> Class.
> at
> mx.controls::AdvancedDataGrid/initListData()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5476]
>
> I am specifically interested in what is on that one line, since my sample
> app works perfectly and my main app does not. I realise that this means its
> somehting in my own code (the difference between the two apps is complexity
> of the application structure.)
>
> my sample app consists of
>
> view
>   - presmodel
>   - my adg component
>
> where my presentation model exposes via bindings my columns, data provider
> and renderer
>
> in contrast to this my main app is
>
> view
>  -presModel
> -component
>-presModel
>-my adg component.
>
> i think this means that some binding is not firing all the way through my
> chains, but which one (i cannot figure this since i cannot debug the adg :(
> )
>
> anyway, whats on that line, and what variable is null.
>
> (as a side note, i have overridden this function (and several in that chain
> to inspect them and I do not see arguments being passed as null, so I assume
> its some type of class variable or a property on one of the objects which is
> null)
>
> thanks
> Johan
> --
> j:pn
> \\no comment
>



-- 
j:pn
\\no comment


[flexcoders] advanced datagrid error weirdness

2009-02-13 Thread Johannes Nel
hey,
actually hoping someone from the adg team can tell me what on a certain line
would be giving an error.

I use sdk 3.0

so i have an adg which renderers another adg. detail is not really that
important. i have a mock data set in 2 different projects (1 being the main
app i am working on and the other being an adg sample to try and replicate
my error).

the sample app uses the same IFactory, ADGRenderer, columns, hierachial data
descriptor (and of course the mock data set).

 the error i get is
TypeError: Error #1034: Type Coercion failed: cannot convert "null" to
Class.
at
mx.controls::AdvancedDataGrid/initListData()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5476]

I am specifically interested in what is on that one line, since my sample
app works perfectly and my main app does not. I realise that this means its
somehting in my own code (the difference between the two apps is complexity
of the application structure.)

my sample app consists of

view
  - presmodel
  - my adg component

where my presentation model exposes via bindings my columns, data provider
and renderer

in contrast to this my main app is

view
 -presModel
-component
   -presModel
   -my adg component.

i think this means that some binding is not firing all the way through my
chains, but which one (i cannot figure this since i cannot debug the adg :(
)

anyway, whats on that line, and what variable is null.

(as a side note, i have overridden this function (and several in that chain
to inspect them and I do not see arguments being passed as null, so I assume
its some type of class variable or a property on one of the objects which is
null)

thanks
Johan
-- 
j:pn
\\no comment


[flexcoders] pie chart question

2009-02-13 Thread Vik
Hie
I have requirement in which i have pie chart. I want to click on a
particular pie area to open another pie chart.

is it possible? if yes then how?


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


[flexcoders] File upload with pause/resume in Flex?

2009-02-13 Thread bjorn
Suggestions on how to implement this? My first thought is to split a file
into chunks of FileReferences and then send these chunks individually,
making a note of which chunks of a file that have been transferred and which
are waiting. That way I can pause the application and continue later.
.. but maybe there is an easier solution? :-)

-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


RE: [flexcoders] Does ASDoc process metadata tags?

2009-02-13 Thread Gregor Kiddie
I believe this is because the ASDoc compiler takes less passes at the
code base than the regular compiler does.

One of the missing passes is the one that processes [Bindable] tags and
adds the Event dispatching code.

 

I'd be wary of doing it the way you described since out in house binding
guru reported a bug that occurs under those circumstances.

Make it explicit and you have no problems.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of foobone9
Sent: 13 February 2009 02:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Does ASDoc process metadata tags?

 

I have classes that are marked with [Managed] and [Bindable] tags.
Even though these objects do not extend eventDispatcher I can call
dispatchedEvent, addEventListener, and removeEventListener on them. I
assume this is because the compiler is wrapping the dispatch code
around the object when it sees the metadata tag.

This works fine in Flex Builder but when running ASDoc it serves up
these calls as errors. Is there a flag I need to set for ASDoc to
process the tags when compiling the objects?