Actionscript 3 :: Flex - Changing Properties Of Several Objects In Flex

Sep 7, 2010

In my example below I have several objects. I want to change the label of all objects in one go, without calling each element by id. I know how to do this in HTML, but not in Flex.

CODE:

This is how I would usually set the color of 3 objects to grey in one line.

CODE:

Is there any way I can change the labels of all 3 buttons with a single line of code similar to the jQuery example?

View 3 Replies


Similar Posts:


Flex :: Changing Css Properties For Selector At Runtime?

Oct 27, 2009

I have a css that defines de skin-class for a custom component, like this :

view|PlaceHolderView {
skin-class:ClassReference('view.skin.PlaceHolderSkin');
}

Is there a way to change that value at runtime, so that all instances of the component switch skin?

View 1 Replies

Flex :: Changing The Color Of A Custom Scrollbar Using CSS Properties

Feb 15, 2010

I am implementing a scrollbar using a custom embedded image using my CSS stylesheet. This is a very simple, thin scrollbar. I would like to configure this scrollbar using CSS properties at runtime, but so far I have been unable to do so. I know it can be done because I've seen examples of it in the net, but no code to review.

View 1 Replies

Flex :: Data - Displaying Properties From Two Objects In A Datagrid

Dec 11, 2009

Previously I post a discussion on this matter on Flex Adobe forum and still don't understand what needs to be done. So, I'll try my luck again on stackoverflow. I'm using drag and drop data binding functionality in flash builder 4 on a data-grid. However, the data I need to show need to be query from another object.

[Code]....

View 1 Replies

Actionscript 3 :: Flex: Changing Control Properties Based On Contents Of A Databinding Event?

Sep 3, 2009

I'm trying to set up a form that presents a combobox when an ArrayCollection it's bound to has several items, and doesn't present one when it's empty or only has one item. I've tried doing this by creating this class, but unfortunately, the data provider I've bound to is never not empty at the time the setter executes.

