I'm writing an Adobe AIR application using a ViewStack for the different application states. Is there a way to make sure that each view component is created/destroyed each time it is shown/hidden?
For instance, if I have a TextInput in a view, I want it to reset to its initial state each time I change to that view, rather than having pr...
I have done all of my Flash applications up until now with the Flash IDE (although I rarely use the timelines, since I prefer to do everything in code) or in FlexBuilder as Flex applications. Are apps that just extend Sprite (used in the FlexBuilder IDE, for instance) a viable way of doing an application, or are they just for HelloWorlds...
I have a datagrid defined in an mxml file (flex 3):
I am using an external class to connect to a sqlite database and generate some results (this is working and I can trace the results).
How can I target the datagrid generated in the mxml from the external class? I have tried:
Application.application.resultsGrid.dataProvider = result...
I have a simple HelloWorld app done in FlexBuilder. It's just a simple class that extends Sprite. In the dedicated Flash player, the SWF shows up occupying the whole screen. In Firefox, however, both within HTML and alone, it shows up to the right. Is there a simple cure for this?
Code is just a constructor (in which the stage.stageWid...
Hello everyone.I've been searching this on the net but i haven't find an answer. I have array data from title window which i need to pass directly to main window after closing the title window.
Heres my code on main window
private function showWindow():void
{
var dataCntnrsForTxt: Array = new Array;
var ttlWindow:addQu...
Is there an easy way to build projects created in FlexBuilder via the command line?
I'm beginning to work on adding a couple Flex components to the project I have at work. Currently the rest of the project (some java, some C++) is built via an ant script. I'd really like to be able to integrate the builds for the Flex components I'm w...
Hi guys,
I have a mxml with a form, and inside it, two TextInputs.
I hate having any piece of code inside the MXML file (I come from a Javascript formation) so I use a
mx:Script source="external.as" tag to include any code used in any MXML file.
The problem is that if I have this code on the external.as file:
private function popul...
I am creating a two-dimensional list that has consecutive numbers at the end of "day", for use as dataProvider for a DataGrid
i have been accessing them via the command
dg1.selectedItem.day1
dg1.selectedItem.day2
dg1.selectedItem.day3
etc...
is there any way to take the string ("day"+i) and convert it into a (what is it? variable name?)...
Is there a way to add entries to FlexBuilder's build path that are relative?
I'm going to have multiple projects that will use a shared codebase, but I'm having trouble getting them to reference that shared code. I can do it with absolute paths, but that isn't going to work well. This code (and the projects) are going into sourcecontr...
I have always used the NumberFormat class in Java to do simple number padding ie. turn 1, 2, 3... into 0001, 0002, 0003....
Is there a similar utility in ActionScript to do my padding, or will I have to write a custom function?
...
I am designing the application in Flex that connects to some web services to perform some financial transactions. Web services are secured using https protocol and are asking for user token created at login on each request. This is used to authenticate and authorize the user. So far so good.
The trick part is that not all of our web se...
One of the features of the Flash app I'm working on is to be able to stream a webcam to others. We're just using the built-in webcam support in Flash and sending it through FMS.
We've had some people ask for higher quality video, but we're already using the highest quality setting we can in Flash (setting quality to 100%).
My understa...
How can I convert the following XMLList to an Array of Strings without using a loop?
<labels>
<label>All</label>
<label>your</label>
<label>base</label>
<label>are</label>
<label>belong</label>
<label>to</label>
<label>us.</label>
</labels>
I want this result:
["All","your","base","are","belong","to","us."...
If I have some xml like so:
<books>
<book title="this is great" hasCover="true" />
<book title="this is not so great" />
</books>
What's the best (or accepted) way in actionscript to check if the hasCover attribute exists before writing some code against it?
...
Hi,
I've got a question about flex.
I have a form and the email is required.
I googled this and found the found the following solution:
<mx:FormItem label="Email" id="emailFormItem" width="100%" styleName="formEven" required="true">
<mx:TextInput id="emailTextInput" width="100%" text="{user.email}"/></mx:FormItem>
The problem...
I have a question for a simple thing that there doesn't seem to be a simple solution to. I have a datagrid, and the rows should be deselected if it's clicked on and already selected. How to do that?
I'm looking at the different "item"-events but the row is already selected when they are dispatched, so there is no way to tell if it was a...
The Flex Application is set to 900 pixels width.
The object tag is set to 900 pixels width.
Firefox is rendering the object at 110% the size requested. So there is a blank vertical column on the right size of the object. (It does this if I set fixed height also)
If I set the width in the object tag to 810, then they match up, but thats...
I need to programmatically remove an alert.
This is why:
My application uses BrowserManager to enable deep linking based off of the content in the #hash part of the url. If an alert is currently up, and the user hits the back button, the application will revert back to its previous state. But the Alert will still be up, and in many case...
I’ve developed an Adobe Flex (v. 2) application. The application exists as a .swf file hosted on a web server. I have an html page hosted on a completely different web server (which is independent of the web server the .swf file is on).
My question is how am I able to call the .swf file (that lives on the separate web server) from withi...
Hello everyone. I have a component which is created dynamically. I want to access the properties on it.
for example i create a vbox and i want to access the text font or gap of the component
var MyVBox: VBox = new VBox;
MyPanel.addChild(MyVBox);
How should it be done?
...