Actionscript 3 :: Edit Objects Within Custom AS3 Components Using MXML?

Apr 27, 2011

I'm writing a Flex application using Flash Builder 4 and I'm having a bit of trouble with an AS3 object.Essentially, it is a BorderContainer, with a few buttons and images, and programming logic that determines how these interact with eachother and a database.

What I want to be able to do is configure the layout/style of the inner components using MXML and CSS. I can configure the inherited objects, but not ones that I have defined.[code]...

View 2 Replies


Similar Posts:


Flex :: MXML Syntax To Assign Properties Of Subcomponents In Custom MXML Components?

Jun 4, 2011

I am working on a custom Flex 4 component which is an aggregation of two existing flex components. I would like to be able to specify my own custom properties for the component as well as access the existing public subcomponent properties via MXML. For instance I might want to adjust the font color or style for the label and text input. toy component which aggregates both a label and a text input:

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 1 Replies

Flex :: Extending MXML Custom Components Via MXML?

Feb 3, 2011

What I'd like to do: create an MXML component with some children, then extend it via MXML to create a new component with more children, without losing the original set.In other words

create a component bc.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"

[code].....

View 1 Replies

Flex :: Creating Custom MXML Components?

Jun 21, 2010

When I define custom propertie in my MXML component, I also want to define a set of possible values of that property to make Flex Builder show then (possible values of the custom property) when I invoke code completion function.

View 2 Replies

Flex :: Edit Button Text In Custom Components?

Apr 16, 2011

i have created custom components in flex where i have used a button,i want to change button text when i will use that component in other mmxl file how i can do that?

View 1 Replies

Flex :: Access Objects In Custom Components File In It?

Sep 18, 2011

I am pretty new to flex, specially to mxml part. There are some confusing things for me.[code]...

So question is how do I access that button's properties. I want when something happens in Xyz file, button's (someId) visibility to become false. If Abc.mxml was AS class file then it would be easy, just make object etc., but how to get if it's mxml file.

View 1 Replies

Actionscript 3 :: Three Way Binding In MXML Custom Component (using Only Mxml)

Jun 22, 2011

I'm trying to do this using only mxml, no <script> tags, although I don't necessarily need a solution that's only mxml. It was more of an educational exercise to see if I could do it all in mxml. I have a custom component that has a slider and textinput and their value/text properties are bound together. I'm surfacing a few properties of the slider in my component so that it can sort of be treated like a slider.

[Code]...

View 1 Replies

Flash :: Flex Dynamically Created Components Added To Custom Components

Sep 8, 2009

I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....

[Code]...

View 1 Replies

Css :: Add Custom Style Property To MXML Custom Component?

Jun 22, 2011

I have a Custom Component that has a couple of Canvas with some background colors assigned to them. Now i have hard coded the colors, i want to move them to an external css file. So i would like to have the css declaration like this :

[Code]...

My question is if i can define custom style names like dividerRightColor and if so, how can i use that value inside my MXML Component? I have seen examples of using them inside Pure AS components.

View 2 Replies

Flex :: Open And Edit A MXML File In Builder 4?

Mar 7, 2011

How to open an mxml file? Been using Actionscript for a while, but new to Flex.

I've a project that i've been asked to make a quick change to with 3 folders and a mxml file, but have no idea how to open and edit them with Flex!

View 1 Replies

Actionscript 3 - How To Edit Components In Flash

Mar 2, 2011

Ok so I am a complete noob at flash [URL]..I am trying to change all the purple to blue and trying to get rid of the text with the link but I still want it to link to them pages

I have tried to change the colors in flash for each one but it has no effect do I have to create a new action script for it if so what do I need to put in there?

View 1 Replies

Flash :: Edit Its Components Scoll Pane?

Jun 1, 2010

I tried to create the movieclip with scrollpane, and everything is fine, I would like to change/amend the scoll bar layout, I tried the edit each movieclip inside the ScrollBar Skins folder, but it cannont get the result what I want.

View 1 Replies

Flex :: Thumbnails For Mxml Components In It?

Oct 19, 2009

