flash-cs3

Actionscript 3 - detecting click to zoom or drag

Hi, I'm using Actionscript 3, and am building an image viewer. So far, I have the following functionality, based around the "onClick" mouse event: 1) When viewing the normal sized image, clicking will display a "zoomed" image. 2) When viewing the zoomed image, clicking will display the "normal" image. Great stuff. Now I want to appl...

How do disable a SimpleButton including changing it's appearance

Here is the premise: I have 10 buttons each with on normal state image (buttonX.png) and a mouseover state (buttonXglow.png). The buttons are created manually in flash, but referenced in my as3 main class. I need to add different states to the buttons. I want do the following: mark on of the buttons as selected, e.g. show it with the...

Flash AS3 : addChild() does not display imported movieclip.

I fought with the IDE and read around all day enough to learn that in AS3, the exported class name of a lib symbol matters. I have hello.fla. In it I created a simple textfield with a string ('hello') - coverted it to a symbol (movieclip) and did the following: made the classname 'Hello'. Export for AS is checked Export in first fram...

AS3 / Flash CS3 : adding instance name breaks dynamically loaded swf?

Hi, I have managed to dynamically load a swf in AS3 and instantiate one of it's library symbols. Everything was fine until I decided that inside my library symbol, I would give the textfield that was on the stage an instance name, so I could manipulate it after loading the swf. One thing I noticed was that immediately i added the instan...

Volume slider - volume doesn't change until mouse over

Hi all, I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is...

Flash Pro's should be able to solve in seconds loading a movie

I have this action script that pulls images from a xml file > myPhoto = new XML(); > myPhoto.ignoreWhite = true; > myPhoto.onLoad = function(success) { > //portfolioTag = this.firstChild; > numimages = > this.firstChild.childNodes.length; > spacing = 28; for (i=0; i<numimages; > i++) { this.picHolder = > this.firstChild.child...

Change parent of MovieClip

I want to detach a movieclip and attach it elsewhere, but it doesn't seem possible in AS2. I'm looking for an AS2 equivalent of Cocoa's addSubview/removeFromSuperview. Is there alternatives routes to go, such as duplicating a movie with a new parent.. is that possible? ...

Error in the flash template loading

hey guys .. please any one help me quickly ... i have downloaded a flash template and changed only the contet of the pages then i uploaded it to my site .. but a very unexpected problem appeared :S ..>>>> that when it say "loading" the page stop .. and to enter the site i must press"refresh" to continue loading screen and then it enter ....

How to get am instance name of a dynamicaly created movieClip or name ?

For AS 3 I have a class which crate a panel with close button. and i create an instance of this class like this function _smallThumbClick(evt:MouseEvent):void { var _popup:Popup=new Popup( square.width ,evt.currentTarget.y, evt.currentTarget); addChild(_popup); } and this mouse event from the thumbnail(suppose), so if i clic...

Recyclable Sound Object in Actionscript 3?

Using ONE Sound() object in Actionscript3, how can I play a one MP3 and then, when the user chooses a different one, play a second sound, using the SAME Sound() object? EDIT: See my answer for how I did it. ...

TextField Antialiasing in Flash CS3 / FP10 causing text to flicker and "bloom"?

Hi, I have run into a small graphics glitch in Flash. It seems to be both in FP9 - Exported via Flash CS3, and FP10 - Exported via the Flex 4 beta SDK. The glitch / problem manifests itself as embedded text at a small point size "blooming" under certian conditions. It basically looks like the antialiasing becomes fatter at some level...

Going from Flash 8 to CS3

After many years of using Flash 8, I'm moving to CS3 at work. I know I'll have to learn AS 3.0 so, does anyone have any good references or summaries of the major/most noticeable changes? Also, are there any tips/tricks for the flash environment? After spending a few minutes in CS3, I noticed that you can't directly attach actionscript...

Problems with dimensions of swf when loaded into fla

I am creating a portfolio website for myself and want to embed a swf that is a simple flash game into my main flash file. My problem is that when I use this code to put the swf into my main flash file it doesn't keep the proper swf dimensions and shows things that are outside of the stage. I can't seem to figure it out! Any help is much ...

trace() is not working in flashbuilder 4 ?

i'm trying to use actionscript 3.0 and using trace(), it never outputs content of trace of variable either in flash player or in output area? how to coorect or should i enable something? whats the problem? ...

Inverse kinematics in Flash 9 using only CS3

I was reading about the "bones" tool in Flash CS4, and the IK library that comes with it, but I don't have access to CS4...so I'm wondering if there is a smilar tool and library for CS3 users, who may want to create these effects with Actionscript. ...

Flash Dynamic TextFiled Font Issue on BOLD

Hi, am using AS3 and i have one dynamic text filed. The properties Fontname "verdana" size "14" style "Bold" it is shown the correct font in BOLD if there is no value if i assign values like priceText.text=" Hello Wold" It will not show the correct font properties am not getting the bold style :( What need to change? ...

Yahoo Astra flash component error BaseScrollPane not found

I'm trying to use the Astra library from Yahoo but I'm getting an error saying the base class BaseScrollPane is not found. It appears to be imported from fl.containers.BaseScrollPane, which leads me to believe it should be a part of the base flash 10 library and therefore should be available, but it appears to be missing. Is this part of...

AAC/MP4 not working in ActionScript 3's NetStream

I'm trying to play a remote AAC file in ActionScript 3 in Flash CS3 and am currently using this code: var url:String = "http://a1.phobos.apple.com/us/r1000/020/Music/d4/50/94/mzm.kjjofihr.aac.p.m4a"; var connect_nc:NetConnection = new NetConnection(); connect_nc.connect(null); var stream_ns:NetStream = new NetStream(connect_nc); stream...

My SWF event listeners and socket connections don't work in my browsers

I'm running Flash cs3 for Mac and publishing my SWF's and HTML using Flash Player 10. I'm running Mac FireFox 3.5 browser. While my SWF exports and runs fine in Flash IDE, when I publish the file and run (either the SWF or the HTML with embedded SWF) in browser, it doesn't work properly. My movieclips don't respond to mouse clicks. T...

Serializing an array in Flash AS3

I need to serialize and unserialize (is that even a word?) an array in AS3, so it can be sent as a string. The only problem is that it doesnt just contain text, it contains objects. Is it possible to serialize and unserialize arrays in AS3 like you can in PHP? How can I do so? Once this bug is fixed, all will be well with my program. ...