public class ComboboxOrFail extends ComboBox
{
public function ComboboxOrFail()
{

[code]....

View 1 Replies

Flex :: Changing Value In Array Where Elements Are Objects

Mar 29, 2010

Example:
var arr_1:Array = new Array();
arr_1.push({sdate:"2010-02-02",status:"New"});
arr_1.push({sdate:"2010-02-03",status:"New"});
arr_1.push({sdate:"2010-02-04",status:"New"});
arr_1.push({sdate:"2010-02-05",status:"New"});
How can I change element number 3 status to: "Old", without removing it. Just update the status value??

View 1 Replies

Flex :: Flash Shared Objects Storage Location Changing Occasionally?

Feb 15, 2011

When running a flash application that I run locallyie I get to it from a browser but with a file pathNow, most of the time the shared objects are stored in%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNetBut occasionally, it reverts and thinks this application is running on localhost%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhostwhich means all previous saved settings are gone.I'm wondering if anyone knows how flash decides if the application is infact localhost or localWithNet (local with Network access)

View 4 Replies

Flex :: Flash Shared Objects Storage Location Changing Occasionally

Jul 3, 2011

When running a flash application that I run locally i.e., I get to it from a browser but with a file path
file:///C:/Projects/test/bin-debug/Main.html#

Now, most of the time the shared objects are stored in
%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNet

But occasionally, it reverts and thinks this application is running on localhost
%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhost
Which means all previous saved settings are gone.

How flash decides if the application is infact localhost or localWithNet (local with Network access). Rebooting can sometimes make it revert, but I've also had it stay localhost for a few days then revert.

View 1 Replies

Flex :: Generate Dynamic Flex-ComboBoxes By Class-Properties

Jul 6, 2011

I have an Flex-Object with for example 3 properties.

myObj.prop1
myObj.prop2
myObj.prop3

I like to generate 3 Comboboxes to show the data.
No problem if I do it hardcoded in sourcecode.

But how can I find the prop1 to prop3 at runtime?

If next time I have 5 properties with different name it should generate 5 combos.

View 1 Replies

Flex - Get Settings/properties Into A Flex/FlashBuilder Application?

Feb 28, 2012

I have a Flash Builder application which uses URLs within its code and I want to be able to change these URL values without having to recompile my application, i.e. I want to have a plain text file I can edit which is used to populate these URL values when the application begins. I've worked out what feels like a kludge to do this with ResourceBundles, but maybe there's a better or more straightforward way to go about this.

[Code]...

View 3 Replies

Flex :: Changing A Flex Movie To Use Runtime Shared Libraries And Losing Text In Charts?

Dec 3, 2009

I'm creating a small size Flex movies which contains two line charts, at the moment the size of the release build swf is 343KB, which is too large for our needs.

I've tried changing the loading of the SWC file to Runtime Shared Libraries, but I found that this removed the text of the charts (the text for the x and y axis). Why would the text be removed when the Framework linkage is set as a Runtime shared library?

View 1 Replies

Flex :: Changing Cornerradius Of Label And Changing Arrow Of Combo Box

Aug 14, 2009

How do I change the corner radius of a Label component in Flex. Tried applying style name, and the setStyle('cornerRadius',9) methods, but doesn't work. How can I change the arrow image in the combo box control to a different image?

View 4 Replies

Flex :: Flex 4 Changing Style Options With States

Apr 5, 2011

I'm interested in finding out the best approach to this issue, it's not technically difficult but there must be an elegant solution. Basically i have a form that features mostly text inputs, i would like to change the style of the input boxes based on the current state. I can do this in the mxml on each input...

[Code]...

View 1 Replies

ActionScript 3.0 :: Objects Class Find And Change Another Objects Xy Properties?

Oct 13, 2010

What I have is a game with a Level object, inside the Level is a Player object, and they don't have instance names given, what I'm trying to figure out is how to do is make it so that the player can change the x or y properties of the Level object.
 
To be more precise, I'm making it so that when the player moves in a certain direction, he either moves accross the stage, or he starts moving the Level object around the stage, it'd be in an Event kind of function, now I can easily make the Player move, but I don't know how to make the Level object move which the player is inside of.

View 3 Replies

Actionscript 3 :: Some Flex Properties Not Available In Flex 3.2 SDK

Jul 19, 2011

I recently added Flex SDK 3.2 to the list of compilers in my Flex Builder installation. (I know I am working with kind of outdated SDKs :( ). Ok, so when I changed the SDK version to 3.2 for an existing project, I couldn't find the properties buttonMode, useHandCursor. And the Filter classes like GlowFilter and DropShadowFilter were not available. I was able to use them once I switched back to SDK 3.0.

View 1 Replies

Flex - Add Row To Flex DataGrid Without Changing DataProvider

Sep 30, 2010

I am creating the standard "Click to add row" control but I really don't want to dirty the dataProvider with a "placeholder" since it is bound to the model and could end up in the database. Is there a way to add a row that isn't represented in the dataProvider? I started down the road of adding an item directly to listItems but then that needed an item in rowInfo and then that need a reference in rowMap.

View 3 Replies

Actionscript 3 :: Flex - Possible To Have Flex DataTips On Canvas Rather Than Chart Objects

Jan 17, 2010

Flex charts, like AreaChart, have wonderful built-in support for displaying data "tool tips" when a user hovers over a point supplied in the data of a graph. You can hover over any of the bar graph examples on this page for a demonstration. I have a graph situation where I optionally draw in some dots as reference points on CartesianDataCanvases supplied to my AreaChart through it's <mx:annotationElements> and <mx:backgroundElements> tags.

I would like to have the same hover data-tip functionality that the AreaChart has, but applied to these dots. I realize that I am just drawing on canvas, and that no actual dataProvider supports these dots, but if there was a way to supply the CartesianDataCanvas with an array of data values or something to that effect,

View 1 Replies

Flex :: Build Flex Stack Bar Chart From Objects Array?

Apr 21, 2010

I have a dynamic ArrayCollection that will contain a unknown number of objects of type MyObj:

class MyObj
{
type:String

[code]........

View 1 Replies

Flex :: ArrayCollection Versus Vector Objects In FLEX?

Apr 20, 2010

the applicable differences between an ArrayCollection and a Vector in flex? I'm unsure if I should be using one over the other. I saw that Vector is type safe and that makes me feel better, but are there disadvantages?

public var ac:ArrayCollection = new ArrayCollection();
versus
public var vec:Vector.<String> = new Vector.<String>();

View 4 Replies

Flex :: Objects Drawn By Flash Graphics Class Exist As Objects?

Jan 16, 2011

Internally Flash obviously keeps a list of the primitives drawn using Graphics so I wondered if you have many such primitives in a Sprite, can you re-position/remove/alter individual items rather than clear and re-draw everything? Or is this deeper into the bowels of Flash than you're allowed (or recommended) to go?

View 4 Replies

Php - Flex Is Deserializing Generic Objects From Zend AMF Instead Of Strictly Typed Objects

Mar 4, 2012

I'm using Zend AMF to send my remote objects to Flex. I've defined a Constant class and created getASClassName() method. Then I've created Action script class in flex.

Objects are send successfully, but they are deserialized to generic Objects in Flex instead of specific ones. EDIT: On network monitor in Flex I can see that AMF value is set to com.my.project.valueobjects.Constant. Although array from event.result contains Objects.

[Code]...

View 1 Replies

Flex :: Converting Array Of ObjectProxy Objects To Custom Objects?

Jun 10, 2011

I have a service which returns an Array of ObjectProxy objects. I would like to cast this to a custom object (a value object) and create an ArrayCollection. How can I do this?ited:I am using Django and PyAMF for the backend. I had to write a custom SQL query and I am wrapping the resulting records in ObjectProxy and sending the whole result as an ArrayCollection.Here is my client side code:

[ArrayElementType("SessionVO")]
[Bindable]
private var _list:ArrayCollection;

[code]....

View 2 Replies

Java :: Why Value Objects Coming Back As Generic Flex Objects

Aug 4, 2011

I will try to give as much detail as I can. I am creating an CRM application using Flex(Cairngorm 2)/Java/Hibernate. The basic problem I am having is this: I have a Customer class in Java that has an ArrayList of Address classes. I have a Customer class in Flex that has an ArrayCollection of Address classes. When I make the remote object call for a Customer I get back a Customer object in Flex, but the ArrayCollecion objects have a data type of Object instead of Address. If I try to call for a List of Address classes I get the same result. If I try to call for a List of Customer classes I get a list of Customer classes in Flex. Using tomcat 6 with the following jars:

[Code]...

View 1 Replies

Flex :: Access Properties Of Column?

Aug 18, 2009

I have following datagrid[code]...

I want to send a name of opponent to a webserver after Delete button is clicked. Can I access correspondent value in datagrid on click event?

View 1 Replies

AS3 :: Flex Documentation Of The Lesser Know Properties

Sep 17, 2009

Over the past three weeks, I have lost at least 120 man hours because of some lesser known functionality in ActionScript 3. One of the problems was that, with Internet Explorer, if there are too many messages sent through LocalConnections, it will slow the messages sent through, but in the standalone player and in Firefox, this threshold is significantly higher. Another was that the static values of a class are instantiated even if the member itself is not being used:[code]Since FooClass had a static reference to a Singleton, that Singleton was instantiated so when I loaded a Module which used that Singleton, it would bind to values in an unpredictable way.Additional cases where things behave in an unexpected way:

So here's the question (and I'm sorry for omitting this in the original post), is there any consolidated documentation for this type of behavior anywhere? Is there any (even non-Adobe) documentation on these issues (websites, forums, books, ANYTHING)? I know that these things are definitely easy enough TO document, but has anyone done so?

View 3 Replies

Flex :: JSON: Ignore Certain Properties Name?

Nov 10, 2009

Is there some library for flex, that will let me: define properties to fully exclude from serialization define classes to serialize without the property names (as if they were an array)

View 1 Replies

Flex :: Inheriting Properties From A DisplayObject?

Dec 21, 2009

In regards to as3 project: Is there a way to inherit the properties of a given DisplayObject? I am looking for a single method that will grab something like the x, y, width, height, color, etc. Whatever is involved in the common classes between the two display objects.

Edit:

I don't think I was clear enough... Let me give an example of the type of functionality I am looking for.

var sp1:Sprite = new Sprite();
sp1.x = 30;
sp1.y = 30;
sp1.width = 500;
sp1.height = 30;
var tf1:TextField = new TextField();
tf1.inheritTransform(sp1);

So, in this case I know that the method 'inheritTransform()' doesn't exist, but I am wondering if there is something similar. Or maybe I am missing the point of extending a class in some way? I don't see how the two would relate in such a case.

View 2 Replies

Flex :: Modify Its Properties Since It Already Exists?

Mar 19, 2010

I have a Rect object that I'd like to create and set its properties only once. After that, I want to just modify its properties since it already exists. This is my general idea

if(theRect == undefined){
Alert.show("creating");
var theRect:Rect = new Rect();[code].............

but can't get the desired effect. Everytime this code block runs, and depending on which version I've used, it either gives me a "can't access null object" error or the if statement always evaluates to true and creates a new Rect object and I get the "creating" Alert. What's the right way of creating that Rect but only if doesn't exist?

View 1 Replies

AS3 :: Flex - Detect Read-Only Properties?

Aug 26, 2010

I have a simple AS3 class that just holds private variables. Each private variable has a getter function, but not all of them have setter functions. At runtime, Is there a way of telling which properties do not have setters but are read-only? Then I can decide to give the user an input field to edit the properties that have setters.

View 4 Replies

Actionscript 3 :: Properties With $ Prefix In Flex?

Oct 14, 2010

What is the significance of the $ prefix on some properties of Flex Objects?

e.g. item.$width

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved