Movie path in FireFox and Mozilla

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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. ...
    3. 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...
    4. 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')...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139