header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
natalie
Points:0
Posts:0

6/27/2010 4:47:57 PM

Title: .as files (motion)


I have a whole pile of .as files. How do I use these on another .fla I am creating?

I have gone into the movie clip properties (via the library panel) but it is not working. Do I embed it using AS3?

Can you please email me some generic code to use?



1
Warrior
Points: 380
Posts:0
6/27/2010 11:14:02 PM



please mention details for precise answer.Mention actionscript version that you are using (AS1, AS2 or AS3) and are you using Flash cs or Flex

you can use include statement to include the actionscript files like this:
#include "actionscriptFile.as"

2
Brad
Points: 480
Posts:0
6/27/2010 11:20:12 PM



for including external Actionscript 3.0 file use the include statement without #

include "myscriptsFolder/myActionscript1.as"

note that ";" is not required in the end and remember that include is used for actionscript code files only not for classes.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions