PDA

View Full Version : Floating Stand-alone window? How to do it???


kristoff
08-11-2007, 10:18 AM
Hi, I was just wondering if it is possible to have a swf file play as a stand alone window when opened? I have used the fscommands before to open flash as an exe file in fullscreen, however this uses a background and takes up the whole screen. is there a way to have it so (say a flash window of 800x600px) that the flash window sits on the screen but not maximised to screen size?

Also, is there a code for autoplay (say once you put the file onto a CD and want it to automatically open when the CD is inserted)?

atomic
08-11-2007, 02:37 PM
1- Think you need 3rd party software (Zinc, FlashJester & the like...) to do that.

2-
http://usuarios.lycos.es/didinomade/ProjectorsBurningFAQ.htm
http://www.phdcc.com/shellrun/autorun.htm
http://www.were-here.com/content/templates/articles.asp?articleid=140&zoneid=7
http://www.roxio.com/en/products/toast/index.jhtml

devonair
08-11-2007, 03:48 PM
or use AIR http://labs.adobe.com/technologies/air/

majicassassin
08-11-2007, 03:50 PM
Autoplay is just a file ii think .ini) that you place on the cd that will be read and tell the computer what to run. If you search on google there'll be plenty of examples, but yeah, that doesn't require anything fancy.

divinus
10-18-2007, 11:12 AM
So, my question in title...
Example :

package {
import flash.display.Sprite;
import mdm.Application;

public class testas3 extends Sprite {
public function testas3() {
trace("ok");
mdm.Application.init( this, onInit );
}

public function onInit() {
mdm.Dialogs.prompt( "Hello from basic AS3 app!" );
}
}
}

not work... why? :)
errors:

1120: Access of undefined property Application. mdm.Application.init( this, onInit );

1120: Access of undefined property mdm. mdm.Dialogs.prompt( "Hello from basic AS3 app!" );

1172: Definition mdm:Application could not be found. import mdm.Application;

i know, i must use the file mdm.swc, but i don't know how... :)

lancelot_dab
11-22-2007, 11:15 PM
Visit this link, i suppose u must register
http://www.mdmforum.com/forum/index.php?&showtopic=21214&hl=Adobe\Adobe&Flash&CS3\en\Configuration\Components

U have to copy the "mdm.swc" file to the folder
C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components

then when u open flash cs3 u will find at components (ctrl+F7) the new item
"mdm script", Drag this component into the Library. Now you can use mdm Script as normal

import mdm.*
mdm.Application.init(this)
button.addEventListener(MouseEvent.CLICK, openDialog)
function openDialog(event:MouseEvent):void {
mdm.Dialogs.prompt("The SWC is finally here!")
}

Ing Daniel Barragan C.
Parquesoft - Argus Smart
http://danielbcr.blogspot.com