flash-cs4

flash cs4: change the look of a button after it's been pressed

Hi. I'm trying to create a top panel menu that contains 5 buttons. I configured Up and Over state for each button. how can I configure that one the button is clicked, the look of the button will change to the look i configured in Over state. Each state contains a different image. Is there a way to change the look of the button to t...

Action Script Styles Help

How do you give a background color to a text box? I've loaded an external css stylesheet, but can't seem to make the background-color tag work, there has to be an easier way! ...

AS3: Element stays on stage after manipulating the index(depth)

Here is the problem I have: after I change the index of one movieclip using this code oldIndex=getChildIndex(DisplayObject(e.target)); setChildIndex(DisplayObject(e.target), numChildren - 1); when I give the object its old index setChildIndex(DisplayObject(e.target), oldIndex); and go to another frame of the movie, this element I ha...

Problem: Movie Clip contains just one frame

I'm a newbie at Flash, so started playing with a pretty standard code sample: one layer contains a movie clip with a flying rectangle, another layer has a button to control it. All script code is in Main.as file. The rectangle was named square1 through the Property window. Here is the problem: the constructor for Main has a line: square...

How to create ActionScript 3.0 component capable of rotate/translate/skew/scale animation for use in Flash CS?

I need a very special component written in ActionScript 3. It is a rectangle filled with a bitmap. The bitmap is loaded from an external URL based on some programmed rules. The textured rectangle is then animated using Flash CS. Animation is performed using rotate/translate/scale/skew tools. How to create such a component and add it to ...

Is there a Watch list in Flash CS4's AS3 debugger?

Is a watch list hidden away somewhere in the AS3 debugger in Flash CS4? Sorry for asking a simple question like this here - I did spend a while looking around the net first. It's much easier to find the watch list in the AS2 debugger. Thanks, Dan ...

to add textfield in an array to movieclip in as3 flash

I want to add array containing textfield to movieclip and the following statement doesn't work for loop { myMov.addChild(myArray[i].person); } person is the xml node and xml has root employee and nodes person and content in CDATA Hope someone helps! Thanks in advance! ...

how can i add external libs to my flash project

i have downloaded casalib and when ever am creating a project i have to have this code in the same folder, so i want to add it to library and from there i can refer. How can i d o it? Please find me the solution. ...

why aren't my 3d properties set on the stage in flash cs4 accessible

I have made a very simple swf in which I have a MovieClip which I have rotated on the stage. When I try to access this rotationX and rotationY properties of this clip using the constructor of the class assigned to this MovieClip they are coming back as 0 even though they shouldn't be. If I put an on rollover event of the MovieClip and tr...

Flash CS4 compiler Error 1120 when embedding pngs into class instance variables.

I have a Flash CS4 (Flash 9 ActionScript 3.0) project that compiles and runs perfectly on my machine. However it is part of a big batch of fla's that I want to compile on another (faster) machine. When I copy the project (the fla and all actionscripts and assets files) to the faster machine, it's Flash CS4 compiler gives me compiler erro...

Real time complex raster image morphing in Flash CS4

Is there a way to load an image from some url or a local folder and then make some complex morphing to it in real time? For example, I have a vector animated pseudo 3D paper in my project that, for example, is being flipped different ways. Then I want to place some image inside that paper box and want to morph that image accordingly to t...

I've only programmed in AS3; What's the easiest practice in Flash CS4 to create simple animations?

So I've been using Flash for awhile, but rarely ever use the authoring tool. I want to create a quick little slideshow in which a user clicks buttons, and assets on the screen fade in an out as you move from slide to slide. I don't want to do this programatically...what's the quickest route to go about doing this, with using some AS3 bu...

Pixel bender shaders with multiple outputs in flash?

According to the pixel bender specs a shader can have one or more outputs. The pixel bender toolkit, whose "export to flash" option tends to be preety strict about the flash specific do's and dont's, would even compile such a shader without complaints. However actionscript's shader related classes seem to be geared toward single output ...

Flash CS4 AS3 Security Sandbox Violation

Hi, I have build my entire website with flash and embedded several swf objects (slideshows) into it. everything always worked fine when I published it as swf movie. but now that I want to upload my website an error message occurs saying: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: file:///m...

Access Flash Symbol Via Code from an .as Class

Hi, I've got a movie clip symbol in my .fla file that I need to reference in an .as file which is in a subfolder in the project. I select the symbol in the library and edit its properties. Its name is bubble; I Export for ActionScript and Export in frame 1. I give it a class name of Bubble. Now I need to go to my .as class, called Som...

Actionscript 3: Force program to wait until event handler is called

I have an AS 3.0 class that loads a JSON file in using a URLRequest. package { import flash.display.MovieClip; import flash.display.Loader; import flash.net.URLRequest; import flash.net.URLLoader; import flash.events.Event; public class Tiles extends MovieClip { private var mapWidth:int,mapHeight:int; ...

Flash won't display in internet explorer

Hi, I have a problem with my site in internet explorer. It works fine in firefox, opera etc. Sometimes internet explorer won't show my flash banner. For example when I'm on home page it works fine, but when i press services it doesn't show the banner. My web site is www.md-telmark.hr ..... to view the page you should press the dot in ...

Is there a good way to style an unordered list (loaded from XML) in Flash?

I'm loading the XML into a text field as htmlText. The StyleSheet class in Flash only supports a subset of CSS1–which debuted in 1996!–and doesn't support list-style-type or list-style-image. I'd specifically like to substitute an image instead of the default disc for an unordered list. If you've had success implementing a work-around,...

Shared library to minimise size of FLA file

In a project we use large flash FLA file with lots of graphic assets, but the actual data that is changed is just in a few symbols. Sometimes it is not very efficient to transfer the whole FLA file that comes up to 20MB now. I was thinking about using Shared Libraries, but it seems that, even if you import external library, it still cop...

what would be the best approach in creating a full flash website

I see all this heavy Flash/3D websites and it's making me wonder how do they build it having to load it so fast. Let me know your thoughts on what/how would be the best practice or approach on this. ...