Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » Changing where Flash pulls text file - how?


Changing where Flash pulls text file - how?

Reply
  #1 (permalink)  
Old 08-01-06, 10:38 AM
jdsmith8 jdsmith8 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Question Changing where Flash pulls text file - how?

Hi,

I have a site on homes.com and had to link all the images to their storage locker urls instead of my folder of images. Now I have the Flash file uploaded and working, but the Flash file is not reading the txt file that inserts the navigation and company name in the Flash file.

Does anyone know how I would replace the code in the Flash file to get the domainname.com/flashtextfile instead of it currently reading only flashtextfile? I have to use the storage locker url for it to function correctly on homes.com, but do not know how to change the Flash file to go get the text file. If I can find out how to change it from going to get mqftc.txt right now to the storage locker url of domainname.com/mqftc.txt I believe it will work correctly.

Does anyone know how to change where the Flash file looks for the accompanying txt file?

Dave
Reply With Quote
  #2 (permalink)  
Old 08-01-06, 11:12 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
could you post your code plz. this will make it a little easier for me.

Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 08-01-06, 12:18 PM
jdsmith8 jdsmith8 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
UnrealEd - I do not know how to get the Flash code

Hi Ed,

I upload the Flash into Flash MX and then change out images. I do not know how to get the Flash code. How do I get the code or see where it is pulling the txt file that goes with the Flash file?

Dave
Reply With Quote
  #4 (permalink)  
Old 08-02-06, 05:28 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
there should be something like this in your code:
Code:
loadVariables('filename.extension', target_mc, "GET");
this will load the txt file into a movieclip called 'target_mc'

there're off course several ways to read the txt file, but this is the easiest one. if you don't find it, you'd better google for 'read txt into flash' or something familiar. you'll find the code easily.

Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #5 (permalink)  
Old 08-02-06, 10:12 AM
jdsmith8 jdsmith8 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Thanks Ed - it worked!

Hey man,

Thanks so much! I changed the file in the Flash under the Load Variables like you suggested and it linked up with no problems. You are awesome.

Dave
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Your HelP! Loading Multiple External Text into Multiple Dynamic Text Fields Flash_Boi Flash & ActionScript 2 03-30-06 03:27 PM
File Managment System - Similiar to Newgrounds.com Scientist Script Requests 4 03-26-06 09:15 PM
Excel document containing records, need to save as a text file to upload to mysql bearslife PHP 1 06-05-04 03:24 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM


All times are GMT -5. The time now is 06:23 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.