[flexcoders] what's the difference between remoting service and URLStream

2010-01-19 Thread loveewind
so far as I know, calling remoting service (Remote object) is asynchronous , however URLStream is not asynchronous. if the data on Flex are streamed as AMF in URLStream,compare this data service with remoting server, how about is the performance? below is the code: public function

[flexcoders] Re: How do I get an array of Images

2010-01-19 Thread criptopus
Thank you, thank you. I did know they started at 0 but I must have been working to late and let that slip from my mind. I did read about Vector's and how they where more suited than arrays as long as if they where of the same type although I don't seem to be able to use them in Flex, I

[flexcoders] Identifying which image caused the event?

2010-01-19 Thread criptopus
If i have an event Listener of the following type on an array element how do I determine the element from within the event so as to set one of the elements properties. e.g. imgArray[imgIdx].addEventListener(Event.COMPLETE, adjustImage); private function adjustImage(e:Event):void { var

Re: [flexcoders] Re: How do I get an array of Images

2010-01-19 Thread Paul Andrews
criptopus wrote: Thank you, thank you. I did know they started at 0 but I must have been working to late and let that slip from my mind. I did read about Vector's and how they where more suited than arrays as long as if they where of the same type although I don't seem to be able to use

Re: [flexcoders] Identifying which image caused the event?

2010-01-19 Thread Paul Andrews
Paul Andrews wrote: criptopus wrote: If i have an event Listener of the following type on an array element how do I determine the element from within the event so as to set one of the elements properties. e.g. imgArray[imgIdx].addEventListener(Event.COMPLETE, adjustImage); private

Re: [flexcoders] Identifying which image caused the event?

2010-01-19 Thread Paul Andrews
criptopus wrote: If i have an event Listener of the following type on an array element how do I determine the element from within the event so as to set one of the elements properties. e.g. imgArray[imgIdx].addEventListener(Event.COMPLETE, adjustImage); private function

Re: [flexcoders] question about inheritance and events and overriding methods

2010-01-19 Thread Tim Romano
Thanks very much, Aaron, for taking the time to compile the code on your end. Without your help, I'd have been spinning my wheels on this for days It appears to be a compiler/debugger bug in beta 2. I started commenting out code and recompiling and then uncommenting and recompiling and

[flexcoders] Re: IGraphicElement and LayoutBase

2010-01-19 Thread Florian
Yes, in that case i would expect the Displayobject to effecting the layout and the measuring. But that's not what we always want. Sometimes we just want to draw to the graphics property of a component/container. It would be absurd to create a GroupBase instance to not layout the instances like

[flexcoders] Spark, FXG and composition - the performance black hole

2010-01-19 Thread Florian
I think i am going to start a new topic for the issue... I ran into to the problem that i groups and graphic primitives wouldn't behave as expected when compositions are created, in more detail, when a layout is applied. I now understand, that compared to Degrapha, there is no possibility to

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-19 Thread Monette
Tim, It works!!! Hooray!!! You Rock!!! Thank you so much for all your help. Monette --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: Three time's a charm: var series:LineSeries = LineSeries( o.element ); var seriesIndex:int; for ( seriesIndex = 0; seriesIndex

[flexcoders] Audio Issues

2010-01-19 Thread Eric Dunn
Can anyone point in the right direction.. I am having issues with echo in a voice mail player that I am building. I have read that Flash Player has this capability, but it is reserved for premium users... How should I go about coding for this issue? Eric W Dunn Adaption Technologies

[flexcoders] Re: if (foo)

2010-01-19 Thread Amy
--- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote: I once ran some tests to test this. What I found is that checking against null is much faster. Sorry I do not have the test code around anymore but it would be very simple to build again. My guess as to why is

[flexcoders] Re: Flex, SOAP and Process Flow

2010-01-19 Thread Amy
--- In flexcoders@yahoogroups.com, trefalgar trefal...@... wrote: I've given up for now. AsyncTokens appear to be the way to go, but by the documentation I've seen it *should* work, but the result/fault handlers are never hit. I decided to try using 'closure' instead - I'm not even

[flexcoders] Re: A popupbutton without arrow?

2010-01-19 Thread peeyushtuli
Are you looking for something similar to this? http://www.metadesignsolutions.com/samples/flex/popbutton/controls.html --- In flexcoders@yahoogroups.com, Leonardo Camargo camargoleona...@... wrote: Hi folks, I'm looking for ideas... I need to have a button(skinnned with an icon), that when

[flexcoders] Re: Flex, SOAP and Process Flow

2010-01-19 Thread peeyushtuli
Asynctokens do work. I havent seen a single case of the handlers not being invoked being linked to some bug in flex sdk. Can you please post some code snippets of how exactly you used the asynctoken and mention the flex sdk? --- In flexcoders@yahoogroups.com, trefalgar trefal...@... wrote:

[flexcoders] itemRenderer in dynamically generated DataGrid

2010-01-19 Thread Mlist
Hi, I need an itemRenderer in my DataGrid (id: dgDataGrid) so it displays two different strings (string1 and string2 - see the explanation part for more info about how these strings are defined in the array). I have created the itemRenderer as mxml, with HBox wrapping two labels. How can I

[flexcoders] Re: skinning and validation

2010-01-19 Thread peeyushtuli
I googled around a lot for this but could not find a solution anywhere. So I decided to solve it on my own by subclassing textinput control and a new style called errorskin. I have posted the link if it helps somebody, with view source enabled.

[flexcoders] Setting Audio Output - is it possible to assigned audio outpu?

2010-01-19 Thread Eric Dunn
Is it possible to get a list of audio output devices (speakers/headphones) similar to a list of input devices (microphone)? I have looked and not finding any love... any ideas? Eric W Dunn Adaption Technologies 281-465-3326 ed...@adpt-tech.com

[flexcoders] Re: Flex, SOAP and Process Flow

2010-01-19 Thread trefalgar
Thanks for this post. I thought I had updated to SDK 3.3, but it looks like my default was still 3.1. I updated Flex Builder to use the 3.3 SDK and I'll give it all a second try. I'll also take a look at Amy's URL, to make sure I'm doing things in a kosher manner. Tref --- In

Re: [flexcoders] Re: A popupbutton without arrow?

2010-01-19 Thread Leonardo Camargo
Yep! But I had already figured it out myself.. :) Thanks anyway 2010/1/19 peeyushtuli peeyus...@gmail.com Are you looking for something similar to this? http://www.metadesignsolutions.com/samples/flex/popbutton/controls.html --- In flexcoders@yahoogroups.com

