Flex :: Access The Property Of An Ellipse Inside A Group?

Jan 3, 2012

Let's say I have the following MXML:

<s:Group id="b01">
<s:Ellipse x="267" y="96" width="30" height="28">
<s:stroke>[code]....

And that I have a dozen more of these groups with different ID's. How can I modify the fill color of each Ellipse using ActionScript? I know I can do something like this:

b01.getElementAt(0).width;

And that will give me the width of the Ellipse. But how can I access the SolidColorStroke color or the SolidColor fill?

View 2 Replies


Similar Posts:


Flex :: Disable/enable A Group Of Components (or Change A Property)

Mar 24, 2012

How can I enable or disable a group of components in flex (flash builder 4)?

For example, if I have a window with several fields, I want to disable them based on the users permissions.

I know I can add the enabled="true" or "enabled="false", and I can also use enabled="{writeAccessVar}"

However, I am looking for more ideas, as I might have more than one group of fields on the screen, or more complicated user permissions.

For example, I will currently have one field with write access, the other fields on the screen read only for a certain user level.

For a higher level user, all fields are writable. Lower level, all are read-only.

View 1 Replies

Actionscript 3 :: Access Scrollbar In A Group Component Flex 4?

Jul 22, 2010

This is the setup. I have created a timeline with a playhead. When my playhead is dragged I would like the timeline to scroll with the drag.

So far, the only way I can do this is by setting clipAndEnableScrolling to true. But in this case I lose the scrollbars(not to mention the impact on my view). So what I would like is to set this property to false and dynamically affect the horizontal scrollbar's position, in other words enable scrolling without the clipping.

View 1 Replies

ActionScript 3.0 :: Access MC Property Inside The MC Itself?

May 6, 2009

I create a new Ball movieclip and sets the Uid property:

var ball_mc:Ball = new Ball();
ball_mc.uID = "1232435";
addChild(ball_mc);

From outside the movieclip i can access the property value by trace(ball_mc.uID);, but what if i what to reach the value inside the movieclip itself? trace(uID); or trace(ball_mc.uID); dosent seem to work.

View 3 Replies

ActionScript 3.0 :: Access Property Of A Movieclip Inside Another?

Sep 20, 2009

Assume on root i have a movie clip called table then inside table i have a movie clip called foot.

normally if i need to set foot's alpha to zero i can just do

table.root.alpha=0 from the main timeline it should work ok

but this works only as long as i have foot in the first frame of the movie clip table, if i have foot movie clip in lets say frame 100 apearing and not apearing in the first frame of table then i cant access property of foot from the root

unless the movie clip plays and reach the instance where foot is defined.

View 5 Replies

Actionscript 3.0 :: Access Property X Of An Object Inside An Array?

Sep 1, 2009

I've created a card (that extends movieclip) in flash and after that I've created an array and pushed some cards inside of it. The name of the mcs is already set, but now, I want to add them to the stage and set their x and y position.

Code: Select allvar test:Array = new Array();
var testMC1:Card = new Card();
var testMC2:Card = new Card();

[Code].....

How can I access the property x of this card? The next code is wrong, of course, but it gives the idea of what I need...

Code: Select alltest[1].x = 100
// or
test[card3.x] = 100;

View 4 Replies

ActionScript 2.0 :: Class Function Tunnel - Access Property Inside Method

Jun 1, 2006

I have a simple quesiton about class, method and functions inside a method and class properties. I created a new class form my custom component.. But upon developing it I found out that you can not access a property inside the function which is also inside a method..

