Actionscript-3 :: Differences Between Flex Mxml?
Jun 10, 2010What are the differences between flex mxml and as3.
View 3 RepliesWhat are the differences between flex mxml and as3.
View 3 RepliesDoes 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 RepliesI 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]....
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 RepliesWhat 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].....
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 RepliesWe have lots of log information (syslogs, database logs...etc) which is in CSV format. I need to present this information to key management about the activiites from the logs in Visual format but still has dynamic links. For the management sake, I need this application to be cross platform (Windows, MacOSX, Linux).What tool do I need to use Flash, Flex or (something else like Java)?
View 2 RepliesI'm currently upgrading an app from Flex 4.1 to 4.5.We've noticed that the Arial font is rendered differently between the two versions when used at small sizes.Here's a simple app example:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]....
When run against the 2 different sdks, here's an image of the font rendering we get:
Note that in 4.5 the font looks slightly squashed.
What's the cause of this, and how do we resolve it?
main.mxml
[Bindable]
private var _dp:ArrayCollection = new ArrayCollection([
[code].....
I was wondering what's the difference between doing [code]However type 2 seems to work, but more people seem to reference type 1
View 1 RepliesA 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 )
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 RepliesI'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?
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 RepliesI 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]....
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].......
I am looking to subclass RemoteObject. Instead of:
<mx:RemoteObject ... >
<mx:method ... />
<mx:method ... />
[code].....
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]...
My Application is in Flex 3.5. My Code is Here,How to take the id value of textare?[code]...
View 2 RepliesI 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 RepliesI am getting a value in a MXML... now i need to pass it to another MXML to invoke an event... how can i do it.
View 4 RepliesI'm trying to compile gui/flex/songs.mxml in the fourth edition of Bruce Eckel's Thinking in Java book and am getting a compilation error with Flex 3.4.
Here is a simplified version of the example that gives the same error:
[Code]...
I've been having trouble exporting Adobe Flex using Adobe Air. I can't find the runnable application Air, and so when I export something to be opened in air it can't be opened. I'm on a Mac Powerbook G4 running OS 10.5.8.
View 1 RepliesI want a Flash Builder plugin that takes ugly unformatted mxml and makes it beautiful
View 1 RepliesI have one mxml file that process xml, and display the graphics on panel.I need to display first mxml in another mxml file, in some area(HBox, VBox, Panel, dont care). How i can do this?
View 1 RepliesI'm developing a simple Flash animation using Flash Professional CS5 and I'm writing some ActionScript code. I noticed there's a choice between using different versions of ActionScript.Wondering what the key differences are between 2.0 and 3.0...?
View 4 RepliesFrom a developer's point of view, are there other differences between Flash and AIR to take into account, apart from the certificate and AIR not supporting ActionScript 2.0?
View 2 RepliesI recently learned beginner grade skills for AS2 via Macromedia Flash. it had only AS2 so i thought i'd be good to programin that.well i completed my project (a minigame for a bigger game was the first time i programmed ever actually. Was really fun and you can find my "work" in the attachment) changing to adobe flash on the way its what the workstations in my u have. well i there saw actionscript 3 too. also, sometimes when i asked for help on here they told my i "should switch to as3" soon. now im about to work myself into as3 but first I'd like to know.what are the main differences and could someone show me a code in AS2 and the same code in AS3 or link me to a tutorial that makes good use of AS3 (possibily by using AS2 references to clarify the structures?)?why is As3 "better" than AS2?
View 9 Repliesi'm a student and have to code a flash game in AS2.0. I found a really good tutorial, which helped me to understand, how to code. The Problem is,the tutorial is written in AS1.0 and i don't know the differences between AS1.0 and AS2.0.
Code:
fscommand("allowscale", false);
fscommand("allowscale", false);[code]......
Is there a way to access the DOM-Elements of a mxml file in a way that you can in JS (e.g. using Prototype or jQuery)?
I need to know if a top-level element has a child (sub-sub-...-childs) with a certain id.
In JS (using prototype) it would be something like:
$('tabs').select('[id="something"]');