.txt or .as

This is a discussion on .txt or .as within the Macromedia Flash forums in Adobe Tools category; Hello, I have a question that has been following me and I have not found an answer, so I dare to ask here: I can put code AS2 or AS3 in a TXT file or AS file with external route on a server? I hope I can say is if possible, thanks...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-19-2008, 01:57 PM
dr_cypher
Guest
 
Default .txt or .as

Hello, I have a question that has been following me and I have not found an
answer, so I dare to ask here: I can put code AS2 or AS3 in a TXT file or AS
file with external route on a server?

I hope I can say is if possible, thanks

Reply With Quote
  #2  
Old 05-19-2008, 02:05 PM
clbeech
Guest
 
Default Re: .txt or .as

once a swf file is compiled there is no need for the code to be mounted on your server as it is contained within the file. the only file needed online is the swf file - not the fla or as files.
Reply With Quote
  #3  
Old 05-19-2008, 03:09 PM
dr_cypher
Guest
 
Default Re: .txt or .as


But if I want to handle xml files if I add something to an xml as I call it from flash to appear in the swf?

thanks
Reply With Quote
  #4  
Old 05-19-2008, 03:14 PM
clbeech
Guest
 
Default Re: .txt or .as

nope - you can load an xml file into Flash using the LoadVars class - then iterate through the return and assign values as needed.
Reply With Quote
  #5  
Old 05-19-2008, 03:24 PM
DMennenoh **AdobeCommunityExpert**
Guest
 
Default Re: .txt or .as

Why would you use LoadVars to load XML? You'd _normally_ want to use the XML
class...


--
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Reply With Quote
  #6  
Old 05-19-2008, 03:42 PM
clbeech
Guest
 
Default Re: .txt or .as

DOH!!! yes of course Dave - wasn't thinking LOL!!!
Reply With Quote
  #7  
Old 05-19-2008, 04:43 PM
dr_cypher
Guest
 
Default Re: .txt or .as


None of the 2 I mean if for example I have a exe of swf and I would add substance to this swf through xml there is any way to add to that xml is a new frame swf?
Reply With Quote
  #8  
Old 05-19-2008, 05:24 PM
dr_cypher
Guest
 
Default Re: .txt or .as

I ask that can be done with flash media server?, want to change content of a swf exe or through xml, adding, deleting content ... is this possible?

thanks to the 2 q I have answered
Reply With Quote
  #9  
Old 05-19-2008, 05:48 PM
clbeech
Guest
 
Default Re: .txt or .as

yes you certainly can if you set things up correctly (like use the xml class) -
you can set up methods to load new content when called, from any file, 'sift'
through the xml data and place it into dynamic fields that you set up either in
the IDE or with script. you should do some reading in the Flash Help
manual>ActionScript>ActionScript language reference>ActionScript classes>xml -
as well as the many many other features and tutorials that are well documented
in the information there, to start learning a bit about these issues and how to
handle them.

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:46 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.