Flash
- Started
- Last post
- 18 Responses
- puck
Can I use a script (like ASP/PHP) to call in a constantly changing url (events/news) into a text field within a Flash SWF movie?
What keywords/where should I chase down in research as well?
- machito0
If it is PHP then the script has to be sending a variable that flash is then told to get and then display.
It is doable but it takes a bit of testing to get right. I would go to macromedia and go through their flash info to get more details.
- SteveJobs0
loadVizzles, err... Vars
- mirola0
it's a browser nightmare.
- mirola0
actually, no it's not sorry, i though you were describing something else. listen to mr. jobs.
as you were.
- function820
im not sure if this is exactly what you wanted, but the concept could probably be adapted to work
http://lab.uncredited.net/newsto…
change the text after ?image= and it will change in flash, from there you can make the variable do anything in flash.
it also works using javascript rather than php, but its a bit more complex and wont work if javascript is off
- gun0
what type of file is the source of the everchanging link?
- function820
my apologies, i just tested this in firefox and it doesn't seem to work
- function820
php w/ flash
- function820
ok, works in firefox now, minor code issue was all
- gun0
if you are already using php and pulling the link from somewhere the easiest thing to do would be to add a variable to the end of the swf name inside your swf's holder page. example:
myswfname.swf?myVarName=
so then the variable is accessible via actionscript by accessing the var name.
youd assign the textfield or link or whatever in flash like this:
myTextFieldName.text=myVarName;you bypass js, browser incomparability issues this way. however,if you have a source that contains that URL that is in plain text, one can also load that source with just actionscript without php.
- gun0
ha it parsed the php so it should look like this:
myswfname.swf?myVarName=
- gun0
nevermind. this board parses it so i can email it if you want.
- function820
if you look at the url i posted and source, thats what it does
however im not sure if this is what he was looking for
- gun0
word.
- puck0
Sorry guys, left the studio, thanks alot to all that helped, if you are still around. I am going to try it out tomorrow.
I'm pretty sure that if I just getUrl into an imput text field, it should work, but I want the user to be able to imput into that field and interact with other users.
Just like NT, just in flash.
Thanks
- function820
ah i see,
this doesnt seem like its what you're looking for then..
do you want to modify a database/message board and put a flash front end on it?
- puck0
That is almost exactly what I want. I am new to alot of the scripting, not to Flash so I am still even learning what to ask for. That causes a problem when I am filtering through Flashkit, macromedia, etc.
Thus, ANY help is useful.
I want to build the whole thing in Flash w multilayered movie clips, then once the user navigates to the correct _mc, (the wanted forum catigory), they can read and post.
- function820
well it cant be all flash. the front end can, but the backend would be similar to any other form