PDA

Click to See Complete Forum and Search --> : controlling flash on cd



weepetra
08-17-2000, 10:10 AM
Hi,
Can anyone help a wee scots lassie with a problem? I'm trying to make a CD interface with flash and want to know how to do the following;
1) I have the .exe stuff together to allow autoplay but I don't know how to allow a user to close the cd.
2) As I'm using bitmaps in my flash stuff, I want to be able to control the size of the movie. Moreover, I want the movie to appear in the absolute middle of the screen when playing (ie height and width). Is there any way to control this?
3) Is there an easy way to allow the playing of actual video on the cd?
Thanks all.
weepetra

Hadron
08-17-2000, 11:56 AM
The best method I can think of is to use the Flash active X control and write your application in C or VB. Or in some other language that supports the flash ocx.

The Master
08-17-2000, 02:44 PM
I have the .exe stuff together to allow autoplay but I don't know how to allow a user to close the cd.

If I'm understanding your right you want to open/close the cd door or just turn off the executable?

Closing flash is really easy to do on your button use this as the Action.. FS Command Quit
If you want to open/close the cdrom that's going to require a tad of programming (I could probably whip up a program if you like)


As I'm using bitmaps in my flash stuff, I want to be able to control the size of the movie. Moreover, I want the movie to appear in the absolute middle of the screen when playing (ie height and width). Is there any way to control this?

Control it? not really without going into programming.. (though flash 5 is supposed to have some interesting feature effects with IE5)

But what you could do persay, is load .swf files for scale or open different variations of your program with Allowscale turned on and then turned off..

Allowscale basically means what ever size you make it is what they get.. when you turn it to true.. it fills the screen..

Basically Example1.exe takes up full screen with Allowscale = true upon completion of animation Example1.exe unloads and starts Example2.exe with full screen and Allowscale = false..


Is there an easy way to allow the playing of actual video on the cd?

http://www.***********.com has a program specifically designed to do this.. though I am wary of it's ability (I haven't actually looked at it though)

My program will open a movie in it's default application.. basically it's just like double clicking on a .mov and having it open in quicktime or media player whichever one the .mov is assigned too..
http://theemaster.netfirms.com/defaultapp.zip

There's also a program that uses the same method as mine at http://www.flashgeek.com/ unforntunatly in truth it's bloatware at near 1.3 mb (my current Beta version is a bit bloaty but it would only take 1 second or less to load on a 2x cdrom)

Note: For Pope.. I don't consider Director to be a alternitive due to it's inflated cost nor .bat's cause there ugly.. :)
[Edited by The Master on 08-17-2000 at 03:41 PM]

weepetra
08-17-2000, 08:16 PM
Hi,
Thanks to both. The Master was particularly helpful.
The only thing is, I'm still pretty new to all this and I didn't really understand the second part of your advice about controlling the position of the movie.
To let you know, I'm trying to put together a CD made in Flash which can let people play clips of me and my friends snowboarding. Also, I wanted to put on some game demos and maybe some music files. It's just going to be for friends just now but who knows where it might end up. I'd also like to link to some html pages from the Cd (both contained on the CD and remotely ie url's).
I don't know if you guys can help but I really want to learn.

The Master
08-18-2000, 12:43 AM
Here I uploaded a example to show you what I'm talking about.. http://www.windowshelp.net/example.zip

At this page is a example of loading a .swf into a .swf file.. http://www.flashkit.com/movies/Masking/Scalable-Shawn_Ry-52/index.shtml

turoczy
08-18-2000, 03:47 AM
Hey, my "little" VB is hackware, not bloatware! ;)

It used be smaller until I threw in that vb6 dll. Now, it's a rather fatty-boombalatty download. Anyway around that The Master? I don't claim to be a VB coder, just a self-admitted hack.

Take care,
Rick

The Master
08-18-2000, 12:47 PM
Your Hackware is very good for what it does.. unfortunately I was just pointing out it's potential flaws.. As I would point out the flaws in my own program..

A. It's bloatware (Beta 2 is)

It was good that you through in that .dll file cause that caused me to do two things..
A. Recommend your program (cause now it's guaranteed to run on any system)
B. Slightly re-think my opinion of VB (still I'll never be converted but would like to know how you link to the .dll)

Hadron
08-18-2000, 07:58 PM
"but would like to know how you link to the .dll"

Myself_Included

The Master
08-18-2000, 08:05 PM
I have a sneaky suspicion that all you may have to do is place it in the same directory with the app but I haven't tested it yet.. :)

The Master
08-18-2000, 08:23 PM
Yep that was it.. have a look..
http://www.windowshelp.net/secret.gif

Hadron
08-18-2000, 09:00 PM
Oh that. I had fantasized that he had found entry points into a flash.dll, but I realize my mistake.

Makes VB easy to use for media such as a CD. Toss it all in the app.path and let VB's promiscuity do the rest.

turoczy--

Your flashvb.zip (source) was not found. :(

However I envision that you used something like this:

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

But first you:

Prime the lpDirectory member and the lpFile member with the line in your .txt file.

Hadron
08-18-2000, 09:51 PM
Here is a novel little .ocx I have been working on. You can capture any window visible to the system and make it a child of any other window in the system simply calling the window title. Reposition and resize any window in the system. Capture the desktop and place it in any window in the system as a child (warning, if you capture your desk top and for some reason you close the app or window that is itís parent then you will be without a desk top.) Very easy to use, I included a demo.exe and all runtimes and support files install into the app.path. No system files are replaced. If you like it then just put the ANSWindgrab.ocx into your %system% folder.

Might be interesting to use with a flash interface in a VB project, or to make a novel interactive desktop.
Nice way to route Fscommands into useful windoze functions.



http://home.wi.rr.com/cavin/WindowGrabber.zip

Exe and Ocx only:

http://home.wi.rr.com/cavin/wingrbexe.zip

Visual Basic 5.0

weepetra
08-20-2000, 08:49 PM
Thanks for your help everyone.

i'll go and see if I can't make sense of it now!

i'll warn you now though - you may well be hearing from me again!

turoczy
08-21-2000, 11:25 AM
Hmmmm.

Let me look through my directories. The source file may have been deleted when I was mucking around. All I did was create a little shell hack that calls the file through its registered default program. I'd be more than happy to share it, because I'm sure you guys can do much more with it than I ever could.

In fact, I'd be more than happy to post your solutions to my server, as well. Just let me know.

Should be there now.
http://www.flashgeek.com/tutorials/flashvb.ZIP

Hope that helps,
Rick

turoczy
08-21-2000, 11:27 AM
Oh, BTW, that's just the standard code for compiling the exe. It doesn't include the text file handler. I don't have that code on this machine, but I can track that down for you if you need it. Just let me know.

Take care,
Rick