flash-cs5

In flash with as3.0, I have to call a function on the main stage from a movieClip

霸气de小男生 提交于 2019-11-29 17:30:18
I have to call a function that is defined on the main stage of my project, and I have to call it from a MovieClip, what can I do? I'm using flash cs5.5 and AS3.0 There are multiple ways to access the MainTimeline from objects on the stage. Probably the most reliable is 'root', but there is also 'parent' (but only if you MovieClip is a direct child of the main timeline). // root should always work Object(root).myFunc(); // parent will only work if your movieclip is a direct child of the main timeline Object(parent).myFunc(); Note that you have to cast these are generic Objects (or MovieClip

How to develop Augmented Reality application for Android

空扰寡人 提交于 2019-11-28 15:24:27
问题 I would like to develop an augmented reality application on a HTC Nexus One mobile phone for android using Flash Professional CS5 and Adobe AIR 2.5. I found a couple of online sources showing how to develop AR application using webcam and Flash and i have found it very useful to follow and understand the basics of AR. For example: Augmented Reality using webcam and Flash http://www.adobe.com/devnet/flash/articles/augmented_reality.html Introduction to Augmented Reality http://www.gotoandlearn

How to create Preloader in AS3

情到浓时终转凉″ 提交于 2019-11-27 20:55:25
My flash applications is little bit big, so i want to embed a preloader in my application, So can anyone please tell me how to create a preloader in new 'Scene' and load another scene in after preloading completed? Thanks in Advance! Update: Option 1. Flash IDE, one swf file To have an embedded preloader when compiling with Flash IDE, you should move your Document Class code to 2nd frame of your FLA file (without package and class constructor, of course), and remove Document Class .as file from project properties. In the first frame you should place such code: stop(); // stops the timeline at

How to create Preloader in AS3

我的梦境 提交于 2019-11-26 20:29:45
问题 My flash applications is little bit big, so i want to embed a preloader in my application, So can anyone please tell me how to create a preloader in new 'Scene' and load another scene in after preloading completed? Thanks in Advance! 回答1: Update: Option 1. Flash IDE, one swf file To have an embedded preloader when compiling with Flash IDE, you should move your Document Class code to 2nd frame of your FLA file (without package and class constructor, of course), and remove Document Class .as