[flexcoders] Problem:SoundChannel.soundTransform

2008-04-08 Thread mouhong.lin
Hi. I use Sound class to load a mp3 file. Code: var _url:URLRequest = new URLRequest(...); var _mp3:Sound = new Sound(); _mp3.load(_url); _mp3.addEventListener(Event.COMPLETE, onLoad); var _soundChannel:SoundChannel; ... private function onLoad(event:Event):void { _soundChannel

[flexcoders] Cannot change Loader object's width and height in constructor.

2008-04-06 Thread mouhong.lin
Hi. I create an instance of Loader class. Then use it to load a png file. However, I cannot change the loader's width and height. Code: var _url:URLRequest = new URLRequest(a.png); var _loader:Loader = new Loader(); _loader.load(_url); this.addChild(_loader); If I just type the code above,

[flexcoders] Re: Why MouseEvent.Click Event doesn't work

2008-04-06 Thread mouhong.lin
Of mouhong.lin Sent: Saturday, April 05, 2008 10:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why MouseEvent.Click Event doesn't work Hi, I'm a Flex beginner. Here I want a shape(_shape) to move while I'm clicking another shape(_goRight). ActionScript Code: public

[flexcoders] Why MouseEvent.Click Event doesn't work

2008-04-05 Thread mouhong.lin
Hi, I'm a Flex beginner. Here I want a shape(_shape) to move while I'm clicking another shape(_goRight). ActionScript Code: public class Move extends Sprite { private var _goLeft:Shape; private var _goRight:Shape; private var _shape:Shape; private var