Author Topic: Freespace Desktop  (Read 29008 times)

0 Members and 1 Guest are viewing this topic.

Offline Stealth

  • Braiiins...
  • 211
why did i miss all these replies?

i'm going to try everything you've said as soon as i get home... i'll let you know the results... i don't know if FSCOMMAND would work, but i'll try it

 

Offline Stealth

  • Braiiins...
  • 211
Quote
Originally posted by DTP
all you need to do is to use a java script with on mouse over properties and actions. i have it somewhere.

the rest is putting in a background, and place the gifs so it looks right, which may be the hard part.

and then make an html document and point the active desktop, towards it.

pretty sure i could do it, if i set my mind to it.

edit 4

that Vb code "code" dont work properly

i tried posting some java aswell assome plain html, and it parsed it and did all sort of screwy things.

test:ok i know the following is not PHP so ignore it, but it dont parses IMG tags.so the following is part HTML and part java.

{CODE}

Note the JPG files can be replaced by an GIF files so that you have one for opening doors, and one for closing doors
just make them a single time loop. and it will play GIF1 when you move the mouse over, and GIF2 when you remove the mouse from the picture area.

enclose it in "a href ="  tags and you have the normal html links.
that would take you somewhere when you click it.

note the java script is optional, its just a handy thing for making sure that people get all images displayed at once sine they already have the pics cached in "temporary internet files" directory.


that might work alright but the only problem is what if the user moves his mouse over the door, and halfway through it opening he moves the mouse off... then it "jumps" to the full open position and then closes... it doesn't look right.

i came across that same problem in flash, and figured out a script to fix that by calculating totalframes - currentframes, etc.  the ony thing i need is how to get to link to files :)

i could also do it in Java, but then i'd have to do each GIF as an individual JPEG... (like 32 JPEGs per animation... which is 64 for each "open/close") so that you can make the opening and closing of the doors smooth.

I've spent hours and hours and hours on this thing, and it's 99.99999999999% completed in Flash, i just need how to link to files, that's the only obstacle remaining... i'll try what you said when i get home
« Last Edit: November 19, 2002, 01:21:46 pm by 594 »

 

Offline Stealth

  • Braiiins...
  • 211
eck... i can't get the FS COMMAND to work... didn't think i'd be able to.  i've known you can use a FS COMMAND "exec" command to open a program sucessfully... even to open a folder... but you can only have it do it when it's opening the SWF file through Flash standalone player.. .if it opens through an HTML file or through a browser then it won't work.

DTP... everything you're telling me has nothing to do with what i'm doing in Flash, does it?  you're talking about Javascript and all that, arne't you?

 

Offline DTP

  • ImPortant Coder
  • 28
    • http://www.c4-group.dk
Quote
Originally posted by Stealth
DTP... everything you're telling me has nothing to do with what i'm doing in Flash, does it?  you're talking about Javascript and all that, arne't you?


well actually im talking about a two things

ActiveX & javascript, but you dont need javascript to do what i proposed.

now i dont have a whole lot of experience when it comes to "reg-ing" activeX objects, i did make a fast test document that does not work however.

But i think thats because i got lazy and wrote a .reg file to take care of all the "reg-ing". That test file activated my anti-virus prog. html file since i was embedding for a VBS file activates Nortons script-blocking

and finally, im not even sure wscript.exe can be activated as an Active x object. wscript would miss a way to be shown in a browser, even when it should be hidden. something i think a object file or better, DLL file would take care of, as in the case of the mediaplayer.
VBB member; reg aug 1999; total posts 600.
War is a lion, on whos back you fall, never to get up.
Think big. Invade Space.

 

Offline Stealth

  • Braiiins...
  • 211
