actionscript-2

Creating text file from as2

I'm trying to find a way to write to a text file from as2. I don't want to use any php or asp because my app needs to run without an internet connection. As3 has FileReference.save() and judging by the amount of searching I've done, as2 doesn't have that simple of a solution. Does anyone have a way even if its hacky to write to a txt fil...

Flash - Ease out scrolling moviclip, scrolled by sensor on each side

I am hoping someone can shed some light on this issue for me... I have a movieclip that is scrolled by means of a 'sensor' on each side of the stage. The clip scrolls fine in both directions, however here is my problem: When the users mouse leaves the stage, the movie clip stops dead in it's tracks, and this does not provide a noce smoo...

could i get access to the loaded uri in actionscript for "loadmovie"

i wanna load a movieclip inside another movieclip with loadmovie or anything like this. so my question is.... could have i access to the location of the loaded swf-file inside the loaded swf-file? example: swf#1 loads swf#2 inside itself, so now the swf#2 should check its own uri with an identical key.. but without access to the loaded...

This codes in Actionscript-2, Can anyone help me translate it into AS-3 please ?.......a newby pulling her hair out !!

this.createEmptyMovieClip('mask_mc',0); bg_mc.setMask(mask_mc); var contor:Number=0; // function drawCircle draws a circle on mask_mc MovieClip of radius r and having center to mouse coordinates function drawCircle(mask_mc:MovieClip):Void{ var r:Number = 20; var xcenter:Number = _xmouse; var ycenter:Number = _ymouse; va...

How to prevent button/movieclip from interfering with mouse events

I have a few swf's that are loaded into a base file using levels. These clips can be cycled through by means of a setInterval function or when the user clicks the next or previous button. However, when the user hovers over a defined 'hit' area which is ultimately a blank movie clip, the setTimeout call is then canceled. This works fine, ...

Get shortest number Algorithm, in actionscript syntax

I want to put shortest int in shortest: shortest = 500; for(i = 1; i <= _global.var_process_count; i++) { if(_root["process" + i].process_time_original.text < shortest) shortest = _root["process" + i].process_time_original.text ; } what's wrong with above lines of code? ...

Clickin issue in Flash and XML

Hi, I have the php backend that displays an xml page with data for flash consuming. Flash takes it and creates a textfields dynamicaly based on this information. I have a few items in menu on top and when I click one of them, data is taken from php and everything is displayed in scroll in flash. The problem is that if I click too fast be...

Open a web page in the browser using flash

Am using this AS 2.0 Code on a button in flash CS3 : on(press, release) { getURL("http://somethinghere...","_top"); } unfortunately, it doesnt work. However, when i Ctrl+Enter in flash and click the button, it does. it doesnt work after embedding the SWF movie in the webpage/browser. any ideas? ...

Problem Loading AS2 swf into AS3 swf

I've been trying very hard to get an AS2 swf to load properly inside an AS3 swf - but to no avail ... The AS2 file (which is a rather big app referencing many external xml files etc.) works perfectly when launched in Flash Player. When trying to load the same file through an AS3 swf (using URLRequest and Loader classes), the file start...

Actionscript 2 Recalling variables outside of a function.

Hi, I'm having a little trouble recalling variables set within a frame from a function. I'm using Action Script 2.0 using Adobe Flash CS4, but am getting in practice of not placing codes on movie clips and keeping it on the main stage. On a frame on the time line I have the following: var mcJumping:Boolean = false; function isJump()...

Link to frame labels

I have a mainMovie clip that consist of different movie clips. Inside of my mainMovi I have another movie clip that is called "Menus" this where all my navigation is but the frame labels are inside the mainMovie. Here is my code: on (release) { _level1.gotoAndPlay("nordic"); } i also have tried: on (release) { _root.gotoAndP...

ActionScript MovieClip moves to the left, but not the right

I have a stage with a movie clip with the instance name of "mc". Currently I have a code that is suppose to move the player left and right, and when the left or right key is released, the "mc" slides a little bit. The problem I'm having is that making the "mc" move to the left works, but the exact some code used for the right doesn't. A...

AS2 Water Fluid

Would it be possible to have water fluid follow the mouse. For example, you place the mouse in the middle of the screen and all the drops of water come there. ...

LoadClip problem

Hi, i have a loadClip problem. The animation appears in the movie in the final stage, do not show the entire handsketch_animation.swf animation. Any Tip? var imageListener:Object = new Object(); var imageLoader:MovieClipLoader = new MovieClipLoader(); imageLoader.addListener(imageListener); imageLoader.loadClip("handsketch_animation....

For commands to check duped/multiple mc's.

Currently I'm working on a platform type game. I have a for loop in place to check weather or not the players feet are touching the ground. I had this; for (i=0; i<5; i++) { //There are 5 floors if (this.feet.hitTest(_root["g"+i])) { _root.mc.groundTouch = true; //triggers the mc falling } } This works fine only if one...

Flash Lite 2 Split Image

Can flash lite 2(as2) split an image in to multiple movie clips? For example, get an image and split it in half to to mc's. ...

AS2 Load Image to Multiple MC

How can I load the same image in to multiple mc's without have to load for each one. ...

calling actionScript 2 function from C# help!

I want calling actionScript 2.0 function from c# , I using ExternalInterface.addCallback; In flash: ExternalInterface.addCallback("test", function (text : String) : Void { //code }); in C#: I using shockwave flash object player.CallFunction("<invoke name=\"test\" retu...

flash as2: how can i create custom event with parameters ?

Hiya. I would like to be able to create custom event with parameters and to dispatch them when needed. in as3 i can create a class that extends flash.events.Event, add parameters to it's constructor and then use addEventListener and dispatchEvent where required. how can I do so in ActionScript 2 ? thanks! ...

How to make scrolling for chat app?

Need auto scroll when new message arrives. ...