Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-18-2004, 05:44 AM   #1
G-Rard B
Registered User
 
Join Date: Sep 2004
Posts: 79
Default #include problem

Okay, I've got a major problem. I've built a flash website for my family and I use the #include function to include a .as file which holds a lot of actionscript. I also have some variables in there so that we can edit the text without editing the .fla and republishing. The only problem is that when I change the .as file, the text won't change until I republish the .fla. Anyone else experience this problem? Any help would be appreciated.

Thanks,
Gerard
G-Rard B is offline   Reply With Quote
Old 12-18-2004, 06:02 AM   #2
mrluke
Member
 
mrluke's Avatar
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 85
Default

Include files don't work like that. They are included when you publish the SWF.

I suggest you have to look at LoadVars and call variables from a text file. That way you can easily edit the text file and you wont have to republish the fla.
mrluke is offline   Reply With Quote
Old 12-18-2004, 06:35 AM   #3
G-Rard B
Registered User
 
Join Date: Sep 2004
Posts: 79
Default

I've just tried the LoadVars() function but it's not work. Can you give me an example of how to do it?

Thanks,
Gerard
G-Rard B is offline   Reply With Quote
Old 12-18-2004, 07:04 AM   #4
mrluke
Member
 
mrluke's Avatar
 
Join Date: Feb 2003
Location: Sydney Australia
Posts: 85
Default

Here is pretty good tute on loading variables

http://www.actionscript.org/tutorial...rs/index.shtml
mrluke is offline   Reply With Quote
Old 12-18-2004, 07:49 AM   #5
G-Rard B
Registered User
 
Join Date: Sep 2004
Posts: 79
Default

Thanks, d00d. I got it working
G-Rard B 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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:45 AM.

///
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.