cs4

Getting Selected Layer or group layers array using javascript (Photoshop CS4)

百般思念 提交于 2020-01-02 19:20:30
问题 K basically I need to write a photoshop script that iterates through the selected layers and retrieve some information about them. if I can get an array of the selected layers I will be fine, I know how to do the rest, but getting that array is been a headache on its own. I know the document holds something like "activeLayers" but I get lost how to deal with levels and sublevel layers. All the layers are in a group, so if its easier, if I can get every layer in a group that would be great too

Get MovieClip in another frame

試著忘記壹切 提交于 2019-12-24 14:29:52
问题 I'm in frame 1 of a movie, and I want to use getChildByName("mc_movieclip"); to get a reference to mc_movieclip. The problem is that mc_movieclip does not exist in frame 1 but only in frame 5. How can I get a reference to this MovieClip, even though it's in another frame? 回答1: The easiest way to fix this is that you put a copy of mc_movieclip on frame 1 and make it hidden. mc_movieclip.visible=false will do the trick. Note: if your mc has animation (in its timeline) then you have to restart

Problems with stage.displayState (it's null even after assignments). Fullscreen AS3

家住魔仙堡 提交于 2019-12-23 05:28:08
问题 Relevant things: I had fullscreen code working before I did a security update on the flash player. Nevertheless, I still can fullscreen Youtube right now I'm doing the fullscreen activation in response to user clicks (therefore no security is blocking it AFAIK) stage.displayState is null all the time, in the main timeline and even after assignments below. Relevant code: 1) Set on the main timeline: stage.scaleMode = StageScaleMode.SHOW_ALL; stage.align = StageAlign.RIGHT; 2) Set when a user

Flash Button (Creating a menu page with flash buttons to open SWF Files)

China☆狼群 提交于 2019-12-13 05:26:31
问题 Good day to everyone. I'm here today to seek help about Flash CS4 and ActionScript 3.0. The story starts when one day, my boss asked me to make a flash presentation about their upcoming user training for a newly developed software. I was enthusiastic and excited about it because it's been a long time that I did not use Flash (note that I don't have any experience in ActionScript 3.0). At first, everything was a bit rough as I need to recall how to properly use the frames to create a

Unable to solve flash error 5000: The class … must subclass 'flash.display.MovieClip'

↘锁芯ラ 提交于 2019-12-11 07:32:33
问题 I'm getting the following error on my flash project 5000: The class ... must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type. I looked at the class and made sure that I import flash.display.MovieClip and I do. I tried to change the base class in the linkage to flash.display.MovieClip but I got the following message: "The base class specified is a native class and will be defined in the player at runtime. It cannot be edited." How can I fix this issue?

AS3 after removing all children from stage, stage becomes a null object?

末鹿安然 提交于 2019-12-11 06:39:39
问题 I have used this code in my AS3 document class to remove all objects from the stage: var _stage:DisplayObjectContainer = stage as DisplayObjectContainer; while (_stage.numChildren > 0) { _stage.removeChildAt(0); } and this appears to be working very well with one exception. After I run this, a button can be pressed to re-load everything onto the stage. In this construction function, some conditionals are added to create event listeners for the stage if they don't already exist: if(!stage

Is there documentation on how flash manages named instances across key frames?

纵然是瞬间 提交于 2019-12-10 11:38:00
问题 I'm looking for technical documentation on how Flash manages object instances with the same name across key frames. So far, I've noticed that when the play head moves to another frame, if an object with the same name has the same type, then the instance is preserved along with its dynamically set properties. On the other hand, as soon as the play head goes to a frame where the named instance is a different type, then it creates a new instance of the new type (with the original name), and the

Is there documentation on how flash manages named instances across key frames?

百般思念 提交于 2019-12-06 15:14:38
I'm looking for technical documentation on how Flash manages object instances with the same name across key frames. So far, I've noticed that when the play head moves to another frame, if an object with the same name has the same type, then the instance is preserved along with its dynamically set properties. On the other hand, as soon as the play head goes to a frame where the named instance is a different type, then it creates a new instance of the new type (with the original name), and the original instance of the old type is permanently discarded and all dynamically set properties on the

Flash CS4 + SQLITE

大憨熊 提交于 2019-12-06 10:38:57
问题 I'm looking for some information regarding using SQLITE with AIR in Flash CS4, I cannot find any good examples, they're all built for Flex (which I don't want to use). Can anyone give me some basic examples of how to do this with Flash CS4 or direct me to some code examples / tutorials? I cannot find any anywhere... 回答1: Here is an example from: http://www.flashmove.com/forum/showthread.php?t=34778 import flash.data.SQLResult; import flash.filesystem.File; import flash.data.SQLStatement;

How to hide a button after clicking another button in Flash?

℡╲_俬逩灬. 提交于 2019-12-04 05:27:12
问题 I am using actionscript 3 to make a point and click game. On frame 1 there are two buttons, button 1 and 2. On frame 3 there are two buttons, button A and B. I want it so that after I click button 1 on frame 1, button A on frame 3 will be hidden or when I click button 2 on frame 1, button B on frame 3 will be hidden. The buttons that are hidden do not do anything when you click them. thanks in advance 回答1: If you try to remove something that is not in the display list yet Flash will thrown an