Groups | Blog | Home
all groups > flash actionscript > september 2007 >

flash actionscript : Passing Data out of an SWF


chartoonz
9/20/2007 11:20:11 PM
I have created a web page with a flash movie that gets its data (text only)
from an external text document.

I have two questions:

1 in doing my load var I used absolute linking becuase I couldn't get relative
links to work. Is there a way to get relative links?

2. I want to create an admin page for the client that allows him to add to the
text doc via a dynamic text movie. Can I
a) get the content of the text doc
b) store that in a variable,
c) take his input and put it in a second variable
d) add the second variable to the first--thus adding it to the list
e) then save all the info as the text doc, overwriting it?
If yes, what would the action script look like? I am out of my depth.

kglad
9/21/2007 1:25:47 AM
1. relative links work when the path is correct.
chartoonz
9/21/2007 2:05:36 AM
kglad
9/21/2007 2:08:38 AM
chartoonz
9/23/2007 3:51:57 PM
Right, sorry should be a bit more specific....

I need to know more about incorporating a server-side program (php, perl, cf
etc) to write to a server file.

Any good online sources that I can learn from and quickly?

Thanks.
kglad
9/23/2007 10:19:03 PM
i can't even determine whether you are using as2 or as3 but if it's as2, use
loadvars to call your server-side program. if it's as3, use the urlloader
calss .

you can use google to search for help with a server-side program once you
determine which language suits your situation best.
AddThis Social Bookmark Button