I have a TextField inside a Sprite and I always want the alpha of the TextField to be equal to the alpha of the sprite. How can i subscribe to the changes made in the Sprite? I guess i need to fire a PropertychangeEvent some how, but I can't see that sprite supports this out of the box?
class TextWidget extends Sprite{
private var t...
Hi,
I'm currently working on a Flex 3.0 project in which I have to display some input text with minimum formatting.
We are considering to use "markdown" as the chosen way to express this formatting, now I would like to know if there is a library for this purpose.
...
<top>
<item link="http://www.google.be"><![CDATA[test]]></item>
<item link="http://www.google.be"><![CDATA[test]]></item>
<item bold="true" link="http://www.google.be"><![CDATA[test]]></item>
</top>
I need to get all the attributes (both key and value)
for each ( var item : XML in data.i...
Here is my entire Script as I can't seem to figure out where the problem is.
The symptoms are that where I addChild(book) , is not the appropriate place for this to be added properly and sequentially with the thumbs as well. As a result, and to my surprise, the only way I can get these to appear so far is by writing a faulty trace state...
Hi, I am a flex newbie. I need to disable some of the tabs in a flex tabbar specified, by configuration. I am having trouble in iterating over the tabs in the tab bar. If i use getChildAt() command, it does not disable the tab button, but the content of that tab button, so its no good.
Thanks and regards,
Mohit Ranka
...
Hi,
I wrote a AS3 script, i have 2 fields to validate, i.e email and name.
For email i use:
function isValidEmail(Email:String):Boolean {
var emailExpression:RegExp = /^[a-z][\w.-]+@\w[\w.-]+.[\w.-]*[a-z][a-z]$/i;
return emailExpression.test(Email);
}
How about name field? Can you show me some sample code?
EDIT:
Invalid ...
I'm using an external swf containing a number of font classes to load and register the fonts for my flash site at runtime. (exported in the library panel Flash IDE then registered in the frame script)
In this particular case the swf contains a number of different weights of the same family. eg. font roman, font italic, font light, font ...
I normally extend one of these classes when I want to control it - but would I be better off creating a class that composes one? What are the advantages and disadvantages?
...
If I have a sprite, with which I have drawn some stuff, how do I erase part of what I have drawn? Preferably I could use drawRect with some "alpha=0" paint.
However, I don't believe beginFill lets you set an rgba color (like you can in bitmapdata). Setting alpha = 0 in beginFill doesn't really do anything -- it just draws nothing.
In...
I'm using Box2D (the AS3/Flash version, if it matters) and I'm trying to calculate how much weight each body is carrying.
I know how to iterate through all the bodies, and I know how to poll the Collion Detection routines, but it seems the collision forces die off to zero once weight is applied. Is there some sort of "total static force...
I've looked in various resources regarding this topic, and it seems to me that I need a Loader for every Sprite which contains an image file (png).
I'm trying to make a Tile Rendering System, and have created a grid of X by Y sprites, but all of them actually reference the same image file.
Is there any other way to do this? (Make the sp...
follow are code snippet
var depTree:IModuleInfo=ModuleManager.getModule('modules/depTree.swf');
if(!depTree.loaded){
depTree.addEventListener(ModuleEvent.ERROR, onModuleError);
depTree.addEventListener(ModuleEvent.PROGRESS,onModuleProgress);
depTree.addEventListener(ModuleEvent.SETUP,onModuleSetup);
depTree.addEvent...
Does anyone have any recommendations for working with name/value pairs in Flex?
Context:
I want to create a Flex UI for updating a database table. I want the UI to contain the field name(read only) and current field value (which will be editable). Im using the WebService component to retrieve the field value and then asssigning it to an...
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...
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...
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...
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...
Has anyone used Flash's SharedObject mechanism for client-side persistence? Are there big gatcha's? Size limits?
...
I have a very large XML file which has like 40000 data, and when I try to load the XML using Actionscript3, and then populate the data into an Array,
I get the following Error:
A script has executed for longer than the default timeout period of 15 seconds.
Is there a way to bypass this timeout issue?
Here is the sample XML
<Map>
<D...
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, ...