cs3

Actionscript 3 - Completely removing a child

I have an array of objects that when another object hits one of them, the object will be removed. I have removed it from the stage using removeChild() and removed from the array using splice(), but somehow the object is still calling some of its functions which is causing errors. How do I completely get rid of an object? There are no eve...

How to read the value of a text input in a Flash SWF from a Flex App?

I have a Flex application, which loads a SWF from CS3. The loaded SWF contains a text input called "myText". I can see this in the SWFLoader.content with no problems, but I don't know what type I should be treating it as in my Flex App. I thought the flex docs covered this but I can only find how to interact with another Flex SWF. The F...

Positioning flash content using CSS

I have a generated HTML page with flash content in it. I am trying to reposition the flash content and make it "absolute". I have tried to wrap the object tags with a div tag, but to no avail. Can anyone tell me how to do this? Removing the generated positioning attributes does not work. See relevant code below (it is not very neat, bu...

Flash exporting/publishing time

What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps. I have even created a new fla and pasted everything in there, to fi...

Flash CS3 movie fails in browser

My AS3-heavy project tests fine in the IDE, but some parts don't work in the browser when published. Any ideas what could be causing this? ...

Is it possible to publish a FLA from the command line?

In our project we have a large number (hundreds) of FLA files created by the artists in CS3, from which we compile SWFs to use in our Flex/AS3 application. As part of a streamlined build/deploy system, it would be really handy to be able to automate publishing all these FLAs, and ideally deploying the SWFs too. I found some ways to do t...

Accessing parent properties/methods in Actionscript 3.0

I'm trying to control the main timeline of my flash application from a MovieClip that is a child of the main stage. Apparently, in ActionScript 2, you could do that using _root, but using root (since _root no longer exists) now gives an error: root.play(); "1061: Call to a possibly undefined method play through a reference with static...

Dreamweaver CS3 Site in Apache htdocs, missing path on localhost?

Almost have DW CS3 configured with my site to preview on localhost, except for one thing, the path is incomplete. It is missing the top directory of the site in the path when it tries to open the file. WHY??? Where do you change that? Here's what it gives me: http://localhost/0-Sections/000-ComingSoon/PHPTestComingSoonNMBT-Test.shtml ...

remove the right click menu in flash 9

Is it possible, using actionscript 3 to disable the right click menu? Any help greatly appreciated! ...

Scale image in flash to match size defined in html

I have a flash movie that loads images dynamically from an xml file. I want to re-use this .swf file on different pages, however the images on page1 are all 400 x 200 and the images on page2 are all 745 x 422. When i try to reuse this on another page, the loaded images are shrunken (resized) - i would like them to match whats defined i...

Flash / TileList component

Hi! I have a problem and I hope that someone can help me I hava Flash project with TileList in it I need to change background of some items (not all) in this TileList to red and some to blue Do you know how to do this? Thanks ...

URLLoader annoying problem

i am trying to load a variable through php from a sql database but i get nothing here is the code var Idfield; var loader:URLLoader = new URLLoader(); // data will come as URL encoded variables loader.dataFormat = URLLoaderDataFormat.VARIABLES; loader.load(new URLRequest("pull.php")); loader.addEventListener(Event.COMPLETE,dataload); ...

Avoiding cursor change over dynamic text fields in Flash CS3

I have a dynamic text field inside a MovieClip symbol. Whenever the mouse pointer is hovered over the symbol, the cursor changes to the I-shaped text editing cursor. This may be a very stupid question, but is there any way to avoid this? Not even using mouse.hide() keeps the "I" cursor from appearing. ...

Resize window with actionscript 3.0

Is there any way to resize an entire Flash project using Actionscript or some other method? I have created a 1024x768 Flash CS3 application, but upon closer inspection of the specifications, I now realise it has to be 800x600. Instead of manually making everything smaller, I'd like to resize the window as if someone were dragging the o...

Dragging an object on a mask in Flash

I have a small task in Flash, that I'm having a little trouble with. First of all, I have 2 layers. The first is a gradient with various colors, on top of that is the second layer, which is a shape tween(movie clip). For those of you using CS4, a classic tween. I'm using CS3 and Actionscript 2 I've allready done the shape tween, it's v...

How can I best convert an AS1/AS2 application to an ActionScript3 application?

I have a program consisting of multiple SWF's. An AS2-SWF loads a bunch of AS1-SWFs. It's a crappy program. I'd like to specify the GUI in MXML and perhaps refactor some code to AS3. However, converting all of the 300+ symbols to AS3 or whatever is undoable. What are my options in converting to AS3/Flex/MXML? The app is very simple, o...

Calling a method inside web service in action script 3.0

I need to call a method inside web service and passing to it it's parameters from action script 3.0 can anyone help me plz? i searched all over the internet and found solutions with flex and i am not working with flex i am working with action script 3.0 ...

flash cs3 component problem

I have been using custom swc based components for my new flash game. I was nearly through with the engine development when I decided to update some of my placeholder graphics. I made the necessary changes only to find that my component wouldn't compile. I found this strange because I merely updated the graphics and some non-essential cod...

Change MovieClip width along with dynamic text field's size inside it.

Hi, I am a newbie in Flash CS3. I was wondering if anyone could tell me how resize the width of of a movie clip according to the size the size of dynamic text inside it. I did it by creating a text field 'myText' and then converted it to a MovieClip symbol and named the MovieClip as myClip. The text in myText is assigned at run-time an...

stop object referencing in as 3

Hi all, I have an object and a temp object now if i do tempObj = obj and change stuff in tempObj they changes have an effect on obj is there a way i can stop it from doing this? Regards Mark ...