actionscript-2

create dynamic form with flash components depending on user input

I have a flash form with different components (input, checkbox, dropdownlist etc.). Some values of the components should be dynamic depending on user input. E.g. user can select 1 of 5 categories in a dropdownlist. Depending on his selection the sencond dropdownlist should have other values. What is the easiest way to do that with act...

XML gives undefined result in ActionScript 2.0

So good so far in ActionScript language I actually haven't fell in bad condition but still I have one good issue that I can't do! In order at the root timeline everything is Ok when I call the XML childNodes or write the XML class everything its true, but when I call the XML childNodes from root within a movieclip XML gives me undefined...

deep linking from xml to open function in Acionscript

Hi, I have general text in CDATA in my xml which is pulling in content into Flash. This is working well and I am able to add images this way too. What I need though is to wrap that image in an tag which, when clicked on will fire off a function in my Actionscript 2 to launch a video. Could someone please tell me how I would go about t...

Flash AS2 post request across domain not allowed

Hi guys, I have my flash application hosted on a 3rd party domain (flash.example.com )and i'm trying to post data and redirect to my local server. (www.example.com) It will not allow me to do this. I've used the flash debugger and it IS finding the crossdomain see output below. OK: Searching for <allow-access-from> in policy files t...

XML childNodes gives undefined result in ActionScript 2.0

for example: In the movieclip which is called (content) inside this we have 2 more textfields which are called titleID and descriptionID, now I try to make this inside the movieclip (content) NOTE: _root.title[0] and _root.description[0] are arrays in the root timeline outside the movieclip (content) take a look in the code: title[i] =...

how can I read the movie settings in AS2?

I need to use the movie's predefined framerate (not it's real time performance FPS, but just the number it was designated to run at) as well as the movie's width and height, using AS2. Is this possible? I can't seem to find what object I should be examining for this information. [EDIT] I see that Stage has width and height but nothing ...

attach a symbol over the xml slide gallery in actionscript 2.0

Hello, i'm editing an actionscript 2.0 file, i have a xml files with images urls in the nodes and it works. I have a symbol with id='mysymbol' in the library and it would be great to attach 'mysymbol' over the gallery while other images slide. i have an empy scene, just this AS 2.0 script and the xml: import mx.transitions.Tween; imp...

Accessing a variable in nested movie clips - Actionscript 2

Hi, I would like to access a variable(txt1) set on an input box. The input box is in a movie clip called txt_0143. am trying to access it in the parent movie clip called part_0.010 . So the hierarchy goes as root->part_0.010->txt_0143->txt1. I have used the following function on another sibling clip in part_0.010: on (release) { ge...

Is there a problem with importing a SWF movie made in AS3 into a SWF movie made in AS2?

I haven't tried yet but am curious if I should even bother. I have a legacy AS2 swf that I don't want to rewrite in AS3 but I need to improve upon it to play video, and I'd prefer to use the AS3 video playing mechanisms. Ideally I can build an AS3 movie that just takes a string param of the movie location and plays it. I'd load this ...

flash actionscript 2.0 (importing a file from outside the flash file)

I am using flash actionscript 2.0 My boss just asked me to design a website. But the customer can upload his own jpeg and swf files. He told me to find a way so they can upload the files from a file outside the flash file. I've been reading some stuff but i guess its called calling an action or importing a file from outside? Thank yo...

AS2: Are functions declared in a class stored as separate instances taking up more memory on each object instantiated?

My question is about memory use and objects in actionscript 2. If I have a class definition: class test1{ public function one(){trace("Hello");} public function two(){trace("World");} } And a second class definition: class test2{ static public function one(){trace("Hello");} static public function two(){trace("Worl...

How to globally catch changes to the text of a TextField in AS2?

First the details Using AS2 (Scaleform) The solution needs to be global at least within a swf All of our UI is already made and this is purely for visual indication in-house of an issue with text size. I need to be able to globally catch when the text for a TextFeild changes and then perform my check. I have tried a few things wi...

Flash AS2 , XML doesn't accept HTML inside?

A simple as2 flash app. that is reading an XML file. Here is the Flash AS2: function loadXML(loaded) { if (loaded) { _root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue; name_txt.text = _root.inve...

How to get a byte stream from a url link?

I'm currently trying to open a stream using AS2 and parse the incoming data. How can I do such thing using strictly AS2, flash 8 or lower? Essentially I want to read the incoming data from a radio station from SHOUTcast and parse it's meta data. I don't need to playback this station. Thanks! -Jona ...

Returning external data from a function in ActionScript

I have the following script that is calling a text file: /* first create a new instance of the LoadVars object */ myVariables = new LoadVars(); myVariables.load("myFile.txt"); myVariables.onLoad = function(getreading):String{ var ODOMETER2:String=myVariables.ACADEMICWATER; return ODOMETER2; trace (ODOMETER2); } trace(get...

Changing animation on a movieclip on a key press is failing.

So far, I have the following Actionscript 2.0 code - I'm trying to make the animation change on a key press then loop to simulate running. But it sticks on the gotoAndPlay(9) trigger, regardless of what frame the animation is on. onClipEvent(keyDown) { if (Key.isDown(Key.RIGHT)) { this._x += 5; ...

AS2 - Controlling a tween from outside a function

Hi everyone. I'm working in Actionscript 2, and I am trying to do something that seems to be basic. Basically, i've defined a Tween object within a function, and i want to control that tween from another function. What's the best way of doing this? This is the basic way i have the code set up currently: // Define the function with m...

Problem sending the parameters to an AS2 swf loaded in AS3.

Hi, I am a Flex developer and I am trying to load an AS2 swf in my AS3 code. The load itself works, but the parameters are not transported for some reason. This is my code. var urlrequest:URLRequest = new URLRequest(); urlrequest.url = "Pres.swf?test=test1"; var loader:Loader = new Loader(); loader.load(urlRequest); In the handler f...

Does Facebook tabs allows us using things like this getURL("facebook.com/example","_self")?

I have to make Flash tab on Facebook. There should be links in it, to other tabs(like: images, wall, videos etc). I'm using actionscript 2.0. getURL("facebook.com/example","_blank") is working perfectly, but I have to use "_self". Does Facebook allows developers to use this function? Thank you David ...

copy/paste text in Flash with formatting

Hi - in ActionScript-2 is there any way the html text can be copied and pasted without formatting loss. Thanks, Yogesh ...