Re: [flexcoders] Re: Problems with list using custom itemRenderer and variableRowHeight

2008-06-24 Thread Josh McDonald
I think you'll just have to think of a way to keep track of the height
information for your data (either add it to the model, or put it in some
sort of look-up using the data or an ID from your data as a key). And simply
reset this information in "function set data(v)"

-Josh

On Wed, Jun 25, 2008 at 4:48 PM, Body Works Studio <
[EMAIL PROTECTED]> wrote:

> Anatole,
>
> thanks for writing back. Sorry this is a little beyond me. HOw would
> you use the code with a list renderer. what do I compare against?
> { Reference( data ).name }?
>
> Sorry that I am not following.
>
> Jeff
>
>
> --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
> <[EMAIL PROTECTED]> wrote:
> >
> > You need to prevent itemRenderers from being reused. Here is a piece
> of my
> > old code to deal with it (in DataGrid)
> >
> >   override protected function
> > addToFreeItemRenderers(item:IListItemRenderer):void
> > {
> > if (columnMap[item.name] &&
> > columnMap[item.name] is
> > com.theriabook.controls.dataGridClasses.DataGridColumn &&
> > columnMap[item.name].preventRendererReuse) {
> > delete rowMap[item.name];
> >
> > if (columnMap[item.name]){
> > var c:Object = columnMap[item.name];
> > delete columnMap[item.name];
> > }
> > item.parent.removeChild(DisplayObject(item));
> > } else
> > super.addToFreeItemRenderers(item);
> >
> > }
> >
> > Complete source is in the old book code:
> >
> > http://samples.faratasystems.com/AdvancedDataGrid/index.html
> >
> > HTH,
> > Anatole Tartakovsky
> > Farata Systems
> > On Tue, Jun 24, 2008 at 12:06 PM, Body Works Studio <
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Problems with list using custom itemRenderer and variableRowHeight

2008-06-24 Thread Body Works Studio
Anatole,

thanks for writing back. Sorry this is a little beyond me. HOw would
you use the code with a list renderer. what do I compare against?
{ Reference( data ).name }?

Sorry that I am not following.

Jeff


--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> You need to prevent itemRenderers from being reused. Here is a piece
of my
> old code to deal with it (in DataGrid)
> 
>   override protected function
> addToFreeItemRenderers(item:IListItemRenderer):void
> {
> if (columnMap[item.name] &&
> columnMap[item.name] is
> com.theriabook.controls.dataGridClasses.DataGridColumn &&
> columnMap[item.name].preventRendererReuse) {
> delete rowMap[item.name];
> 
> if (columnMap[item.name]){
> var c:Object = columnMap[item.name];
> delete columnMap[item.name];
> }
> item.parent.removeChild(DisplayObject(item));
> } else
> super.addToFreeItemRenderers(item);
> 
> }
> 
> Complete source is in the old book code:
> 
> http://samples.faratasystems.com/AdvancedDataGrid/index.html
> 
> HTH,
> Anatole Tartakovsky
> Farata Systems
> On Tue, Jun 24, 2008 at 12:06 PM, Body Works Studio <




Re: [flexcoders] Looking for the right loop

2008-06-24 Thread Josh McDonald
Just re-parsed that message - Don't get me wrong, I love overkill! I'd have
gone with a helper class that watches an IList rather than subclassing
Collection though. That's how I decided to build my list indexer (get by
fieldValue). That way you can watch any IList, and in my case have multiple
indexes on one list. Also, you could add support for XMLList just by
changing the existing indexer class.

-Josh

On Wed, Jun 25, 2008 at 4:37 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

> Nice overkill. I'll put in my 2c:
>
> var anySelected : Boolean = false;
> var i : Number;
>
> for (i = 0; i < things.length && !anySelected) {
> anySelected = things[i].selected;
> }
>
> -Josh
>
>
> On Wed, Jun 25, 2008 at 4:24 PM, Rick Winscot <[EMAIL PROTECTED]>
> wrote:
>
>>  Did I hear someone say 'fancy?' The best loop… isn't one! Especially if
>> you have other mechanisms, like events, that can help reduce the cost of
>> keeping track of a particular item. I've coded two classes; Thing and
>> ThingCollection as an example.
>>
>>
>>
>> http://www.quilix.com/node/16
>>
>>
>>
>> Overkill? Don't much care… can't sleep anyway.
>>
>>
>>
>> Rick Winscot
>>
>>
>>
>>
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Toby Ashley
>> *Sent:* Tuesday, June 24, 2008 12:02 PM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* Re: [flexcoders] Looking for the right loop
>>
>>
>>
>> There are fancier ways of doing it I'm sure, but changing your code to the
>> following will make it work.
>>
>>
>> var numThings:int = things.length;
>>
>> var nothingSelected:Boolean = true;
>>
>> for (var i:int=0;i>
>>   // note that it should be things[i] below, not numThings[i] , as
>> numThings is just an integer.
>>   if( things[i].selected ){
>>
>>  nothingSelected = false;
>>
>>   }
>>
>> }
>>
>> // traces true if 0 items are "selected", false if one or more is
>> "selected"
>> trace (nothingSelected);
>>
>>
>>  On Tue, Jun 24, 2008 at 4:57 PM, fumeng5 <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm confused on how to best create a loop to do the following:
>> discover if each element's "selected" property is set to false.
>> Basically, I just want to detect when all elements of my array have a
>> "selected" property set to false.
>>
>> Here's my code:
>> var numThings:int = things.length;
>>
>> for (var i:int=0;i> if(!numThings[i].selected){ //
>> }
>> }
>>
>> I know I'm not using the correct loop, I just can't figure out how to
>> better approach this problem. Any tips are very much appreciated.
>> Thank you.
>>
>> Fumeng.
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>>
>>  
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]




-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Looking for the right loop

2008-06-24 Thread Josh McDonald
Nice overkill. I'll put in my 2c:

var anySelected : Boolean = false;
var i : Number;

for (i = 0; i < things.length && !anySelected) {
anySelected = things[i].selected;
}

-Josh

On Wed, Jun 25, 2008 at 4:24 PM, Rick Winscot <[EMAIL PROTECTED]>
wrote:

>  Did I hear someone say 'fancy?' The best loop… isn't one! Especially if
> you have other mechanisms, like events, that can help reduce the cost of
> keeping track of a particular item. I've coded two classes; Thing and
> ThingCollection as an example.
>
>
>
> http://www.quilix.com/node/16
>
>
>
> Overkill? Don't much care… can't sleep anyway.
>
>
>
> Rick Winscot
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Toby Ashley
> *Sent:* Tuesday, June 24, 2008 12:02 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Looking for the right loop
>
>
>
> There are fancier ways of doing it I'm sure, but changing your code to the
> following will make it work.
>
>
> var numThings:int = things.length;
>
> var nothingSelected:Boolean = true;
>
> for (var i:int=0;i
>   // note that it should be things[i] below, not numThings[i] , as
> numThings is just an integer.
>   if( things[i].selected ){
>
>  nothingSelected = false;
>
>   }
>
> }
>
> // traces true if 0 items are "selected", false if one or more is
> "selected"
> trace (nothingSelected);
>
>
>  On Tue, Jun 24, 2008 at 4:57 PM, fumeng5 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm confused on how to best create a loop to do the following:
> discover if each element's "selected" property is set to false.
> Basically, I just want to detect when all elements of my array have a
> "selected" property set to false.
>
> Here's my code:
> var numThings:int = things.length;
>
> for (var i:int=0;i if(!numThings[i].selected){ //
> }
> }
>
> I know I'm not using the correct loop, I just can't figure out how to
> better approach this problem. Any tips are very much appreciated.
> Thank you.
>
> Fumeng.
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Looking for the right loop

2008-06-24 Thread Rick Winscot
Did I hear someone say 'fancy?' The best loop. isn't one! Especially if you
have other mechanisms, like events, that can help reduce the cost of keeping
track of a particular item. I've coded two classes; Thing and
ThingCollection as an example.

 

http://www.quilix.com/node/16 

 

Overkill? Don't much care. can't sleep anyway.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Toby Ashley
Sent: Tuesday, June 24, 2008 12:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Looking for the right loop

 

There are fancier ways of doing it I'm sure, but changing your code to the
following will make it work.

var numThings:int = things.length;

var nothingSelected:Boolean = true;

for (var i:int=0;i wrote:

Hi,

I'm confused on how to best create a loop to do the following:
discover if each element's "selected" property is set to false.
Basically, I just want to detect when all elements of my array have a
"selected" property set to false.

Here's my code:
var numThings:int = things.length;

for (var i:int=0;ihttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links



 

 



[flexcoders] Re: Weird compiler error has me stumped! - and what are the includes caused by -keep-generated-actionscript?

2008-06-24 Thread Josh McDonald
Never mind, it's a compiler bug, and filed:

https://bugs.adobe.com/jira/browse/SDK-15902

-Josh

On Wed, Jun 25, 2008 at 3:01 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

> Hey guys,
>
> I'm getting this:
>
> Implicit coercion of a value of type Boolean to an unrelated type Number.
> [Generated code (use -keep to save): Path: /Users/josh/Desktop/Work/Builder
> workspace/Allocations/src/generated/allocations/components/DailyPaymentsView-interface.as,
> Line: 50, Column: 48]
>
> So I go to the file mentioned. Line 50 is:
>
> mx_internal var _bindingsByDestination : Object;
>
> And instead of any actionscript from the .mxml file, there's simply this
> line:
>
> include "/Users/josh/Desktop/Work/Builder
> workspace/Allocations/src/allocations/components/DailyPaymentsView.mxml:5,33";
>
> Anybody have a clue WTF is going on?
>
> -Josh
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]




-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Problem with click event and Image component

2008-06-24 Thread Alex Harui
I'd use SWFLoader to load SWFs.  If the SWF is AS2, you can't get clicks and 
let it get clicks.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Guillermo Villasana
Sent: Tuesday, June 24, 2008 10:48 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Problem with click event and Image component

 

Thanks Alex, I had checked the archives, but I just didn't know how to 
look it for, now with this clue I have been able to make it work, but 
now, I have the following problem. I am setting a flash as a button, 
this flash has an action when the mouse is over it, but with the 
mouseEnables/mouseChildren the action does not execute.
Thanks again

Alex Harui escribió:
> 
> 
> Check the archives. I think you have to set some 
> mouseEnabled/mouseChildren flag.
> 
> 
> 
> --
> 
> *From:* flexcoders@yahoogroups.com   
> [mailto:flexcoders@yahoogroups.com  ] 
> *On Behalf Of *Guillermo Villasana
> *Sent:* Tuesday, June 24, 2008 8:35 AM
> *To:* flexcoders@yahoogroups.com  
> *Subject:* [flexcoders] Problem with click event and Image component
> 
> 
> 
> Hello guys, I am having problems adding a click event to an image, I
> don't know why it just doesn't work.
> 
> I have an app something like this
> 
> 
> 
> 
> in myCanvas component I have
> 
> 
> 
> 
> 
> other components
> 
> 
> 
> 
> I don't know why the img2 doesn't do the click event
> any thoughts
> Thanks
> 
> 

 



RE: [flexcoders] Re: Question about drawSelectionIndicator

2008-06-24 Thread Alex Harui
You can draw your own graphic and not call super.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, June 24, 2008 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about drawSelectionIndicator

 

Can I make it not to? So the width will effect selection spot too?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Because the super class ignores width.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, June 24, 2008 7:26 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Question about drawSelectionIndicator
> 
> 
> 
> Here is mmy code:
> override protected function drawSelectionIndicator
(indicator:Sprite, 
> x:Number, y:Number, width:Number, height:Number, color:uint, 
> itemRenderer:IListItemRenderer):void 
> { 
> super.drawSelectionIndicator(indicator, x, y, width, height, color, 
> itemRenderer);
> }
> Providing a different value for the height will create a different 
> selection spot on the screen, but a different width does not seem 
to be 
> of any effect. Even a zero does not change it. It still selects the 
> whole row, no matter what. Can someone explain why is that?
> 
> Thanks
>

 



Re: [flexcoders] Unit Testing for Flex

2008-06-24 Thread Joseph Balderson
Try these:
http://code.google.com/p/as3flexunitlib/wiki/Resources
http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.html
http://www.darronschall.com/weblog/archives/000216.cfm
http://www.insideria.com/2008/04/unit-testing-with-flexunit-1.html

___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca


Vinoth Babu wrote:
> Hi All,
> 
> I had developed an Actionscript project using Flex IDE. Here most of
> the components are embedded using Flash and Sprite
> 
> Do you have any idea of how to do unit testing?
> 
> No luck with the following component usage
> 
> 
> FlexUnit – I could not find examples using Actionscript project
> asunit -  No example for Flex environment 
>  
> 
> Thanks & Regards,
> Vinoth 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> 
> 
> 
> 



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



Re: [flexcoders] Re: Flex Application will not refresh properly

2008-06-24 Thread Joseph Balderson
if you use SWFObject in your index.template.html or in your final HTML, and 
append the following js, the browser will never get the swf from the browser 
cache:

... "mySwf.swf?"+(new Date()).getTime() ...

This will append a unique number at the end of the swf filename, making the 
browser think it's always a new file.

or you could just clear the cache before every in-browser test.
___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca


Brian Raymes wrote:
> I have had similar problems when using I.E. 7/8.  Firefox has been
> more consistent, but Safari (my least favorite browser) seems to be
> working the best.
> 
> It appears to me that swfs are cached inconsistently.  If I update a
> swf, I expect my browser to load the new version.  I have had to
> delete my browser cache way too often to remedy this.
> 
> If you are using ColdFusion as a mediator, add this to the top of your
> index.cfm (or whatever name yours) to help force a re-load the swfs
> every time.  You might be able to accomplish this without ColdFusion
> in the basic html template as well.
> 
> 
> 
>  
> 
> I would rather my browser detect new versions of swfs... I don't like
> having to re-download every page visit.  The software I am working on
> must be loaded consistently if a change is made on my end.  It is
> important for my customers to see everything up-to-date.
> 
> Let me know if you find a better solution.
> 
> 
> Brian
> 
> --- In flexcoders@yahoogroups.com, "Ryan Schlig" <[EMAIL PROTECTED]> wrote:
>> I am having problems viewing the changes in my application on refresh.
>> I have to actually close my browser and open up a new session before my
>> changes will be seen.  This is not only a local problem, it also happens
>> when I push out new versions of my application to our servers.  It seems
>> as though IIS is not detecting a change in the html or swf.  Anyone else
>> ran into this and found a solution?
>>
>>  
>>
>> Ryan Schlig
>>
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> 
> 
> 
> 


Re: [flexcoders] Flex TextInput componet 's problem

2008-06-24 Thread Joseph Balderson
TextField is the very basic text field from the flash.text package of the Flash 
AS3 API, which inherits from InteractiveObject, so it a very basic object.

TextInput is from the mx.controls package, and as such includes Flex events and 
databinding and such.

Both have a text property, but one is much more complex than the other.

Think of TextInput as a flex component with its TextField.type="input" or 
TextFieldType.INPUT

Think of Label and TextArea as flex components with their 
TextField.type="dynamic" or TextFieldType.DYNAMIC


___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca


Ray Zhang wrote:
> I don't know TextInput 's *text *and* textField.text* property 's 
> difference
>  
> anybody know ,tell me plz
>  
> Ray
>  
>  
> 
> 


[flexcoders] Weird compiler error has me stumped! - and what are the includes caused by -keep-generated-actionscript?

2008-06-24 Thread Josh McDonald
Hey guys,

I'm getting this:

Implicit coercion of a value of type Boolean to an unrelated type Number.
[Generated code (use -keep to save): Path: /Users/josh/Desktop/Work/Builder
workspace/Allocations/src/generated/allocations/components/DailyPaymentsView-interface.as,
Line: 50, Column: 48]

So I go to the file mentioned. Line 50 is:

mx_internal var _bindingsByDestination : Object;

And instead of any actionscript from the .mxml file, there's simply this
line:

include "/Users/josh/Desktop/Work/Builder
workspace/Allocations/src/allocations/components/DailyPaymentsView.mxml:5,33";

Anybody have a clue WTF is going on?

-Josh

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] triggering a function (when an argument is a bindable value)?