i have absolutely no experience with ActiveX :( but if it works i'd be willing to use it of course ;) :D :) :cool:

see, it's not that i don't know how to link to files correctly... it's i don't know how to link to files correctly in Flash :p

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Quote
Originally posted by Stealth
eck... i can't get the FS COMMAND to work... didn't think i'd be able to.  i've known you can use a FS COMMAND "exec" command to open a program sucessfully... even to open a folder... but you can only have it do it when it's opening the SWF file through Flash standalone player.. .if it opens through an HTML file or through a browser then it won't work.


I thought that might be a problem but wasn't sure. There may be a work around though. If you can get a JavaScript function that can run a program you may be able to call that function using FS Command.

Quote

Usage 2: To use the fscommand action to send a message to a scripting language such as JavaScript in a Web browser, you can pass any two parameters in the command and parameters parameters. These parameters can be strings or expressions and are used in a JavaScript function that "catches," or handles, the fscommand action.

In a Web browser, the fscommand action calls the JavaScript function moviename_DoFScommand in the HTML page containing the Flash movie. The moviename is the name of the Flash Player as assigned by the NAME attribute of the EMBED tag or the ID property of the OBJECT tag. If you assign the Flash Player the name myMovie , the JavaScript function called is myMovie_DoFScommand.
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Stealth

  • Braiiins...
  • 211
Quote
Originally posted by EdrickV


I thought that might be a problem but wasn't sure. There may be a work around though. If you can get a JavaScript function that can run a program you may be able to call that function using FS Command.

 


that's not a problem... i discovered a few days ago, that i can get Flash's "FS COMMAND" 'exec' function to open a batch file that opens a program... this works perfectly, and it's good because if the user wants to change what the file links to all he/she does is edit the batch file using a text editor.

the only problem is that this FS COMMAND thing that calls the batch file only works when it's opened with a Flash Standalone player... when you use the plugin in your browser, or open it through a HTML file, it doesn't recognize the FS command.  also, i'm hoping someone will figure out how to make an SWF file a background without using a HTML document.

either that, or i i have to figure out how to make an HTML document (used as a background (desktop) on a computer) to recognize FS COMMANDs...

it's one or the other

one of those, and it's made.

 

Offline Stealth

  • Braiiins...
  • 211
fux0r this is killing me!

one step forward... two steps back

out of the frying pan into the fire

i solve one problem, and two more pop up

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
I know you can't use exec in a browser based file. The FSCommand itself can be used, but it is used differently. You use it to pass data to a JavaScript function in the HTML file that will look at the data and decide what to do. The Javascript function would have to actually run the program. In this case, you could have it pass something like "Open" for the "command" and for the "arguments" you could send something like "Elevator Button" and the JavaScript function could work something like this:

Code: [Select]

if(command == "Open")
     {
      if(arguments == "Elevator Button")
            run("notepad.exe");
      if(arguments == "Tech Room Button"
            run("wordpad.exe");
     }


The trick is, I'm not exactly sure how to use JavaScript to run a program from a HTML document. (In other words, I'm not sure what JavaScript's equivilent to FSCommand "exec" "file" is.)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Stealth

  • Braiiins...
  • 211
Quote
Originally posted by EdrickV
I'm not exactly sure how to use JavaScript to run a program from a HTML document. (In other words, I'm not sure what JavaScript's equivilent to FSCommand "exec" "file" is.)


that's my problem too...

think you could help me research it?  cause i don't know javascript

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
I couldn't find anything in JavaScript to do what we want. The problem is that we are, essentially, fighting IE's security stuff. It's designed specifically to not do what we want. Maybe some ActiveDesktop code might work, but I'm not sure and have no clue how. Woulda been easier if you'd made it for ObjectDesktop, though that poses it's own set of problems. (Like not being able to jump to a specific animation frame.)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Stealth

  • Braiiins...
  • 211
is it possible to make an SWF as a background?  just the SWF... this might be possible if the user has a Flash standalone player

 

Offline Stealth

  • Braiiins...
  • 211
found a program...
it's called "Flash Desktop 2002" (i think)

... it allows you to make SWF files into Desktop files.

i hope it works...

i also figured out that an HTML file with Flash in it (or a plain SWF) cannot be made into a desktop... but this program may work

i'll test it when i get home ;)
let you know

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
That program doesn't actually "convert" a flash file into anything, it makes Active Desktop HTML code for it. And on Me at least you can seemingly do almost the same thing without it, I made a simple HTML file to show a .swf file in it and setting it as wallpaper works. Though the buttons don't do anything and my copy doesn't have sound. The main difference is you get the full right click menu with play, loop, zoom in/out, quality, etc.
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Stealth

  • Braiiins...
  • 211
It's possible to disable the right click menu in an SWF file (zoom out, etc.) with actionscript... very easy in fact.

see... the only problem is how to make buttons in an SWF embedded in an HTML file work... i am clueless

 

Offline Stealth

  • Braiiins...
  • 211
i'm stumpted.

i think this project is over... i don't think there's any way to get this to work (in Flash anyhow... i'll try Java perhaps)

i guess that's why there's so few (any?) Flash desktops out there that open files when you click buttons :(

 
i've got an idea, it's ugly,messy, but it'll work. you simply create an invisible icon above the clickable area, perhaps that`s possible with a script. you simply make the icon by a script and link it as a shortcut to the right programme.
dunno if it wil work, but it will!
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Stealth

  • Braiiins...
  • 211
Hey kasper, thanks for trying to help :p :cool:

i thought of that... make a HTML hyperlink in the HTML file, but i don't know if it's possible to make a link OVER a Flash movie... it might be...

also then we're back to the problem of instead of opening the program it asks if you want to download it :p

nonetheless, i'll look into this.

any more suggestions? :)

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Remember my batch file suggestion?  Have you tried that?

That way, yes, you have to "download" the batch file from your hard drive anyway, but you only need to do it once, and once you do it should run every single other program automatically (assuming you pass it the right parameters).

 
ididn't mean in HTM but just on the desktop itself. just an shortcut without an icon or name. dunno if it isposible but it`s pretty simple. you just can't organise your desktop icons anymore, cause you'll lose the icon (since it`s invisible) perhpas if you use a script on startup wich creates and places those icons, it will work, just a sugestion
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm