as2

loadMovie issue actionscript 2

Hi guys, Has anybody ever had any issues with loadMovie in as2? I have inherited some horrific code and need to solve an issue, if you imagine a gallery and clicking back and forward would call loadMovie and get the URL address from an array, each time the back and forward buttons are pressed the number is increased and references to a ...

Results with trying to convert AS2 to AS3

Hi. Previously I wrote on trying to convert some AS2 to AS3. It's a sliding panel. A big panel called bigSlide onstage contains to children MC's: slide1 and slide2. Onstage there are also buttons b1, b2 and closeb. Here's the AS2: stop(); var currentPosition:Number = bigSlide.slide1._x; var startFlag:Boolean = false; menuSlide = func...

Flash AS2 loading xml from server

I have a little job modifying an old build - or so I thought. Currently I am being given a url which dynamically generates the xml eg: http://server.com/generateSomeXML?pathToFile=/files/file.flv This works fine eg: as above but ?pathToFile=http://streamingServer.com/files/file.flv This does not work, fails to load the xml. I have tr...

Flash AS1/AS2 : quick + dirty SOAP msg send with minimum overheads?

Is there a way to send a simple SOAP message to a web service on another domain, while not caring about the response (this is simply a small data push) in an old flash app? Many thanks in advance... ...

AS3 TextField.textWidth ignore whitespace at end.

Hi I'm trying to calculate the textWidth, but it seems to ignore the white spaces at the end. The text "Hello" "Hello " returns the same text width. A string with " " returns 0. How do I calculate the width with the space? ...

How to track my flash video player embed on other sites

Setup: an online tv channel with "youtube" like clips and categories our own flash video player which can be embeded into other remote sites as2 flash player Goal: To track who's embeding my videos, at least with basic statistics per domain. Since it's AS2, it's harder to do this. My ideea is that I can create a php page which shou...

How to read a DataSet from a WebService using AS2?

How do I read a DataSet returned by a webservice in AS2? function showTopItem(obj:XML) { trace(obj); } gives me: [object Object] I expect to read this: <?xml version="1.0" encoding="utf-8"?> <DataSet xmlns="http://tempuri.org/"&gt; <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="...

What is the best way to detect file existence in Flash using as2?

I need to check for file existence in Flash on x number of videos. I've tried LoadVars and MovieClipLoader. LoadVars works but it actually loaded the entire video before reporting its done. Without a way of knowing that its started, I can't delete it before its done. I don't what to load the entire video, i just want to check that its th...

Flash actionscript 2.0 XML parsing works on some nodes, not others

Hi all. I'm working on a simple carousel. My problem appears when trying to insert node values as text in my tooltip sub-elements. Here's my xml: <promotions> <promotion> <visuel>/papyrus/8a8b8d2e26fa35b60126faf90a4d002f-20100223141718.gif</visuel> <remise>55</remise> <libelle>produi...

Center movieclip on point

I'm dynamically loading movie clips (SWFS) into attached clips (from the library). The loaded movies don't all have center points, meaning that their registration point isn't directly in its center. This poses a problem when I load them into the attached clips, because they don't center on the attached clips, which is what I want them to...

AS2 css font disappearing

I've inherited a project written in AS2. It programatically creates textfields and populates them. It refers to a stylesheet, and in that stylesheet is font-style:italic; Everything shows in italic just fine. But I've been asked to change it to normal. WHen I change it to font-style:normal; in the stylesheet, the text disappears. An...

How do I allow smoothing in externally loaded images?

In Flash, I can go into the properties of an image in the library and check 'allow smoothing' to enable resampling when the image is scaled or rotated. How can I achieve the same effect for images loaded dynamically by the SWF from an external URL? ...

Trying to create a flash app that dispalys photos from facebook.

Hi there, i'm intending to create a flash app that pulls images from facebook and displays them in a slideshow format. Has some here tried this? or does anyone have suggestions/advice/links on where to find information on this. i have had a look at; http://components.zerofractal.com/FacebookBridge/ has anyone succesfully used this? i ...

button actions don't work with SWFAddress / AS2

Hello! I used this code for another site and it worked fine, but now I have modified it for a new site and no buttons work whatsoever. I am still new to this so I am probably missing something simple. I have given each navigation button an instance name ie. btn_X_0, _1, etc. For some frames, more than one type of button lead to these, ...

MovieClip references going awry in onLoadComplete callback

I'm loading a bunch of images into my AS2 flash movie, and I've encountered some strangeness. Roughly, my code looks like this: function doTheLoading() { m_imageClips = []; for (var i:Number = 0; i < 3; i++) { var imageUrl:String = "http://server/" + i + ".jpg"; var mc :MovieClip = m_mc.createEmptyMovieCl...

Flash: Am i totally misunderstanding Event Listening?

I don't know why but i am having trouble getting my head round event dispatching. Take this for example. someClass():Void{ this.addEventListener("onChange",someObj); } Am i right in assuming this means that someClass is listening for an onChange event and when it gets it, it is then going to fire the onChange method on someObj?...

Flash: dynamically adding events code to instances possible?

I want to make a movieclip invisible initially but i dont want to set it manually within the properties in flash because i cant then see it on the scene. I was hoping i could add some code like so: MC Frame one. this.onClipEvent(load) { this._alpha = 0; } but I cannot. How can i set the MC _alpha to 0 for all instances without addin...

communication between as2 and as3

I have this code under a button in 'as2.swf' on (release) { unloadMovie(this); } and this swf is being loaded into as3 container called 'main.swf', but when i press it nothing happens and the file does not unload itself. any one can enlighten me on that? ...

Referencing movie clips from within an actionscript class

Hi all, I have been given the task of adding a scoring system to various flash games. This simply involves taking input, adding functionality such as pausing and replaying and then outputting the score, time left etc. at the end. I've so far successfully edited two games. Both these games used the "actions" code on frames. The latest g...

Can ANYONE get _lockroot to work?

Hi Guys, I have the following code which ultimately loads a SWF into movieclip 'myloader' using a movie clip loader, code as follows: var myload:MovieClipLoader = new MovieClipLoader(); var listener:Object = new Object(); myload.addListener(listener); listener.onLoadStart = function(){ animcontainer.myloader._lockroot = true; ...