I have been trying to understand the way ActionScript's events are implemented, but I'm stuck.
I know that AS is single threaded, which means that only one event handler will be executing at a time, and also means that handlers will be executed in a deterministic order*.
For example, consider the following code:
1: var x = {executed: ...
I have some strange behavior.
My embedded images show up in the Flex Builder Design Preview, but are not displayed when the application is run. The images have relative paths (/assets/images/...), and the application is run on the server (wamp). I've appended the path to the compiled location (http://localhost/...) and tried to display ...
I have two functions in a actionscript class, they are:
private function loaderCompleteHandler(event:Event):void
{
_loader = Loader(event.target.loader);
selectedBitmap = Bitmap(_loader.content);
}
public function byteArrayToBitmap( byteArray:ByteArray ):void
{
_loader.contentLoaderInfo.addEventListener( Event.COMPLETE,...
I'm using a mx.containers.Grid to layout some data, and the last column is a set of checkboxes. MXML Code snippet:
<mx:Grid width="95%" height="50%">
<mx:GridRow id="row1">
<mx:GridItem>
<mx:Label id="label1" ... />
</mx:GridItem>
<mx:GridItem>
<mx:Label id="textValue1" ... />
</mx:GridItem>
<mx:GridIte...
I have a class which I want to use throughout my projects. It essentially would allow me to easily work with a RemoteObject so that I don't have to define it throughout all of my projects. It works when not passing "args" to sendRequest(..). But when I want to call the cfc function with parameters and try passing "args" in I get the foll...
Is there some way in Flex where I can tell when all of the data has finished binding to my AdvancedDataGrid? I have a bunch of label functions that run and I need to a busy cursor while the grid gets populated. I then want to remove it when it's all done. And also fire another event.
Thanks,
Martin
...
I'm very new to flash and actionscript 3. I've been reading a lot about it and this is also my first aprouch on object oriented programming.
So far, I created an application with a login button, that's all. However, I would like to know what kind of things I am doing wrong or should be doing different (or better). I am using Adobe Flex ...
Hi I wanted to ask if there is a possibility to have both strings and radiobuttons in one column depending on the value of another column perhaps
|column1 | column 2 |
|r | radiobutton|
|s | string |
If there is an r in column 1 in column2 should appear a radiobutton, otherwise column 2 just shows a string.
Thanks ...
Hello community,
can someone tell me how I can identify the type of an object in flex? In particular I have an array where I store multiple types in (but all UIComponents) now as I evaluate the array I want to find out whether I have a TextInput Control or a RadioButton. Does someone have an idea?
Thanks in advance
...
Because I want to avoid repetive code, and I'm using a lot of text formats, I created a CustomTextFormat class in Flex Builder.
Another class, called CustomInputBox.as is using this object to create a format:
package
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldType;
public cla...
I need to find out what state i am currently viewing. Lets suppose...
<mx:states>
<mx:State name="state1">
</mx:AddChild>
</mx:State>
<mx:State name="state2">
</mx:AddChild>
</mx:State>
</mx:states>
Once i login in my application, the state1 appears, but on refresh of page i...
I have a partially populated Tree component and I have to invoke a remote service when User expand (not when he select) a node to retrieve it's leafs.
How I know witch node have bee selected.
I'm using Flex 3.3.
...
When I draw a pie chart with single data, that time label is not displayed and I declared labelPosition="inside". Give me any solution.
...
My flex project has the following mxml file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:coverflow="com.dougmccune.coverflow.*"
layout="vertical" horizontalAlign="center" verticalAlign="middle"
viewSourceURL="srcview/index.html" xmlns:containers="com.dougmccune.containers.*" ...
I have a text field, which holds the session value. Now while when i do logout operation.. clearing the text field does not work...
sessionHold.text = "";
The above code does not work, its not clearing the session value in the field.
appSes = event.result as Array
var vinoth:String = String(appSes[0]);
Alert.show(vinoth);
sessionHol...
I have been using { } around variables in MXML without really understanding what they are for. I am now needing to know if I should use it around a variable..what does that do?
example: <mx:label text="{variable}"/>
...
I have written a Google Maps-based application in Flex. Currently you can use the mouse wheel to zoom in and out the map. Is it possible on Mac laptops to use the pinch gesture to zoom?
...
Here's a dumb question. I compile my Flex application with several swc's (libraries) and it creates a swf file. The sum of the swc's is roughly 4 MB yet the actual swf generated is only 1.6 MB. How is this possible?
Thanks!
...
So I have an existing rails app that I've been asked to retrofit to support a flex client. Since I don't really want to muck around with the existing controllers and routes, I thought the best way to accomplish this would be to create a subdirectory in app/controllers called flex and put in some additional controllers in there to handle...
Hi,
I have Basic Authorization mechanism on the server for WSDL/SOAP. How I can send "Authorization" header through Flex WebService?
Simplified example:
var ws:WebService = new WebService();
ws.wsdl = "http://localhost:8000/api/service.wsdl"
var encoder:Base64Encoder = new Base64Encoder();
encoder.insertNewLines = false;
encoder.enco...