[flexcoders] Problem flex 4

2011-09-22 Thread Aicha ..
Hi everybody I have a problem with flex 4.5 that for component s:Group and s:Form don't accept ths property label how can i resole this problem thx

[flexcoders] e4x help

2011-09-22 Thread michael_regert
I must be missing something simple here. I'm reading in XML that looks like this: ?xml version=1.0 encoding=UTF-8? REGISTRY REGISTRY_DECLARATION/ REGISTRY_ENTRIES Attribute AttributeNameAttr_1/AttributeName /Attribute Attribute

Re: [flexcoders] e4x help

2011-09-22 Thread Brendan Meutzner
You shouldn't do a check on the length() for xmlRoot... that represents the REGISTRY level... otherwise your code looks fine. On Thu, Sep 22, 2011 at 4:54 PM, michael_reg...@dell.com wrote: ** I must be missing something simple here. I’m reading in XML that looks like this: ** **

Re: [flexcoders] e4x help

2011-09-22 Thread Haykel BEN JEMIA
working for me. here is the code I used for testing: package { import flash.display.Sprite; public class Test extends Sprite { private var xmlRoot:XML = REGISTRY REGISTRY_DECLARATION/ REGISTRY_ENTRIES Attribute

RE: [flexcoders] e4x help

2011-09-22 Thread michael_regert
I guess I should have copied the entire XML. REGISTRY xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://schemas.dell.com/wbem/biosattributeregistry/1 file:///C:/work/12G/Attribute%20Registry/DCIM_AttributeRegistry.xsd

Re: [flexcoders] e4x help

2011-09-22 Thread Haykel BEN JEMIA
because the elements are then defined in the namespace http://schemas.dell.com/wbem/biosattributeregistry/1;. To access them through e4x you have to create a corresponding namespace object, e.g.: private namespace biosattributeregistry = http://schemas.dell.com/wbem/biosattributeregistry/1;;

RE: [flexcoders] e4x help

2011-09-22 Thread michael_regert
Ahhh. YES! That fixed it. Thanks! Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information.

[flexcoders] help with anonymous functions...

2011-09-22 Thread grimmwerks
OK I don't mean to make this a bit convoluted - but I guess the basics of the question is regarding using anonymous functions within a member class and being able to set variables within that member class. The convoluted question is this: I've got in my app an Interface class that has

Re: [flexcoders] Trying to pass a value to the mxml/swf file from java(android).How?

2011-09-22 Thread ganaraj p r
In order to pass values to a swf you have a concept called as flashVars. If you come from a java / C background you would know that your main entry point in there is the main() function. This main function can be called without any arguments or with arguments..( if you are familiar with argc and

Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread Alex Harui
I don’t know why passing in echoEvent wouldn’t work. What error did you get? Another options are to pass in a third parameter as the object for use in call or apply. You can theoretically do this as well in the constructor of the class: Public function MyClassConstructor() { var

Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread grimmwerks
Not getting an error, just getting ignored and the function is never called. var scope:Object = this; private var echoOrderCacheEvent:Function = function(jstr:String):void{ Alert.show(this); trace(scope);

Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread Alex Harui
IMHO anonymous functions are way more trouble than they are worth. If I had the time, I would eliminate them from all framework code. Looks from the stacktrace that someone is using apply() to change the this pointer. On 9/22/11 10:46 AM, grimmwerks gr...@grimmwerks.com wrote: Not

Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread grimmwerks
Thanks -- yeah it seems like the something's happening on the stomp / callback before it's getting to me. Have another quickie about itemrenderers and factory properties, but going to ask on another thread. On Sep 22, 2011, at 2:11 PM, Alex Harui wrote: IMHO anonymous functions are way

[flexcoders] Is it possible to add Flex components to the Stage?

2011-09-22 Thread Hogs Haven
From everything I've read, Flex components can only be added to Flex Components (ie: VBox to Application, VGroup to Panel, etc) I'm working in an AS3 view library (no Flex, just Sprites) where I need to add a Scrollable container component to the Stage on a click event. There's no way to do

[flexcoders] ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread grimmwerks
Here's another convoluted question -- I've got a list that is bound to an array of a certain Class - let's cal them Permissions. In the Permissions class you've got userId, read and write (booleans there, id for userId, normal stuff). I'm using the same itemrenderer in two lists - a source

[flexcoders] Re: Is it possible to add Flex components to the Stage?

2011-09-22 Thread Hogs Haven
Thanks, but flash.display.Stage is not a Flex component; therefore it only has addChild(). addElement() is part of the spark Flex classes. --- In flexcoders@yahoogroups.com, grimmwerks grimm@... wrote: Try stage.addElement rather than addChild? On Sep 22, 2011, at 2:30 PM, Hogs Haven

Re: [flexcoders] Is it possible to add Flex components to the Stage?

2011-09-22 Thread grimmwerks
Try stage.addElement rather than addChild? On Sep 22, 2011, at 2:30 PM, Hogs Haven wrote: From everything I've read, Flex components can only be added to Flex Components (ie: VBox to Application, VGroup to Panel, etc) I'm working in an AS3 view library (no Flex, just Sprites) where I

[flexcoders] Re: ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread valdhor
I don't know about others here but IMHO a better user experience would be to remove the selected item from the source list. This way it is not even there to be selected. Just a simple matter of removing it from the dataprovider. --- In flexcoders@yahoogroups.com, grimmwerks grimm@... wrote:

Re: [flexcoders] Re: Is it possible to add Flex components to the Stage?

2011-09-22 Thread Alex Harui
Flex components cannot be added to the Stage. You can add them to SystemManager and get pretty much the same effect. On 9/22/11 11:56 AM, Hogs Haven e_ba...@yahoo.com wrote: Thanks, but flash.display.Stage is not a Flex component; therefore it only has addChild(). addElement() is part

Re: [flexcoders] ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread Alex Harui
Because renderers get recycled, it is not recommended to access a renderer instance and change properties on it. There is a indexToItemRenderer() method, but I wouldn’t use it for this. The recommended practice is an “associated list”, essentially a weak-reference dictionary or object map

Re: [flexcoders] Re: ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread grimmwerks
I hear you - but the thing is these are more CHOICES that one can make - like a menu of items. If one can only get a hamburger it's not the only hamburger the store has... On Sep 22, 2011, at 3:08 PM, valdhor wrote: I don't know about others here but IMHO a better user experience would be

Re: [flexcoders] ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread grimmwerks
I see your point -- I'm already doing an object / hashmap of items; what would be the best way of having the itemrenderer's check said list though? I'm actually working with PureMVC and all code is in the mediator, everything in the view - ie list and of course itemrenderers... so it's not

Re: [flexcoders] ClassFactory, properties, itemrenderers and changing prop dynamically

2011-09-22 Thread Alex Harui
If it were me, I would subclass the List and add an “associatedList” property that references this map. The logic for setting itemEnabled in the renderer is hopefully in an override of commitProperties. I would override the data setter to call invalidateProperties. Then in commitProperties,

[flexcoders] Re: Is it possible to add Flex components to the Stage?

2011-09-22 Thread Hogs Haven
Thanks Alex for the reply. Yea, with systemManager being a Flex component I guess I'm out of luck. OK, refactor time. --- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote: Flex components cannot be added to the Stage. You can add them to SystemManager and get pretty much the same

Re: [flexcoders] Is it possible to add Flex components to the Stage?

2011-09-22 Thread Jeffry Houser
addElement is only defined in spark components; that will just throw a compile time error. I'm not sure why you want to add a Flex Component directly to the stage. I suppose in theory you could; but that would bypass all the Flex Framework code to position and size the component. You'd,

[flexcoders] Re: Trying to pass a value to the mxml/swf file from java(android).How?

2011-09-22 Thread Shunmuga
you can pass the arguments to swf file by using Flashvars: FlashVars=arg1=valarg2=val2 string htmlUrl = object width=\550\ height=\400\ param name=\movie\ value=\file:///android_asset/sample.swf\ embed src=\file:///android_asset/sample.swf\ FlashVars=arg1=valarg2=val2 width=\550\ height=\400\

[flexcoders] How to detect device orientation state portrait or landscape

2011-09-22 Thread j2me_soul
How to detect device current orientation state ?portrait or landscape

[flexcoders] How to detect change of mobile orientation ? portrain

2011-09-22 Thread j2me_soul
How to detect change of mobile orientation ? portrain or landscape

[flexcoders] Re: e4x help

2011-09-22 Thread DP
You're probably getting an e4x error on the first empty node (because Attribute doesn't exist there). Try to avoid this issue by using the hasOwnAttribute function to make sure that Attribute actually exists in that node. This probably isn't it, but it's close: