Flex :: Variable Accessible For All .mxml Files

Oct 4, 2011

Im using Oracle, BlazeDS, Java & Flex. I have an ArrayCollection containing data from a small database table. This table won't be the subject of much change. I want to use this ArrayCollection accross different mxml files to fill e.g. ComboBoxes etc. The reason for asking, is that doing a database call for each time a fill a ComboBox etc is slow and seems unnecessary. I tried doing this once in the "main" .mxml file, but then the variable wasn't accessible where i needed it. What is the best approach for accomplishing this task? What is the best way of making a variable accesible across .mxml files?

View 5 Replies


Similar Posts:


Flex :: Breakpoints Working In MXML Files

Jul 11, 2010

I am trying to debug the Flex application. I am able to set breakpoints in mxml file, and application breaks on those breakpoints. But when I set breakpoint in as files, I don't see the breakpoint marker, though in breakpoints window I am shown the line no. And when I start my debugging session, the application does not break at that point.

View 1 Replies

Unused Mxml And Files In A Flex Project?

Apr 5, 2011

I am trying to make the project build light by removing all the unused (mxml,xml and image ) files. Currently I am manually searching for each image and then removing the unused file. But is there a way such that we can get list of unused files automatically . I was trying to use the swfDump.jar from 4.0 sdk . But that dint work as it is working with projects that are build using flex sdk 4.0. I am currently using 3.2 .

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

Flash - Flex Compiler Appears To Misinterpret .as Files As MXML?

Nov 21, 2011

After changing the Flex SDK to 3.6 (from 4.5.1) so as to target Flash player 9.0.124, the project no longer compiles, producing spurious errors such as XML does not have matching begin and end tags leading me to believe that the compilation process is 'borked'.

This is a pure AS project, and so should have no dependency on the Flex SDK, howver, it seeems to be inextricably linked to the Flex 4.x SDK and Flash Player 10+. I have tried swf-version and -target-player-version in the compiler arguments, but there is still something I am missing to get this to compile for Flash player 9.

View 1 Replies

Flex :: Use Flash Builder To Run Multiple Mxml Files In One Project?

Mar 1, 2012

I imported an .fxp project into a Flash Builder and then observed there are 5 .mxml files in the src/(default package) directory. Silly question -- how to run each of these five files?

Since I've named the project differently than any of the .mxml files, whenever I try to run something it uses the default (empty) .mxml file named after the project. Deleting that empty mxml file didn't help anything. I also tried to clean the project, but nothing changes (although I see the directories refresh with the same contents). There are no html files in the bin-debug directory.

There must be some simple way to run those .mxml files that I'm missing.

View 2 Replies

Flex - Compile Multple Independent Mxml Files At One Time?

Jun 11, 2009

Our application has over 15 different top-level mxml files to create individual controls that are used in our pages. We are using Ant to do our automated builds, and are calling the mxmlc task for each mxml file separately (See question 78230 similar example). Running the compiler separately for each mxml file, however, is already adding up to a considerable amount of time. Our build time is approaching 10 minutes, 5 minutes for compiling our flex apps, and 5 minutes for compiling hundreads of java classes, building jars, installer etc. Each flex compile run is reasonably quick (15-20 seconds), but they add up.

Is there a way to compile all of them with one call to mxmlc?

View 2 Replies

Make An MXML Variable Bindable In Flex 3?

Jun 14, 2011

Is it possible to use the Bindable compiler setting when using mxml?

I've got a string that I want to make bindable:

<mx:String id="myString">My Text</mx:String>

I could make it bindable in Actionscript, like this:

[Code]...

But it threw a lot of warnings-- other classes were already marked bindable in my App.

View 1 Replies

Flex :: Assign Variable To MXML Component ID

Jun 30, 2011

I have my custom component and for example few Label. I want to pass to my component value which will be assign to label's id.[code]Error: {test} is not a valid identifier.

View 1 Replies

Flash :: Flex - Compile .mxml Files At The Command Line Using Bin / Mxmlc?

Nov 7, 2009

I'm interested in learning just enough Flash/Flex to do things that I can't do from HTML and JavaScript alone - play sound files and video, use multiple file upload things, perform cross-domain Ajax requests using the crossdomain.xml file etc. As such, I don't really want to learn (or pay for) the Flex IDE. I'm not much of an IDE guy in any case.

The problem is, most of the tutorials I've found talk about the IDE. I've figured out how to compile .mxml files at the command line using bin/mxmlc - now I just need to learn MXML, ActionScript and the various APIs! What are the best resources for learning these? I'm fine with buying a book, I just don't want to shell out for the API itself.

View 3 Replies

ActionScript 2.0 :: FMX-variable Accessible Outside Of Functions?

Aug 6, 2003

I don't know why the value of my variable my_str is undefined outside of this function:

loadText = new loadVars();
loadText.load("data.txt");
loadText.onLoad = function(success) {

[Code]....

ps: I tried making my_str a global function or even defining it as _root.my_str but I always get the same result..it's undefined outside the function...I need that value for something else so...

View 1 Replies

ActionScript 3.0 :: Make A Variable Accessible In More Than One Frame

Feb 9, 2010

I noticed that I can not find a way to make a variable accessible in more than one frame. My issue here is that for instance if I have a game and frame 1 has the game and frame 2 has the win screen and I want the win screen to display a score, I don't know how to do it. So the variable from frame 1 which holds the display can't be acessed in frame 2. I understand how to use OOP proggramming and classes, but you need an instance of that class to hold the variable, and It seems I can't cross-frame acess objects either. (I understand I could use a global variable, I don't know how to do this but I know most people don't.

View 4 Replies

ActionScript 3.0 :: Global Variable Not Accessible From Nested Function?

May 13, 2009

i need to assign a value to a global variable from within a nested function, but my code's not working, any clues? this is within a class definition:
 
// begin code
var numGlobalNumber:Number;
outerFunction();

[code]...
 
i want the text within the dynamic text field to be "1" but it comes up "NaN"

View 4 Replies

ActionScript 3.0 :: Root Variable Not Accessible In Child Layers

Dec 2, 2010

I got a variable "VideoFolder" well defined in my root level. However when I used this variable directly in child layers, my script does not recognize it and I get error 1120: Access of undefined property VideoFolder. I tried changing VideoFolder with _root.VideoFolder in all my child layers scripts, but it changes nothing.

View 2 Replies

ActionScript 3.0 :: Flash Variable Or Method Accessible In All The Package?

Feb 18, 2011

I want to be able to have a variable and/or a method that's available to all the classes inside a package. What would be the best way to achieve that?

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

Actionscript 3 :: Correct Way Of Making Variable Accessible To A Child Class / Object

Mar 4, 2011

When you initialize a new object, how can that class have access to a variable from the parent?In this case Blob needs to be able to access scale?[code]

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

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 :: Sdk Is Not Accessible In Eclipse

Mar 22, 2012

I have installed eclipce and I want to work with flex.I found some site (url...) where somebody said that we need to install flex sdk. And than they said that we need to open window->preferences and on left side select 'Flex'. But I don't have 'Flex' item here... What is wrong? I also installed Flash Builder trial, but it does not make any sence.

View 1 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 :: Deployed SWF Not Accessible In Firefox?

Nov 15, 2010

I'm using swfobject.js to deploy load my flex applet. Unfortunately, while I'm able to run/debug in Firefox via Flash Builder, I cannot access the deployed applet via its URL -- the applet doesn't load/start. I can access the deployed applet via its URL from both IE 8 and Chrome 7. Below are the swfobject code and the produced object tag:

<script type="text/javascript">
window.onload = function() {
<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
var swfVersionStr = "10.0.0";

[code]....

View 1 Replies

Actionscript 3 :: Load MXML From External Files?

Nov 5, 2011

I'm new to Flex and I'm trying to write a program with lots of content in it. There's a sidebar, a main content pane with tabs, etc.I want to be able to create MXML files (like sidebar.MXML, tab1.mxml, etc.) that I can then load into the sidebar or load into a certain tab. That would make my code a lot more manageable instead of writing all that code inside of the main MXML file.Can I do this? I have already modularized some of my code by putting them in custom components, but I would really like to be able to load content from other MXML files, much like I can do in PHP:

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

Xml :: Flex - Loading An XML File That Isn't Accessible By Users

Dec 9, 2009

We have a Flex app that is currently loading an XML file that contains Multiple Choice Question data. I don't want a user to be able to access this file via http, but if I use HTTPService to load the file (what we're doing currently) it seems as though I have to place the XML file within the public_html folder on our server.

Is there a better way to load the XML file so that users wouldn't be able to see it in their activity viewer/access it via http://

View 1 Replies







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