I have a flash file I want to programatically find the dimensions of in my code. Right at the beginning of the code I have the string:
[SWF(width='700', height='500')]
And several subclasses later I want to pull these "700" and "500" values up as variables.
Is there a way to find this?
I've tried referencing this.width and this.heig...
We're using maven to build a flex project using flex-mojo's, which is great. The problem is I can't add the swc dependencies specified in the pom to the flex build path. As far as I can see Flex Builder only lets you use an absolute path, so it can't see the maven dependencies even when using the m2eclipse plugin to add maven support.
...
When you load in an external swf at runtime is there any way to get the background colour of the swf? - That is the stage background colour.
The loaded swf is uploaded by users, who may or may not know the correct colour.
I know that normally this is specified in the html code to embed a swf, but if you run a swf in the standalone player...
Is it possible, through some kind of metadata presumably, to force a property of an object to be set? We have a number of non-visual components that simply doesn't do anything unless one or more properties are set, such as:
<ToolTip target="{this}">
<mx:Image source="foo.png" />
</ToolTip>
In this case, the target property would b...
Is it possible to add que points in a live dvr f4v stream?
...
I'm building a desktop application in Flex/AIR, and one of the current items on my TODO list is to develop a help system.
Throughout the GUI, there are little (?) buttons. When the user clicks one of those buttons, a HelpPanel appears, displaying some relevant information from the docs.
Simple enough.
But I'd really like to build a fu...
I'd like to conditionally hide a tab in a TabNavigator. It seems that setting visible doesn't work properly (presumably because this is how the TabNavigator hides the tabs that aren't currently selected).
What's the right way to do this?
...
I am trying to make a label that has an X over it. Like so I can say was this price with an X over the price. I want to make it a component because I am going to use it more than once. I want the X to be close to the same size as the text so that it is not a giant X over small text or a small X over large text.
Here is the code I tried ...
I have a component based on HBox that has multiple labels in it. I want to be able to set all the style properties, things like fontSize, fontWeight, color, etc. on my component and have them applied to all the Labels contained by it. Whats the best approach for this? I tried to have my component implement Label but there is no Label int...
I have a Flex3 project with 2 HorizontalList controls; one of which has drag & drop enabled. Both controls will always have the same number of items, and are related... index 0 from the 1st control matches index 0 from the 2nd control, and so on.
Naturally, when using drag and drop to reorder the 2nd control, I want the items in the 1st...
Using Flex 3, I would like to take an image snapshot such as this:
var logoSnapshot:ImageSnapshot = ImageSnapshot.captureImage(logoContainer);
and turn it into something that the Image class can use. I see that there is a property called "data", that holds a byteArray, so I guess my question is: How do I take an image that gets stored...
Hey guys,
I’m new to Flex and Cairngorm.While I’m using ServiceLocator,I do run into the problem: Error: C0001E: Only one ServiceLocator instance can be instantiated.
My Code is like this:
In Serives.mxml:
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cairngorm="com.adobe.cairngorm.business.*">
<mx:HTTPSer...
This is probably a very simple question, I just don't have the foggiest how to go about it.
I have an Object that I want to duplicate, and don't know how to go about it. Here's my attempt:
var myObj = new ObjectClass();
var duplicate = myObj;
duplicate = null;
myObj.function(); // Error: Null reference
The ObjectClass is very large, ...
I've got a decent computer. ( something with dual-core in the name and a lot of ram ).
Sometime FlexBuilder prompt the "builder project" loading bar only when i open a simple mxml file.
It's look like he does some difficult jobs... i don't ask for anything fancy. I just want the file open, in text mode.
Every time i hit ctrl+s, i fear ...
At work we run vista for all the laptop.
I dont like it very much.
XP is not an option because of licence ( and money ) issues.
The boss and the team is ok to whatever, since the work is done.
So i wish to switch my developement plateform to a linux ( i dont care wich one ).
Problem : we are building something in Adobe Flex. And i'v r...
NativeApplication.nativeApplication.icon.bitmaps = bitmapData();
I wrote coding in my project for sysTrayIcon display but got error like
NativeApplication.nativeApplicationSeverity and Description
Path Resource
Implicit coercion of a value of type flash.display:BitmapData to an unrelated type Array. toy/src toy.mxml .icon.bitmap...
I have an AIR application with a login form. What I want to do is set the cursor in the first textinput box. I only manage to set the focus on the box, but not the cursor.
Does anyone have an idea for how I can do this?
...
Is there a way to insure that when a user views my Flex app they are using the newest version and not using a cached version?
Thanks.
A duplicate of this post -- preventing-flex-application-caching ....
...
I have a function that loads in some XML that looks like this:
private function onXMLLoad(e:Event):void
{
trace(e.target.data);
hideLoading();
DataModel.instance.data = XML(e.target.data);
updateSelections();
toggleExpand();
}
If the XML data that is loading is not well formated for examp...
I've got a TabNavigator with multiple tabs. I have one tab that if I end the session on that tab, and I reload the application, then that tab appears -- instead of the default first tab, BUT elements of the default tab appear "ghosted" visibly on the last tab.
I've tried using
tnAppDash.initialize();
tnAppDash.selectedIndex = 0;
...