Is it possible to make some kind of 'dynamic' thumbnails for mxml components which I'm using in my application? By 'dynamic' I mean if I change some layout in mxml component, my thumbnail refreshes according to new layout without any screen capturing,photoshoping or similar

View 2 Replies

ActionScript :: Using MXML Components As Classes?

Jun 20, 2010

I have two MXML component files and try to work with them as classes. One of them has a simple function:

GUIFriend.mxml
<mx:Script>
<![CDATA[
public function createName(f:Friend) {
return 'friendProfile: ' + f.uid;

[Code]...

View 2 Replies

ActionScript :: Using Flex Components Without Any MXML

Jul 29, 2011

My Main.as extends flash.display.Sprite, I want to use a ComboBox component in the as, without any mxml, how to implement it? I read this Possible to use Flex Framework/Components without using MXML?, Its main as extends spark.components.Application, but still need a mxml file. Its main idea is to rewrite the Application component, and reuse it in mxml file. That is not what I want. I uses Flex SDK 4.1

View 1 Replies

ActionScript 3.0 :: Flex Components Without MXML?

Nov 1, 2010

I'm working on an AIR project in Flash Builder 4. My question has apparently been asked a lot (according to Google), but I haven't found a satisfactory answer so I'll be very detailed in what I'm looking for:Is there any way to create an AIR project in pure ActionScript that:Is truly object-oriented (i.e. the entry point is an ActionScript class with instance variables and methods)?Can instantiate mx and spark controls without MXML?I was able to accomplish #2 in fairly different ways by following these two sets of instructions (with only a tiny bit of initial MXML):

[URL]

However, neither of those allows me to accomplish #1. If I declare a private member variable outside the entry point function, I get an error from the compiler that the keyword 'private' can only be used in a class.If you like MXML, feel free to post your viewpoint as well. My reservations revolve mostly around these perceived notions:The learning curve of MXML seems steep.The time it will take to become good at MXML will not be worth the investment since its main purpose is to ease GUI development (which I'm already good at anyway).Like I said previously, I don't want to be an "XML programmer". I'd like to maintain the power and flexibility of OOP.

View 1 Replies

Flex :: Sharing Variables Between MXML Components

May 29, 2010

I have several mxml components in an app, all of which need the same variable called genericX. I've included that variable in the main mxml and made it public
[Bindable] public var genericX:Number = 102;
But I still can't access it from other mxml components. If I try to do this for example, it doesn't recognize the variable.
<s:Button x="{genericX}" label="Click" />

View 5 Replies

Flash :: Swf Cannot Reference Mxml Components On An Event?

Jul 4, 2010

this piece of code is being placed inside a swf which is then being placed inside a mxml swfloader. The ProductDesigner is the name of the application and the selectRed is a HSlider mxml component. The error that I receive is that "Access of undefined propertyProductDesigner" in the Flash CS5 when testing the swf. Yes I am able to pick up the intellisense to know that it knows that there is a ProductDesigner in the whatever it's called.

private function ChangeColor(event:MouseEvent):void
{
var red:uint = ProductDesigner.mainTabs.tabContentColor.selectRed.value;

[code].....

View 1 Replies

Actionscript 3 :: Show And Hide MXML Components?

Nov 9, 2011

I am working on an application where I need to basically have 2 separate screens and I need to be able to switch between them. I am a total noob to Flex & Flash and I have not found anything on how to do this in my 2 days of Googling. It really shouldn't be this hard to do!

Here is what I have tried. I created a Flex Project and added 2 MXML Component files called Test1 & Test2 and each simply have a button in them which have a label of Button1 & Button2 so I can see if the correct component is showing. Below is the button code in the Test1 MXML Component file[code]...

View 1 Replies

Flex :: Components And Main.mxml Communication?

Mar 7, 2012

I'm building a Flex 4 Application in AIR.I've made a main.mxml and a login.mxml component. It all works but i can't communicate between my two mxmls (MAIN and COMPONENT)The login works but then it has to send a event tot the main that i can change the state in the main.Here is my cropped code.

login.mxml
//resulthandler if login is succesfull
loginUserResult.addEventListener(ResultEvent.RESULT, loginUserResultHandler);

[code].....

View 3 Replies

Flex :: Access MXML Components Within Ascript Files?

Jul 29, 2011

How do I get round the following error: Access of undefined property pMatrixBack . How do I access this component from within the ascript file?[code]...

View 2 Replies

Flex :: Components In Window-Based MXML Frozen

Jan 27, 2012

Creating a window-based mxml component, but in design mode all components that I'm adding are not movable, why? If I create component based on group f.e., it's ok, but based on window - they are frozen. Using Flash Builder 4.6.

View 2 Replies

Actionscript 3 :: Creating Components By MXML Or By SCRIPT/FLEX?

Mar 9, 2012

im trying to figure out what is better for run-time, creating components in MXML or by SCRIPT?. I built an app that recieves data from a server without knowing how much data exactly. In worst case scenerio , ill need 10 LABELS and 2 DATAGROUPS.But i usually need something like 3 LABELS and 1 datagroup. what is better? creating all components in advance and than not include in layout the ones i dont need, or make some checks and then create only the components i need by script? I made some tests , but it wasnt really decisive, run-time was pretty much simillar.Im guessing it must be stated somewhere what is better. Does anyone have an answer for me?

View 1 Replies

Actionscript 3 :: Overriding A Setter In MXML Components In Adobe Flex

Dec 15, 2011

I am trying to override the text setter in the Label component but it behaves weirdly sometime super.text works and sometimes not! and the traces show that there's no error with my code.

here's my code:

import spark.components.Label;
public class LabelXX extends Label
{
private var _initialText:String;

[Code]....

View 1 Replies

Actionscript :: Flex - Setting ScaleX / Y In Mxml Effect The Components Size

Jan 1, 2010

I'm playing around with the scaleX/Y in the canvas tag and have noticed some strange behaviour. When I set scale in in mxml the width and height of the canvas are adjusted accordingly. For example if I have a canvas like this: <mx:Canvas width="1000" height="1000" scaleX="0.1" scaleY="0.1" />

The canvas now appears on screen to have a width and height of 100 and if inside my creationComplete callback I check the width and height property they are indeed 100. But if I do exactly the same thing except I set the scaleX/Y property from actionscript the canvas on screen appears to have a width and height of 100 as expected, but when I check the width and height property of the canvas they are still at the previous values of 1000.

View 1 Replies

Flex :: Define Components Path In Each Module / Just Main Application Mxml?

Apr 16, 2010

I'm implementing a Flex application with several modules.I'm reusing the same component in all these modules.I was wondering if I'm correctly importing it in each mxml module definition: xmlns:hillelcoren="com.hillelcoren.components.*"Should I import it only once, in the main application mxml instead?

View 1 Replies

Flex :: Create Skinnable Components In MXML Using Spark Component Architecture?

Oct 14, 2010

There are lots of examples of how to create skinnable components in AS3 using the new Spark component architecture, however I've yet to find any such examples using MXML.What I'm mainly referring to is defining the skin parts and skin states. It seems as though the SkinPart metadata is supposed to be associated with properties and as such can't be used in MXML, is this correct?

View 1 Replies

Flash :: Opensourse Set Of Components Or Some Framework For Creating Flex Mxml Graphs (Node-based UIs)?

Apr 15, 2012

Is there any opensourse, free set of components for creating Flex mxml graphs? like aviary Peacock style ones with at least Drag, drop, and connect generators so each graph element could have or something like that. Framework should be opensource (like GPL, LGPL etc) BTW: I found one wary bacic made by Erno Aapa with Degrafa but I would really love to see something much more Flex 4 - mxml oriented and frienfdly.

View 2 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

ActionScript 3 :: Custom MXML Container In Flex 4

Jul 22, 2010

I want to make a custom container, usable in MXML like:
<local:MyContainer>
<s:Label/>
<s:Button/>
...
</local:MyContainer>

But I'd like to be able to catch when the children are added so that I can control stuff like when & where they're added. I tried overriding addChild(), addChildAt(), addElement(), addElementAt(), (extending the Group class) but they only fire when you add elements specifically with those functions - the application launches and the label, button, etc, end up in MyContainer without calling these functions. How do I control the addition of sub-components via MXML?

View 2 Replies







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