actionscript-2

Flash Player not displaying some characters

Okay, so I'm setting up a Flash website and everything is working perfectly except for one thing. The portfolio loads the Titles and Descriptions from an XML file in the following way: <thumbnail filename="/mo*******s/01.JPG" label="Vjagg" url="http://www.**********.com/****/… description="Vjagg" /> (I used the * to hide the origin...

Check the cumulative status of onLoadInit in a for statement

In a setup like this is it possible to check the cumulative status of all onLoadInit? for(var i:Number = 0; i < limit; i++) { var mcLoader:MovieClipLoader = new MovieClipLoader(); var mclListener:Object = new Object(); mclListener.onLoadInit = function(mc:MovieClip) { trace(i + " is finished loading!"); } mcL...

Preloading images from XML into Flash

I know this has been asked to death, but I cant seem to find the answer i'm looking for... I've put together a simple Flash/XML image gallery and I would like to preload the images - Simple process. Get the XML data Preload the images When all images are preloaded, go to next frame Here is my code thus far: var myXML:XML = new XML()...

is it possible to access the NAME property of a frame in Actionscript 2.0?

I name frame 50 "_foo" (in the IDE) I can trace this._currentframe at any time (and get a number) I can gotoAndPlay("_foo"); But how can I find out if the current frame IS "_foo" as the movie plays? Is this possible? ...

How to restrict the text field in actionscript 2.

this is my code .. import RegExp; var userEmail:String; var userName:String; var userPhone:String; how to restrict my userPhone:String; to take only numbers? i tried the restrict property. the compiler gives me error. ...

Chrome only: AS2 ExternalInterface calls return null / cross-domain iframes

I'm using the cross-domain hack "marathon version" (explained here: http://softwareas.com/cross-domain-communication-with-iframes) to append a swf to a top-level window from within an iframe, as follows: Page on domain A hosts our javascript, on domain B, in an iframe. Our js on domain B creates a proxy iframe pointing to a file on...

Using Google's youtube API is there a way to determine if a video has been removed or no longer available?

I have been using the Google data API to search video from Youtube and play it back in a chromeless player as part of a Flash (AS2) swf I have developed. here's my workflow - Search Youtube with PHP page that includes Zend_Gdata_YouTube class Retrieve and display videos in a Flash swf which play if user clicks. Store video ids in data...

Insert a movie with original size and play it in full screen mode?

Hi, FlashGurus, I am having trouble to fulfill one of the goals my supervisor gave me. We now have a flash application written in AS2, and now they want it to be able to play the inserted movies(.flv) in full screen mode and be able to exit. I know there's a built-in flvplayback in AS3 that already supports this function, but not in AS2...

ActionScript 2 - OnHover show this symbol???

I am having a heck of time??? I have about 25 buttons and when a user hover overs the button, I want a symbol (box with info) that I created to pop up. I have been trying this with the button options, but I am running into layering problems, I always want the info box to be on top layer??? Thanks in advance. This should be super easy,....

Is this a bug in AS2?

I have 4 buttons on my canvas named item1, item2, item3 and item4. In the first frame i've written this code(as2): stop(); for (n = 0; n <= 10; n++) { this["item" + n].onPress = function () { trace('lol'); }; } When click the one named item1, it doesn't shows lol, which is funny because if i do this: stop(); for (n = 0; n <= 10;...

Flash Player Unresponsive on Remoting Error - AS2

We have an application that was developed with Flash, AS2 and ColdFusion backend (remoting). I observed that when there was a database query failure, and that came in to Flash, the _result handler will be called (instead of _status), and the player hangs with the infamous unresponsive / abort the script error. Doing a trace on the resul...

Exposing WCF service for Flash 9/AS2

I am trying to consume our existing WCF service using Flash 9 (with ActionScript2, for Flash Lite compatibility). However, when I add the service in Adobe Flash Professional CS5, I am not seeing all the details of my service. Specifically, service methods appear but not type information for params and results. I am able to successfully ...

ActionScript 2 - ActionScript 3: common subset?

I'd like to automatically generate ActionScript classes for a flash client side of one of my projects. (These projects have a formal way of describing my models that is already used to generate SQL and a admin interface). Now, the ActionScript should/could be compatible with ActionScript 2 and 3. Is there a description of a maximal comm...

Flash LoadVars with PHP script.

Hi All, I have a flash movie that I need to read in a value from a PHP script in order to set which frame it starts from, I am using the following code: if (loaded == total) { var lvContent = new LoadVars(); lvContent.load("http://MY URL/Includes/getID.php"); trace("Who: " + lvContent.pageID); ...

Intro repeats a few frames when using onClipEvent(enterFrame) and loadVars onLoad.

Hi All, I am using the following code to load my flash file, contact a php script and decide what frame to play based on the results. THat is all working fine, the problem is that when the animation starts from Frame 2 - gotoAndPlay(2) - it seems to repeat a few frames over and over until the whole animation is complete. I have done so...

flex 4: swfloader as2 game, can i catch a customevent that was sent using mx.events.EventDispatcher ?

Hiya. I'm building a flex 4 container for action script 2 flash applications. I use <mx:SWFLoader> component to load the game. I know that i can catch events or even custom events from an action script 3 application. working example for action script 3 (not 2): <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns....

AS2 Dynamic MovieClip Selection

If I have movieclips called "test1", "test2" and "test3" in the _root, I can use: for(i = 1; i <= 3; i++){ _root['test'+i]._x = 100; } How do i use the "_root['mc']" selection method if all my test mc's are in another mc called layout. I have tried this but got a syntax error. for(i = 1; i <= 3; i++){ layout.['test'+i]._x = 10...

flash action script 2: how can i create custom events?

Hiya. I would like to create my own events. In action script 3 I can just extend the event class and create my own Event Class. how can I achieve the same results using action script 2? thanks. ...

How to set parameter for flash in web application?

What's the best way to pass a predefined argument to flash? ...

i want to put gradiant mask effect in my twenty images.

var arr:Array = ["m1.jpg","m2.jpg","m3.jpg","m4.jpg","m5.jpg"]; for(var i=0; i<20; i++){ duplicateMovieClip(ho, "newImg_mc"+i , this.getNextHighestDepth()); if(i < 5){ this["newImg_mc"+i]._x = 0; this["newImg_mc"+i]._y = 110*i; this["newImg_mc"+i].loadMovie(arr[i]); } if(i >= 5 and i < 10){ this["newImg_mc...