actionscript-2

How can I control the depth (layer position) of a Flash Video?

I would like to place a video object above one movieClip instance ("mc"), but below another movieClip instance ("mc_top"). I instantiated the _root.flashVid object by dragging a "New Video..." from the Library to the stage, and giving it the instance name "flashVid". I create mc, then paint a blue box, then I create mc_top, and paint...

Wait function Action Script 2.0

Hi, I am creating a website that has an intro splash page that waits for 5 seconds before automatically sending the playhead to frame 17 if nobody has clicked the enter button doing the same thing. My code for this is here: function wait() { stop(); var myInterval = setInterval(function () { _level0.menu_number2 = 0; gotoA...

Get xml attribute using actionscript 2.0

Hi, I'm new at actionscript 2.0, and I'd like to know how to read a xml attribute's value while iterating the xml. So far, I can get the xml elements, but I can't get this issue to work. Thanks in advance, Brian ...

Procedurally accessing a function's parameter list in actionscript 2.0

I can already get at all of the functions in a class by doing something like the following. for (var member in obj) { if (obj[member] instanceof Function) { var f:Function = obj[member]; ... } } Is there a way to get at a function's parameter list in actionscript? For example, can I write a function that does ...

How to call a web service's method with actionscript 2.0

Hello, I'm new at flash and I'm trying to access a .net web method I've created from Flash CS3, using AS2. The problem is I cannot make this work. The code is the following: `import mx.services.*; var myXml:XML = new XML(); var ws1:WebService = new WebService("http://localhost/manyworlds/mwframework/webservices/statisticscharts.asmx...

AS2: load class variables with sendandload

I'm using Actionscript 2.0 in combination with PHP, now I can make a call to my PHP file and receive data but apparently I have to use that data immediately, I cannot use it to fill my class variables. This is what I want : class user { var lastname:String; function user(in_ID:Number){ var ontvang:LoadVars = new LoadVars(); var ...

Simple AS2 problem

I have: (1) this["btn_a"].onRelease = function (){ this._parent[up_mc]._visible = true; this._parent[add_mc].num = random(10)+190; trace(this._parent); } and I change it to (2) function click1(){ this._parent[up_mc]._visible = true; this._parent[add_mc].num = random(10)+190; trace(this._parent); } this["btn_a"...

Why can I not access bitmap data of FLV video coming from Amazon S3?

I have a video player that loads progressive flv video from a server and applies a reflection to it. I do this by creating a bitmapData object and then drawing the video to it. This worked absolutely fine until we moved our content from testing server to Amazon S3. Now there is no reflection. Can anyone explain why this is happening and...

SOAP requests with actionscript 2

I'm not sure how I can send a SOAP request with actionscript 2 or even if it supports it. I've looked around for a while now and have come up with nothing. ...

AS2 Parse XML Problem

I have an xml file and a flash file. The flash file reads the xml file. <?xml version="1.0" standalone="yes"?> <banners> <banner> <title>Hello World</title> <image>http://www.search-this.com/wp-content/themes/big-blue/images/company-logos1.gif&lt;/image&gt; <link>http://google.com/&lt;/link&gt; </banner> </banners...

AS2: Disabling links in hidden Dynamic Text Fields & MovieClip children

Greetings! I am working on an AS2 website with MovieClips for pages that swap depth when navigation is clicked. Text content is pulled dynamically from an external XML file & styled via CSS, including links (HTML/CDATA). My problem is this: When a page is hidden behind another via swapDepths(), HTML links within the hidden page are sti...

If I call a flash function at the same time as a href link will flash function always be executed?

Hi all, I have the following code in page1.php : <a href="page2.php" onClick="javascript:callFlash();">Go to page</a> This calls a function in a Flash movie on page1.php and opens page2.php. My question is this: Can I be sure that the flash function will always be called and finish executing before page2.php is called? (The flash f...

Preloader Not Appearing Iin Chrome and FF (Flash AS2)

Hi, Recently I create a photography website which has a gallery showcasing different albums. I have done up the albums as separate swfs to be loaded into the main swf when selected with a preloader to indicate progess (and masking of the unfinished content till 100%). The preloader is a usual getTotalByte one, however when viewing this...

Flash 8 AS2 Mouse click behaviour: clicked spot becomes unclickable until mouse moved

Hi all I have a series of buttons on the stage, they can be double clicked using a timer that detects a double click. this all works great until I refresh the page and load another lot of buttons. The the problem starts... If I click on a spot on the screen I am unable to reclick that same spot. I have to move the mouse slightly to be ...

SWF file loaded with loadMovie doesn't work with getBytesLoaded or stop, play, etc

I load a swf into a movie clip and have several problems with it: blah_mc.loadMovie("my.swf"); blah_mc.stop(); // doesn't work trace(blah_mc.getBytesLoaded()); // always returns zero even though the clip plays These problems persist even after the clip is completely loaded. I need to be able to control playback of the loaded movie a...

GetBytes Issue in Loading External Flash

I'm trying to debug a gallery section within a site of mine. Currently the section display a number of thumbnails which visitor select one to view. Once selected, the main flash loads in an external swf. To make the process smoother, I have a preloader for this process using normal getbytes codes. However for some reasons, the flash wo...

How to make HTTP requests in actionscript 2

I'm fairly new to actionscript 2 and HTTP, but I need to be able to send an HTTP request message through actionscript 2. I'm not to sure how to do this. Thank you for the help ahead of time. ...

MovieClip duplication in FlashLite and AS2

Hopefully somebody can help me out here. I'm working within an embedded ActionScript2 and FlashLite 3.0 environment (outside of a browser). The application I'm developing makes repeated use of movieclip containers that contain external images that are loaded into those movieclips using loadMovie. Putting the images into the library an...

Cross Domain ExternalInterface "Error calling method on NPObject"

I am trying to enable communication between Javascript and Flash via ExternalInterface across domains. The Javascript works great when it is located on the same domain as the SWF. But in one case, the HTML resides on domain A, the javascript and the flash both reside on domain B. I have done all of the following: The embed tag has allo...

AS2 .swf loadmovie() and unloadmovie() fail when nested inside an AS3 .swf container

I have an AS2 .swf being loaded as a child of a parent AS3 .swf. The AS2.swf calls loadmovie() and unloadmovie() to display 3 jpeg files. The images load the first time, but after that, a call to loadmovie() to replace the image, or a call to unloadmovie() fail. I found the following Adobe Bug report (https://bugs.adobe.com/jira/brows...