Ask a Question related to Macromedia Director Basics, Design and Development.
-
bolo972 #1
Movie path in FireFox and Mozilla
hi all
i try this code
lien ="file:///"&the moviepath&"commande.htm?commande.xml"
trace(lien)
gotoNetPage lien
but in mozilla i have got a link with ascii code
file:///D:%5CBolo%5Ccreation%5CLa%5Ccd%5Ccommande.htm?comm ande.xml
wihy ?
thanks
merci
bolo972 Guest
-
Contribute 3.1 and Mozilla Firefox???
I just purchased and setup Contribute on my Mac (I have OSX 10.4x). I HATE Microsoft Explorer and want to use Mozilla Firefox as my browser. Try as... -
Mozilla-mplayer in Firefox
I have installed gxine on Ubuntu. After starting gxine I pressed OK once too many and now gxine is the default player in KDE, Gnome and Mozilla. ... -
Webservices working in IE but not Mozilla/Firefox
I am connecting to a web service where the SOAP toolkit in use is JBoss. Everything works fine as long as the SWF is displayed in IE, but in Firefox... -
Javascript in Mozilla Firefox
Does anyone know how to make this code work in Mozilla? function toggleT(_w,_h) { if (document.all) { // is IE if (_h=='s')... -
Flash not working with Mozilla Firefox 1.0.3
Techno-ignorant here, using Windows XP SP2, and I recently upgraded my browser from Mozilla Firefox 1.0.2, which displayed Flash perfectly, to FF... -
JB #2
Re: Movie path in FireFox and Mozilla
The moviepath returns backslash delimiters which might be wrong for some
browsers, try using string manipulation to swap delimiters.
Here's some untested code (check offset() parameter order)
lien ="file:///"&the moviepath&"commande.htm?commande.xml"
lien = fowardSlash(lien)
on lien someString
repeat while true
slashChar = offset("\", lien)
if slashChar then lien.char[slashChar] = "/"
else
exit repeat
end if
end repeat
return lien
end
JB Guest
-
bolo972 #3
Re: Movie path in FireFox and Mozilla
like that,
on ShowCommande me, passed_data
texte = string(passed_data)
-- creation du ficher
objFileio = new xtra("fileio")
filePath = the moviePath & "commande.xml" --chemin de mon fichier
objFileio.openFile(filePath,0) -- ouvre le fichier en mode lecture
objFileio.delete() -- d?truit fichier d?ja existant
objFileio.createFile(filePath) -- creer un fichier commande.xml
objFileio.openFile(filePath,2) -- ouvre le fichier en mode ?criture
objFileio.writeString(texte)-- ?crit dans le fichier
objFileio.closeFile() -- ferme le fichier
-- ouvre la page
lien ="file:///"&the moviepath&"commande.xml"
gotoNetPage fowardSlash(lien)
end
on lien someString
repeat while true
slashChar = offset("\", lien)
if slashChar then lien.char[slashChar] = "/"
else
exit repeat
end if
end repeat
return lien
end
bolo972 Guest



Reply With Quote

