flash-cs4

How do I amplify sounds by a specified number of decibels in AS3?

谁说我不能喝 提交于 2019-12-10 11:04:20
问题 A few days ago, this was my question, and I found the answer. Maybe this will help someone else. A. The first part of the problem: can you amplify sound using Flash? The AS3 documentation for SoundTransform says this about the volume attribute: "The volume, ranging from 0 (silent) to 1 (full volume). At face value, this means you can only make sounds quieter. In fact, if you supply a value greater than one (1.0), sounds will be amplified. You risk saturating the sound and getting poor quality

Unload child swf on last frame of child swf

旧街凉风 提交于 2019-12-08 10:19:56
问题 Using AS3 I have in my code a button to stop and remove the swf, but I would like to have in addition to unload a child swf when it plays it's last frame automatically - not using a button. Here is my code on the main timeline: var loader:Loader; var closer:close; norton_btn.addEventListener(MouseEvent.CLICK, NortonDemo); function NortonDemo(e:MouseEvent):void { var req:URLRequest = new URLRequest("norton.swf"); loader = new Loader(); loader.load(req); container_mc.addChild(loader); closer =

What is the use of void in AS3

£可爱£侵袭症+ 提交于 2019-12-08 09:06:37
问题 What is the use of void in Action Script 3.0? Can any one give brief explanation with example? 回答1: It's a function type. It means that it doesn't return any data By default Flash always expect to return a value. If you write a function like this for example: ActionScript Code: function myFunction(){ } Flash assumes that returning a value is still possible and so watch for it which uses ressources. When you specify :void you are actually telling Flash to not expect any return value so Flash

Flash CS4 and SWC file library path's

≯℡__Kan透↙ 提交于 2019-12-08 04:26:26
问题 I have a SWC file with a skinned version of the ActionScript 3 UI components. I want to use this SWC file on 'some' of my projects so instead of dropping the file in the Adobe Flash CS4\Common\Configuration\Components path, which makes it available to every Flash project, I add the path to my SWC file in the Publish Settings > Flash > Settings > Library Path dialog. However, what ever I try the components do not show up in my Components panel. How do get my skinned components to show up in

Flash CS4 and SWC file library path's

为君一笑 提交于 2019-12-07 10:18:27
I have a SWC file with a skinned version of the ActionScript 3 UI components. I want to use this SWC file on 'some' of my projects so instead of dropping the file in the Adobe Flash CS4\Common\Configuration\Components path, which makes it available to every Flash project, I add the path to my SWC file in the Publish Settings > Flash > Settings > Library Path dialog. However, what ever I try the components do not show up in my Components panel. How do get my skinned components to show up in the Components panel without making it a global library? If you make your folder in Adobe Flash CS4

How do I amplify sounds by a specified number of decibels in AS3?

徘徊边缘 提交于 2019-12-06 08:16:01
A few days ago, this was my question, and I found the answer. Maybe this will help someone else. A. The first part of the problem: can you amplify sound using Flash? The AS3 documentation for SoundTransform says this about the volume attribute: "The volume, ranging from 0 (silent) to 1 (full volume). At face value, this means you can only make sounds quieter. In fact, if you supply a value greater than one (1.0), sounds will be amplified. You risk saturating the sound and getting poor quality, but you can do it, and for voice, you can get away with a lot. (Music is less forgiving, so

Testing movie with Flash IDE fails to load file from localhost

孤人 提交于 2019-12-06 07:15:55
I'm just wondering if anybody can help me with my simple but frustrating problem. I have created an SWF that loads an XML file from http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml , but I get this error when running the movie using Test Movie in the Flash IDE. Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml at Main/loadConfig()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main.as:126] at Main/configLoadError()[D:\www\webroot\flash\Projects\MEL\Quiz\Quiz\src\Main.as:143] at flash.events:

Where is the documentation for Adobe XFL Flash interchange format?

徘徊边缘 提交于 2019-12-04 08:36:10
问题 I work at an animation studio that does several productions in Flash. Probably one of the most exciting features of the new Adobe CS4 suite is the XFL file format. At last, I have an ascii format that I can use to tighten our Flash-to-After Effects pipeline, as well as scene plan entire episodes without ever having to have Flash open. My only problem is that I can't find the official documentation on the Adobe website anywhere. I've tried searching the Adobe site itself but only came up with

Unloading swf using the unloadAndStop() method, but video sounds remain audible

为君一笑 提交于 2019-12-04 05:11:02
问题 I have tried many approaches to unloading my swf, but to no avail, the video sounds within my laoded swf keep playing even once the swf has been loaded. I have created a universal loader as follows: var loader:Loader = new Loader(); I then load various swf's into a movie clip named mov_contentLoader , for example the video swf is loaded as follows: loader.load(new URLRequest("video.swf")); //assign SWF url to loader mov_contentLoader.addChild(loader); //add loaded content to movi clip I then

How to make a MovieClip remove itself in AS3?

淺唱寂寞╮ 提交于 2019-12-04 03:29:44
问题 What is the equivalent to removeMovieClip() in AS3? Apparently many have the same question: StackOverflow: How to completely remove a movieclip in as3 Remove movie clip as3 How to remove childmovieclip and add to new parent movieclip Others: removeMovieClip(this) in AS3? Destroy/Delete a Movieclip??? Remove movie clip But none of their solutions seem to work, for me: Im working on flash CS4 with AS3 : I have a very simple movie with a single button called click . On pressing the button, a new