|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Any Ideas on this?
Don't know if this should be java php flash or another language basically i've written a sample of what i want in flash and BASIC language (and written what i dont know how to do) but I can't get it to work in flash (tried the php flash) I want to have a user input text in a text field like "2008-6-30_today" ($file below) i then want that to create 5 xml files with that name each a different name in front and extension at end like "/video/2008-6-30_today.xml" inside that file i have xml script i'm putting in in which that same file name will locate other files.
Code:
----display page-----
Name: [input field called $file]
submit button [hit]
---hit state----
on (release) {
create file ("video/$file.xml");
create file ("photo/$file.xml");
create file ("text/$file.xml");
create file ("podcast/$file.xml");
create file ("speech/$file.xml");
in "video/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "photo/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "text/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "podcast/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "speech/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
}
on(keyPress "<Enter>") {
create file ("video/$file.xml");
create file ("photo/$file.xml");
create file ("text/$file.xml");
create file ("podcast/$file.xml");
create file ("speech/$file.xml");
in "video/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "photo/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "text/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "podcast/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "speech/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
}
Thanks for any help you have |
|
#2
|
|||
|
|||
|
if you put all of your code in a [.code] [./code] block it'll be much easier for people to read on the forum (Just remove the dots of course)
Code:
Line 1 Line 2 Line 3 Insufferably long lin 4 which would very easily scrolls off the edge of the page and get pushed to the next line by accident if it weren't in a code box Line 4 Like that. I'm afraid I can't help solve your problem but I think more people will be willing to read it if you use the code box Also, please be very specific with your question. Clarity is important (punctuation helps). Unfortunately after reading your question through twice I'm really not sure what you're trying to do :\Last edited by KuraofTyren : June 30th, 2008 at 04:12 PM. |
|
#3
|
|||
|
|||
|
ok put all that in the code. basically what i want is to make 5 pages all xml each with the same file name ($file) with a different directory listing in front of each. $file is suppose to be inputed by the user. That then writes the xml file names and also adds xml inside it. The xml inside is always the same except for the media file names which are the same as $file.
Say this is the video page heres what i want it to do Export this Code:
videos/$file.xml --> As a file -->in the file <p>Watch this video now new <embed src="$file.swf"></emb></p> but also four other pages each with different mark ups for photos to display,speech, and updates. All of which are created from the one input field hitting the button or the enter key. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Any Ideas on this? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|