I have a little problem with a simple URLLoader, it simply just loads the data from an url, and processes that data, nothing complicated. But, when ever i run it, it leaves the connection open. At the bottom of the browser it says:
Transfering Data From www....
The data is read sucessfully, so it should close the connection? but do...
Just curious, if I have a sprite on the stage with the alpha set to 0 does that take up just as much memory as a sprite that is visible?
I imagine it does because it draws the sprite to the stage and then it has to set the alpha to zero.
It may seem like a stupid question but I just wanted to verify.
...
I am trying to put getters and setters into my inteface but I get the following error1053:
Accessor types must match.
Below is my Interface.
package com.objects{
public interface IKiller {
function get Systems():Array;
function set Systems(value:TargetSystem):void;
}
}
How are you suppose to put getters...
Just wondering if anyone knows of an example out there, or class I can add to my app that would perform like a VBox but with 2 or more columns?
I'm adding items to a VBox from a loop, and that works fine, but I want to have it split into two columns:
_________________
| | |
| Item 1 | Item 2 |
| Item 3 | Item 4 |
| Item...
"I got a server telling Flash to load a movie, but I can't
tell the movie how fast to play, or what frame to start on"
Do you have an example of a Flash client loading an swf and accepting server commands; frame rate, start etc?
NEED FLASH CLIENT - data events - control loaded swf
I've seen examples of a flash clients loading exter...
Hi
Using the new 3D features in CS4. I know you can change the 3d center point manually via the Transform panel, but does anyone know how to do this dynamically at runtime? (ie via code)
...
Would Director be an option for creating a socket client?
My client needs to accept server commands; frame rate, start etc.
Director seems like it was made for controlling movies. I've got Director 11.5 at the office. Any lingo experts that could advise?
Interaction with client
SERVER==>XML PACKET==>CLIENT==>swf plays on given frame a...
Hi Stackers, I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :(
Dragging the slider dow...
If I do something like:
<myComponent id="foo" title="bar" />
The parameters don't seem to be available immediately within the component. When do they become available?
...
I am working on an application that will allow a user to scale an image. The issue that I am having with the method below is that the scaling is always taking place on the previous scale point.
For example: If I scale the image up one and then scale the image down one. I have to scale down twice to get it back to the point I want it to ...
Hi there,
I'm trying to make a movieclip scale proportionally only if the item is being resize smaller than the current.
Obviously I can use the ScaleX/Y values like so:
if (cont.scaleX < cont.scaleY ) { cont.scaleY = cont.scaleX; } else { cont.scaleX = cont.scaleY; }
I need to restrict/reset the scale proportions only in special cas...
I'm trying to load external SWFs in a for loop, and I have this problem that is really eating me: In the event handler I need to know the filename of the SWF that was loaded, but I can't obtain this. The code below shows what I'm trying to do.
Does anybody have any idea?
function loadManySWFs(arrayOfFileNames:Array)
{
for(var i=0;...
Here is My ActionScript Code:
var S:Socket=new Socket("127.0.0.1",2222);
Here is My CrossDomain.XML File (Located at http://127.0.0.1/crossdomain.xml)
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*...
Hey guys, I been toying around with the new loader() event.
I create 2 files. One named par.swf with the code below in it, and the other named chi.swf. chi.swf has 2 frames. on frame one it has an input box with the instance name of textboxonframe1 and on frame 2 there is a input box named textboxonframe2 (I am creative, I know.)
For ...
I have an application which receives dynamic XML data from a server. The structure of the XML is dynamic and the tags/attribute names cannot be predicted. NO row items can be hardcoded. The data is coming back from a database (imagine columns and rows), and the type of the data is known on the server side. The following is just an ex...
Hi,
I am using a datagrid in flex and need to render each cell with a different style.
What could be the best way to set a style to a perticular cell in datagrid/advanced datagrid (flex)?
I think one possible option can be extend the datagrid and override the drawRowBackgroungd function. Apart from this can i use some custom item render...
Is there a way to check the method that has been attached to the stage?
I have stage as global.. and need to fire some function in a object on mouseup...
Now it fires 2 or 3 depending how many objects i add..
I need something like..
if($.stage.hasEventListener(MouseEvent.MOUSE_UP, this.mouseUp) === false){
$.stage.addEventListener(Mo...
Hi Friends,
I have an application with several modules. Without RSL's they are working fine, only issue being it becomes slow and thus loss in terms of time performance. With RSL's size gets reduced and also the performance improves but some modules don't get loaded. Any idea over this ? Can't we use RSL in an application with multiple ...
The situation
I've written the following method (in actionscript 3, it's a flash application) which returns what transformation type is required for the current mouse position in relation to a given element position.
An element can be moved, scaled and rotated. This method returns if any of these transformations are applicable with the...
I have two BitmapData objects with alpha channels. I'd like to combine them into a single one by using max(channel_image_one, channel_image_two) for each channel, including the alpha. Is there an easy way to achieve this result?
...