I'm trying to call a function after I load some XML into Actionscript, and I'm just wondering how I call that function. Example:
//Function Declarations
function parentFunction()
{
function callMe()
{
textField.text = "lawl";
}
}
Now, how do I call the "callMe()" function in a different part of the code, like an onRel...
I need to dynamically create a Video object in ActionScript 2 and add it to a movie clip. In AS3 I just do this:
var videoViewComp:UIComponent; // created elsewhere
videoView = new Video();
videoView.width = 400;
videoView.height = 400;
this.videoViewComp.addChild(videoView);
Unfortunately, I can't figure out how to accomplish t...
I'm talking about an action game with no upper score limit and no way to verify the score on the server by replaying moves etc.
What I really need is the strongest encryption possible in Flash/PHP, and a way to prevent people calling the PHP page other than through my Flash file. I have tried some simple methods in the past of making m...
Our application is written in ActionScript2 and has about 50.000+ lines of code. We want to port it to ActionScript3 and we're trying to find out what our options are. Do we have to do it manually or can we use a converter, and what problems can we expect?
...
I'm using localConnection in AS3 to allow several flash applications to interact with a central application. (Some are AS2, some AS3).
The central application must use a seperate localConnection variable for each receiving connection (otherwise the second app that tries to connect will be rejected).
But what about sending messages back...
I'm working in Flash CS3, targeting Actionscript 2, and I'm writing an image preloader. When I test the movie with the download simulation turned on everything works just fine, and my preloader successfully updates the download progress bar I've made. When I upload the movie to my web server though, it almost behaves as though the Movie...
I'm an experienced programmer but just starting out with Flash/Actionscript. I'm working on a project that for certain reasons requires me to use Actionscript 2 rather than 3.
When I run the following (I just put it in frame one of a new flash project), the output is a 3 rather than a 1 ? I need it to be a 1.
Why does the scope of the ...
I have a helper method has been created which allows a MovieClip-based class in code and have the constructor called. Unfortunately the solution is not complete because the MovieClip callback onLoad() is never called.
(Link to the Flashdevelop thread which created the method .)
How can the following function be modified so both the c...
I am working on an Actionscript 2 project - trying to use the XML object to find a url which is returned as a 302 redirect. Is there a way to do this in actionscript 2?
code:
var urlone:XML = new XML();
urlone.load("http://mydomain.com/file.py");
urlone.onLoad = function (success) {
trace("I want to print the 302 redirect url here...
Hello everyone,
I'm trying to show/hide a movieclip (or graphic) symbol that is on a layer of a button symbol using actionscript 2. Here's what I tried
in the actions for the button:
on (release) {
this.button_name.movieclip_name._alpha = 0;
trace(this.button_name.movieclip_name);
}
and the trace returns undefined... so I think I'...
In Flash, there seem to be two sets of mouse click events:
onMouseUp, onMouseDown
onPress, onRelease
Is there any actual difference between these events? I can't tell from the documentation, and I haven't noticed anything in actual usage, but it seems odd to have two different sets of names for the same basic events. Am I missing s...
Hi guys,
I have a flash project that I'm trying to export as a single SWF. There's a main SWF file that loads about 6 other SWFs, and both the main and the child SWFs reference other external assets (images, sounds, etc). I'd like to package everything as a single .swf file so I don't have to tote the other assets around with the .swf...
I know this sounds like a really obvious question, but it's proving harder to figure out than I thought. I'm developing in Flash 8/ActionScript 2.0.
I have a label component, and I'm dynamically assigning it text from an xml document. For example:
label.text = "<b>" + xml_node.firstChild + "</b>";
This successfully changes the label'...
I have an XML document, and contained within one of the nodes, I have <li> tags. I don't need <ul></ul> tags for Flash because it only accepts <li> tags anyway. For example, here's part of the XML doc:
<node>
<li>item1</li>
<li>item2</li>
</node>
I want to put all the data within the <node> tags, with bullets, into a TextArea compon...
I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, using ActionScript 2.0 -- have the user enter their UserID and...
A website I'm working on (using AS2 because it's oldschool) has a larger index .swf file that loads sub-swfs using loadMovie("foo1.swf", placeToShowSwf). There's foo1.swf through 4, which is silly because the only thing that's different between them is a single number in the address of an xml file that tells it what content to load. So I...
Hi Everyone,
Does anyone know how to change the rowcount of a datagrid in flash after it has been created on the stage.
I am loading an xml file externally that contains the number of rows the datagrid should have, but the problem is that becuase this file is not loaded at runtime, it just picks the default 3 items. Maybe I have to rel...
I'm a long-time ActionScript 2 user, now getting started with ActionScript 3. The one thing I'm missing is an easy way to duplicate the functionality of AS2's MovieClip.onReleaseOutside. It is almost always necessary to implement this event, otherwise you get funny bugs like flash thinks your mouse is down when really it's up.
Accordin...
In an actionscript function (method) I have access to arguments.caller which returns a Function object but I can't find out the name of the function represented by this Function object.
Its toString() simply returns [Function] and I can't find any other useful accessors that give me that...
Help :-/
...
I'm trying to be responsible with my "DOM" references in this little Flash 8/AS2 project.
What has become increasingly frustrating is obtaining references to other movie clips and objects. For example, currently my code to access the submit button of a form looks something like this
var b:Button = _level0.instance4.submitBtn;
I was ...