I need to be able to call a method from a component located under the main application in Flex 4. Can anyone tell me please how to do this without using FlexGlobals please?
Sample code is attached. Thanks in advance.
// TestApp.mxml (application)
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.co...
I have a dynamic text box in a Flash AS3 project. I've attached a UIScrollBar component to it which works great if there's more text than display room.
I want to be able to hide the scrollbar when there's more display room than text. I can't seem to find anything about it in AS3. Does anyone know the property I should be looking for ...
Like the title say's, is it possible to send data to my flash movie after it has been loaded?
More specific: I have a flash-movie with an image in it, and from the outside I would like to be able to alter it by sending fe. '?color=FF00FF' to the movie.
Is there a way to catch this variable in flash?
...
Does anyone know how accurate flash timing is and its ability to identify the client monitor's refresh rate? I need to be able to calculate time durations with up to 10 milliseconds accuracy of response time. Also if it is off, is there a way to possibly calibrate the response based on monitor refresh rate and action to make sure the v...
I'm trying to call an event I've created in another component. I've added trace() into my methods so I can see what's being called. Everything except for the event listener (myEvent) is being called. Can anyone tell me why this is please?
Any help would be greatly appreciated. Thanks in advance.
// TestApp.mxml (application)
<?xml vers...
Hey guys,
I've had quite a bit of success implementing the Socket class in AS3, particularly with making HTTP requests to retrieve binary (images) or ascii (JSON) data. However, I need to be able to be flexible between HTTP and HTTPS - so given the current state of AS3's Socket class, this becomes a problem.
My question isn't necessar...
Hi all,
Help me with the problem:
In flash(AS3), I have input field (not dynamic). I compile the swf, and upload it to my website. In browser (FF), sometimes i cannot focus in input field by mouse click(Even i click many times). In order to focus i have to press tab once, just then i can focus in.
Anybody know, what is the problem?
...
Hi Stackers, so I have a JSON link that contains a couple of nodes (not sure what you call them in JSON) that I need to put into arrays in ActionScript, but I'm still having trouble trying to trace out all the specific node content.
I found a similar question here, but the fix just showed how to trace out the entire JSON file (which sho...
I have a big loop in actionscript that sends lots of data to an url:
for(var i=0;i<1000;i++) {
var request:URLRequest = new URLRequest();
request.url = url;
request.method = URLRequestMethod.POST;
request.data = data;
var loader:URLLoader = new URLLoader();
loader.load(request);
}
The problem is because URLLo...
So good so far in ActionScript language I actually haven't fell in bad condition but still I have one good issue that I can't do!
In order at the root timeline everything is Ok when I call the XML childNodes or write the XML class everything its true, but when I call the XML childNodes from root within a movieclip XML gives me undefined...
Hi,
I need to detect when a user d-b-n-d an object into a sprite. I'm adding the 3 event listeners I need, but only one of them works:
ontainer.addEventListener( DragEvent.DRAG_ENTER, dragEnterHandler);
container.addEventListener( DragEvent.DRAG_EXIT, dragExitHandler);
container.addEventListener( DragEvent.DRAG_DROP, dragDropHandler);
...
Hi,
i've come across the problem. I can't understand how to check if Character is in lowercase in as3. can someone advice?
...
I am developing a PV3D application that imports DAE models exported by Blender's Collada Exporter plugin (1.4). When I build them in Blender, I use exact dimensions (the end-game is to have scale models in PV3D).
Using the same scale of dimensions, some models appear in PV3D extremely tiny, while others are the appropriate size. Many ap...
First off, I don't have a copy of Verdana bold. It's no where on my hd and I don't know the first thing about making fonts so that is out of the question.
I've been searching for a couple of hours now and it seems the tried and true solution is to embed multiple versions of the font off the stage.
Ridiculous. Right? In either case, ...
Hello SO community,
Yet another issue along my web development escapades that has me quite stumped. I recently had to decompile a swf file using the Trillix SWF Decompiler. I now need to recompile the directory (flex project) Trillix has given me. I do not have flex builder nor plan on learning or using it ever so I donwloaded the co...
i would like to make my code easier to read by replacing long paths with variables, or something similar.
in my code, i can target an instance many times, but the instance can have a lengthy path deep within the display list. for example: myButton instance could be located at myButtonsPanel.section2.redArea.myButton, or something like...
package {
import flash.display.Sprite;
public class test1 extends Sprite {
private var tmp:Object;
public function test1() {
createObj(tmp);
if(tmp == null) {
trace("nothing changed");
}
}
private function createObj(obj:Object):void {
obj = new Object();
}
}
}
In the above code the output on the console is :
nothin...
I'm developing a presentation tool for AIR (to be used together with, or as a replacement to, PowerPoint) but I'm quite a newcomer to flex layouting.
As you can see from the image, the presenter can open various apps from the main window.
Each of these apps open up in new windows which have different visual characteristics; some use the...
Hello,
I have a Game-sprite representing a game room with up to 3 players, it works ok. And would like to populate a List component with those Game's, based on an XML data coming from a socket.
I've prepared a simple test case demonstrating my problem -
ListTest.fla (should have a List component in its Library):
import fl.data.*;
imp...
Hi Everybody,
Hopefully someone can see something which I've missed out or something, because this is really odd!
Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled wi...