actionscript-2

getURL action script 2 and IE 7/8

I have several flash movies that need to redirect to an external website at the end of the presentation. In any browser (firefox, opera, etc.), getURL("http://www.google.com"); works but in IE versions 7 and 8 it just hangs. I need to use Action Script 2 because I have alot of code that doesn't work in AS 3. Thanks! ...

Get the Number of Frames in a Dynamically Loaded Flash File

It has been a really long time since I used flash and I am creating a small presentation in which I recorded some videos of my screen and have them exported as .swf files. I am currently able to dynamically load them into a parent flash file using this.video_mc.loadMovie(movieString); The problem is I have 6 different videos that get ...

Code for communcation between PHP and AS2?

I have a Flash developer I'm working with. This person is building a tool in AS2 that will provide an interface that will send voting data (firstname, lastname, email address, votes (there are 100 items in categories and users will be able to choose some subset to declare "best"). All fair enough, Flash dev will POST data to a PHP app I...

Resizing of AS-based Flash app from FireFox vs. IE...

I have put in some controls to allow users to resize my Flash app via Javascript: document.getElementById("flashApp").height*=1.25; document.getElementById("flashApp").width*=1.25; This works great in IE/Safari, but is ignored in Firefox. I know it's talking the the flash app and gets and sets the height/width vars ok, but the same co...

Get Rid of Windows Menu around Standalone Flash App?

I have a standalone Flash application that has its own File menu. You double-click the .swf file to launch it. How do I make the standard Windows window (the blue bar with the minimize, maximize, close buttons, as well as the "File, View, Control, Help" Bar) disappear so that my flash app is "naked?" I'm using Flash Player 10 with Actio...

tweenlite as2 oncomplete

Hi, I seem to be having trouble with TweenLite in AS2. I've created a class which I call on the main timeline. Within the class I've loaded images and once they are loaded I want to fade between them. I am calling (inside my class) the following code when the images have finished loading: TweenLite.to(_root["loadedimg1"], 1, {_alpha: ...

Can an Embedded .swf Change Variables in a Parent Project?

I have a Flash project (main.swf) that opens another .swf inside it via a button press: my_btn.onRelease = function() { loadMovie("otherFile.swf", "_level1"); }; How do I get otherFile.swf to alter variables within main.swf? I'm using Flash Player 10 and ActionScript 2.0 ...

flash lite memory management

I'm having a hard time managing my memory in flash lite. are there any pointers i should care about ? or best practices? ive been reading every 60 seconds the garbage collector runs. i'm deleting my objects/movieclips like mc = null; delete mc; and making sure every listeners is deleted on it. still nothing seems to happen.. ...

loadSound: don't wait for the entire download before play, but not have it start automatically

I am trying to play an MP3 using Actionscript 2. I have the following requirements: I don't want to wait for the MP3 to load before playing it. I want to know when enough of the MP3 has downloaded that I can start playing it. I don't want the MP3 to start playing immediately: I need to control when the play starts. An example scenar...

SharedObject.getLocal() returns null

I've seen a number of very informative articles explaining that SharedObject.getLocal will return null if it can't find or create the requested SharedObject, but can find anything telling me why this method would fail. Does anyone want to take a stab at it? ...

Initializing reference types outside of a function in Actionscript 2

I have this small class called City that simply holds some information about a city, here it is: class com.weatherwidget.City { var zipCode:String; var forecastText:Array = new Array(5); } When I have an array of cities and I change one of the forecastText of one city it will change that forecastText for all of the cities. Fo...

How can I turn off all formatting symbol and dots inside Flash IDE?

In my flash IDE, somehow I hit a hot key and turned on all the formatting symbols (paragraphs and dots). I cannot figure out how to turn them off, can anyone help me? I search the web and SO without any results. Here is a picture of what is happening. ¿Any clue? Thanks a lot ...

Stuck on an interactive map.

SO, I am getting down to the wire on a deadline for an HTML/Flash hybrid interactive map, and it is not anywhere near finished. I keep getting close to solving each problem, only to discover more bugs. Most of them are quite obvious when you look at the work. I would like to at least squash the big bugs, so I am VERY appreciative of any ...

Letter-sized Document truncated when printing from browser on Mac OS X

The bottom of the page is truncated when printed. (Approx 1/2 to 1"). This printing problem does not seem to be specific to Flash (printing certain PDFs also yields this problem), but that is where we found it. The problem does not occur in older versions of OS X, but does occur in the most recent versions (10.5.5 and up). Not sure whe...

Flash ActionScript 3 capabilities lacking in ActionScript 2

Ever since Adobe introduced ActionScript 3 with Flash Player 9, many of us have been slow to switch over. In short I'd like to know what AS3 as a framework can do, that is simply impossible or significantly difficult in AS2. I'm not talking about readymade components, but built-in classes such as for web remoting, binary data manipulatio...

Getting the RSS link from the <head> in Actionscript 2

I'm having problems getting to the rss link that tells the browser where the rss is for the site. The link is found in the <head> tag of the html here is an example of what the link looks like. <link rel="alternate" type="application/rss+xml" title="CNN - Top Stories [RSS]" href="http://rss.cnn.com/rss/cnn_topstories.rss" /> My origi...

Comparing as2 to as1

For my recent project I need to work with as1. The problem is that I have a little bit forgotten as1, I think my last coding in as1 was nearly 8 years ago. My first question is, is there any web site to refererence as1 syntax or an as2 to as1 guide? Second one is about eval(). Is there is any difference between as2 eval to as1 eval. ...

How can I use a function pointer to an object instance's method?

I have an array of function callbacks, like this: class Blah { private var callbacks : Array; private var local : Number; public function Blah() { local = 42; callbacks = [f1, f2, f3]; } public function doIt() : Void { callbacks[0](); } private function f1() : Void { trace...

Layers in a swf refuse to load (occasionally, after a cache clear)

Hey guys, I have a swf with four frames. The first frame loads an external class that acts as traffic controller - looks at the root flashvars being passed in and redirects to frame 2, 3, or 4. Frame 2 is a basic login screen. There's 5 layers - 2 background layers, the login screen, and a dummy text field. I also have trace statements...

Actionscript 2 code stuck in memory?

I have noticed that the output from my trace statements & dynamic text fields (for testing) has been getting stuck in memory. Each time I publish, unless I have made a lot of changes to my code, the published SWF does not reflect my latest edits -- making my debugging process really frustrating. This is happening both in external classe...