[flexcoders] TabNavigator Problem.

2010-01-19 Thread Tejas Patel
I've used TabNavigator control in my flex application. When I run my application, looks perfect. But when i select any tab from TabNavigator control, Application URL having some strange text. when i select second tab, it looks like this..

Re: [flexcoders] TabNavigator Problem.

2010-01-19 Thread Tibor Ballai
Hi Tejas, What you are seeing is Flex's default history management. You can read about it here: http://livedocs.adobe.com/flex/3/html/help.html?content=deep_linking_8.html To disable it, you can set the TabNavigator's historyManagementEnabled property to false. Tibor. www.tiborballai.com

[flexcoders] Re: Flex, SOAP and Process Flow

2010-01-19 Thread trefalgar
--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: I always use mx.rpc.Responder instead of AsyncResponder (is that a custom class?). There's a working example of using AsyncToken with AMFPHP here http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html

Re: [flexcoders] TabNavigator Problem.

2010-01-19 Thread Tejas Patel
Thanks Tibor Ballai. I set historyManagementEnabled to false. So text (app=e41e7a01- selectedIndex= 0) is removed from URL. But still '#' character is appear with application URL. From: Tibor Ballai ballai.t...@gmail.com To: flexcoders@yahoogroups.com Sent:

[flexcoders] Escaping slashes in a file name in AIR

2010-01-19 Thread seanmcmonahan
So this is a problem that's not really a problem yet it is. I think it's best explained with an example: A user wants to save a file so we open the save dialog box via File.browseForSave(). User then selects a folder my folder and types in a name like my/file/with/slashes.txt and hits the

[flexcoders] Re: Flex, SOAP and Process Flow

2010-01-19 Thread trefalgar
--- In flexcoders@yahoogroups.com, trefalgar trefal...@... wrote: --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: I always use mx.rpc.Responder instead of AsyncResponder (is that a custom class?). There's a working example of using AsyncToken with AMFPHP here

[flexcoders] Image Size

