actionscript-2

How to combine several movieclips into one scene?

Hi everyone, I'm creating a website that allows kids to designs a tshirt. I will have four section, colour, graphic, text and print. I have created these sections on demos and they are all working. I now need to properly create them all on one movie clip. I'm having problems with it, when i select the chosen tshirt colour and move o...

Creating Multiple TextFields in runtime AS2

Hi lads, I have an issue generating multiple text fields in AS2. My AS2 Flash application calls database (via PHP) and then receives XML file that contains a few objects. All I want to do is to loop throught this XML objects and then create a TextField (actually a Component that contains graphics and TextField, but this will come later) ...

[AS2] Use for variable as parameter and keep it different for each iteration

Hello, I have a basic for loop to loop through buttons and set some stuff and onPress handlers: for (i=1;i<=20;i++){ //do some stuff _root["button"+i].onPress = function(){ someMC.gotoAndStop(i+1); } } However, as I noticed, all buttonsthen link to one and same frame - all point to last i + 1 - Is there any possibility to call go...

Flash AS 2 Button

I recently made a website, and the buttons look like this: On(release) { gotoAndPlay ("title", 1); } My problem is, when you click the button the first time, it goes to the correct frame. but when you click it again, it goes to the next frame, or to the next scene. How do I remedy this? thanks! ...

how to make a guestbook in flash and have it sent to your personal email

I wanted to make a guestbook for my flash website but I also need to have it sent to my email. Is there a way I can do this without using PHP or my sql? what would be the as2 for it? thanks! ...

change the transparency of a movieclip object

hello, i've a MovieClip and i would like to change the transparency of this movieclip how can i do? Thx. ...

Flash ActionScript 2.0 problem with the object's _visible parameter

Hey guys, I've been trying to build something simple in Flash 8, and I stumbled across something weird I cannot explain: I have an object, and at some point of the program, I want it to be visible (it is invisible at first), so I write: _root.myObj._visible = true; _root.gameOver.swapDepths(_root.getNextHighestDepth()); //so it will be...

MovieClip changes Stage alignment

I am loading a MovieClip using MovieClipLoader. When the MovieClip starts playing, it changes the alignment of my stage to LT, which incorrectly repositions all the other objects on my stage. Is there anyway for me to: Prevent the MovieClip from changing the alignment of my stage? Adding an event handler to an appro...

how to embed flash that is trying to access xml in it's original folder.

I've got various flash files stored on my server. For this exmaple - here is the directory structure: Files > Example > -> example.swf -> example.xml So then on a separate webpage stored in the root of my server.. i'm embeding the flash. ... <param name="movie" value="http://www.example.com/Files/Example/example.swf"&gt; ... N...

AS2: LoadMovieClip.onError doesn't seem to catch some errors.

I have some AS2 code that opens a SWF file through an HttpHandler. I'm trying to get the program to recognize when a requested file is missing. My first attempt involved using LoadVars and "load", and only calling loadMovie if the file successfully loaded (found the technique somewhere out here). However, I found that the ProcessRequ...

AS3 - Unloaded AVM1 swfs trace out as unloaded but memory is not freed for the AVM2 machine

I have a large project built in as3. Part of its main functionality is to load and unload various as2 swfs. The problem is that the memory ins't free up once they are unloaded. I have access to the as2 swfs code base and destroyed all objects, stopped and killed timers, listeners, removed from stage, destroyed all the MovieClip.protoyp...

AS2 attaching or duplicating the MC

var myXML:XML = new XML(); myXML.ignoreWhite=true; myXML.load("tekst.xml"); myXML.onLoad = function(success){ var yC:Number = 65; if (success){ var myTxt:Array = Array(0); var myNode = this.firstChild.childNodes; for (i=0; i<myNode.length; i++) { myTxt[i] = "text"+i+"content"; createTextField(myTxt[i],i,25,yC,167,myNode[i].childNodes...

ActionScript2.0 : Drawing arc for Triangle's angle

Hi all, how can I draw arc in randomize created triangle's angle with flash actionscript 2.0. Thanks all. I would like to draw red arc at every triangle's angle. Note: The triangle will be created randomly. ...

Actionscript: How to show Mathematics formula in Flash Textbox?

How can I write mathematics formula in actionscipt2.0? As following: Thanks all! ...

How to draw a triangle in a math graph?

How to draw a triangle in a math graph which displays X and Y axis. ...

Calling WCF Service from Action Script 2

Hi All, I am a .NET programmer working with a Flash designer on a project. The design is that they will create a flash UI (implemented with AS2) to present a questionnaire. After it is completed by an end user, the will send me (a .net web service of some form) the answers to the questionnaire, I will perform a calculation, and I will...

how do i display the coordinates of a random triangle in actionscript 2.0?

Hi I wanna generate a random triangle with coordinates, which shows the arcs of each corner in actionscript 2.0 with flash 8.0. Thanks in advance ...

actionscript 2.0:Check TextField in flash

I have some problem in check two textfield.text comparison. One TextField.text value is come from calculation and the other textField is from user input. When I check those two text, the TextField.text value didn't show and I can't compare those two. How can I compare in actionscript 2.0. Please Help me! Thanks in advance! ...

how do i display the coordinates of a random triangle in a graph which ranges from +10 to -10 XY axis in actionscript 2.0?

Hi how i display the coordinates of a random triangle in a graph which ranges from -10 to +10 in XY axis with the points like A(2,1) etc with arcs in each corner, in actionscript 2.0 ...

ScrollPane has type of "movieclip" in attached movieclip

var spw:MovieClip = contentsLayer.attachMovie("ScrollPaneWrapper", "ScrollPaneWrapper123", contentsLayer.getNextHighestDepth()); var sp_:ScrollPane = spw.sp; Here typeof(sp_) == "movieclip" and I can't set any content to it. I've tried exporting it for ActionScript, exporting the wrapper movieclip "ScrollPaneWrapper" and "E...