I'm making a small app where children can fill preset illustrations with colours. I've succesfully implemented an MS-paint style paint bucket using the flood fill argorithm. However, near the edges of image elements pixels are left unfilled, because the lines are anti-aliased. This is because the current condition on whether to fill is c...
I have 2 actions in a Flash file that I would like to test for conversion. One is opening a link in a tab/window, the other loading the content in a Colorbox iframe over the page.
How do I randomly choose one of the following actions?
I currently listen for a click on a button:
clickJoin.addEventListener(MouseEvent.CLICK,toJoin);
My...
hi friends,
I have created one application in flex that is accessing the Java webservice using Actionscript3.0. In which I am getting the error during the accessing the one of the webservice method.That method is returning the list of child object I am taking this List of object in ArrayCollection class object.My code is:-
...
Hi,
I met a strange problem in AS3 and thought the problem may be caused by the GC, can I disable GC explicitly in AS3?
Thanks.
Bin
...
I cobbled together some code from here and there for a trace I like... it generates an error to get a stack trace and picks out the traced routine name, I like that detail in the trace log.
Problem: it fails in an installed AIR file. I wonder why? I don't expect it to do anything as is... just, I'd prefer it not cause the program to f...
So.. Is there any lib for playing MKV (matroska) in flash (AS3, MXML) OpenSource or KindOf opensource? (In my MKV I have Theora video H264 video... If library supports only 1 type of video codec Ill live with that=))
...
Please enlighten this flex noob. I have a remoteobject within my main.mxml. I can call a function on the service from an init() function on my main.mxml, and my java debugger triggers a breakpoint. When I move the remoteobject declaration and function call into a custom component (that is declared within main.mxml), the remote functio...
Hi, I wonder if someone can tell how to solve some problem I have with the color picker control, the weird problem is that when I'm rolling over the swatch it suppose to update the big swatch preview at the top of the control with the color I'm currently over, but for reason it do it just for some colors, but with other never update the ...
Does anyone know how can the horizontal control line be removed or made invisible.
What am trying to say is, I just want to show the drag-thumb and not the horizontal line.
Is there a way to do so, with out using skins?
Regards
Zeeshan
...
Hi, in actionscript 3, what's the fastest way to dump your data (not from a file) into a bitmap for display?
I have it working with setPixels and colored rects but that's way too slow/inefficient.
Is there a way to load in the raw bytes or hijack the loader class to put in custom loader data?
What would be the best/fastest--should I s...
I'd like to make a call to a function and send either a string or an integer...
function getImage(val:*):void{
if(val == String){
switch(val){
case'next':
loadNext();
break;
case'prev':
loadPrev();
break
}
}else{
loadImg(val);
}...
I'm trying to use a custom Text component to show a series of comments. I got
the original idea from:
http://www.eonflex.com/?p=40
I've got the base case working but I am stuck with 2 problems I cant seem to
figure out:
Since I am drawing around the text, the actual height of each bubble is
greater than that of the Text field, as a r...
So below is the code I have so far. For now I simply want to make it draw a square and have it show up. Right now when I click the area defined in MXML as <components:PaintArea width="100%" height="100%" id="paint-a"></PaintArea> it shows nothing; however, the actionlistener is getting triggered and an element is being added to the group...
I would like to have in my Flex application the ability to post objects (for instance images or text items) where user can drag/drop for absolute positioning on the screen, resize it and rotate it (although not high priority). I'm wondering if there is a library that would do so out of the box or do you recommend implementing my own?
...
Do you know how if you drag an <mx:Label> or <s:Label> component into your Flex project, when you go to design mode you get this panel on the right to set its properties like text etc.
I have a custom component that I can call with actionscript, or with mxml like this:
<comps:TheComp field1="OK" field2="Yes" />
The component takes t...
I am debugging AS3 in Flash CS4, a variable becomes NULL but I don't know who changes it at when. Is it possible to watch this variable and when the value changes to null, it stops?
Thanks.
Bin
...
HI
I have a URL
var str:String = "conn=rtmp://server.com/service/&fileId=myfile.flv"
or
var str:String = "fileId=myfile.flv&conn=rtmp://server.com/service/"
The str might be like this, But i need to get the value of "conn" and "fileId" from the string.
how can i write a function for that.
...
Hi guys, I have learned as3 for a half years, these days I found I always have the trouble that make different classes communicate with each other.
I kinda figure out there are some ways to solve (if I am wrong, please tell me...):
1. using get set methods
2. eventdispatch to dispatch custom event.
Today, I am working on this confused ...
Is it possible to hash flv videos so it is unplayable by itself and the format is unrecognizable by softwares, but i could actually de-hash them and play in my as3 script?
This is going to be realized on a CD so I can't use server scripts.
...
I have a combobox in a view that receives information about application state changes, and then is supposed to show or hide it's children based on the whole application state.
It receives state change messages, it traces the correct values, it does what it's supposed to do, however, it just doesn't seem to work. Essentially, all it nee...