Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 19th, 2004, 04:50 PM
s200 s200 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 39 s200 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 8 sec
Reputation Power: 8
Can Flash MX parse URL's

Does anyone know if flash has the ability to 'grab' a web page and then parse the file for output in a flash file ? I know flash can used to call upon say php files and text files

Thanks

Reply With Quote
  #2  
Old February 21st, 2004, 05:47 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Hi, never done anything like that before. There might be a problem with loading data from another domain...just a mild guess there though...ok well found this in the mx docs:
Quote:
myMovieClip.loadVariables("url", variables)

Parameters

url The absolute or relative URL for the external file that contains the variables to be loaded. The host for the URL must be in the same subdomain as the movie clip.


I just tried it out with:

_root.loadVariables("index.html");

It does read in the entire html file. It does it as one long string but you can definately parse that in flash to read anything you might need. It gives it a funny variable name though and I'm not sure how you would use it. In my test it was:

<HEAD>||<HEAD>||<meta http-equiv

I'm not sure if flash would allow you to use that as a value ref...

ok well I just worked out how to get a useable handle.

On the first line of your html file use:

<!-- &htmlContent= -->

Then use the previous loadVariables statement. If you debug test it you will see a variable in your _root object called htmlContent. This will start with "-->" which is the end of the html comment. Anyway if you were parsing this string it wouldn't matter that these 3 chars where there..right?!.

OK so in short the answer is yes, flash can read and parse a html file (in the same domain).
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Can Flash MX parse URL's


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT