Hi,
I have the following code in my XML (EDIT:) which I am trying to show in a RichText using htmlText.
<ul>
<li>List Item 1
<ul>
<li>List Item 2</li>
</ul>
</li>
</ul>
Unfortunately, Flash doesn't seem to support nested lists, and I am getting output which looks like this:
List item 1
List item 2
Where I want the sec...
Hi,
I am looking for a fairly simple image comparison method in AS3. I have taken an image from a web cam (with no subject) passed it in to bitmap data, then a second image is taken (this time with a subject) to compare this data, from these two images I would like to create a mask from the pixels that match on both bitmaps. I have been...
How can I center popup window in flex 4 ?
I have tried:
PopUpManager.addPopUp(AlertPopUp,DisplayObject(spark.components.Application), true);
PopUpManager.centerPopUp(AlertPopUp);
but it's problem with conversion Application->DisplayObject.
Please help :)
...
Can I change mouse cursor for textfield to appear as a clickable object?
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.ui.ContextMenu;
import flash.utils.*;
import mx.core.*;
...
I want to create a simple multiline Alert popup
Alert.show("Blah\\nBlah")
shows Blah\nBlah when what I really want is two lines, one Blah each.
...
I've been having this really annoying thing happen the past few days, that has happened before but not as frequently. I create a project in Flash Builder, import some classes, and then on occasion it keeps erasing those classes. So then I get errors in a lot of my datatypes, have to go back through my document and retype the datatype so ...
I am making an application that plays the video stream from the user's local system (both Windows and Mac). I use the Camera.getCamera() method and in turn Camera.names to get a list of camera attached with the system.
Unfortunately, if the camera is already in use by another application, say a desktop application on user's system, the...
Hi,
When I set leading to 0 with Verdana (and others to) for a Flex TextArea I get strange results:
fontsize -> space between baselines
8 -> 10 (125%)
10 -> 12 (120%)
12 -> 14 (117%)
14 -> 17 (121%)
16 -> 18 (113%)
18 -> 22 (122%)
20 -> 25 (125%)
25 -> 31 (124%)
shouldn't all of these be the same (should only be 100%)? Or lea...
Hey, guys. I want to ask if someone can give me an example of creating child through xml. I mean creating custom components through xml (for every xml tag you create your own custom component and then add it as a child to the stage). I hope is it clear enough... :)
...
Hi guys,
I've just recently started out using Flash Builder and have a question surrounding states. In fact I'm not entirely sure it is related to states but read on and I hope it will become clearer.
I currently have a custom component that contains 3 comboboxes. This resides in a TabNavigator component. The TabNavigator consits of 5 pa...
I'd like to be able to generate a class that inherits from BitmapData at runtime. Is this possible in Actionscript 3? If so, what is the syntax?
...
I can't seem to find anything that would let me to easily show a Number in a label, textinput, etc. with comma separation.
like in a label, show number 123456.78 as 123,456.78
[Bindable]
private var num:Number = 123456.78;
<mx:Label text={num} />
Obviously I could just create a function, but is there a more simple way?
thanks
...
from flex, when calling a .net web method that returns a custom class, I always recieve an ObjectProxy, even if I have the same class created on flex. How do I manage this ObjectProxy as the class I have?
thanks.
...
I'm trying to integrate a Flex app with Google Checkout and code that runs fine on my local machine is throwing a Security Error when I test on my site.
Here's the error:
Warning: Failed to load policy file from https://sandbox.google.com/crossdomain.xml
*** Security Sandbox Violation ***
Connection to https://sandbox.google.com/check...
I need "loading" animations to import into Flex for a search engine so the person knows something is being searched. I'm not sure how to do this.... Is it through swc files?
...
In Flash Professional CS4, I get "migration issue" warnings when I use mouse/keyboard input handler names such as onMouseDown, onKeyUp, etc., even though I have added event listeners for them. These names are perfectly legal for functions, but since these were automatically fired in ActionScript 2.0, we are now (albeit sensibly) warned t...
Hi All,
I am simply trying to draw a rectangle inside of a panel using flex4. I am using spark instead of mx. It complains about addchild being replaced by addelement; however, addelement expects type ivisualcomponent. I think sprite should be of that type; however, it reports an error when trying to use the below code... I have tried a...
I'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess.
Is there a way to set a package declaration for MXML files? After all it just g...
Hi,
I am deploying a desktop application using AIR, and I would like to store some user-specific data on the machine such as a history of his entries. Is this possible? Where can I learn more about this?
Thanks,
Mike
...
Hi,
I am making a simple Python CGI script that collects data(in xml format) from a flex application and I want to insert it into the mysql database .
In perl The script is looks like the following...
my @samplexml=$cgi->param("Items");
my $data=$xml->XMLin("@samplexml");
foreach my $e(@{$data->{Group}})
{
my $sample="Insert int...