flash-cs3

How to click through a display object in Flash with AS3?

三世轮回 提交于 2020-01-13 18:54:47
问题 I am creating a photo editor app where, at some point, the photo you edit is supposed to be dropped between two layers of DisplayObjects (a background image and an image mask.) There is a problem, though. When the image you are editing is dropped between the background and the image mask layers, it becomes unclickable, and therefore gets stuck there, with no chance of dragging it again. (The photo editor uses TransformManager library.) I am looking for a way to allow you to select the image

AAC/MP4 not working in ActionScript 3's NetStream

拥有回忆 提交于 2019-12-23 12:09:48
问题 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_ns.play(url); (This is based on: http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player_03.html) No errors are thrown, but no sound is played

How do I get the user's screen resolution in ActionScript 3?

空扰寡人 提交于 2019-12-20 23:25:11
问题 Is there a way ActionScript 3 can detect the user's screen resolution? 回答1: have a look at stage.fullScreenHeight and stage.fullScreenWidth 回答2: These will return the numbers to your output window: trace(Capabilities.screenResolutionX); trace(Capabilities.screenResolutionY); 回答3: If you are on AIR, you could use the flash.display.Screen class, which contains this info, plus a lot more, such as color-depth, and multi-screen support. 回答4: flash.system.Capabilities.screenResolutionY and flash

Passing a variable between frames with actionscript 3

柔情痞子 提交于 2019-12-18 05:11:07
问题 I am new to actionscript 3.0 and I'm experiencing difficulty trying to pass a variable that is created and set in frame 1 to a dynamic text box that is added to the stage in frame 4. on frame 1 the variable is set from information entered by the user: var input_dia = ""; input_dia = pdia_input.text; and should be displayed in a dynamic text box on frame 4: dia_alert.text=input_dia; I'm receiving the following error: 1120: Access of undefined property input_dia. 回答1: You have to imagine - the

Passing a variable between frames with actionscript 3

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 05:11:06
问题 I am new to actionscript 3.0 and I'm experiencing difficulty trying to pass a variable that is created and set in frame 1 to a dynamic text box that is added to the stage in frame 4. on frame 1 the variable is set from information entered by the user: var input_dia = ""; input_dia = pdia_input.text; and should be displayed in a dynamic text box on frame 4: dia_alert.text=input_dia; I'm receiving the following error: 1120: Access of undefined property input_dia. 回答1: You have to imagine - the

Why does Flash CS3 require you to specify the base class when exporting for actionscript (as3)?

这一生的挚爱 提交于 2019-12-14 04:06:46
问题 In the library, right-click on a movieclip that you have written an ActionScript class for and select "Linkage...". Notice that the "Base class" field is not empty (it can't be). It's likely to be flash.display.MovieClip , but it could be something else, depending on what your class inherits from. This base class field is only required when publishing for ActionScript 3. So can anyone tell me why Flash CS3 insists on me providing the base class in both the ActionScript file and the Linkage

Converting Mpeg file to flv and simultaneously playing the converted file in flash cs3 using as3

坚强是说给别人听的谎言 提交于 2019-12-13 07:16:19
问题 I have an mpg file which I want to convert to flv format, but I have a requirement that while converting the mpg file, I also have to simultaneously play the converted flv file in the flash cs3. How to do it? I am using cs3 and as3. 回答1: If you want to convert your files programmaticly then use ffmpeg. This is a commandline tool which can convert video files to nearly everything. You have to execute ffmpeg with the correct params and wait until the video is ready. This works only on

How do I get the fullname of a file in Adobe AIR?

*爱你&永不变心* 提交于 2019-12-13 03:47:18
问题 I'm using something like this to browse for a file in AIR. I can get the filename, but what I need is the fullname of the file. Is there a way to do that? var file:FileReference = new FileReference(); file.addEventListener(Event.SELECT, selectHandler); file.browse(); private function selectHandler(e:Event):void{ file.removeEventListener(Event.SELECT, selectHandler); var name = file.name; } 回答1: I am not sure if FileReference can give you the absolute path of the file you selected. So I

Flash AS3 : addChild() does not display imported movieclip

倖福魔咒の 提交于 2019-12-13 02:57:36
问题 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 frame is checked. Once i did all that i nuked the instance on the stage. I thought I might add some extra functionality later so I actually also built a Hello.as

include .as file inside .fla

你说的曾经没有我的故事 提交于 2019-12-11 18:44:08
问题 i open up .fla file, but when i click window->action, there is not actionscript inside it. may i know where else can i check the .fla file is importing .as file. where to check it in flash cs3? 回答1: Opening the Actions window only shows you script attached to the frame you've currently selected. Try opening Window -> Movie Explorer. This lets you browse all the contents (including scripts) contained in the movie (make sure the "show: ActionScript" button is selected). Then look through any