2008-06-24 Thread Joseph Balderson
It seems like you are misunderstanding the use of binding, which is to "tie" 
the 
value of one property to another with loose coupling such that when one changes 
(i.e. the source), the other (i.e. the destination) reflects that value change 
precisely.

It sounds like what you're looking for is a custom Formatter, able to take an 
input and interpret it based on an algorithm, and that formatter value can be 
bound to a destination property, which in your case seems to be the 
currentState 
of the application. If an algorithm will not suite your purposes, I would 
recommend you stick with the switch statement inside a manager class.

If the user level and application state are so closely tied, why not just name 
your application state strings according to the user level strings. If some 
sort 
of validation and logic needs to happen beforehand, then what you're probably 
looking after is a manager class to make those decisions.

___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca


nwebb wrote:
> Hi,
> 
> I was looking at how you can trigger a function when an argument is a 
> bindable value
> 
> e.g.
> 
> //userLevel is a bindable value & formatMessage is a function will be 
> called when userLevel changes
> 
> 
> This is cool if you're just displaying a value in a text field. However, 
> what if you don't necessarily want to return a value (i.e. you don't 
> have a destination)?
> Hopefully this will show what I mean:
> 
> private function stateManager(value:String):void
> {
>  switch(value)
>  {
> case "basic":
>  currentState = '';
>  break;
>  case "admin":
>   currentState = 'AdminState';
>   break;
>  default:
>   currentState = '';
>   }
>  }
> 
> BindingUtils methods and the binding tag both expect a destination, but 
> in this case there isn't one. Is the solution simply to use 
> ChangeWatcher instead, or can this be done using binding syntax?
> 
> Cheers
> 
> 
> 
> 
> 


Re: [flexcoders] Displaying icons loaded at runtime, in Buttons, Trees etc

2008-06-24 Thread Mark Carter

Anyone had a chance to look at this? - I think it could be very useful for
some people...
-- 
View this message in context: 
http://www.nabble.com/Displaying-icons-loaded-at-runtime%2C-in-Buttons%2C-Trees-etc-tp17179354p18104998.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] TitleWindow (Popup) Resize Problem

2008-06-24 Thread wwwpl
I have a dialog box with a text field in it.  The text field can be set 
with text that wraps.  So the size of the text field is unknown.  Well 
when the text field has text that is 2 lines, it causes children to be 
pushed down.  The bottom children are cut off because the dialog box 
(TitleWindow) doesn't resize.  I set autolayout=true, but that didn't 
help.  I have tried invalidateSize() after setting the text etc. 
without success.



[flexcoders] Re: Setting width doesn't resize component immediately

2008-06-24 Thread wwwpl
That worked.  Great, thank you.

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Try calling validateNow() on the parent after changing the width of 
the
> left child.
> 
>  
> 
> - Gordon
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of wwwpl
> Sent: Monday, June 23, 2008 2:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Setting width doesn't resize component 
immediately
> 
>  
> 
> I have a custom component I will call the parent with 2 side by 
side 
> children. The left child has a width of 200 and the right child has 
a 
> width of 800 and parent width == 1000. On a mouse click event I 
change 
> the width of the left child to 980. I then start an animation of 
the 
> right child that moves from width of 800 to 20 (moves to the 
right). 
> Sometimes the animation of the right child finishes before the 
width of 
> the left child executes. How do I force the left child resize to 
> happen first? I do a callLater to start the animation of the right 
> child after setting the width of the left child like this:
> 
> leftChild.width = 980;
> callLater(rightChild.startAnimation);
> 
> I have tried calling leftChild.invalidateDisplayList() but it 
doesn't 
> help.
>




[flexcoders] Flex Web Sites Using Windows Authentication

2008-06-24 Thread Owen West
Hi all,
 
Hoping somebody can provide some assistance...
 
In our organisation we are starting to deploy web-based applications built 
using Flex to our corporate intranet. We are a Microsoft shop and use Windows 
Server 2003 and IIS for all web site hosting.
 
Currently our applications use Forms authentication (user enters 
login/password, which is checked against database and verified). What we would 
like to do is to have all of our web sites use pass-through authentication 
using Windows Domain Authentication. We have the web sites configured to use 
Integrated Windows Authentication, however  we are not sure how we can use this 
level of authentication from within our Flex apps. 
 
What we would like to have happen is something along the lines of:
 
1. User browses to web site (intranet application): http://someapp.ourdomain 
2. The wen site authenticates the user (in IIS) using their logged in Windows 
user credentials - domain groups will be used to control authorisation levels 
(read-only, sysadmin, etc).
3. If the user is authenticated to use the web site, then their group 
membership is returned to the Flex application (or it looks up the details in 
Active Directory or equivalent functionality). Ultimately what we would want 
is: 
 * User Name (Domain\User)
 * Domain Group Membership(s) - Domain group memberships will control 
access to resources in the Flex application - only members of the application's 
SysAdmin group will see system admin functions, etc
 * Any other relevant details from Windows Active Directory - possibly home 
folder location (shared folders), etc.
 
All this should occur seamlessly without the user having to type user 
names/passwords. Our ultimate goal is to have single sign-on across the 
organisation.
 
We currently have points 1 and 2 operating, however it is the Flex part that is 
causing some troubles. Mainly - can we retrieve the Logged In user name from 
the client (Domain\User) - we only want the name, not the password. We use 
ColdFusion (v8) as our middleware, so once we have this we can call CFLDAP tags 
to integrate with Active Directory, the main problem at the moment is getting 
the client's logged on user name.
 
Hoping somebody can help.
 
 
 
Owen West  M.SysDev (C.Sturt) MCP MCAD MCSD
Computer Programmer 
Applications Development Team
Information Technology & Telecommunications
Hunter New England Health
Ph: (02) 4921 4194
Fax: (02) 4921 4191
Email: [EMAIL PROTECTED]


[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread holmgren.eric
I have my VO's coming back fine from CF to Flex, but when I try and
send them from Flex to CF, I only get a VO with methods and no properties.



RE: [flexcoders] Re: Inheritance : Calling super.function with var args

2008-06-24 Thread Gordon Smith
> If I extend a class and in the subclass override a function of the
base class
> I can call the original base class function using super.functionname.
> How do I pass all the arguments present in the arguments array to the
> super function?

 

If a superclass has the method with a variable number of arguments like

 

public function f(...args):void

{

...

}

 

then in a subclass the override would call the supermethod like this:

 

override public function f(...args):void

{

super.f(args);

...

}

 

> there is no mention of the prototype property I could find

 

I'm curious what you're doing with the 'prototype' property. It's pretty
much vestigial at this point because AS3 uses class-based, rather than
prototype-based, inheritance.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dev.bits
Sent: Tuesday, June 24, 2008 8:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Inheritance : Calling super.function with var
args

 

dude, you are awesome! it worked 

I was looking for invoke (thats what javascript has for doing this)
and couldn't find it. I had seen that page (not apply but that page)
and had ignored it considering the huge differences between AS3 and
AS2 (I wanted something for AS2, which I now realise I never mentioned
:).  The adobe AS2 documentation is a real pain .. there is no
mention of the prototype property I could find 

anyways, thanks a lot for the awesome help (and the quick replies! )

Regards
Devdatta

--- In flexcoders@yahoogroups.com 
, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Sorry mate, that's my bad! you want .apply, not .call! My fault, I
should've
> double-checked before I posted!
> 
> http://livedocs.adobe.com/flex/3/langref/Function.html#apply
 ()
> 
> -Josh
> 
> 
> 
> On Wed, Jun 25, 2008 at 12:57 PM, dev.bits <[EMAIL PROTECTED]> wrote:
> 
> > yeah I had tried that ! :)
> >
> > But it doesn't work ... I thought it was the problem "this" but
> > clearly this doesn't work :
> > flash.external.ExternalInterface.call.call(null,arguments);
> > doesn't work .
> > but
> > flash.external.ExternalInterface.call.call(null,"alert","whoa");
> >
> > works. So I guess we come back to the same problem... arguments
passes
> > the args as 1 argument (an array) whereas we want to pass the each
> > member of the arguments array as an argument each.
> >
> >
> > Regards
> > Devdatta
> >
> > --- In flexcoders@yahoogroups.com
 , "Josh McDonald"  wrote:
> > >
> > > Ah, you didn't say it was a static function :)
> > >
> > > Just put "null" instead of "this" and it should work.
> > >
> > > -Josh
> > >
> > > On Wed, Jun 25, 2008 at 12:36 PM, dev.bits  wrote:
> > >
> > > >
> > > > Doesn't work for me .. says "this" not accessible ...
> > > >
> > > > See this code for e.g :
> > > > class package1.subpackage.newExternalInterface extends
> > > > flash.external.ExternalInterface{
> > > > public static function call(methodName:String):Object{
> > > > trace("called
newExternalInterface.called");
> > > >
> > > > return
> > > > flash.external.ExternalInterface.call.call(this,arguments);
> > > > //Compiler says this not accessible from this scope
> > > > }
> > > > }
> > > >
> > > > Regards
> > > > Devdatta
> > > >
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
 , "Josh McDonald" 
wrote:
> > > > >
> > > > > Try:
> > > > >
> > > > > super.functionName.call(this, argsArray);
> > > > >
> > > > > -Josh
> > > > >
> > > > > On Wed, Jun 25, 2008 at 11:14 AM, dev.bits 
wrote:
> > > > >
> > > > > > Hi
> > > > > >
> > > > > > If I extend a class and in the subclass override a
function of the
> > > > > > base class I can call the original base class function using
> > > > > > super.functionname
> > > > > >
> > > > > > But what do I do if this function excepts variable number of
> > > > arguments ?
> > > > > >
> > > > > > How do I pass all the arguments present in the arguments
array
> > to the
> > > > > > super function?
> > > > > >
> > > > > > public override function a(){
> > > > > > super.a( // here I want to pass ALL the arguments that
were passed
> > > > > > // to this function
> > > > > >
> > > > > >
> > > > > > Regards
> > > > > > Devdatta
> > > > > >
> > > > > >
> > > > > > 
> > > > > >
> > > > > > --
> > > > > > Flexcoders Mailing List
> > > > > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
> > > > > > Search Archives:
> > > > > >
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 !
> > Groups
> > > > > > Links
> > > > > >
> > > > > >
> > > > > >
> > > > 

[flexcoders] Re: Inheritance : Calling super.function with var args

2008-06-24 Thread dev.bits
dude, you are awesome! it worked 

I was looking for invoke (thats what javascript has for doing this)
and couldn't find it. I had seen that page (not apply but that page)
and had ignored it considering the huge differences between AS3 and
AS2 (I wanted something for AS2, which I now realise I never mentioned
:).  The adobe AS2 documentation is a real pain .. there is no
mention of the prototype property I could find 

anyways, thanks a lot for the awesome help (and the quick replies! )

Regards
Devdatta

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Sorry mate, that's my bad! you want .apply, not .call! My fault, I
should've
> double-checked before I posted!
> 
> http://livedocs.adobe.com/flex/3/langref/Function.html#apply()
> 
> -Josh
> 
> 
> 
> On Wed, Jun 25, 2008 at 12:57 PM, dev.bits <[EMAIL PROTECTED]> wrote:
> 
> > yeah I had tried that ! :)
> >
> > But it doesn't work ... I thought it was the problem "this" but
> > clearly this doesn't work :
> >flash.external.ExternalInterface.call.call(null,arguments);
> > doesn't work .
> > but
> >flash.external.ExternalInterface.call.call(null,"alert","whoa");
> >
> > works. So I guess we come back to the same problem... arguments passes
> > the args as 1 argument (an array) whereas we want to pass the each
> > member of the arguments array as an argument each.
> >
> >
> > Regards
> > Devdatta
> >
> > --- In flexcoders@yahoogroups.com, "Josh McDonald"  wrote:
> > >
> > > Ah, you didn't say it was a static function :)
> > >
> > > Just put "null" instead of "this" and it should work.
> > >
> > > -Josh
> > >
> > > On Wed, Jun 25, 2008 at 12:36 PM, dev.bits  wrote:
> > >
> > > >
> > > > Doesn't work for me .. says "this" not accessible ...
> > > >
> > > > See this code for e.g :
> > > > class package1.subpackage.newExternalInterface extends
> > > > flash.external.ExternalInterface{
> > > >public static function call(methodName:String):Object{
> > > >trace("called
newExternalInterface.called");
> > > >
> > > >  return
> > > > flash.external.ExternalInterface.call.call(this,arguments);
> > > > //Compiler says this not accessible from this scope
> > > >}
> > > >}
> > > >
> > > > Regards
> > > > Devdatta
> > > >
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Josh McDonald" 
wrote:
> > > > >
> > > > > Try:
> > > > >
> > > > > super.functionName.call(this, argsArray);
> > > > >
> > > > > -Josh
> > > > >
> > > > > On Wed, Jun 25, 2008 at 11:14 AM, dev.bits  wrote:
> > > > >
> > > > > > Hi
> > > > > >
> > > > > > If I extend a class and in the subclass override a
function of the
> > > > > > base class I can call the original base class function using
> > > > > > super.functionname
> > > > > >
> > > > > > But what do I do if this function excepts variable number of
> > > > arguments ?
> > > > > >
> > > > > > How do I pass all the arguments present in the arguments array
> > to the
> > > > > > super function?
> > > > > >
> > > > > > public override function a(){
> > > > > > super.a( // here I want to pass ALL the arguments that
were passed
> > > > > > // to this function
> > > > > >
> > > > > >
> > > > > > Regards
> > > > > > Devdatta
> > > > > >
> > > > > >
> > > > > > 
> > > > > >
> > > > > > --
> > > > > > Flexcoders Mailing List
> > > > > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > > Search Archives:
> > > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> > Groups
> > > > > > Links
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > "Therefore, send not to know For whom the bell tolls. It
tolls for
> > > > thee."
> > > > >
> > > > > :: Josh 'G-Funk' McDonald
> > > > > :: 0437 221 380 :: josh@
> > > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> > > > Links
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls for
> > thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




Re: [flexcoders] Re: Inheritance : Calling super.function with var args

2008-06-24 Thread Josh McDonald
Sorry mate, that's my bad! you want .apply, not .call! My fault, I should've
double-checked before I posted!

http://livedocs.adobe.com/flex/3/langref/Function.html#apply()

-Josh



On Wed, Jun 25, 2008 at 12:57 PM, dev.bits <[EMAIL PROTECTED]> wrote:

> yeah I had tried that ! :)
>
> But it doesn't work ... I thought it was the problem "this" but
> clearly this doesn't work :
>flash.external.ExternalInterface.call.call(null,arguments);
> doesn't work .
> but
>flash.external.ExternalInterface.call.call(null,"alert","whoa");
>
> works. So I guess we come back to the same problem... arguments passes
> the args as 1 argument (an array) whereas we want to pass the each
> member of the arguments array as an argument each.
>
>
> Regards
> Devdatta
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Ah, you didn't say it was a static function :)
> >
> > Just put "null" instead of "this" and it should work.
> >
> > -Josh
> >
> > On Wed, Jun 25, 2008 at 12:36 PM, dev.bits <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Doesn't work for me .. says "this" not accessible ...
> > >
> > > See this code for e.g :
> > > class package1.subpackage.newExternalInterface extends
> > > flash.external.ExternalInterface{
> > >public static function call(methodName:String):Object{
> > >trace("called newExternalInterface.called");
> > >
> > >  return
> > > flash.external.ExternalInterface.call.call(this,arguments);
> > > //Compiler says this not accessible from this scope
> > >}
> > >}
> > >
> > > Regards
> > > Devdatta
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Josh McDonald"  wrote:
> > > >
> > > > Try:
> > > >
> > > > super.functionName.call(this, argsArray);
> > > >
> > > > -Josh
> > > >
> > > > On Wed, Jun 25, 2008 at 11:14 AM, dev.bits  wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > If I extend a class and in the subclass override a function of the
> > > > > base class I can call the original base class function using
> > > > > super.functionname
> > > > >
> > > > > But what do I do if this function excepts variable number of
> > > arguments ?
> > > > >
> > > > > How do I pass all the arguments present in the arguments array
> to the
> > > > > super function?
> > > > >
> > > > > public override function a(){
> > > > > super.a( // here I want to pass ALL the arguments that were passed
> > > > > // to this function
> > > > >
> > > > >
> > > > > Regards
> > > > > Devdatta
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > > --
> > > > > Flexcoders Mailing List
> > > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > Search Archives:
> > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > > > Links
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > "Therefore, send not to know For whom the bell tolls. It tolls for
> > > thee."
> > > >
> > > > :: Josh 'G-Funk' McDonald
> > > > :: 0437 221 380 :: josh@
> > > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Inheritance : Calling super.function with var args

2008-06-24 Thread dev.bits
yeah I had tried that ! :)

But it doesn't work ... I thought it was the problem "this" but
clearly this doesn't work :
flash.external.ExternalInterface.call.call(null,arguments);
doesn't work .
but
flash.external.ExternalInterface.call.call(null,"alert","whoa");

works. So I guess we come back to the same problem... arguments passes
the args as 1 argument (an array) whereas we want to pass the each
member of the arguments array as an argument each.


Regards
Devdatta

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Ah, you didn't say it was a static function :)
> 
> Just put "null" instead of "this" and it should work.
> 
> -Josh
> 
> On Wed, Jun 25, 2008 at 12:36 PM, dev.bits <[EMAIL PROTECTED]> wrote:
> 
> >
> > Doesn't work for me .. says "this" not accessible ...
> >
> > See this code for e.g :
> > class package1.subpackage.newExternalInterface extends
> > flash.external.ExternalInterface{
> >public static function call(methodName:String):Object{
> >trace("called newExternalInterface.called");
> >
> >  return
> > flash.external.ExternalInterface.call.call(this,arguments);
> > //Compiler says this not accessible from this scope
> >}
> >}
> >
> > Regards
> > Devdatta
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "Josh McDonald"  wrote:
> > >
> > > Try:
> > >
> > > super.functionName.call(this, argsArray);
> > >
> > > -Josh
> > >
> > > On Wed, Jun 25, 2008 at 11:14 AM, dev.bits  wrote:
> > >
> > > > Hi
> > > >
> > > > If I extend a class and in the subclass override a function of the
> > > > base class I can call the original base class function using
> > > > super.functionname
> > > >
> > > > But what do I do if this function excepts variable number of
> > arguments ?
> > > >
> > > > How do I pass all the arguments present in the arguments array
to the
> > > > super function?
> > > >
> > > > public override function a(){
> > > > super.a( // here I want to pass ALL the arguments that were passed
> > > > // to this function
> > > >
> > > >
> > > > Regards
> > > > Devdatta
> > > >
> > > >
> > > > 
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> > > > Links
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls for
> > thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




Re: [flexcoders] Re: Inheritance : Calling super.function with var args

2008-06-24 Thread Josh McDonald
Ah, you didn't say it was a static function :)

Just put "null" instead of "this" and it should work.

-Josh

On Wed, Jun 25, 2008 at 12:36 PM, dev.bits <[EMAIL PROTECTED]> wrote:

>
> Doesn't work for me .. says "this" not accessible ...
>
> See this code for e.g :
> class package1.subpackage.newExternalInterface extends
> flash.external.ExternalInterface{
>public static function call(methodName:String):Object{
>trace("called newExternalInterface.called");
>
>  return
> flash.external.ExternalInterface.call.call(this,arguments);
> //Compiler says this not accessible from this scope
>}
>}
>
> Regards
> Devdatta
>
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Try:
> >
> > super.functionName.call(this, argsArray);
> >
> > -Josh
> >
> > On Wed, Jun 25, 2008 at 11:14 AM, dev.bits <[EMAIL PROTECTED]> wrote:
> >
> > > Hi
> > >
> > > If I extend a class and in the subclass override a function of the
> > > base class I can call the original base class function using
> > > super.functionname
> > >
> > > But what do I do if this function excepts variable number of
> arguments ?
> > >
> > > How do I pass all the arguments present in the arguments array to the
> > > super function?
> > >
> > > public override function a(){
> > > super.a( // here I want to pass ALL the arguments that were passed
> > > // to this function
> > >
> > >
> > > Regards
> > > Devdatta
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: ViewStack sizing problem

2008-06-24 Thread Tim Hoff

No worries, had to learn that one myself as well.  If you don't set that
property, the container will remain the size of the first child;
regardless.

Cheers,
-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi Amy,
> >
> > Try setting resizeToContent="true" on the ViewStack tag.
>
> ever have one of those "duh" moments?
>





[flexcoders] Re: Inheritance : Calling super.function with var args

2008-06-24 Thread dev.bits

Doesn't work for me .. says "this" not accessible ...

See this code for e.g :
class package1.subpackage.newExternalInterface extends
flash.external.ExternalInterface{
public static function call(methodName:String):Object{
trace("called newExternalInterface.called"); 

  return 
flash.external.ExternalInterface.call.call(this,arguments);
//Compiler says this not accessible from this scope 
}
}

Regards
Devdatta



--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Try:
> 
> super.functionName.call(this, argsArray);
> 
> -Josh
> 
> On Wed, Jun 25, 2008 at 11:14 AM, dev.bits <[EMAIL PROTECTED]> wrote:
> 
> > Hi
> >
> > If I extend a class and in the subclass override a function of the
> > base class I can call the original base class function using
> > super.functionname
> >
> > But what do I do if this function excepts variable number of
arguments ?
> >
> > How do I pass all the arguments present in the arguments array to the
> > super function?
> >
> > public override function a(){
> > super.a( // here I want to pass ALL the arguments that were passed
> > // to this function
> >
> >
> > Regards
> > Devdatta
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] Can I tell builder to ignore [ExcludeClass]?

2008-06-24 Thread Josh McDonald
Hey guys,

[ExcludeClass] is *incredibly* annoying when trying to locate and fix bugs
in the SDK; is there a way to make Builder ignore it without cloning the
entire SDK and regexing the source?

-Josh

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Inheritance : Calling super.function with var args

2008-06-24 Thread Josh McDonald
Try:

super.functionName.call(this, argsArray);

-Josh

On Wed, Jun 25, 2008 at 11:14 AM, dev.bits <[EMAIL PROTECTED]> wrote:

> Hi
>
> If I extend a class and in the subclass override a function of the
> base class I can call the original base class function using
> super.functionname
>
> But what do I do if this function excepts variable number of arguments ?
>
> How do I pass all the arguments present in the arguments array to the
> super function?
>
> public override function a(){
> super.a( // here I want to pass ALL the arguments that were passed
> // to this function
>
>
> Regards
> Devdatta
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: A very simple resize effects doesn't work property!

2008-06-24 Thread flexawesome
do I miss something?

--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> Hi there, I was working on the resize effects in ActionScript, it was 
> unable to play the effects.
> 
> Any suggestion?
> 
> http://www.privatepaste.com/eb0WyDTgtG
>




Re: [flexcoders] Re: line break in Actionscript variable

2008-06-24 Thread Josh McDonald
You need to run it on all your strings that are going into the URI. It
should encode the \n for you, if it's possible to do so in a mailto: style
URI

-Josh

On Wed, Jun 25, 2008 at 11:06 AM, jovialrandor <[EMAIL PROTECTED]>
wrote:

> Josh, can you highlight how I can use this for line break?
>
> Thanks
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> >
> http://livedocs.adobe.com/flex/3/langref/package.html#encodeURICompone
> nt()
> >
> > On Wed, Jun 25, 2008 at 6:33 AM, jovialrandor <[EMAIL PROTECTED]>
> > wrote:
> >
> > > does not work.
> > >
> > > here is my code:
> > >
> > > public var text1:String = "How are you?\nI am fine."
> > >
> > >
> > > private function openEmail(email:String, role:String):void{
> > >   var url:String = "mailto:"; + email;
> > >   var urlRequest : URLRequest = new URLRequest( url + "?
> subject=Role
> > > Use Request&body="+text1);
> > >   navigateToURL(urlRequest,"_self");
> > >
> > > }
> > >
> > >
> > >
> > > it displays:  How are you?I am fine
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > >
> > > > public var text:String = "How are you?\nI am fine."
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "jovialrandor"
> 
> > > > wrote:
> > > > >
> > > > > I want to be able to display line breaks in an email template
> > > that i am
> > > > > seding out from flex.
> > > > >
> > > > > I want to be able to assign a line break in a variable
> assignment.
> > > > >
> > > > > for example:
> > > > >
> > > > > public var text:String = "How are you?  I am fine."
> > > > >
> > > > >
> > > > > [display]
> > > > >
> > > > > How are you?
> > > > > I am fine
> > > > >
> > > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] No of Lines of Code

2008-06-24 Thread Paramjit Jolly
Hi all,

  Anyone have any idea, In any flex project we need to know no of lines
of code..

Any prebuild component or technique for this ?

I need to publish some statics on basis of this .

 

 

 

 

Thanks & Regards

Jolly

 

 

*


IMPORTANT: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply email and
destroy all copies of the original message. Please advise immediately if you
or your employer do not consent to Internet email for messages of this kind.
Opinions, conclusions and other information contained in this e-mail message
that do not relate to the official business of Life Fitness shall be
understood as neither given nor endorsed by it.

*


Love to God, Everyone starts loving you.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, June 25, 2008 9:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] httpservice and repetitive calls

 

As I understand  from my reading, the W3C specs state that POST methods do
not cache.  There are  posts on this list about it, and I am sure you could
look into the specs themselves.  I have just always used POST, and never had
any problems.  Aspx is nice because Request("myParm") handles both post and
get parameters.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cameron
Sent: Tuesday, June 24, 2008 6:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] httpservice and repetitive calls

 

I never saw my first post come through...hence the second post. That 
worked by the way, but I'm curious as to why?

Cameron

Tracy Spratt wrote:
>
> See my response to your first post.
>
> 
>
> Use the POST method instead of get.
>
> 
>
> Tracy
>
> 
>
> --
>
> *From:* flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ] 
> *On Behalf Of *Cameron
> *Sent:* Tuesday, June 24, 2008 1:18 PM
> *To:* flexcoders@yahoogroups.com  
> *Subject:* [flexcoders] httpservice and repetitive calls
>
> 
>
> I'm using the httpservice to make a call to an aspx page which runs a
> query and returns the results. This is fine, but if I try to run the
> same call again, the service is not actually going out to make the call,
> but rather just returning the results from the previous call. I know
> this because the aspx page logs each call made to it. I always see the
> first call, but no subsequent calls come through if I post the same
> data. If I send a different set of data, the call works fine, but then
> will not post that data again. Any ideas on why it doesn't want to
> actually make the call? Below are the relevant pieces of code:
> 
> public function lblClickHandler(event:Event):void{
> tgtdata = event.currentTarget.data.toString();
> customer_id = event.currentTarget.data;
> useHttpService();
> }
>
> public function useHttpService():void {
> userReq.url = dstURL; //set in another part of the code
> userReq.method = "GET";
>
> var Obj:Object = new Object();
> Obj.w = wispid; //wispid is just a number that is set
> elsewhere
> Obj.i = tgtdata;
> userReq.send(Obj);
> }
> ...
> 
>  fault="handleFault(event)" useProxy="false" method="GET"
> resultFormat="object" />
>
> 

 



RE: [flexcoders] httpservice and repetitive calls

2008-06-24 Thread Tracy Spratt
As I understand  from my reading, the W3C specs state that POST methods
do not cache.  There are  posts on this list about it, and I am sure you
could look into the specs themselves.  I have just always used POST, and
never had any problems.  Aspx is nice because Request("myParm") handles
both post and get parameters.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cameron
Sent: Tuesday, June 24, 2008 6:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] httpservice and repetitive calls

 

I never saw my first post come through...hence the second post. That 
worked by the way, but I'm curious as to why?

Cameron

Tracy Spratt wrote:
>
> See my response to your first post.
>
> 
>
> Use the POST method instead of get.
>
> 
>
> Tracy
>
> 
>
> --
>
> *From:* flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
] 
> *On Behalf Of *Cameron
> *Sent:* Tuesday, June 24, 2008 1:18 PM
> *To:* flexcoders@yahoogroups.com 

> *Subject:* [flexcoders] httpservice and repetitive calls
>
> 
>
> I'm using the httpservice to make a call to an aspx page which runs a
> query and returns the results. This is fine, but if I try to run the
> same call again, the service is not actually going out to make the
call,
> but rather just returning the results from the previous call. I know
> this because the aspx page logs each call made to it. I always see the
> first call, but no subsequent calls come through if I post the same
> data. If I send a different set of data, the call works fine, but then
> will not post that data again. Any ideas on why it doesn't want to
> actually make the call? Below are the relevant pieces of code:
> 
> public function lblClickHandler(event:Event):void{
> tgtdata = event.currentTarget.data.toString();
> customer_id = event.currentTarget.data;
> useHttpService();
> }
>
> public function useHttpService():void {
> userReq.url = dstURL; //set in another part of the code
> userReq.method = "GET";
>
> var Obj:Object = new Object();
> Obj.w = wispid; //wispid is just a number that is set
> elsewhere
> Obj.i = tgtdata;
> userReq.send(Obj);
> }
> ...
> 
>  fault="handleFault(event)" useProxy="false" method="GET"
> resultFormat="object" />
>
> 

 



[flexcoders] Inheritance : Calling super.function with var args

2008-06-24 Thread dev.bits
Hi

If I extend a class and in the subclass override a function of the
base class I can call the original base class function using
super.functionname

But what do I do if this function excepts variable number of arguments ?

How do I pass all the arguments present in the arguments array to the
super function?

public override function a(){
super.a( // here I want to pass ALL the arguments that were passed
 // to this function


Regards
Devdatta



[flexcoders] Re: ViewStack sizing problem

2008-06-24 Thread Amy
--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Amy,
> 
> Try setting resizeToContent="true" on the ViewStack tag.

ever have one of those "duh" moments?



[flexcoders] Re: line break in Actionscript variable

2008-06-24 Thread jovialrandor
Josh, can you highlight how I can use this for line break?

Thanks

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> 
http://livedocs.adobe.com/flex/3/langref/package.html#encodeURICompone
nt()
> 
> On Wed, Jun 25, 2008 at 6:33 AM, jovialrandor <[EMAIL PROTECTED]>
> wrote:
> 
> > does not work.
> >
> > here is my code:
> >
> > public var text1:String = "How are you?\nI am fine."
> >
> >
> > private function openEmail(email:String, role:String):void{
> >   var url:String = "mailto:"; + email;
> >   var urlRequest : URLRequest = new URLRequest( url + "?
subject=Role
> > Use Request&body="+text1);
> >   navigateToURL(urlRequest,"_self");
> >
> > }
> >
> >
> >
> > it displays:  How are you?I am fine
> >
> >
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > public var text:String = "How are you?\nI am fine."
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "jovialrandor" 

> > > wrote:
> > > >
> > > > I want to be able to display line breaks in an email template
> > that i am
> > > > seding out from flex.
> > > >
> > > > I want to be able to assign a line break in a variable 
assignment.
> > > >
> > > > for example:
> > > >
> > > > public var text:String = "How are you?  I am fine."
> > > >
> > > >
> > > > [display]
> > > >
> > > > How are you?
> > > > I am fine
> > > >
> > >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for 
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] iFrame WebSite IE and FireFox

2008-06-24 Thread essuark
I have pulled in a website info Flex using an iFrame. It is a simple
webpage that has a login screen. When using FireFox I am able to log
in but under IE I am not. As a test, I lowered my setting to the
lowest possible setting and still nothing. Anyone heard of this OR any
way to trace that out... somehow?

thanks
Ralph



Re: [flexcoders] Re: line break in Actionscript variable

2008-06-24 Thread Josh McDonald
http://livedocs.adobe.com/flex/3/langref/package.html#encodeURIComponent()

On Wed, Jun 25, 2008 at 6:33 AM, jovialrandor <[EMAIL PROTECTED]>
wrote:

> does not work.
>
> here is my code:
>
> public var text1:String = "How are you?\nI am fine."
>
>
> private function openEmail(email:String, role:String):void{
>   var url:String = "mailto:"; + email;
>   var urlRequest : URLRequest = new URLRequest( url + "?subject=Role
> Use Request&body="+text1);
>   navigateToURL(urlRequest,"_self");
>
> }
>
>
>
> it displays:  How are you?I am fine
>
>
> --- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
> >
> > public var text:String = "How are you?\nI am fine."
> >
> >
> > --- In flexcoders@yahoogroups.com, "jovialrandor" 
> > wrote:
> > >
> > > I want to be able to display line breaks in an email template
> that i am
> > > seding out from flex.
> > >
> > > I want to be able to assign a line break in a variable assignment.
> > >
> > > for example:
> > >
> > > public var text:String = "How are you?  I am fine."
> > >
> > >
> > > [display]
> > >
> > > How are you?
> > > I am fine
> > >
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Flex Application will not refresh properly

2008-06-24 Thread Brian Raymes
I have had similar problems when using I.E. 7/8.  Firefox has been
more consistent, but Safari (my least favorite browser) seems to be
working the best.

It appears to me that swfs are cached inconsistently.  If I update a
swf, I expect my browser to load the new version.  I have had to
delete my browser cache way too often to remedy this.

If you are using ColdFusion as a mediator, add this to the top of your
index.cfm (or whatever name yours) to help force a re-load the swfs
every time.  You might be able to accomplish this without ColdFusion
in the basic html template as well.



 

I would rather my browser detect new versions of swfs... I don't like
having to re-download every page visit.  The software I am working on
must be loaded consistently if a change is made on my end.  It is
important for my customers to see everything up-to-date.

Let me know if you find a better solution.


Brian

--- In flexcoders@yahoogroups.com, "Ryan Schlig" <[EMAIL PROTECTED]> wrote:
>
> I am having problems viewing the changes in my application on refresh.
> I have to actually close my browser and open up a new session before my
> changes will be seen.  This is not only a local problem, it also happens
> when I push out new versions of my application to our servers.  It seems
> as though IIS is not detecting a change in the html or swf.  Anyone else
> ran into this and found a solution?
> 
>  
> 
> Ryan Schlig
>




Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread Jeffry Houser


Server problems that I can't track down unfortunately.  This is the 
second "Failure" today.  : grumbles:  I'll spare the list from all the 
gory details. 


But, thanks for the link anyway. ;)

Douglas Knudsen wrote:

The AS file's remoteobject metadata should have alias point to the CFC
using full dot-path notation.  The alias attribute on the CFC is not
required, but would be this same path.  You don't specify the path to
your AS object anywhere, would kind of defeat a few things that.
would, eh?

http://www.jeffryhouser.com/index.cfm/2007/10/9/Why-does-ColdFusion-return-a-CFC-to-Flex-as-a-generic-object
 :)  See Tom's comments thereBTW, your site is appears to be down
currently Jeff.

DK

On Tue, Jun 24, 2008 at 4:39 PM, Jeffry Houser <[EMAIL PROTECTED]> wrote:
  

Was there a problem you were having with setting the aliases that you'd
like to share?

In the CFC your alias will be vo.VO
In the AS file the alias will be components.VO

Keep the paths case sensitive.

holmgren.eric wrote:


I guess I may be a little confused about how the aliases are supposed
to work then. Take the following example:

In flex builder I have a project named "Test" with the following
hierarchy that's set to run from wwwroot/Test-debug/ on the local CF
server ...

+ Test
+ bin-debug
+ html-template
+ libs
+ src
main.mxml
+ vo
VO.as

On the ColdFusion side I have a folder in wwwroot with my components ...

+ wwwroot
+ components
VO.cfc

How should I set the aliases in Flex and CF when they don't share the
same path?

Thanks,

Eric





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





  

--
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711 | Phone: 1-203-379-0773
--
Adobe Community Expert

My Company: 
My Podcast: 
My Blog: 







  


--
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 

My Company:  
My Podcast: 
My Blog:  



Re: [flexcoders] httpservice and repetitive calls

2008-06-24 Thread Cameron
I never saw my first post come through...hence the second post. That 
worked by the way, but I'm curious as to why?

Cameron

Tracy Spratt wrote:
>
> See my response to your first post.
>
>  
>
> Use the POST method instead of get.
>
>  
>
> Tracy
>
>  
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Cameron
> *Sent:* Tuesday, June 24, 2008 1:18 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] httpservice and repetitive calls
>
>  
>
> I'm using the httpservice to make a call to an aspx page which runs a
> query and returns the results. This is fine, but if I try to run the
> same call again, the service is not actually going out to make the call,
> but rather just returning the results from the previous call. I know
> this because the aspx page logs each call made to it. I always see the
> first call, but no subsequent calls come through if I post the same
> data. If I send a different set of data, the call works fine, but then
> will not post that data again. Any ideas on why it doesn't want to
> actually make the call? Below are the relevant pieces of code:
> 
> public function lblClickHandler(event:Event):void{
> tgtdata = event.currentTarget.data.toString();
> customer_id = event.currentTarget.data;
> useHttpService();
> }
>
> public function useHttpService():void {
> userReq.url = dstURL; //set in another part of the code
> userReq.method = "GET";
>
> var Obj:Object = new Object();
> Obj.w = wispid; //wispid is just a number that is set
> elsewhere
> Obj.i = tgtdata;
> userReq.send(Obj);
> }
> ...
> 
>  fault="handleFault(event)" useProxy="false" method="GET"
> resultFormat="object" />
>
>  



Re: [flexcoders] Re: Here's a great idea for flex 4 - simple color pallette utility

2008-06-24 Thread Josh McDonald
I agree with Richard, the ability to do Builder plugins in Actionscript with
access to the parsed source tree would open the platform for all *sorts* of
cool stuff, not just little visual doodads like this. I'm an experienced
Java dev, but not everybody here is. And I don't want to be doing native
eclipse code anyway.

-Josh

On Wed, Jun 25, 2008 at 3:08 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:

> What would be *really* nice would be an adapter to write Flexbuilder
> plug-in panels in Flex, or package Flex/AIR apps to run within
> Eclipse/FB with special integration APIs (just as AIR apps can re-use
> code from Flex apps, and have additional APIs to access the file
> system).
>
> Imagine what the community would come up with! A tool like Kuler could
> be available as a web app, an AIR app, or integrated into Flexbuilder.
>
> I believe the Design View is already a Flex app of some variety.
>
>

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread Douglas Knudsen
The AS file's remoteobject metadata should have alias point to the CFC
using full dot-path notation.  The alias attribute on the CFC is not
required, but would be this same path.  You don't specify the path to
your AS object anywhere, would kind of defeat a few things that.
would, eh?

http://www.jeffryhouser.com/index.cfm/2007/10/9/Why-does-ColdFusion-return-a-CFC-to-Flex-as-a-generic-object
 :)  See Tom's comments thereBTW, your site is appears to be down
currently Jeff.

DK

On Tue, Jun 24, 2008 at 4:39 PM, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> Was there a problem you were having with setting the aliases that you'd
> like to share?
>
> In the CFC your alias will be vo.VO
> In the AS file the alias will be components.VO
>
> Keep the paths case sensitive.
>
> holmgren.eric wrote:
>> I guess I may be a little confused about how the aliases are supposed
>> to work then. Take the following example:
>>
>> In flex builder I have a project named "Test" with the following
>> hierarchy that's set to run from wwwroot/Test-debug/ on the local CF
>> server ...
>>
>> + Test
>> + bin-debug
>> + html-template
>> + libs
>> + src
>> main.mxml
>> + vo
>> VO.as
>>
>> On the ColdFusion side I have a folder in wwwroot with my components ...
>>
>> + wwwroot
>> + components
>> VO.cfc
>>
>> How should I set the aliases in Flex and CF when they don't share the
>> same path?
>>
>> Thanks,
>>
>> Eric
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>>
>>
>>
>>
>>
>
> --
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711 | Phone: 1-203-379-0773
> --
> Adobe Community Expert
> 
> My Company: 
> My Podcast: 
> My Blog: 
>
> 



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Does Flex 2/3 support left to right languages?

2008-06-24 Thread Jeffry Houser

 Did you mean right to left  languages, or am I mixing up my right and 
left again?

 I interviewed the folks from Digital Primates on The Flex Show at the 
last 360Flex conference; and they said they had to extend every 
component in the Flex Framework except 3 to get right to left support. 

 On the plus side, I believe this will be a feature in Flash Player 10, 
which will most likely end up in native in Flex 4. 

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

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 

My Company:  
My Podcast: 
My Blog:  




Re: [flexcoders] Automatic programatically controls binding (i18n)

2008-06-24 Thread Matias Nicolas Sommi
Thanks, but there is no way to do it without extend the flex component?
-- 
Matías Nicolás Sommi

2008/6/23 Gordon Smith <[EMAIL PROTECTED]>:
> In MXML components you can simply use databinding expressions like
>
>
>
> 
>
>
>
> but in AS3 components you need to override resourcesChanged() -- which gets
> called when the ResourceManager's localeChain changes -- and reset the
> label.
>
>
>
> - Gordon
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Matias Nicolas Sommi
> Sent: Sunday, June 22, 2008 9:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Automatic programatically controls binding (i18n)
>
>
>
> Hello, recently i could make my app in two langs, but i have one
> problem, i wrote a class "I18n" with one static method called
> "getLanguageSelector" who gives me a Label and a ComboBox in a
> container. In the combobox the user can change his language. When the
> user changes his language, the app changes the localchain property of
> resourceManager.
> My problem is, all the controls in the mxml app changes his labels
> automatically, but the labels, like the label i return in the method
> "getLanguageSelector" does not change.
> I tried to make the label [Bindable] but it does not work.
> If you have some ideas, please tell me. Thanks.
> The I18n Class looks like this:
>
> public class I18n
> {
> public static const locales:Array = ["en_US", "es_ES"];
>
> [Bindable]
> private static var _container:HBox;
>
> public static function getLanguageSelector():DisplayObject
> {
> if(_container == null)
> {
> _container = new HBox();
>
> var _combo:ComboBox = new ComboBox();
> var _label:Label = new Label();
> //display items
> var languages:Array = ["English", "Espanol"];
>
> _label.name = "lblLang";
> _combo.name = "cmbLang";
> _combo.dataProvider = languages;
>
> //select default language
> _combo.selectedIndex = 0;
> ResourceManager.getInstance().localeChain = [locales[_combo.selectedIndex]];
>
> _label.text = ResourceManager.getInstance().getString('general',
> 'change_language');
> _label.includeInLayout = true;
>
> _combo.addEventListener(Event.CHANGE, I18n.onSelectionChange);
> _container.addChild(_label);
> _container.addChild(_combo);
> }
> return _container;
> }
>
> public static function onSelectionChange(e:Event):void
> {
> ResourceManager.getInstance().localeChain =
> [locales[(_container.getChildByName("cmbLang") as
> ComboBox).selectedIndex]];
> }
>
> }
>
> Best Regards.
> --
> Matías Nicolás Sommi
>
> 


Re: [flexcoders] Does Flex 2/3 support left to right languages?

2008-06-24 Thread Paul Andrews
Err.. like english?

- Original Message - 
From: "twcrone70" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, June 24, 2008 9:51 PM
Subject: [flexcoders] Does Flex 2/3 support left to right languages?


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



RE: [flexcoders] Does Flex 2/3 support left to right languages?

2008-06-24 Thread Gordon Smith
If you meant to say right-to-left language (like Arabic and Hebrew), the
answer is "Not properly".

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of twcrone70
Sent: Tuesday, June 24, 2008 1:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Does Flex 2/3 support left to right languages?

 

 

 



[flexcoders] Does Flex 2/3 support left to right languages?

2008-06-24 Thread twcrone70




Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread Jeffry Houser

 Was there a problem you were having with setting the aliases that you'd 
like to share? 

  In the CFC your alias will be vo.VO 
  In the AS file the alias will be components.VO 

 Keep the paths case sensitive. 

holmgren.eric wrote:
> I guess I may be a little confused about how the aliases are supposed
> to work then. Take the following example:
>
> In flex builder I have a project named "Test" with the following
> hierarchy that's set to run from wwwroot/Test-debug/ on the local CF
> server ...
>
> + Test
> + bin-debug
> + html-template
> + libs
> + src
> main.mxml
> + vo
> VO.as
> 
> On the ColdFusion side I have a folder in wwwroot with my components ...
>
> + wwwroot
> + components
> VO.cfc
>
> How should I set the aliases in Flex and CF when they don't share the
> same path?
>
> Thanks,
>
> Eric
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 

My Company:  
My Podcast: 
My Blog:  




[flexcoders] Re: line break in Actionscript variable

2008-06-24 Thread jovialrandor
does not work.

here is my code:

public var text1:String = "How are you?\nI am fine."


private function openEmail(email:String, role:String):void{
   var url:String = "mailto:"; + email;
   var urlRequest : URLRequest = new URLRequest( url + "?subject=Role 
Use Request&body="+text1);
   navigateToURL(urlRequest,"_self");
   
}



it displays:  How are you?I am fine


--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> public var text:String = "How are you?\nI am fine."
> 
> 
> --- In flexcoders@yahoogroups.com, "jovialrandor" 
> wrote:
> >
> > I want to be able to display line breaks in an email template 
that i am 
> > seding out from flex.
> > 
> > I want to be able to assign a line break in a variable assignment.
> > 
> > for example:
> > 
> > public var text:String = "How are you?  I am fine."
> > 
> > 
> > [display]
> > 
> > How are you?
> > I am fine
> >
>




[flexcoders] Re: Managed Collections with null objects

2008-06-24 Thread richcianci

LCDS 2.51. Collection managed by an application scoped custom
assembler with auto-sync-enabled and cache-items both set to true.
Paging enabled with a page size of 500.

--- In flexcoders@yahoogroups.com, "richcianci" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Seth Hodgson"  wrote:
> >
> > Hi guys,
> > 
> > What version of things are you running, and would you mind sharing
> your destination configuration?
> > 
> > Thanks,
> > Seth
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of richcianci
> > Sent: Tuesday, June 17, 2008 3:45 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Managed Collections with null objects
> > 
> > --- In flexcoders@yahoogroups.com, João Fernandes 
> >  wrote:
> > >
> > > I'm having this weird issue that never happened before.
> > > Sometimes, totally randomly, after deleting a managed item in a 
> > > arraycollection, instead of getting the arrayCollection resized by -
> > 1, 
> > > my arraycollection keeps the same size and I get a null object 
> > where the 
> > > managed item was previously.
> > > 
> > > This happens using ds.deleteItem() or using 
> > > arrayCollection.removeItemAt( itemIndex )
> > > -- 
> > > 
> > > João Fernandes
> > > 
> > > http://www.onflexwithcf.org
> > > http://www.riapt.org
> > >
> > 
> > I am having the same issue. Did you ever figure it out?
> 
> 




[flexcoders] Re: using mailto: in getURL

2008-06-24 Thread valdhor
http://www.ianr.unl.edu/internet/mailto.html

--- In flexcoders@yahoogroups.com, "jovialrandor" <[EMAIL PROTECTED]>
wrote:
>
> How do I add CC and BCC information in the following getURL 
> Actionscript code?
> 
> private function openEmail(email:String, role:String):void{
>var url:String = "mailto:"; + email;
>   var urlRequest : URLRequest = new URLRequest( url + "?
> subject=subjectHere&body=Hello, I am interested in using the tool for 
> my application. Please contact me.");
>navigateToURL(urlRequest,"_self");
>
> }
>




[flexcoders] Re: line break in Actionscript variable

2008-06-24 Thread valdhor
public var text:String = "How are you?\nI am fine."


--- In flexcoders@yahoogroups.com, "jovialrandor" <[EMAIL PROTECTED]>
wrote:
>
> I want to be able to display line breaks in an email template that i am 
> seding out from flex.
> 
> I want to be able to assign a line break in a variable assignment.
> 
> for example:
> 
> public var text:String = "How are you?  I am fine."
> 
> 
> [display]
> 
> How are you?
> I am fine
>




Re: [flexcoders] Runtime exception handling, what's your method?

2008-06-24 Thread Richard Rodseth
Not a direct answer, but I did recently learn about this approach to
debug vs release builds, which at least allows one to put liberal
asserts etc. in a debug build:

http://www.pixelate.de/blog/categories/actionscript


On Tue, Jun 24, 2008 at 1:09 PM, dave_defusion
<[EMAIL PROTECTED]> wrote:
> I'm about to embark on my third real Flex app and something I'm still
> not happy with is my handling (or lack of) of run time exceptions.
> Previously I've setup a logging target to log to the backend any
> strange/very rare exceptions that I can think of within my code.
>
> However the lack of a catch-all solution for those totally un-expected
> exceptions (which sneak through but are of course the worst kind) is
> something that I really miss from my previous (non Flex/flash)
> projects where I've had the ability to have a catch-all solution to
> wrap the entire application.
>
> I just wondered how other people were handling this, if at all? As
> no-one likes it when an error occurs and you don't know about it
> without someone telling you about it -- it's even worse if it kills
> the app.
>
> 


[flexcoders] Re: User loads CSV file

2008-06-24 Thread valdhor
Would this be for an AIR app or a web page?


--- In flexcoders@yahoogroups.com, "cox.blair" <[EMAIL PROTECTED]> wrote:
>
> Hello everyone,
> 
> I'm new here, so go easy on me. I'm essentially just beginning with
> Flex, needless to say, I'm ready to learn. Using Flex Builder 3.
> 
> I've spent a few hours looking through many of the flex sites I've
> come across and the mail archive for this list and can't seem to find
> the information I'm looking for. 
> 
> What I need to be able to do in our application is allow users to
> import a CSV file so that we can save it to the MySQL db, then do the
> work require to the data. The formatting of the CSV file will be
> consistent and previously arranged. The db will contain the same
> fields, it's just a matter of collecting the data. Right now, the file
> must be a CSV, since this is what the measuring equipment exports as.
> It needs to be as simple as possible for the user.
> 
> If you could offer some hints or put me in the correct direction of an
> example or tutorial, it would be appreciated.
> 
> Cheers,
> Blair
>




[flexcoders] using mailto: in getURL

2008-06-24 Thread jovialrandor
How do I add CC and BCC information in the following getURL 
Actionscript code?

private function openEmail(email:String, role:String):void{
   var url:String = "mailto:"; + email;
  var urlRequest : URLRequest = new URLRequest( url + "?
subject=subjectHere&body=Hello, I am interested in using the tool for 
my application. Please contact me.");
   navigateToURL(urlRequest,"_self");
   
}



[flexcoders] line break in Actionscript variable

2008-06-24 Thread jovialrandor
I want to be able to display line breaks in an email template that i am 
seding out from flex.

I want to be able to assign a line break in a variable assignment.

for example:

public var text:String = "How are you?  I am fine."


[display]

How are you?
I am fine





[flexcoders] Runtime exception handling, what's your method?

2008-06-24 Thread dave_defusion
I'm about to embark on my third real Flex app and something I'm still
not happy with is my handling (or lack of) of run time exceptions.
Previously I've setup a logging target to log to the backend any
strange/very rare exceptions that I can think of within my code.

However the lack of a catch-all solution for those totally un-expected
exceptions (which sneak through but are of course the worst kind) is
something that I really miss from my previous (non Flex/flash)
projects where I've had the ability to have a catch-all solution to
wrap the entire application.

I just wondered how other people were handling this, if at all? As
no-one likes it when an error occurs and you don't know about it
without someone telling you about it -- it's even worse if it kills
the app.



[flexcoders] Re: Can no longer quit my AIR app

2008-06-24 Thread Daniel Gold
is anyone else seeing this? If I click the close button on my main window
the application will exit, but choosing Quit from menu bar or dock icon
seems to do absolutely nothing?

On Mon, Jun 23, 2008 at 3:49 PM, Daniel Gold <[EMAIL PROTECTED]> wrote:

> AIR updated itself this morning, and now it seems I can no longer quit an
> app I'm developing using Apple-Q on my Mac or by choosing "Quit" from the
> Dock/Menu bar. It is quite possible something in my code broke this but I
> haven't found any likely culprits yet.
>
> Has anyone seen an issue like this in AIR? Choosing quit will close one of
> my growl-like notification windows if they're up, but my main window and
> toolbar just sit there, I have to force quit the app.
>


[flexcoders] Re: ViewStack sizing problem

2008-06-24 Thread Tim Hoff

Hi Amy,

Try setting resizeToContent="true" on the ViewStack tag.

-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> I have a ViewStack that contains a TileList and some other components
> that have a variable number of children and thus a variable height.
> It seems that the ViewStack decides how big it will be before all the
> children are finished sizing.
>
> I've tried adding logic in my override to commitProperties,
> updateDisplayList, and measure that set the height of the ViewStack
> directly based on the height (and I've also tried measuredHeight) of
> the VBox I have in the first child of the ViewStack. I've also tried
> setting a bindable variable in these places that sets the height and
> binding to that.
>
> My results are this:
>
> commitProperties--never gets to the full height
> updateDisplayList--stalls out (infinite loop?)
> measure--stalls out (infinite loop?) with bound variable, never
> reaches full height with setting the property directly
>
> Is there any way to use a ViewStack to simply change out the view
> without _having_ any height? Alternatively, is there a way to
> persuade it to wait until the children are sized to decide how big it
> is or to look at the size again when the children are done sizing?
>
> Thanks;
>
> Amy
>





Re: [flexcoders] Looking for the right loop

2008-06-24 Thread Toby Ashley
There are fancier ways of doing it I'm sure, but changing your code to the
following will make it work.

var numThings:int = things.length;

var nothingSelected:Boolean = true;

for (var i:int=0;i wrote:

> Hi,
>
> I'm confused on how to best create a loop to do the following:
> discover if each element's "selected" property is set to false.
> Basically, I just want to detect when all elements of my array have a
> "selected" property set to false.
>
> Here's my code:
> var numThings:int = things.length;
>
> for (var i:int=0;i if(!numThings[i].selected){ //
> }
> }
>
> I know I'm not using the correct loop, I just can't figure out how to
> better approach this problem. Any tips are very much appreciated.
> Thank you.
>
> Fumeng.
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Right click context menus

2008-06-24 Thread sbx33
Hello!

Per the Flex documentation:

"Flash Player has three types of context menus: the standard menu
(which appears when you right-click in Flash Player), the edit menu
(which appears when you right-click a selectable or editable text
field), and an error menu (which appears when a SWF file has failed to
load into Flash Player). Only the standard and edit menus can be
modified with the ContextMenu class."

I have been able to add custom menu items to the "standard menu"
however, I'm wondering if anyone knows how to add custom menu items to
the "edit menu" on a flex component, such as a TextArea.

The code I am using to add items to the "standard menu" is:

var newCM:ContextMenu = new ContextMenu();
var newCMI:ContextMenuItem = new ContextMenuItem("New Item");
newCM.customItems.push(newCMI);

TIA!

-Mac



[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread holmgren.eric
I guess I may be a little confused about how the aliases are supposed
to work then. Take the following example:

In flex builder I have a project named "Test" with the following
hierarchy that's set to run from wwwroot/Test-debug/ on the local CF
server ...

+ Test
+ bin-debug
+ html-template
+ libs
+ src
main.mxml
+ vo
VO.as

On the ColdFusion side I have a folder in wwwroot with my components ...

+ wwwroot
+ components
VO.cfc

How should I set the aliases in Flex and CF when they don't share the
same path?

Thanks,

Eric




[flexcoders] Requesing source code for Remote Sorting using ICollectionView

2008-06-24 Thread bavva
Hi,
   I am looking for the source code for remote sorting with paging 
using IcollectionView to use with DataGrid. I see a thread titled "Flex 
2.0 Remote database sorting" happened between Dion Mendel and Matt 
Chotin. I am just wondering if Dion has posted his source code 
somewhere.

Thanks
Prakash



[flexcoders] User loads CSV file

2008-06-24 Thread cox.blair
Hello everyone,

I'm new here, so go easy on me. I'm essentially just beginning with
Flex, needless to say, I'm ready to learn. Using Flex Builder 3.

I've spent a few hours looking through many of the flex sites I've
come across and the mail archive for this list and can't seem to find
the information I'm looking for. 

What I need to be able to do in our application is allow users to
import a CSV file so that we can save it to the MySQL db, then do the
work require to the data. The formatting of the CSV file will be
consistent and previously arranged. The db will contain the same
fields, it's just a matter of collecting the data. Right now, the file
must be a CSV, since this is what the measuring equipment exports as.
It needs to be as simple as possible for the user.

If you could offer some hints or put me in the correct direction of an
example or tutorial, it would be appreciated.

Cheers,
Blair



[flexcoders] A very simple resize effects doesn't work property!

2008-06-24 Thread flexawesome
Hi there, I was working on the resize effects in ActionScript, it was 
unable to play the effects.

Any suggestion?

http://www.privatepaste.com/eb0WyDTgtG








[flexcoders] ViewStack sizing problem

2008-06-24 Thread Amy
I have a ViewStack that contains a TileList and some other components 
that have a variable number of children and thus a variable height.  
It seems that the ViewStack decides how big it will be before all the 
children are finished sizing.

I've tried adding logic in my override to commitProperties, 
updateDisplayList, and measure that set the height of the ViewStack 
directly based on the height (and I've also tried measuredHeight) of 
the VBox I have in the first child of the ViewStack.  I've also tried 
setting a bindable variable in these places that sets the height and 
binding to that.

My results are this:

commitProperties--never gets to the full height
updateDisplayList--stalls out (infinite loop?)
measure--stalls out (infinite loop?) with bound variable, never 
reaches full height with setting the property directly

Is there any way to use a ViewStack to simply change out the view 
without _having_ any height?  Alternatively, is there a way to 
persuade it to wait until the children are sized to decide how big it 
is or to look at the size again when the children are done sizing?

Thanks;

Amy





[flexcoders] Small problem with database delete function

2008-06-24 Thread bredwards358
I am nearly done implementing database interactivity with the piece of
the application I'm working on.  One problem remains before the minor
stuff which will wait until after all crucial functionality is finished.
What's supposed to happen and what actually does happen except for the
issue is that for each order there is a header attached to it. The user
can open up a list of orders which is represented by the headers. From
there the user can click to edit an order which brings up the actual
order itself from the needed table. The issue is that when the user
wishes to delete an order, the order gets deleted, but the products
associated with said order remain, only one gets deleted. While
everything pretty much works, all those leftover items in the table
building up is not good.

Here's the code so far:

private function deletePORO():void
{
 try
 {
 selectedIndex = dgOrders.selectedItem.ROID;//Index of the item
being selected
 dataManager.deleteRO(selectedIndex);//Deletes the header row
 DataManager.openIndex = selectedIndex;//Index of the rows that
need to be deleted from the actual Order
 dataManager.getData("Repair Order");//Gets a copy of the info
from the database and assigns it to an arrayCollection
 //Loops through the Repair order data deleting all rows with the
same ROID as the ROHeader being deleted
 //Yet after all is said and done it only deletes one item and
nothing else
 //Everything else works fine but this
 var n:int = model.repairOrderData.length;
 for (var i:int = 0; i < n; i++)
 {
 if(model.repairOrderData[i].ROID == selectedIndex)
 {
 dataManager.deleteROItem(model.repairOrderData[i].ROID);
 }
 }
 model.roSearchData.removeItemAt(selectedIndex);
 }
 catch(ex:Error)
 {
 Alert.show("Error Found: " +
ex.toString(),"Error",Alert.OK,this);
 }
}

Thanks in advance for any helpful hints or advice

Brian Ross Edwards
Tech-Connect LLC



[flexcoders] WSDL Introspection Tool: Why generate to related classes for just one class?

2008-06-24 Thread gnu wolf
Hi,

I'm just wondering...

In java when I generated the proxy classes, I only got Record.java, while in
WSDL introspection tool of FlexBuilder 3, I got Record.as and Record0.as.

Any ideas?

Thanks in advance.

Clem


RE: [flexcoders] passing data from PHP to Flex

2008-06-24 Thread Tracy Spratt
We answered this one a day or two ago, check the archives. 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ghus32
Sent: Tuesday, June 24, 2008 1:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing data from PHP to Flex

 

Hello everyone,

I have an upload script that I am using in Flex with PHP. The upload 
function is working fine, but I want to pass data from the serverside 
script back to the app. I want to communicate the message part in the 
php back to Flex.

HOw would I go about doing this..

My PHP code is below

$uploaddir = TEMPLATE_DIRECTORY;
$filename= trim($_FILES['file']['name']);

if(is_uploaded_file($_FILES['file']['tmp_name']))
{


$id = time().mt_rand(0,1);
$file = $id;


move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.$file);

$filepath=$uploaddir.'/';

$query_filename= "INSERT INTO template(name, location, temp_name) 
VALUES ('$filename', '$filepath' , '$file')";

$result_filename = mysql_query( $query_filename );

}
print "Your file has been uploaded successfully! Yay!";

$message = "$file 
uploadedsuccessfully.";
echo $message;

 



[flexcoders] Re: Looking for the right loop

2008-06-24 Thread fumeng5
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> You fixed:
> 
> if(!numThings[i].selected){ //
> 
> correct?
> 
> numThings is an int, you need the array there.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of fumeng5
> Sent: Tuesday, June 24, 2008 12:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Looking for the right loop
> 
>  
> 
> --- In flexcoders@yahoogroups.com 
> , "Tracy Spratt"  wrote:
> >
> > I think this line:
> > 
> > if(!numThings[i].selected){ //
> > 
> > should be:
> > 
> > if(!things[i].selected){ //
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of Doug McCune
> > Sent: Tuesday, June 24, 2008 12:11 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: Re: [flexcoders] Looking for the right loop
> > 
> > 
> > 
> > There's nothing wrong with your code. You can also use a for each loop
> > instead, which might be a bit faster, but doesn't give you elements in
> > any kind of order.
> > 
> > But you could try this for each loop:
> > 
> > for each(var thing:Object in things) {
> > 
> > if(thing.selected == false) {
> > 
> > //whatever
> > 
> > }
> > 
> > }
> > 
> > Just note that using a for loop from 0 to the number of items will
> give
> > you those items in order, but a for each loop will give you them in
> > non-sequential order.
> > 
> > Doug
> > 
> > On Tue, Jun 24, 2008 at 8:57 AM, fumeng5  >  > wrote:
> > 
> > Hi,
> > 
> > I'm confused on how to best create a loop to do the following:
> > discover if each element's "selected" property is set to false.
> > Basically, I just want to detect when all elements of my array have a
> > "selected" property set to false. 
> > 
> > Here's my code:
> > var numThings:int = things.length;
> > 
> > for (var i:int=0;i > if(!numThings[i].selected){ // 
> > } 
> > }
> > 
> > I know I'm not using the correct loop, I just can't figure out how to
> > better approach this problem. Any tips are very much appreciated.
> > Thank you. 
> > 
> > Fumeng.
> >
> Thank you for your quick responses. I've decided to add another var to
> my code and it's working just fine now:
> 
> var thingsNotSelected:int = 0;
> var numThings:int = things.length;
> 
> for (var i:int=0;i if(!numThings[i].selected){
> thingsNotSelected++;
> } 
> }
> if(thingsNotSelected == numThings){
> // I know everything inside the array is not selected.
> }
> 
> Thank you again for your help.
> 
> Fumeng.
>
correct. nice catch. 

thanks. 



[flexcoders] passing data from PHP to Flex

2008-06-24 Thread ghus32
Hello everyone,

I have an upload script that I am using in Flex with PHP. The upload 
function is working fine, but I want to pass data from the serverside 
script back to the app. I want to communicate the message part in the 
php back to Flex.

HOw would I go about doing this..






My PHP code is below

$uploaddir = TEMPLATE_DIRECTORY;
$filename= trim($_FILES['file']['name']);



if(is_uploaded_file($_FILES['file']['tmp_name']))
{
 

  $id = time().mt_rand(0,1);
  $file = $id;
 
  
move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.$file);

$filepath=$uploaddir.'/';



$query_filename= "INSERT INTO template(name, location, temp_name) 
VALUES ('$filename', '$filepath' , '$file')";

$result_filename = mysql_query( $query_filename );

}
print "Your file has been uploaded successfully! Yay!";



$message =  "$file 
uploadedsuccessfully.";
echo $message;




Re: [flexcoders] Problem with click event and Image component

2008-06-24 Thread Guillermo Villasana
Thanks Alex, I had checked the archives, but I just didn't know how to 
look it for, now with this clue I have been able to make it work, but 
now, I have the following problem. I am setting a flash as a button, 
this flash has an action when the mouse is over it, but with the 
mouseEnables/mouseChildren the action does not execute.
Thanks again

Alex Harui escribió:
> 
> 
> Check the archives.  I think you have to set some 
> mouseEnabled/mouseChildren flag.
> 
>  
> 
> 
> 
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Guillermo Villasana
> *Sent:* Tuesday, June 24, 2008 8:35 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Problem with click event and Image component
> 
>  
> 
> Hello guys, I am having problems adding a click event to an image, I
> don't know why it just doesn't work.
> 
> I have an app something like this
> 
> 
> 
> 
> in myCanvas component I have
> 
> 
> 
> 
> 
> other components
> 
> 
> 
> 
> I don't know why the img2 doesn't do the click event
> any thoughts
> Thanks
> 
> 



RE: [flexcoders] httpservice and repetitive calls

2008-06-24 Thread Tracy Spratt
See my response to your first post.

 

Use the POST method instead of get.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cameron
Sent: Tuesday, June 24, 2008 1:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] httpservice and repetitive calls

 

I'm using the httpservice to make a call to an aspx page which runs a 
query and returns the results. This is fine, but if I try to run the 
same call again, the service is not actually going out to make the call,

but rather just returning the results from the previous call. I know 
this because the aspx page logs each call made to it. I always see the 
first call, but no subsequent calls come through if I post the same 
data. If I send a different set of data, the call works fine, but then 
will not post that data again. Any ideas on why it doesn't want to 
actually make the call? Below are the relevant pieces of code:

public function lblClickHandler(event:Event):void{
tgtdata = event.currentTarget.data.toString();
customer_id = event.currentTarget.data;
useHttpService();
}

public function useHttpService():void {
userReq.url = dstURL; //set in another part of the code
userReq.method = "GET";

var Obj:Object = new Object();
Obj.w = wispid; //wispid is just a number that is set 
elsewhere
Obj.i = tgtdata;
userReq.send(Obj);
}
...



 



[flexcoders] httpservice and repetitive calls

2008-06-24 Thread Cameron
I'm using the httpservice to make a call to an aspx page which runs a 
query and returns the results. This is fine, but if I try to run the 
same call again, the service is not actually going out to make the call, 
but rather just returning the results from the previous call. I know 
this because the aspx page logs each call made to it. I always see the 
first call, but no subsequent calls come through if I post the same 
data. If I send a different set of data, the call works fine, but then 
will not post that data again. Any ideas on why it doesn't want to 
actually make the call? Below are the relevant pieces of code:

public function lblClickHandler(event:Event):void{
tgtdata = event.currentTarget.data.toString();
   customer_id = event.currentTarget.data;
useHttpService();
  }

public function useHttpService():void {
userReq.url = dstURL; //set in another part of the code
userReq.method = "GET";

var Obj:Object = new Object();
Obj.w = wispid;  //wispid is just a number that is set 
elsewhere
Obj.i = tgtdata;
userReq.send(Obj);
}
...





Re: [flexcoders] Re: Here's a great idea for flex 4 - simple color pallette utility

2008-06-24 Thread Richard Rodseth
What would be *really* nice would be an adapter to write Flexbuilder
plug-in panels in Flex, or package Flex/AIR apps to run within
Eclipse/FB with special integration APIs (just as AIR apps can re-use
code from Flex apps, and have additional APIs to access the file
system).

Imagine what the community would come up with! A tool like Kuler could
be available as a web app, an AIR app, or integrated into Flexbuilder.

I believe the Design View is already a Flex app of some variety.

On Tue, Jun 24, 2008 at 8:10 AM, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Tuesday 24 Jun 2008, Amy wrote:
>> You're right, Tom.  How could I not see how user friendly it is to need
>> to go out to other tools for basic functionality?  
>
> I'm on Linux, so when doing GUI work normally have it open anyway :-)
>
> --
> Tom Chiverton
>
> 
>
> 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. Any 
> reference to a partner in relation to Halliwells LLP means a member of 
> Halliwells LLP.  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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] Re: Question about drawSelectionIndicator

2008-06-24 Thread markgoldin_2000
Can I make it not to? So the width will effect selection spot too?


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Because the super class ignores width.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, June 24, 2008 7:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Question about drawSelectionIndicator
> 
>  
> 
> Here is mmy code:
> override protected function drawSelectionIndicator
(indicator:Sprite, 
> x:Number, y:Number, width:Number, height:Number, color:uint, 
> itemRenderer:IListItemRenderer):void 
> { 
> super.drawSelectionIndicator(indicator, x, y, width, height, color, 
> itemRenderer);
> }
> Providing a different value for the height will create a different 
> selection spot on the screen, but a different width does not seem 
to be 
> of any effect. Even a zero does not change it. It still selects the 
> whole row, no matter what. Can someone explain why is that?
> 
> Thanks
>




RE: [flexcoders] Re: Looking for the right loop

2008-06-24 Thread Tracy Spratt
You fixed:

if(!numThings[i].selected){ //

correct?

numThings is an int, you need the array there.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fumeng5
Sent: Tuesday, June 24, 2008 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Looking for the right loop

 

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I think this line:
> 
> if(!numThings[i].selected){ //
> 
> should be:
> 
> if(!things[i].selected){ //
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Doug McCune
> Sent: Tuesday, June 24, 2008 12:11 PM
> To: flexcoders@yahoogroups.com  
> Subject: Re: [flexcoders] Looking for the right loop
> 
> 
> 
> There's nothing wrong with your code. You can also use a for each loop
> instead, which might be a bit faster, but doesn't give you elements in
> any kind of order.
> 
> But you could try this for each loop:
> 
> for each(var thing:Object in things) {
> 
> if(thing.selected == false) {
> 
> //whatever
> 
> }
> 
> }
> 
> Just note that using a for loop from 0 to the number of items will
give
> you those items in order, but a for each loop will give you them in
> non-sequential order.
> 
> Doug
> 
> On Tue, Jun 24, 2008 at 8:57 AM, fumeng5 <[EMAIL PROTECTED]
>  > wrote:
> 
> Hi,
> 
> I'm confused on how to best create a loop to do the following:
> discover if each element's "selected" property is set to false.
> Basically, I just want to detect when all elements of my array have a
> "selected" property set to false. 
> 
> Here's my code:
> var numThings:int = things.length;
> 
> for (var i:int=0;i if(!numThings[i].selected){ // 
> } 
> }
> 
> I know I'm not using the correct loop, I just can't figure out how to
> better approach this problem. Any tips are very much appreciated.
> Thank you. 
> 
> Fumeng.
>
Thank you for your quick responses. I've decided to add another var to
my code and it's working just fine now:

var thingsNotSelected:int = 0;
var numThings:int = things.length;

for (var i:int=0;i

Re: [flexcoders] How to make BlazeDS working?

2008-06-24 Thread James Ward
This article might be helpful:
http://www.infoq.com/articles/blazeds-intro

-James



- Original Message -
From: flexcoders@yahoogroups.com 
To: flexcoders@yahoogroups.com 
Sent: Tue Jun 24 09:13:34 2008
Subject: [flexcoders] How to make BlazeDS working?

Hi,

I know BlazeDS is a open souce and I like its features.

I do not have a lot java experience,do you think it is hard for me to 
make it working.

Do you have a good tutorial to make BlazeDS work with coldfusion 
application?

Please give me advice.

Thanks

Mark



 


RE: [flexcoders] Flex TextInput componet 's problem

2008-06-24 Thread Alex Harui
They are the same after validation

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ray Zhang
Sent: Tuesday, June 24, 2008 2:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex TextInput componet 's problem

 

I don't know TextInput 's text and textField.text property 's difference


 

anybody know ,tell me plz

 

Ray

 

 

 

 



RE: [flexcoders] Question about drawSelectionIndicator

2008-06-24 Thread Alex Harui
Because the super class ignores width.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, June 24, 2008 7:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about drawSelectionIndicator

 

Here is mmy code:
override protected function drawSelectionIndicator(indicator:Sprite, 
x:Number, y:Number, width:Number, height:Number, color:uint, 
itemRenderer:IListItemRenderer):void 
{ 
super.drawSelectionIndicator(indicator, x, y, width, height, color, 
itemRenderer);
}
Providing a different value for the height will create a different 
selection spot on the screen, but a different width does not seem to be 
of any effect. Even a zero does not change it. It still selects the 
whole row, no matter what. Can someone explain why is that?

Thanks

 



RE: [flexcoders] triggering a function (when an argument is a bindable value)?

2008-06-24 Thread Tracy Spratt
ChangeWatcher.  Is there some reason you do not want to use this?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nwebb
Sent: Tuesday, June 24, 2008 10:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] triggering a function (when an argument is a
bindable value)?

 

Hi, 

I was looking at how you can trigger a function when an argument is a
bindable value

e.g.

//userLevel is a bindable value & formatMessage is a function will be
called when userLevel changes


This is cool if you're just displaying a value in a text field. However,
what if you don't necessarily want to return a value (i.e. you don't
have a destination)?
Hopefully this will show what I mean:

private function stateManager(value:String):void
{
 switch(value)
 {
case "basic":
 currentState = '';
 break;
 case "admin":
  currentState = 'AdminState';
  break;
 default:
  currentState = '';
  }
 }

BindingUtils methods and the binding tag both expect a destination, but
in this case there isn't one. Is the solution simply to use
ChangeWatcher instead, or can this be done using binding syntax?

Cheers





 



RE: [flexcoders] Problem with click event and Image component

2008-06-24 Thread Alex Harui
Check the archives.  I think you have to set some
mouseEnabled/mouseChildren flag.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guillermo Villasana
Sent: Tuesday, June 24, 2008 8:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with click event and Image component

 

Hello guys, I am having problems adding a click event to an image, I 
don't know why it just doesn't work.

I have an app something like this




in myCanvas component I have





other components




I don't know why the img2 doesn't do the click event
any thoughts
Thanks

 



[flexcoders] Re: Looking for the right loop

2008-06-24 Thread fumeng5
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I think this line:
> 
> if(!numThings[i].selected){ //
> 
> should be:
> 
> if(!things[i].selected){ //
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Doug McCune
> Sent: Tuesday, June 24, 2008 12:11 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Looking for the right loop
> 
>  
> 
> There's nothing wrong with your code. You can also use a for each loop
> instead, which might be a bit faster, but doesn't give you elements in
> any kind of order.
> 
> But you could try this for each loop:
> 
> for each(var thing:Object in things) {
> 
> if(thing.selected == false) {
> 
> //whatever
> 
> }
> 
> }
> 
> Just note that using a for loop from 0 to the number of items will give
> you those items in order, but a for each loop will give you them in
> non-sequential order.
> 
> Doug
> 
> On Tue, Jun 24, 2008 at 8:57 AM, fumeng5 <[EMAIL PROTECTED]
>  > wrote:
> 
> Hi,
> 
> I'm confused on how to best create a loop to do the following:
> discover if each element's "selected" property is set to false.
> Basically, I just want to detect when all elements of my array have a
> "selected" property set to false. 
> 
> Here's my code:
> var numThings:int = things.length;
> 
> for (var i:int=0;i if(!numThings[i].selected){ // 
> } 
> }
> 
> I know I'm not using the correct loop, I just can't figure out how to
> better approach this problem. Any tips are very much appreciated.
> Thank you. 
> 
> Fumeng.
>
Thank you for your quick responses. I've decided to add another var to
my code and it's working just fine now:

var thingsNotSelected:int = 0;
var numThings:int = things.length;

for (var i:int=0;i

RE: [flexcoders] Looking for the right loop

2008-06-24 Thread Tracy Spratt
I think this line:

if(!numThings[i].selected){ //

should be:

if(!things[i].selected){ //

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Tuesday, June 24, 2008 12:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Looking for the right loop

 

There's nothing wrong with your code. You can also use a for each loop
instead, which might be a bit faster, but doesn't give you elements in
any kind of order.

But you could try this for each loop:

for each(var thing:Object in things) {

if(thing.selected == false) {

//whatever

}

}

Just note that using a for loop from 0 to the number of items will give
you those items in order, but a for each loop will give you them in
non-sequential order.

Doug

On Tue, Jun 24, 2008 at 8:57 AM, fumeng5 <[EMAIL PROTECTED]
 > wrote:

Hi,

I'm confused on how to best create a loop to do the following:
discover if each element's "selected" property is set to false.
Basically, I just want to detect when all elements of my array have a
"selected" property set to false. 

Here's my code:
var numThings:int = things.length;

for (var i:int=0;i

RE: [flexcoders] Re: calling and re-calling with httpservice

2008-06-24 Thread Tracy Spratt
This sounds to me like the caching issue.

 

Are you using POST or GET method?  POST is not supposed to cache.

 

If you must use GET, append a unique string to each url.  Folks often
use Date.getTime()

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Tuesday, June 24, 2008 11:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: calling and re-calling with httpservice

 

Have you tried using Charles (Or another HTTP Proxy) to make sure
another HTTPService call is actually being made?

I must recommend using Charles for any server data exchange debugging
- it is indispensable.

Also, it appears that Flex packages up requests and sends them to the
server together. Maybe that is biting you. Seth Hodgson explains it
better here:
http://tech.groups.yahoo.com/group/flexcoders/message/113808
 

--- In flexcoders@yahoogroups.com 
, "cscrum" <[EMAIL PROTECTED]> wrote:
>
> Here is a strange thing I ran into today. I have a program which 
> queries a DB through an aspx script called with httpservice. A user 
> clicks on a name, the query runs, and populates a form with data 
> from the database. The user can then edit the information and submit 
> the form to another script which makes changes to the DB. That is 
> all working except that when the user clicks on the same name again, 
> the old information is returned. I have verified that the DB is 
> being altered with the submit script. If I close the application and 
> reopen it and select the user again, then the modified data is 
> there. Is there something I am missing the httpservice call? I've 
> tried setting the array used for the result data to null. I even put 
> just a text field on the page and printed the results of the query 
> to it. It shows the old data too. It seems like it's not actually 
> running the query again like it should, but rather taking the values 
> from some place in memory until I close the app and reopen it. Any 
> ideas?
> 
> Relevant parts of my code are posted. 
> Attach Code 
> 
>  
>  
> 
> 
> 
> 
> 
>  fault="handleFault(event)" useProxy="false" method="GET" 
> resultFormat="object" />
> 

[flexcoders] How to make BlazeDS working?

2008-06-24 Thread markflex2007
Hi,

I know BlazeDS is a open souce and I like its features.

I do not have a lot java experience,do you think it is hard for me to 
make it working.

Do you have a good tutorial to make BlazeDS work with coldfusion 
application?

Please give me advice.

Thanks


Mark



Re: [flexcoders] Looking for the right loop

2008-06-24 Thread Doug McCune
There's nothing wrong with your code. You can also use a for each loop
instead, which might be a bit faster, but doesn't give you elements in any
kind of order.

But you could try this for each loop:

for each(var thing:Object in things) {
if(thing.selected == false) {
//whatever
}
}

Just note that using a for loop from 0 to the number of items will give you
those items in order, but a for each loop will give you them in
non-sequential order.

Doug

On Tue, Jun 24, 2008 at 8:57 AM, fumeng5 <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> I'm confused on how to best create a loop to do the following:
> discover if each element's "selected" property is set to false.
> Basically, I just want to detect when all elements of my array have a
> "selected" property set to false.
>
> Here's my code:
> var numThings:int = things.length;
>
> for (var i:int=0;i if(!numThings[i].selected){ //
> }
> }
>
> I know I'm not using the correct loop, I just can't figure out how to
> better approach this problem. Any tips are very much appreciated.
> Thank you.
>
> Fumeng.
>
>  
>


[flexcoders] Looking for the right loop

2008-06-24 Thread fumeng5
Hi,

I'm confused on how to best create a loop to do the following:
discover if each element's "selected" property is set to false.
Basically, I just want to detect when all elements of my array have a
"selected" property set to false. 

Here's my code:
var numThings:int = things.length;

for (var i:int=0;i

[flexcoders] Problem with click event and Image component

2008-06-24 Thread Guillermo Villasana
Hello guys, I am having problems adding a click event to an image, I 
don't know why it just doesn't work.

I have an app something like this





in myCanvas component I have



  
  
   other components
   
  


I don't know why the img2 doesn't do the click event
any thoughts
Thanks


[flexcoders] Re: calling and re-calling with httpservice

2008-06-24 Thread valdhor
Have you tried using Charles (Or another HTTP Proxy) to make sure
another HTTPService call is actually being made?

I must recommend using Charles for any server data exchange debugging
- it is indispensable.

Also, it appears that Flex packages up requests and sends them to the
server together. Maybe that is biting you. Seth Hodgson explains it
better here: http://tech.groups.yahoo.com/group/flexcoders/message/113808


--- In flexcoders@yahoogroups.com, "cscrum" <[EMAIL PROTECTED]> wrote:
>
> Here is a strange thing I ran into today. I have a program which 
> queries a DB through an aspx script called with httpservice. A user 
> clicks on a name, the query runs, and populates a form with data 
> from the database. The user can then edit the information and submit 
> the form to another script which makes changes to the DB. That is 
> all working except that when the user clicks on the same name again, 
> the old information is returned. I have verified that the DB is 
> being altered with the submit script. If I close the application and 
> reopen it and select the user again, then the modified data is 
> there. Is there something I am missing the httpservice call? I've 
> tried setting the array used for the result data to null. I even put 
> just a text field on the page and printed the results of the query 
> to it. It shows the old data too. It seems like it's not actually 
> running the query again like it should, but rather taking the values 
> from some place in memory until I close the app and reopen it. Any 
> ideas?
> 
> Relevant parts of my code are posted. 
> Attach Code 
> 
>  
>
>
> 
> 
> 
> 
>  fault="handleFault(event)" useProxy="false" method="GET" 
> resultFormat="object" />
>   

Re: [flexcoders] Re: Here's a great idea for flex 4 - simple color pallette utility

2008-06-24 Thread Tom Chiverton
On Tuesday 24 Jun 2008, Amy wrote:
> You're right, Tom.  How could I not see how user friendly it is to need
> to go out to other tools for basic functionality?  

I'm on Linux, so when doing GUI work normally have it open anyway :-)

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: - CDATA without the whitespace mangling?

2008-06-24 Thread Amy
--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Ah, what I was looking for was condenseWhite="true" :)
> 
> Cheers!

Glad you found it :-)



[flexcoders] Re: Here's a great idea for flex 4 - simple color pallette utility

2008-06-24 Thread Amy
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Tuesday 24 Jun 2008, Amy wrote:
> > I'd like to see a color picker with swatches like you see in other
> > tools.  The continuous tone color picker Flex has means you wind up
> > with colors like #ACF2C1.
> 
> I just use the Style Explorer web site.

You're right, Tom.  How could I not see how user friendly it is to need 
to go out to other tools for basic functionality?  

;-)



[flexcoders] triggering a function (when an argument is a bindable value)?

2008-06-24 Thread nwebb
Hi,

I was looking at how you can trigger a function when an argument is a
bindable value

e.g.

//userLevel is a bindable value & formatMessage is a function will be called
when userLevel changes


This is cool if you're just displaying a value in a text field. However,
what if you don't necessarily want to return a value (i.e. you don't have a
destination)?
Hopefully this will show what I mean:

private function stateManager(value:String):void
{
 switch(value)
 {
case "basic":
 currentState = '';
 break;
 case "admin":
  currentState = 'AdminState';
  break;
 default:
  currentState = '';
  }
 }

BindingUtils methods and the binding tag both expect a destination, but in
this case there isn't one. Is the solution simply to use ChangeWatcher
instead, or can this be done using binding syntax?

Cheers


Re: [flexcoders] Re: Here's a great idea for flex 4 - simple color pallette utility

2008-06-24 Thread Tom Chiverton
On Tuesday 24 Jun 2008, Amy wrote:
> I'd like to see a color picker with swatches like you see in other
> tools.  The continuous tone color picker Flex has means you wind up
> with colors like #ACF2C1.

I just use the Style Explorer web site.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Question about drawSelectionIndicator

2008-06-24 Thread markgoldin_2000
Here is mmy code:
override protected function drawSelectionIndicator(indicator:Sprite, 
x:Number, y:Number, width:Number, height:Number, color:uint, 
itemRenderer:IListItemRenderer):void 
{   
super.drawSelectionIndicator(indicator, x, y, width, height, color, 
itemRenderer);
}
Providing a different value for the height will create a different 
selection spot on the screen, but a different width does not seem to be 
of any effect. Even a zero does not change it. It still selects the 
whole row, no matter what. Can someone explain why is that?

Thanks



[flexcoders] Flex TextInput componet 's problem

2008-06-24 Thread Ray Zhang
I don't know TextInput 's text andtextField.text property 's difference 
anybody know ,tell me plz
Ray


  

[flexcoders] Re: Family Tree / Flow chart

2008-06-24 Thread rspljk
Hi all, 

Please give any open source reference except SpringGrpah, 
flexvizgraphlib and iLog  :)  


Thanks in advance

Jigar Kapadia




--- In flexcoders@yahoogroups.com, "Pat Buchanan" <[EMAIL PROTECTED]> wrote:
>
> Murali,
> 
> Make sure you read the licensing on iLog before you buy it.  Using 
it
> in-house is cheap, but if you want to sell your application it 
becomes VERY
> expensive, like $20,000 or something (check it out to verify)
> 
> Thanks
> -Pat
> 
> 
> On Wed, Feb 27, 2008 at 1:18 PM, Murali sankar <[EMAIL PROTECTED]>
> wrote:
> 
> >   Hi All,
> >
> > Thanks for all those who are replied me. ILOG organization chart 
exactly
> > meets my requirement. Can i get any open source like that? or Can 
anyone
> > help me to make a link between two nodes? so that it will help me 
to develop
> > myself.
> >
> > Thanks
> > Murali Sankar.
> >
> >
> > *Derrick Anderson <[EMAIL PROTECTED]>* wrote:
> >
> >  i will try that, would be cool if that's all it takes- thanks 
for the
> > tip!
> >
> > d.
> >
> > On Wed, Feb 27, 2008 at 11:05 AM, Nick Collins <[EMAIL PROTECTED]>
> > wrote:
> >
> > >   what if you just set the vertical and horizontal scroll policy
> > > properties to off?
> > >
> > >
> > > On Wed, Feb 27, 2008 at 10:00 AM, Derrick Anderson <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > > >   actually, this is how i'm making that panel draggable, 
forgot to
> > > > include the script
> > > >
> > > >
> > > > public function mouseDownHandler(evt:MouseEvent):void
> > > > {
> > > > chartCanvas.setStyle('horizontalCenter', 
undefined);
> > > > chartCanvas.setStyle('verticalCenter', 
undefined);
> > > > chartCanvas.startDrag();
> > > > }
> > > > public function mouseUpHandler
(evt:MouseEvent):void
> > > > {
> > > > chartCanvas.stopDrag();
> > > >
> > > > }
> > > >
> > > >
> > > >
> > > > On Wed, Feb 27, 2008 at 10:58 AM, Derrick Anderson <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > > hi everyone, i have actually built something like this that 
I am
> > > > > quite happy with, but all of these examples show the chart 
doing something
> > > > > very simple that i for the life of me have not figured out 
how to do.
> > > > >
> > > > > they all let you click in the background and drag the chart
> > > > > around... how the heck to you do that?  Currently my chart 
sits on a panel
> > > > > and i make that panel draggable like this
> > > > >
> > > > > 
> > > > >
> > > > >  > > > > verticalCenter="0" clipContent="false">
> > > > >  > > > > isTopLevel="true" />
> > > > > 
> > > > >
> > > > > 
> > > > >
> > > > > but i know this is not the right way to do it, 
because 'container'
> > > > > starts to show scroll bars (as i would expect it to) when I 
drag this
> > > > > invisible panel out of the viewable area of the container...
> > > > >
> > > > > D.
> > > > >
> > > > >
> > > > > On Wed, Feb 27, 2008 at 10:15 AM, Kevin Aebig <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > >
> > > > > >Or you could save $700 bucks and look into:
> > > > > >
> > > > > > -  Springgraph
> > > > > > -  Prefuse 
> > > > > > -  Flex Visual Graph 
Library
> > > > > >
> > > > > > !k
> > > > > >
> > > > > >  --
> > > > > >  *From:* flexcoders@yahoogroups.com [mailto:
> > > > > > [EMAIL PROTECTED] *On Behalf Of *Christophe 
Jolif
> > > > > > *Sent:* Wednesday, February 27, 2008 4:47 AM
> > > > > > *To:* flexcoders@yahoogroups.com
> > > > > > *Subject:* Re: [flexcoders] Family Tree / Flow chart
> > > > > >
> > > > > >   Hi Murali,
> > > > > >
> > > > > > If what you need is an organization structure (not a 
family tree
> > > > > > like
> > > > > > geni.com), ILOG Elixir provides such a component. You can 
see it
> > > > > > in action
> > > > > > here if you want to check whether that is what you are 
looking
> > > > > > for:
> > > > > >
> > > > > > http://visudemos.ilog.com/webdemos/orgchart/orgchart.html
> > > > > >
> > > > > > More info at: http://elixir.ilog.com
> > > > > >
> > > > > > Hope this helps,
> > > > > > --
> > > > > > Christophe
> > > > > >
> > > > > > Murali sankar wrote:
> > > > > > > Hi All,
> > > > > > >
> > > > > > > I am new to Flex. I want to develop a organization 
structure
> > > > > > like in
> > > > > > > geni.com. Can you please help me anyone, How to develop 
or where
> > > > > > can i
> > > > > > > get that kind of component?
> > > > > > >
> > > > > > > Thanks in advance
> > > > > > > Murali Sankar
> > > > > > >
> > > > > > > 
--
> > > > > > > Looking for last minute shopping deals? Find them fast 
with
> > > > > > Yahoo!
> > > > > > > Search.
> > > > > > > <
> > > > > > 
http://us.rd.yahoo.com/evt

[flexcoders] How to insert dynamic data(from DAtabase) in Rich text editor

2008-06-24 Thread AJAY
HI,
I need to insert data from database in between Rich text editor text.


Regards,
Ajay


[flexcoders] calling and re-calling with httpservice

2008-06-24 Thread cscrum
Here is a strange thing I ran into today. I have a program which 
queries a DB through an aspx script called with httpservice. A user 
clicks on a name, the query runs, and populates a form with data 
from the database. The user can then edit the information and submit 
the form to another script which makes changes to the DB. That is 
all working except that when the user clicks on the same name again, 
the old information is returned. I have verified that the DB is 
being altered with the submit script. If I close the application and 
reopen it and select the user again, then the modified data is 
there. Is there something I am missing the httpservice call? I've 
tried setting the array used for the result data to null. I even put 
just a text field on the page and printed the results of the query 
to it. It shows the old data too. It seems like it's not actually 
running the query again like it should, but rather taking the values 
from some place in memory until I close the app and reopen it. Any 
ideas?

Relevant parts of my code are posted. 
Attach Code 

 
   
   





  

[flexcoders] Re: Managed Collections with null objects

2008-06-24 Thread richcianci
--- In flexcoders@yahoogroups.com, "Seth Hodgson" <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
> 
> What version of things are you running, and would you mind sharing
your destination configuration?
> 
> Thanks,
> Seth
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of richcianci
> Sent: Tuesday, June 17, 2008 3:45 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Managed Collections with null objects
> 
> --- In flexcoders@yahoogroups.com, João Fernandes 
>  wrote:
> >
> > I'm having this weird issue that never happened before.
> > Sometimes, totally randomly, after deleting a managed item in a 
> > arraycollection, instead of getting the arrayCollection resized by -
> 1, 
> > my arraycollection keeps the same size and I get a null object 
> where the 
> > managed item was previously.
> > 
> > This happens using ds.deleteItem() or using 
> > arrayCollection.removeItemAt( itemIndex )
> > -- 
> > 
> > João Fernandes
> > 
> > http://www.onflexwithcf.org
> > http://www.riapt.org
> >
> 
> I am having the same issue. Did you ever figure it out?


LCDS 2.51. Collection managed by an application scoped custom
assembler with auto-sync-enabled and cache-items both set to true.
Paging enabled with a page size of 500.
>




  1   2   >