Flex :: Adobe - Can MXML Be Generated On The Fly

Sep 27, 2009

Flex newbie question: can MXML be generated on the fly, like HTML is generated by a server? If yes, is it ok to do so or am I missing an important Flex architectural principle.

View 4 Replies


Similar Posts:


Flex :: Adobe Calling MXML Functions?

Jul 16, 2010

i allready searched abit around here and found the solution to call a fx:script function defined in a mxml from a AS class.

[Code]...

View 7 Replies

Actionscript 3 :: Add Column To Adobe Flex Mx:DataGrid In Mxml?

Jan 29, 2010

I have simple mxml code

<mx:DataGrid id="DGG"
editable="true">
<mx:dataProvider>

[Code]....

I want to add rows to my table datagrid how to do such thing?

How to add Column to Adobe flex mx:DataGrid in mxml and/or actionsctpt?

(You can put this code in Flash or AIR app - it will compile with no errors, but will not add any columns=( )

View 3 Replies

Flex :: Fill Parent In Adobe / MXML - Implementing Layout?

Dec 6, 2011

I am attempting to implement a layout in Adobe Flex 4.5 / MXML where I have multiple controls in an HBox that - in total - consume all available horizontal screen estate. Some use a relative with (percentage), some an absolute width (pixels) and one is supposed to consume whatever space is still left, such as:

+----------------------+-----------------------+------+
| 35% | fill parent | 10px |
+----------------------+-----------------------+------+


How would I achieve this in Flex (is there something comparable to Android's
layout_width="fillparent")?
Due to the fact that there are elements that have an absolute width I cannot easily calculate the width of the filler as a percentage a priori (as it varies with the screen width). Setting the filler's width to 100% also does not work as this will shrink the 35% area below 35%. Applying the updateDisplayList suggestion from www.Flextras.com's answer below yields the error "Call to a possibly undefined method updateDisplayList" at the line marked in the source excerpt below:

<?xml version="1.0"?>
<mx:HBox xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationPolicy="auto"
[Code] .....

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 3 :: Flex: Adobe Flash Builder With MXML: HTML Progressive Streaming Doesn't Work

May 7, 2011

I am using progressive streaming with VideoDisplay, the HTTP URL provided gets buffered completely even if I have configured it to start playing the video when the buffering reaches 20%, the trace message shows that the playing started(using mozilla /Flashbug+Firebug), but it doesnot show the video till the buffercounter reaches 100% How can I get the video stream to play at the 20% of stream.Code Segment where the check takes place

var loadedPct:uint = Math.round(100 * (event.bytesLoaded / event.bytesTotal));
trace('waiting...');
mainVideoCanvas.addChild(LoadingImage);
VidLoadingLabel2.text = loadedPct.toString();

[code].....

View 1 Replies

Flash :: Flex :: AS3 Vs MXML - Compilation Speed Difference And How Does The Mxml Compiler Work

Sep 24, 2009

Does MXML get compiled down to as3 and then converted to flash bytecode? Also, is there a significant performance penalty to compiling mxml vs compiling as3?

View 3 Replies

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

Actionscript 3 :: Flex When Mxml Described Component Initialise It's Mxml Described Properties

May 28, 2011

I am trying to override a Button class, i have a few properties which i wish directly initialise with the mxml description of the component, like :[code]which function is triggered ( in order to override it ) when all properties with mxml description is fully initialised with their values ?

View 1 Replies

Flash :: Read Objective-c Code That Is Generated From Adobe?

Nov 10, 2010

I make an iPhone app with Flash and it generates my app and a xml (that I don't understand if is it useful).My question is if I can read the objective-c code that Flash generates.

View 2 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 :: Calling Another Mxml Function In Other Mxml File?

Sep 27, 2011

i have defined some functions in a component mxml file let us say addbutton() now i want to call this function in main mxml file.

View 2 Replies

ActionScript 3.0 :: Pass Multiple Flash Vars In Adobe-generated HTML?

Nov 2, 2010

I need to pass multiple flash vars into my swf -- I see multiple places in the adobe-generated HTML in which to put the flash vars. While I can do this successfuly for one flash var, I can't for more than one (I'm using something like this at the moment, which works, but cannot be extended URL

[Code]....

View 1 Replies

Flex :: Retrieve Value On Main.mxml From Other .mxml?

Apr 23, 2010

main.mxml
[Bindable]
private var _dp:ArrayCollection = new ArrayCollection([

[code].....

View 1 Replies

Flex - Define A MXML Component And Update MXML Component In Flex Application

Aug 12, 2009

A Flex components values are initlized by init methord. In an application flow, How to refresh a mxml component data value ; as init is callled at the start up it self only.

eg. of mxml componet may be as simple as button label or text as complex as repeater whose data provider is a web service ( means a fresh quesy should be made to pull the data and refresh the dataprovider of repeater )

View 3 Replies

Flex :: Navigate From One Mxml To Another Mxml ?

Jul 7, 2010

suppose i have 3 buttons(for example say, productin, marketing, sales ) on my main.mxml..once i click on one button it should take me to abc.mxml page with production data, once again if i click on second button it should take me to the same abc.mxml but with marketing data. same as for 3rd button also, how can i achieve this ?

View 2 Replies

Flex :: Extending Mxml Component With From Another Mxml Component With Visual Child Supported?

May 18, 2011

I've been trying to create a custom mxml component that extends another custom mxml component (i.e.MyMXMLComponent -> BaseMXMLComponent -> Group). I've been reading that trying to add visual children to MyMXMLComponent caused error with Flex 3 but that's no longer the case with Flex 4.

What I want to know is whether this is a supported/fixed/documented feature of Flex 4? or just some undefined behavior in Flex 4 that may get changed with future updates?

if this is supported and documented feature, does anyone have link pointing to adobe document stating it as such?

View 1 Replies

Flex :: Load An External Mxml File Into A Parent Mxml File?

Mar 9, 2012

This is a project I'm working on for a simple demo tutorial application in Flex. I am using mxml pages. You can see to the left that I will have my main application and then other mxml files (In the Examples Package) as the examples that will be loaded into the main application mxml. How can I dynamically pull the value from the object in the list to load the child mxml file into the container that I have further down in the application?

View 1 Replies

Flex :: Dynamically Create Axis Via ActionScript In Adobe Flex Charting Library; Adobe Bug?

Mar 21, 2011

Multiple axis creation via MXML works fine:
http:[url]...

But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?

<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....

View 2 Replies

Flex :: Get Id Value Of Main.mxml File To CustomPanel.mxml File?

May 16, 2011

I have a method in CustomPanel.mxml and I need to use id which is available in Main.mxml. Below is my sample code

Main.mxml
<local:CustomDivideBox id="div1">
Custompanel.mxml[code]....

View 2 Replies

Flex :: Include An MXML File Inline Another MXML File?

Jul 25, 2011

I would like to include an MXML file in my MXML file in the same way you can include an external file in AS3 using the include directive. Using the include directive brings the code from the external file into the original file at compile time placing it in the same scope. For example,

Application.mxml:
<Application>
<source="external.mxml"/>

[code].......

View 4 Replies

Flash :: Flex - Live Preview On A Flex (compc) Generated SWC

Jul 20, 2009

Does anyone know what criterea Flash uses for discovering the Live Preview class for a Component? Background We are attempting to automate the creation of a SWC that contains a component to be used from Flash. We are able to make it visible to flash by modifying the manifest.xml and wiring up the component definitions. However, the component cannot be dragged onto the stage (or library), presumably because it has no form of LivePreview. To give better clarification of where we are coming from, we've noticed the following in SWCs exported from Flash (using swfdump):

fl.livepreview.LivePreviewParent contains the same mod attribute as the visual component in the manifest.xml file fl.livepreview.LivePreviewParent is exported as a symbol The short-named component (ie. no package, referenced in the components definition in the manifest.xml) is exported as a symbol However, I can see no other differences between that and the SWC from Flex. We can obviously use JSFL to perform the task, but we'd rather not install Flash on the build server.

View 1 Replies

ActionScript 3.0 :: Programmatically Detecting Between Adobe Air And Adobe Flex?

Feb 12, 2010

I have some shared code between an Adobe AIR App and an Adobe Flex App.

On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.

How can I programmatically detect the difference?

View 1 Replies

Flex :: Mx:method, Mx.rpc.remoting.mxml.RemoteObject, And Sub-classing Mx.rpc.remoting.mxml.RemoteObject?

May 6, 2010

I am looking to subclass RemoteObject. Instead of:

<mx:RemoteObject ... >
<mx:method ... />
<mx:method ... />

[code].....

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

Flex :: Make Ant Generated Swf As Small As Possible?

Aug 6, 2009

I have a flex project and if I build a release version of the application using flash builder with RSLs on my swf is 115k. If however I build the same application using ant the swf is 342k. Without RSLs the swf is 520k.

How do I get the swf to be as small as the one built by FlashBuilder?

Here is my ant file I have another task that copies the rsls.

<project name="EUI Client Application" default="compileClientApp">
<target name="compileClientApp" depends="compileClientBundles">
<mxmlc

[Code]....

View 4 Replies

Flex :: Getting Handles To Dynamically Generated Components

Nov 10, 2009

I have a Flex application which references a separate MXML file as a template for a custom component. I create instances of the component dynamically several times in my program, but I need to get a handle that will allow me to modify that instance of the component as desired. I pass specific information to this component on instantiation using bindable public variables in the component's MXML file. I add it to my main program using addChild().

I want to update the component's progressbar as necessary and I want to remove it from the box to which I addChild'd it. What's the easiest/best way to get a variable that will give me predictable access to each component so I can easily manipulate the components as necessary? Some research suggests creationComplete, but I decided it was faster to just ask than to go through lots of different experiments and come up blank.

View 1 Replies

Flex :: Set A Header On Request Generated By FileReference?

Sep 16, 2010

[url]...

How do I add my own request header to the POST requests generated by FileReference.upload()?

View 3 Replies

Get Id Value From One Mxml File To Another Mxml File In Flex?

Jul 21, 2011

My Application is in Flex 3.5. My Code is Here,How to take the id value of textare?[code]...

View 2 Replies

Actionscript :: Use Data From One Mxml Component In Another Mxml?

Jun 19, 2011

I have 3 mxml components. In Component 1, I let the users fill in some data. In Component 3 I want to use the data, but I can't find a way to make it work.

View 1 Replies







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