Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Server Side Includes & Flash MX

Server Side Includes & Flash MX
Thread Tools
Mac Elite
Join Date: Jun 2001
Location: NYNY
Status: Offline
Reply With Quote
Jan 17, 2003, 08:05 PM
 
Can anyone help me use an include with my Flash movie? I'm decent with Flash but have no idea where to put the include. I'd like it to point to a text file that will reside in the same directory as the swf. Thanks
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Jan 18, 2003, 01:34 PM
 
i used to have a news page, on a band site i run. pressing the news button would load the news.txt incude, and make the news window (a movie clip, called 'news') visible. to do that, i used this code on the news button

on (release) {
loadVariables ("http://www.domain.com/flash/news.txt", "_root.news.textMovie");
setProperty (news, _visible, true);
}


i hope that's of some help to you...
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: Jun 2001
Location: NYNY
Status: Offline
Reply With Quote
Jan 24, 2003, 12:13 PM
 
Originally posted by philzilla:
i hope that's of some help to you...
very helpful...beginning to make sense now...

so you create an empty movie, much like you would if you were loading an outside swf, and direct the txt to that?
     
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Reply With Quote
Jan 24, 2003, 12:42 PM
 
If you are working in MX, take a look at loadVars in the reference. It is a much cleaner way to load variables from an external file than loadVariables.

Post back if you have any questions on using it.

Cheers,
Grant Skiner.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2