actionscript-2

i want to display a Quadratic equation with format like (4x2).

i want to display a Quadratic equation with format like (4x2). i want to display 2 as superscript automatically after typing x in the textbox. ...

Sending Email from Flash / Actionscript 2.0

Complete Flash / AS Noob here. Friend wanted a change in Email address and I'm assisting. I notice at the bottom it posts to a formmail.php file but I was wondering if there was an easier way or perhaps someone could help me understand what exactly it POSTS and how AS handles POST methods so I can rewrite a script. As formmail.php is som...

Flash Sound.loadSound retry on connection lost (AS2)

I've got a problem with Sound.loadSound in ActionScript2 (FlashMX). If the sound is large or the connection is slow my server drops the file transfer and it seems Flash assumes the file has finished downloading, even if it has only received a part of the file. So I have two questions: Can the Sound object retry it's connection if the ...

Load Large Image & Mask in Flash

I'm just starting out with Flash, I'm using ActionScript 2.0, and trying to acomplish something seemingly simple but it is not happening like I would think it should, any help would be appreciated. I'm trying to load a large image about 3000x2000 pixels and then mask it with a small square, so that later I can scroll through the image t...

flash as2: how can i override the hitTest function for all of the objects in my application?

Hello. I'm loading a flash file as a sub application to my main flex application. The Flex application's stage is bigger then the flash i'm loading into it. The flash application starts at top=300 and left=300 in the main flex application. the flash file uses hitTest(_root.mouse._x,_root.mouse._y,true) to find out if the mouse cursor ...

Error 2036 from loadClip using AS2

I'm troubleshooting an old AS2 application, particularly where it is loading a swf into an empty movie clip. We're a secure site, but the clip to be loaded is on the same domain. We tested loading a clip from a non-secure http address, and the swf successfully loads: //Throws Error #2036: Load Never Completed my_mcl.loadClip([valid pa...

Can I construct an Object without knowing the class in ActionScript 2?

In AS2, I can certainly do this: var instance = new MyClass(); But is there a way to do something like this? var constructor = MyClass; var instance = new constructor(); This appears to be possible in AS3 by just calling "new" on an instance of the Class object, but I haven't been able to figure out what the syntax would be to get ...

How make Arc for text using Action script2.0 at run time?

I want to make the cure for the text when user drag the button.For example if user type the test 1234567 and drag the text it should make the text 123 on the clockwise directiona nd 567 go for the anticlockwise direction.How can I do it in the Action script 2.0.? PS:4 is the centre of the text. ...

unloadMovie is not working

I am having a similar issue to this post except that I am using only AS2 at the moment. http://stackoverflow.com/questions/1044713/as2-swf-loadmovie-and-unloadmovie-fail-when-nested-inside-an-as3-swf-contai I call a swf file to load into a loader like this music_mc.loadMovie("music/song.swf"). When I unload the movie clip like this: m...

Triggering events in actionscript 2

Hi guys, I'm working on a banner ad using based on a computer keyboard in flash. I am using pre-made keyboard code (bought from activeden) written in AS2. It has a function that riggers an animation when you rollover the movie clip. I want to know how to trigger the rollover event on that movie clip without having to rewrite anything t...

Flash Components falling apart despite grouping. (AS2)

I am a newbie flash developer who is trying to create a "message box" symbol in my flash application. This message box should appear on an event, so I have as2 code like this which is trying to achieve that: (mcError1 is the instance of my symbol). _root.mcError1.visible = true; _root.mcError1._x = 100; _root.mcError1._y = 8...

My computer got stupid. 0 + 20 = 19.921875!!! Help me!

You know it's bugger-all when your computer can't get a sum right! I have not the slightest idea why this is happening: _root.attachMovie("clippy","aClip",_root.getNextHighestDepth()); trace("alpha 1 = "+aClip._alpha); aClip._alpha = 0; trace("alpha 2 = "+aClip._alpha); aClip._alpha += 20; trace("alpha 3 = "+aClip._alpha); aClip._alph...

as2 drag and arc text

drag the movie clip button above the rectangle and the text should be change the angle based on movie clip button drag from left to right of the rectangle ...

AS2 addCallback Type mismatch.

So I don't get this at all. When I put ExternalInterface.addCallback('startppt', null,"PlayPPT"); I get Type mismatch. However if i put ExternalInterface.addCallback('startppt',"PlayPPT"); It takes it fine. Doesn't work when I try to call the function. I used JQuery, normal Javascript just about everything. I think it has some...

Is it possible to modify a global var from inside a function (AS2)?

Hello, being my first time to post a question on a site this kind, I'll try my best to do it OK. I'm Using ActionScript 2.0 attempting to check the existance of a certain file, with this code (I found it browsing the net): var myPelican:Number = 0; var myVars = new LoadVars(); myVars.load("portfolio_img/("+pCounter+").jpg"); myVars....

how to format input text into equation using action script 2.0

Hello every one, iam very new to action script.i have one problem. i have one input textbox.To enter 5x^2 ,key sequence used are "5" "x" "2" ie.,the characters must be formatted as it is being typed.I want to enter equations like "5x^2-4x-2".It should not allow other characters other than "x", using action script 2.0 .Please help me a...

Using MovieClipLoader to preload images, but not use them yet

Hello, I'm loading images, whose location are specified in an XML document, using Actionscript-2's MovieClipLoader. I want to place these images in (nested) container movieclips that are placed further down the timeline. The problem is, these container instances cannot be referenced as long as the playhead didn't reach their keyframe. I...

can't add a new function to String class via prototype in as2

following code; String.prototype.myFunction = function() { trace("my function is called"); }; var myString:String = "myString"; myString.myFunction(); causes this error with mtasc compiler: type error String has no field myFunction it must be possible to add new functions to a class via prototype. is there any configuration i c...

Draggin Dropping of AVM1(ActionScript 1/2) dont work in AVM2(ActionScript 3/Flex)

Hi I have a application developed in ActionScript 2 which has dragging/dropping activity. which works fine. I used following to test dropping dropObject.hitTest(_root._xmouse, _root._ymouse, true) //if true, drop currently dragging object Problem occurs when I put this SWF in my Flex application SWFLoader container. dragging dosen't ...

Flash AS2 - Create Dynamic textfields in a loop

I want to populate the stage with a list of dynamic text fields with individual names, something like pg4_txt1, pg4_txt2, pg4_txt3. I'm a novice at flash, I tried creating variables with a while loop, but I just haven't got the grasp of it. Here's some kind of weird pseudo code to explain what I want to do: var leading:Number = 15; v...