Example
Code:
class myClass{
private var myProperty:Number = 1; //default is 1
//constructor
public function myClass(){
}//Method
[Code] .....

What I want to do is to access the property inside the method.. I also have a work-around still i cannot point a certain variable to a property of my class inside the method's function..

View 2 Replies

Flex :: Access To Object Property When The Propety To Access To It's In A String Variable?

Oct 20, 2010

It's too complicate to explain but I'll give you an example

I have an AS3 ResultEvent Object and this object has several propeties which can be accessed by this like:event.result.name or event.result.age and, I have this String variable: eventProperty:String that contains "name" or "age" How do I access to event.result. with the variable?

View 2 Replies

ActionScript 3.0 :: [CS4] Children Inside Children - 1119: Access Of Possibly Undefined Property NumChildren

Jan 12, 2011

I have a Sprite called pageContent. Inside pageContent are 12 more Sprites with unique names, a couple of Buttons, and some TextFields. Inside each of the 12 Sprites I have either one or two TextFields and one TextInput. My question is, since they are children inside a child of pageContent, how can I access them? Here is how I am trying to do it:

[Code]...

In my mind, this should totally work. But surprise, surprise, it doesn't. I have debugged it and it works fine for the first two lines, but when it tries to get numChildren of a Child of pageContent (line 3), I get this error: PHP Code: 1119: Access of possibly undefined property numChildren through a reference with static type flash.display:DisplayObject.

View 4 Replies

Actionscript 3 :: Flex : Draw Ellipse On Image?

Jul 18, 2011

I have an Image object, and i wish to draw an elipse on it.

i have tried with

imageObj.graphics.beginFill( 0x0000FF, 0.5 );
imageObj.graphics.drawEllipse( position.x, position.y, 10, 10 );
imageObj.graphics.endFill();

but it doesnt draw anything at all.

how to draw graphic primitive on Image object ?

View 1 Replies

Flex :: Mobile - Access Of Undefined Property?

Apr 13, 2012

Flex 4.6 Mobile ApplicationI am getting the error "access to undefined property PrepForDisplay"In my Declarations tag I have

<s:CurrencyFormatter id="PrepForDisplay"
currencySymbol=""
useCurrencySymbol="true"

[code].....

View 1 Replies

Flex :: 1120 Access To Undefined Property?

Mar 20, 2010

I was trying to place some simple effects on an image using HBox using Hslider/Checkbox.I am unable to incorporate the required effects on the image.I an getting the errors
"120 access to undefined property" ....poinying to "HSlider/change".What can be the error/solution to this?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:HBox top="10" left="10">

[code].....

View 1 Replies

Flex :: Actionscript - Rotating An Ellipse From The Bottom Instead Of Middle

Jun 18, 2011

got another little provlem with flex ... i've made a ellipse and i want to rotate it dynamicly. made a h:slider which change the rotate="" value of the ellipse. and it rotates fine. but the rotation point is in the middle of the ellipse.

i want it at the bottom (y) and middle (x).

there are some transformY and transformX arguments for the ellipse, but they have no effect?

my function

private function rotateRadius():void {
if(wind.selected) {
selected.radiusDisp.rotation = radiusRotate.value;

[Code]....

View 2 Replies

Flex :: ComboBox - Access Of Undefined Property Error

Oct 12, 2009

I am kind of puzzled and not sure how to tackle this issue: Got two comboxes with dataproviders. Also, I created a separate index.as in /as folder. I have these two functions:

In my .mxml page, I have :
<mx:FormItem label="Property Code:" id="fi_propertyCode" width="100%">
<mx:ComboBox id="propertyCode" width="50%" dataProvider="{qry_communites}" change="showPropertyCode()" />
</mx:FormItem>
<mx:FormItem label="Utility Type:" id="fi_utilityType" width="100%">
[Code] .....

I get an error saying
Access of undefined property utilityType.
The funny thing is I don't get this error for "propertyCode". Moreover, If I copy pasyte showUtilityType() function and put inside my .mxml page, I don't get this error either. Btw. I have :
....
In my .mxml page. What should I do? How can I get rid of this error? Why does Flex see propertyCode combobox but not utilityType combobox? I would rather keep index.as as it is.

View 1 Replies

Actionscript 3 :: Flex Access Of Undefined Property EVENT

Jan 5, 2010

I am working in Flex Builder 3 and I am trying to figure out this error. The error console reads "Access of undefined property EVENT." I am not understanding why this error is showing when I have already imported flash.events.Event. Flex is not recognizing with even the hinting helper pop up that appears when I type the addEventListener(It should appear after the opening parenthesis right? Also, I cleaned the targets and still no luck.

[Code]...

View 1 Replies

Flex :: Adobe - Access A Property Of An Item Rendered

Jun 29, 2010

I have a datagrid with a combobox in it like;

[Code]..

Now when I want to access a function from the itemrendered/combobox i use parentApplication.funcName but what about accessing the other way, how can I access a property of the combobox from outside the itemrenderer? I tried myEditor2.pickState but it is now working

View 1 Replies

Flex :: Error 1120: Access Of Undefined Property

Mar 9, 2011

I am trying to work the the ArrayCollection class and I keep getting:

1120: Access of undefined property

Something like:

var list:ArrayCollection = new ArrayCollection();
var item:Object = new Object();
list.addItem( item );

[code]....

View 1 Replies

Actionscript 3 :: Flex Error 'access To Undefined Property'

Dec 12, 2011

I'm trying to fix all the bugs for a flex project, and I don't get it. What's the problem with this snippet?[code]This is the error I get:error: 1120: Access to undefined property TweenPlugin.

View 3 Replies

Flex :: Flash Builder 4.6 Access To Undefined Property

Jan 3, 2012

I have a lot of strange info in my project in Flash Builder, why ?

"Type was not found or was not a compile-time constant" and "Access to undefined property", "Call to a possibly undefined method " When i go to those class and make space " " and save, parrent class is ok,
cleaning doesnt help for long time.

[Code...

View 2 Replies

Flex :: Caurina Transitions - Access Of Undefined Property Tweener

Jun 21, 2010

How to import it in Flex?
import caurina.transitions.Tweener;
It says: 1120: Access of undefined property Tweener.
When I do something like: Tweener.addTween(...

View 2 Replies

Flex :: Cannot Access A Property Or Method Of A Null Object Reference

Sep 4, 2010

I try to do preloder in Flex for my project written in Flash. I make this with the help of this site link text My Flash project have next source in main class called Game

stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
private function keyDown(event:KeyboardEvent) {

[Code]....

Flex application work but Flash application does not react to button presses

how I can make preloader and work buttons together

View 2 Replies

Flex :: Flash Builder 'Access Of Undefined Property Bindable'

Jun 2, 2011

I have inherited an Adobe AIR application, and am attempting to debug it through Flash Builder 4.5. Within Flash Builder, when I look at one of the MXML files, I see warnings for each use of the [Bindable] tag:[code]And there are no missing semi-colons on the lines preceding each warning as per the suggestion in this blog post.The project is configured to use Flex SDK 3.6.Additionally the file will not load in the designer, with this warning:Design mode: Error during component layout. Choose Design > Refresh to refresh design mode.At runtime I am seeing a blank window - which I assume is the result of the bindings not being triggered. Is this tag not available in Flex SDK 3.6?

View 1 Replies

Flex Error 1120 (Access Of Undefined Property XXX) When Using Constants In MXML

Nov 4, 2009

Again pulling my hair out due to some Flex/AS3 weirdness. The following code does not compile due to error 1120 - Access of undefined property AbstractWizardModel

<mx:HBox id="cntr_buttons" width="100%" horizontalAlign="right">
<mx:Button label="{model.getButtonLabel(AbstractWizardModel.GO_BACK)}" />
</mx:HBox>

The constant is defined (in AbstractWizardModel) as:

[Code]...

View 2 Replies

Flex :: Error 1120: Access Of Undefined Property - Refer To DpCols

Feb 22, 2010

I have a <mx:Script> on the main file, where I define this:

[Code]...

This TileList is within a <radg:RaDG> (my subclass for AdvancedDataGrid), <radg:columns>, <mx:AdvancedDataGridColumn>, <mx:itemEditor> and <mx:Component>. If I put it outside, it just works. But I need it to put it has the itemEditor. How should I refer to dpCols then? (or how can I solve this error?)

View 1 Replies

Flex :: Error - Cannot Access A Property Or Method Of A Null Object Reference

Aug 8, 2010

I am building a AS3 only project and got runtime error that said "Cannot access a property or method of a null object reference."

Here is my code:

main.as
public class videoMain extends Sprite{
private var videoPlayer:Player;
public function videoMain (){

[code]....

View 1 Replies

ActionScript 3.0 :: Flex - Cannot Access A Property Or Method Of A Null Object Reference?

Jan 23, 2009

TypeError: Error #1009: Cannot access a property or method of a null object reference have a mxml file that has actionscript inside of it, I'm trying to call a function in a button outside of this actionscript in the same mxml file. I'm calling the public function cancel(); like this click="cancel();" but i'm getting an error 1009 that I can't access a property or method of a null object reference

Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox

[code].....

View 5 Replies

Flash :: Rtmfp NetGroup - Not All Clients See Messages Inside Group?

Jun 5, 2011

I have Flex application - it connects to FMS and joins to NetGroup named "default".So I have for example 4 clients connected to the same server in the same group. And looks like not all clients are connected to each other! Client1 sees Client2's streams and messages but doesn't see others. Same for Client3 and 4. I know UDP must not be blocked in networks in order to P2P connections work, and this can be a reason why not all members of group see each other.My question is - if there any ways to make all clients see each other? For example - if no P2P connection can be established - connect client via Flash Media Server or some proxy?

View 1 Replies

Flex :: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Dec 2, 2009

I changed my html template to include flashvars like so:

if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed

[code]...

And I am trying to access them in my app like so:private static var _PID:uint = Application.application.parameters.product_id;

But I am getting this error:

Error #1009: Cannot access a property or method of a null object reference.

View 2 Replies

AS3 :: Flex - Access An Object Inside A Loaded Swf?

Jun 28, 2010

I have two swf, one loads the other using a Loader class, in the loaded swf I have a NetConnection object which I need to access from the host swf, but I can't, if I debug the app, I see the obejct is there, but I can't access it, if I try to set a variable likeloadedSWF = connectorLoader.content (connectorLoader is the Loader object)loadedSWF is always nullIf I debig the app, I see the NetConnection in the loaded SWF, but I can't have access to it, I have try to use Security.allowDomain("*") in both swf to be sure, but nothing, I thought that only doing the allowDomain method I will have access to the loaded SWF objects

View 1 Replies

Actionscript 3 :: Flex4, Centering And Resizing A Image Inside A Group Container

Jan 21, 2010

I'm looking for the best way to get a flex 4 image object to resize and horizontally center whenever its parent container (a custom component based on group) resizes. I cannot set horizontalCenter="0" to accomplish the image centering because I use a move transition to "slide" the image in and out of view.

I'm externally setting the image source in the component. Here is a simplified example of my component code that only addresses resizing the image.

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" >


[Code].....

View 2 Replies







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