A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: on a mac? i need your help! _url string question

  1. #1
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807

    on a mac? i need your help! _url string question

    i would really appreciate it if you are on a mac, to give me the following info:

    make a new .fla (in flash 5 preferencially as i am using flash 5 to develop at the moment...but mx will do if you don't have it...just let me know which you use)

    make a dynamic text box. give it the variable "temp" (or whatever) and make sure you allow selectability

    actionscript:
    temp = _url;

    now save your .fla to your desktop

    make a .swf so there's a .swf there along side it

    then go and publish a webpage with your new .swf embedded, so now you have 3 files on your desktop (html, swf, fla).

    this is the info i need:
    when you run the .swf by itself, copy and paste the entire contents of the dynamic text box. call this *swf*
    when you run the .html file, copy and paste the entire contents of the dynamic text box. call this *html*

    what'd i'd like to know is:

    *swf* = ___________________________
    *html* = ______________________________

    thanks so much in advance!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    what you get is the path+url of the swf.
    What is your question? what's the url of a MAC desktop?
    gparis

  3. #3
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807
    yes, i want to know the _url string passed for a mac under the 2 different situations. for the PC, the _url string is different under each one. If you know, I'd also really appreciate knowing what the _url would come out as if it were played from a CD under both situations (swf and html) as well. thanks!

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    under both situations the _url is the same for the standalone swf or the html, as, as i said, it's the url of the swf that get displayed in the dyn. textfield.
    gparis

  5. #5
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807
    ok, maybe i'm not being clear.

    what _url string comes out on a PC:

    on flash:
    file:///C|/Documents%20and%20Settings/Owner/Desktop/website%20v2.0/site/early.swf

    on IE:
    file://C:\Documents and Settings\Owner\Desktop\website v2.0\site\early.swf

    you can see how these are slightly different. I'd like to know exactly how they come out on a mac, because i know it's different than above.

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    there are no backslashes on MAC, it will be more something like:
    file:///HDname/Desktop%20Folder/yourclip.swf
    The name of the HD can vary..
    gparis

  7. #7
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807
    ok, that's good info to know. thanks. but what i would really appreciate is the full paths from someone who has actually gone through what i've asked. i'm not so interested in the path, but the syntax within it (i'm using some string methods to parse out what i want). thanks.

  8. #8
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    my example is exactly what you would get on a MAC desktop. swf & html
    gparis

  9. #9
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807
    you say what you "would" get. can someone please actually do it and tell me. again, thanks gparis, it's not that i don't trust you. it's just that this is important to my project and i need some verification.

  10. #10
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    on the contrary, I think that you don't trust me
    so, let me rephrase that:
    this is exactly what you get on a MAC desktop. better?
    gparis

  11. #11
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807
    okay okay i trust you . thanks for your time!

    just looking at your site now. looks great! i'm interested in your flash db. sounds interesting. do you offer this to your clients for their own site maintenance? not that you were asking, but there seems to be some double text on your bottom nav when i click on your horse running example.

  12. #12
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    thanks, doc'
    gparis

  13. #13
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    ...not anymore
    gparis

  14. #14
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807

    je regrete mais.....

    one more thing. how does the _url string look from the web?

    http:///www......

    or

    http://www.....

    with or without %20's and other html encoded stuff?

  15. #15
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141

    pas de problème

    http://

    the 3 slahes are only after "file:///" when viewed form a computer.

    edit: and without %20, unless there is a space in your swf's name.. not recommended
    gparis

  16. #16
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    if you are interested in the same thing on linux ... here you go:

    viewing swf in the browser always comes up with a nice file:///... name, like
    file:///cdrom/folder1/test.swf
    file:///home/user/pheck/test.swf
    file:///tmp/test.swf

    It is very typical to have /tmp as scratch directory on the harddisk, /home/name, /home/user/name or /home/users/name for a personal directory, and descriptive names like /cdrom, /cdrecorder, /media/cdrom for the cd drive
    It is also possible to create symlinks (like shortcuts on windows) to hide the actual location, so /tmp/test.swf - which certainly looks like a disk file - could as well be shortcut to the cdrom drive.
    To make it the other way round (have a disk file look like a cdrom), you would need admin access

    The flash player messes up all of these names into
    file:///file|%2F/cdrom%2Ftest,swf etc.

    Musicman

  17. #17
    FK M.D. pheck's Avatar
    Join Date
    Jul 2001
    Location
    MN
    Posts
    807
    file:///file|%2F/cdrom%2Ftest,swf etc.
    yuck!

    thanks Musicman

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center