|
-
FK M.D.
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!
-
what you get is the path+url of the swf.
What is your question? what's the url of a MAC desktop?
gparis
-
FK M.D.
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!
-
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
-
FK M.D.
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.
-
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
-
FK M.D.
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.
-
my example is exactly what you would get on a MAC desktop. swf & html
gparis
-
FK M.D.
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.
-
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
-
FK M.D.
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.
-
thanks, doc' 
gparis
-
...not anymore 
gparis
-
FK M.D.
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?
-
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
-
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
-
FK M.D.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|