homepage Welcome to WebmasterWorld Guest from 50.17.66.61
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Pulling URL for buttons from text file.
btrammell



 
Msg#: 4070948 posted 10:22 am on Jan 30, 2010 (gmt 0)

Good Morning from NY!

I am working on a new feature for my website. The site utilizes changing content. I want my users to be able to click a flash based link and have the button bring them to a URL that is defined in a text file. I know that XML works wonders in this situation but unfortunately I am not able to use it for this project because it is not supported.

Does anyone know how I can specify a link or button as a variable?

And I love your forum. It's a great community. I've used it many times but never joined until just now. It's been a long time in the making.

I am also interested in adding a photo where the URL can be a variable too, but the buttons are the most important. Thank you again.

 

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4070948 posted 7:18 pm on Jan 30, 2010 (gmt 0)

Welcome aboard btrammell!

What makes you say XML is unsupported? I remember using it since FlashMX, and pretty sure Flash supported it before that . . . I cannot imagine why it wouldn't work as if it's something to do with the server configuration, it's not the server that's parsing the XML, it's Flash.

Which prompts the next question, what is your development environment? The answers may have slight variations depending on Flash version.

Does anyone know how I can specify a link or button as a variable?
I am also interested in adding a photo where the URL can be a variable too

It can be cobbled together using a combination of flashVars and getURL, but I would hit the XML import methods for both of these. You craft an XML file that holds the info in various nodes, then dump the data into arrays within Flash when the XML is loaded. A typical example for both these instances is a Flash slide show with captions.

Then you go back and build an admin interface that actually writes the XML file so the client can configure it and change it at will. Then you're a star. :-)

I looked up an old thread about building a Flash slide show using XML import methods. For your perusal, look at post #2 and see how easy it can be [webmasterworld.com].

btrammell



 
Msg#: 4070948 posted 8:00 pm on Jan 30, 2010 (gmt 0)

XML is not possible because the file that writes the variable will not accept XML files. I need to do it via Text file. I know it's possible, I just need a push in the correct direction. Once I get the button, i'm sure I can figure out the picture one too.

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4070948 posted 3:22 am on Jan 31, 2010 (gmt 0)

"File that writes the variable" do you mean a PHP script? ASP script?

XML files are plain text files. You can import plain text files into flash, it's just a lot more work. The details are a bit behind me now, but search Flash help for "external data" will turn up a lot of helpful pages.

btrammell



 
Msg#: 4070948 posted 12:18 pm on Jan 31, 2010 (gmt 0)

i am fine with doing the extra work. A program writes the text file and currently does not support XML output. I have used up the resources of google, yahoo and other forums and got no where. This is actually my last hope for finding a way to do this. Like I said I am willing to do what it takes to get this working.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved