This is probably a bad idea or whatever you wan't to call it. Nevertheless, curious to know if Air can write inside it's own installed package. I'm referring to the OSX '.app' files found in great numbers in the applications folder. Since every one of these can be opened as a regular folder, i'm guessing that's what they are.
What other...
I want to create a dialog or alert box, where a DisplayObject would take and force the focus, until an okay button or something releases the lock. thanks.
...
I load successfully an external image using a Loader class but every time i trace the loader.content property is found null. Why?
ps: Actually, i'm trying to get the bitmapdata from a loader object.
...
I want to embed static text, basically for a help file. Something like
const help:String = "This is a help line.";
except for it would get it from a file?
const help:String = //retrieve text from a static file
...
I want to remove an item from my dataprovider where the label in dataprovide is "zee4"
I tried:
var removeThis:Object = mylist.dataProvider[selIndex].alias;
mylist.dataProvider.removeItem(removeThis);
But this does not work. I cannot use removeItemAt because I don't know the index number. I need to remove as per the alias itself. The...
I have an existing AIR app whose main content is App.swf. I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication.
Here's the code for the 2 AIR projects (imports are omitted for brevity):
// App AIR Project -> App.mxml -> App.swf (it's just a window)
<?xml version...
Here is the xml file
<glossary>
<alphabet id="A">
<term heading= "Anchor" definition="A mechanical device that prevents a vessel from moving"/>
<term heading= "Atlas" definition="A collection of maps in book form"/>
</alphabet>
<alphabet id="D">
<term heading= "Delay" definition="Time during which some action...
I'm aware of textAlign property of the Text component. But it doesn't do what I'm trying to achieve:
I have a Text component which is 500x100 (the size does not change). The default font size is 80 px. The text, however, keeps changing. What I want is to resize the text to "fit" inside the textfield.
Let's say the text is changed to: ...
i've been testing a small Air app on different systems and found out that on one of these systems text does not show up, at all. Other (older) applications are fine, but this one does not display any text.
I've been frantically trying to solve this with text embedding. To no avail.
Could the system be missing a font?
system:
air 1.5.2...
hi I had seen one code of the yahoo map component for the flash cs3
like
import com.yahoo.maps.api.YahooMap;
var map:YahooMap = new YahooMap();
// include app-id, width and height
map.init("YD-vbXGXH4_JXs3ihv485hjXA--", 550, 400);
addChild(map);
What i want is to make the import structure is like above "com.yahoo.maps.api.Yahoo...
I got this error when tring to implement Stream connection with meta info
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value.
at SS4uOpenplaye...
I'm trying to write a class that its constructor takes as argument a String ( which is an image in my directory ie: jpg ) and load the corresponding image via a loader object in memory. I also provide function getBitmapFromLoader() to get the bitmap of the loader in order to use it from another class.
public class LoadImage extends Load...
I'm currently using AMFPHP 1.9 to make a simple flash game which uses a game server.
Sometimes, I get this error (BadVersion) when there are simultaneous calls to the server.
I've searched the web for some of the answers to this problem, and it seems they were answered back in 2004.
Is there an updated version of how to solve this pro...
Hello,
I want to catch the enter key press when the user is filling an input text field in AS3.
I think I have to do something like this:
inputText.addEventListener(Event. ? , func);
function func(e:Event):void{
if(e. ? == "Enter"){
doSomething();
}
}
But I can't find the best way to do this.
By t...
I have a Flex client that loads data from a server to display a chart. This data may change, so the client regularly repeats the request. Since the result may require some work to retrieve, I'm going to have the server detect if the result has changed, and issue a 304 status if it hasn't.
I haven't seen any headers in the Flash Player's...
I have a drawing application like http://www.flashperfection.com/tutorials/Mouse-Drawing-in-AS3-96618.html where the user can select a brush size to draw.
I need a way to determine that all the surface has been drawn. Any code or ideas on how to accomplish that?
...
I'm developing on Flex 4. I have a datagrid container and custom itemrenderer with a text field, a button and a few boxes. Every time some data is displayed, the app stalls for a second or two before rendering completely. Is there any way to make it render more fluidly or render one after another...?
...
My intention is to build a full-screen well-optimized flash site, possibly a hybrid (but i want persistent flash.. for example, to play music), with drupal in the back.
However, I want to be able to do this as dynamically as possible. If flash is detected, then I will be showing a flash site with a flash area and an ajax non-flash area...
Hi folks,
I have a Flex 3 client interfacing to an RoR webservice for a POST request. When the webservice returns code 201 Created, Flex fires a resultEvent and everything is cool as I'm able to parse the XML response as you would expect.
However, when there is a problem with the data sent in a POST request, the webservice returns 422 ...
How to create a DateField in flex, that would disable all the dates before today's current date.
<mx:DateField id="dateField2" yearNavigationEnabled="true"
disabledRanges="{[ {rangeEnd: new Date(dateBeforeCurrentDate} ]}" color="0x000000"/>
I understand I will have to do sometime like the code above. But I don't know...