Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-01-2010, 12:45 PM   #1
arjunender
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

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

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
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

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
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

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
arjunender
Registered User
 
Join Date: Mar 2010
Posts: 9
Default

i have coded everything using external actionscript file only

is there any way to handle this

thanks
arjunender is offline   Reply With Quote
Reply


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 09:08 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.