actionscript-2

Transitioning Away from Flash

I create fullscreen interactive demos in Flash and have recently been looking to migrate to a new language. My Flash demos are basically software prototypes and operate in a projector EXE, outside of the browser. I want to leave Flash for a variety of reasons, including: Poor quality control in the Flash player Hardware acceleration is...

Flash Player 10,0,32,18 upgrade breaks my LocalConnections. Any ideas?

For some reason everyone who upgrades their Flash Player to the latest version (10,0,32,18) immediately start having problems with my application. According to my logging, LocalConnection.connect() is failing. The only documented reason for this is that another SWF running on the machine is using that name. However, I know nothing els...

How do I change a button, onclick, in ActionScript? Show/hide?

Using ActionScript 2.0, how do I show or hide a button onclick? I am making a simple mp3 player, and would like my pause button to change to a play button when clicked, and vice versa. ...

Flash 8 Actionscript - Stage.height

I am building a complete site using OOP AS2. I want to be able to change the size of the flash window (the stage) according to the "page" that the script is currently showing. In other words, different pages will have different hieghts and I will need the browser scrollbar to act accordingly. Must javascript be used? ...

Converting escaped html back into HTML string in flash

Using swfobject I'm passing a xml string containg html which i escape using php htmlentites. How would one go about converting it back to a valid xml string in flash as2? flashvars.xmlString = "<?xml version='1.0' encoding='UTF-8'?><names><name> Thanks ...

Flash Image gallery

Hi All I've to create a flash image gallery as same as like at the given link: http://movies.yahoo.com/summer-movies/shorts/1810030254 Can someone suggest me any tutorial for or link for solving the given purpose. Thanks in advance ...

Tiny Flash Question

I have this flash code - I need to add getURL(this.mainurl, "_self"); so that this.mainurl is a dynamic value from an XML file. Can anybody maybe show me how to make the getURL value dynamic myPhoto = new XML(); myPhoto.ignoreWhite = true; myPhoto.onLoad = function(success) { //portfolioTag = this.firstChild; numimages = this.first...

XML parsing with AS2

I'm using an XMLparser class to convert XML into an object. The problem is that the XML I have contains a dot in the nodeName (estate_size.primary_room_area). This of course doesn't work since it uses the dot notation for the object path already. Some ideas, but have no idea how to do them: -Replace the dot in the name somehow -Change ...

Loading symbols from an AS2 SWF into an AS3 application?

I am converting a large application from AS2 to AS3. Part of the function is that it loads assets embedded in SWFs, which are old things. It is not possible to convert these to AS3 (there's really no code in them, it's just they're produced by tools that output flash 6 compatible SWFs). The question is, how can I use this AVM1 (ActionS...

maximum value of _x on AS2 MovieClip object

Using Flash 8, and ActionScript 2, what is the max value that an _x property on a MovieClip can be? For instance, is it okay to position a movieclip at _x = 60000? ...

Remove a color from a bitmap picture ?

Hi there, I'm trying to remove a color from a picture imported (JPG) in Flash CS4 with AS2. I have a bunch of JPG images loaded at launch that contain a color (flashy green 0,255,0) that I want to remove in order to see through. JPG doesn't support alpha and I don't think flash add an alpha layer to loaded file ? If the loaded image ...

Flash CS 4 / AS 2 + Dynamic Text + Html + Embedded fonts...

I have this scenario: 1) I have a dynamic text that receives its data from a XML. 2) The texts showed get theirs style from a CSS file. 3) My dynamic text has a html 'span' tag and it's formatted according to the CSS class that it's passed via the XML file. Ok... so far so good. It's something like: _root.txt.txtDica = "<span class='"...

Is there a way to programatically turn text into a circle in actionscript?

Has anyone here come up with an elegant way to take a piece of text and make it go around the edge of a line that is warped? (specifically, circular, but I'm sure once it's following the line, the shape is not relevant). I can't find a good resource for how to do this. I assume I'll need to create separate movie clips for each character ...

Referencing dynamically loaded content with Actionscript 2

I currently have a single SWF file that dynamically loads other SWF files with a movieclip named 'container'. However, I am unable to manipulate anything within the dynamically loaded SWF from the main file. I'm simply loading the file with this: _root.container.loadMovie("home.swf",0); I tried getting the loaded SWF to play by usin...

Flash AS2 + XML

I'm trying to do one of the easiest thing to do in Actionscript, but the code just seems to want to work with the 3rd node of the XML. Here is the XML code: <?xml version="1.0" encoding="utf-8"?> <flags> <flag> <sigla>pt-br</sigla> <png>brazil.png</png> <nome>Portugues</nome> </flag> <flag> <sigla>esp</sigla> <...

Is it better to use Action Script 2 or 3?

Hi, I just started learning how to code games in flash using a tutorial that was for action script 2. I am wondering if you can accomplish enough in action script 2 or if I should just learn how to use 3. I heard you can do a lot more with action script 3 but is it really that important for me to switch? (I am not going to make any 3D ga...

Disable/Enable buttons. Flash AS2

Flash CS4, AS2 I am making a Flash tour. I have 3 sections: About, Rentals, Neighborhood. All the sections are within MCs on the same Frame. I am using conditonal statements on the Nav buttons to turn the visibility on/off in order to navigate the tour. However, now when the same button is pressed, the MC toggles on/off. I want to dis...

Actionscript 2.0 - Load SWF file(s) from different domain(s) and have access to the objects in them.

First off, thank you very much for your time and any help that you can offer. My question is as follows, I have two swf's: MovieA.swf, MovieB.swf MovieA is hosted off of a web server at WebsiteA.com MovieB is hosted off of a web server at WebsiteB.com WebsiteB contains a crossdomain.xml file, which allows access from WebsiteA, and to...

Actionscript 2.0 Email form LoadVars with ashx .net handler

I have a flash as 2.0 file that i need to send emails via an asp handler. First off, is this possible? Second, if it is, how do i get the return to have a status=true? the .net codebehind public void ProcessRequest(HttpContext context) { //E-Mail Method string response = "sent=success"; MailAddress from...

Image scaling and smoothing

I'm importing some images dynamically into a SWF from an external site using AS2. It works perfectly when I load my images from my computer, but when I try to load them from the external server the smoothing doesn't work. My code: var imageLoad:MovieClipLoader = new MovieClipLoader(); imageLoad.addListener({ onLoadInit:function ...