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
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
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
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
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;;
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.
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
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
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
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);
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
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
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
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
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
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
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:
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
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
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
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
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,
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
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,
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\
How to detect device current orientation state ?portrait or landscape
How to detect change of mobile orientation ? portrain or landscape
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:
28 matches
Mail list logo