Hi
I am just learning actionscript, so come across the problem
In my application I often call to different web services, and because I don't want to hardcode urls to them in my code, I am passing urls to the services as flashvars.
Currently I am doing it this way:
public var siteUrl:String;
public var gameId:String;
public...
I'm trying to create a simple animation effect with TweenLite AS3, having a movieclip ("selectedFrame"), shift on the x-axis on the stage every few seconds. Other TweenLite effects (using the 'alpha' function) are working fine, but for some reason I can't get this simple shift to work.
Here is the block of code I'm trying to move the MC...
I can't seem to get a stream that Flex 3 want's to decompress.
I've tried:
System.IO.Compression.GZipStream
System.IO.Compression.DeflateStream
ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream
zlib.ZOutputStream
None of these seem to make ByteArray.uncompress happy, i.e. I get
Error #2058: There was an error ...
What would be the best way to implement the konami code into a flex application?
I want to create a component to add it on all my proyects, just for fun.
thanks
UPDATE: I made a simple component, thanks to ZaBlanc
<?xml version="1.0" encoding="utf-8"?>
<mx:UIComponent xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()...
Hello,
I am trying to create a simple chat client using the red5 media server, but I seem to be having a slight hiccup. I am creating a shared object on the server side, and it seems to be creating it successfully. However, when I make changes to the object via the client (type a message), the SYNC event fires, but the content within th...
I have an application control bar at the bottom of my Flex application (with attributes width="100%", dock="false", left="0", bottom="0", height="50"). It contains a lot of elements (like buttons and labels). The width of the SWF is the width of the browser.
When the user makes the width of the browser window smaller, after a certain po...
hi all.
I'm horrible with AS3. I've tried this effect a number of different ways. I'm trying to get a navigation bar in AS3 that does something like this.
A|B|C|D
click on C bar slides and you get
C|A|B|D
click on D bar slides and you get
D|A|B|C and so on.
Help or a link to help is much appreciated.
right now i have this muc...
Is there not an event that occurs only when there has been some sort of visual change to an object. So for example if it were a video or animated object it would be firing as often as EnterFrame. However, if it were some sort of input control just sitting there doing nothing visually, then the event wouldn't fire until the visual state ...
I am trying to parse a document with nodes that look something like this:
<doc>
<results>
<result xmlns="http://www.inktomi.com/">
<title>Senate Panel to Review Election Unit Sale</title>
</result>
</result>
</doc>
However the namespace and the nodename of the result could be different. If it were not so...
Hi There!
In my Adobe Air application I have a change event handler attached to a mx:DataGrid. When I'm debugging the application in FlashBuilder 4 the handler is executed, everything works fine. But as soon as I install the application the handler stops being executed!
I've added plenty of logging to the application, no errors are thr...
there's no way to clear a date after it has been inserted! I had to add an ugly button near it to clear it programmatically...
Do you have a nicer solution?
...
For a project I'm working on I'm trying to create a Flash file with a constantly color-shifting gradient that fills up the entire browser window. For a better explanation please see the following link:
GradientTest Example
Don't worry about the moving balls, those are just there to challenge the frameRate of the movie, which has a maxi...
I am a new as3 developer. Using trace method can help to print messages to the output pane of flash ide. However, in some situations, we want the messages fewer. I have used the Log4j library in java that supports choice a log level for the specific package/class.
If you have any information about logging in actionscript 3, please shar...
I'm drawing stuff on a bitmapData and I need to continuously fade every pixel to 0x808080 while still drawing (its for a DisplacementMapFilter)...
I think this illustrates my problem:
http://www.ventdaval.com/lab/grey.swf
The simpler approach I tried was drawing a semi-transparent grey box on it, but it never reaches a single color (i....
Hi all,
I am creating a Datagrid in AS3, and adding a sort function to a column. However, this sort function does never get called. Any ideas?
dg_gruppenUebersicht = new NestedDataGrid;
dg_gruppenUebersicht.sortableColumns = true;
dg_gruppenUebersicht.dataProvider = arrCol_gruppenTnAkt;
dg_gruppenUebersicht.columns = new Ar...
Hi!
I have a canvas with several small canvases on it.
Like this:
public class Board extends Canvas
{
public function Board()
{
//cellWidth = this.width/boardSize;
//this.drawMech();
addEventListener(FlexEvent.CREATION_COMPLETE, creationComplete);
super();
}
then I added balls to...
I have a data grid. How can I hide a value of a column if it's "0" ? Do I have to use item renderers? How? Is there an easier way?
Second thing, if I have a boolean column whose values are actually the strings "true" and "false" how can I render it as a non editable check box?
thanks
...
I have a class like this..
public class Doc {
public function Doc():void {}
public var myVar:Boolean;
}
How can I know if the value hold by myVar is the default false, or someone has assigned false to it ?!? Isn't there an undefined state? How can I achieve such a thing?
...
Below is the code for a simple Flex actionscript project. A sprite is partially covering a hyperlink. What's happening is that when you hover over the sprite, if you're also hovering over the hyperlink, the hyperlink is activated. I want to prevent that. I want the hyperlink to be activated only when the mouse hovers over it -- but not ...
Hi!
I am writing simple game on flex. In the game there are 2 objects Board and Stone (both are extended from the Canvas super class)
When I started to place Stones instances to the Board Canvas, I come across the problem, I can't understand how to set Stone on the defined position on the board.
So if for example board (canvas) has fo...