Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Thread Tools Rate Thread Display Modes
Old 04-01-2010, 12:45 PM   #1
Registered User
Join Date: Mar 2010
Posts: 9
Default calling external action script file

how to call external actionscript file without including in the swf

i have 5 different folders. in each folder there is a actionscript file (content.as)

i have store all the content in the content.as file like variables, arrays etc

now i have to display content from individual actionscript file

any suggestions

arjunender is offline   Reply With Quote
Old 04-01-2010, 12:49 PM   #2
Senior Member
Join Date: Mar 2010
Location: Rheinland-Pfalz, Germany
Posts: 245

You must compile the actionscript. Period.

This is because as's eval function is highly limited, and even if it were, it is pretty much bad coding and slows down the script.

Do yourself a favour and keep all of your code in one SWF!
Everything not logically conclusively proven impossible is possible.

Question all, for problems often lie where you least expect them.
Artwich is offline   Reply With Quote
Old 04-01-2010, 12:50 PM   #3
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666

Howdy and Welcome...

You cannot... The only way to call the external file is to use import statement, and that menas that the content of the external file will be included into the published SWF file...
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 04-01-2010, 12:54 PM   #4
Registered User
Join Date: Mar 2010
Posts: 9

i have coded everything using external actionscript file only

is there any way to handle this

arjunender is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 12:39 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.