2010-01-19 Thread criptopus
Is it possible to find out the dimensions of an image without actually loading the image? I am going to use an image inline with a Text() object using the normal img src='xyz.png' etc and I have discovered it you state the height you also need to state the width and if you state the width you

Re: [flexcoders] Combobox arrow width workaround

2010-01-19 Thread Warren
I ended up creating a skin for the combobox that restores this functionality and also adds the capability to turn of the vertical separator. If anyone wants the skin, let me know and I'l post it. Warren - Original Message - From: Warren To: flexcoders@yahoogroups.com Sent:

[flexcoders] Re: Image Size

2010-01-19 Thread Amy
--- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote: Is it possible to find out the dimensions of an image without actually loading the image? I am going to use an image inline with a Text() object using the normal img src='xyz.png' etc and I have discovered it you state the

[flexcoders] Re: IGraphicElement and LayoutBase

2010-01-19 Thread Ariel J
Totally agree with you. I hate having to create a VGroup inside a Group just so I can draw a Rectangle as the background of the Group and still layout all the other children vertically, for example. --- In flexcoders@yahoogroups.com, Florian florian.saliho...@... wrote: Yes, in that case i

RE: [flexcoders] Escaping slashes in a file name in AIR

2010-01-19 Thread Jim Hayes
I have no idea if this actually would work, but something like this? private var origUrl:String private function saveFile():void { var f:File = new File(); origUrl = f.url; f.addeventlistener(Event.SELECT,onfileselected) f.browseForSave(blah); } private function onfileselected(event:Event) {

[flexcoders] RemoveEventHandler issue

2010-01-19 Thread j2me_soul
Can't remove the eventhandler which wrote in mxml. protected function mytext_changeHandler(event:TextOperationEvent):void { TextInput(event.target).removeEventListener(event.type, mytext_changeHandler); } s:TextInput id=mytext text=textevent change=mytext_changeHandler(event) /

[flexcoders] Problem losing values from query results to RESULT.DATA

2010-01-19 Thread charliecrystle
Weird issue: I have a query that works fine--produces expected results: SELECT COUNT(tagsLU.tagid) as 'tagcount', tag.tagname as 'tagname' FROM TagsLU Inner Join tag on tag.tagid=tagslu.tagid Group By tag.tagname Order By tagcount DESC which produces an array like this: 5

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-19 Thread turbo_vb
My pleasure Monette. -TH --- In flexcoders@yahoogroups.com, Monette monett...@... wrote: Tim, It works!!! Hooray!!! You Rock!!! Thank you so much for all your help. Monette --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: Three time's a charm: var series:LineSeries =

[flexcoders] Re: Flex, SOAP and Process Flow

2010-01-19 Thread Amy
--- In flexcoders@yahoogroups.com, trefalgar trefal...@... wrote: --- In flexcoders@yahoogroups.com, trefalgar trefalgar@ wrote: --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: I always use mx.rpc.Responder instead of AsyncResponder (is that a custom class?). There's

Re: [flexcoders] RemoveEventHandler issue

2010-01-19 Thread Alex Harui
CreationComplete only fires once so that handler probably isn’t getting removed either. When you type: change=”mytext_changeHandler(event)” The compiler generates code like this: private function mytext_changeHandler_10423948(event:TextOperationEvent):void {

Re:Re: [flexcoders] RemoveEventHandler issue

2010-01-19 Thread j2me_soul
Amazing! So how can I know what the magic number after the __ID_handler_ I guess is ? My codes is created by flash catalyst so I can't change each eventlistener to actionscript code. Is there a way to solve that ? 在2010-01-20 12:59:15,Alex Harui aha...@adobe.com 写道: CreationComplete only

Re: [flexcoders] TabNavigator Problem.

2010-01-19 Thread Tejas Patel
Done. historyManagementEnabled property set to false has solve my problem. Thanks Tibor. From: Tejas Patel tejaspate...@yahoo.co.in To: flexcoders@yahoogroups.com Sent: Wed, 20 January, 2010 12:00:41 AM Subject: Re: [flexcoders] TabNavigator Problem. Thanks

[flexcoders] Enable mousewheel function on spark List

2010-01-19 Thread j2me_soul
How can I enable the mousewheel event to the s:List ? Is the s:List have a property like verticalScrollPosition in mx:dataGrid My code is created by flashcatalyst so all component have skinclass property, I don't wanna change the skin to css+picture. So how should I do?