PDA

View Full Version : #include problem


G-Rard B
12-18-2004, 05:44 AM
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

mrluke
12-18-2004, 06:02 AM
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.

G-Rard B
12-18-2004, 06:35 AM
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

mrluke
12-18-2004, 07:04 AM
Here is pretty good tute on loading variables

http://www.actionscript.org/tutorials/beginner/loadVariables_and_loadVars/index.shtml

G-Rard B
12-18-2004, 07:49 AM
Thanks, d00d. I got it working :)