Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Can DBP load a Flash file?

Author
Message
Solidz Snake
23
Years of Service
User Offline
Joined: 23rd Oct 2002
Location: United Kingdom
Posted: 9th May 2003 23:58
Yup, the title said it all.

Can DBP load a .swf format file? I wanna make it for my mini game's intro.

No no, i dun wanna use 3Ds Max or Maya, because its a 2D game.
No no, i dun wanna code the intro, because i'm a lazy bum rite now, and i just wanna have fun with my Flash s/w.

Thankz!
Snake? What happened? Snake? Snaaaaaaaaaaaaaaaake!!! - Colonel Roy Campbell

http://www.infinitybeyond.com/mgs2logo.jpg[/img]
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 10th May 2003 00:01
You could load it.

But unless you want to write a Flash player in DB, you won't be able to do much with it.

"Gentlemen, we are about to short-circuit the Universe!"
roswell
23
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 10th May 2003 00:10 Edited at: 10th May 2003 00:13
Isn't there a way to convert flash files to .AVI movies? If you could do that, then you wouldn't need to load flash, just load the AVI as you would any other animation.

[edit]
Hmm...from http://www.download.com, it looks like there are 11 different utilities pulled up for a search of "flash avi convert". Here's one: http://download.com.com/3000-2194-10124229.html?tag=lst-0-1. I don't know anything about it, but I hope something works for you.
[/edit]

/* You are not expected to understand this. */

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro
Solidz Snake
23
Years of Service
User Offline
Joined: 23rd Oct 2002
Location: United Kingdom
Posted: 10th May 2003 00:13
err, i dun understand that bit. U mean i have to write a Flash player to play the .swf file? (damn ... )

so if it can just load it, wats the code?

(i'm doing my Flash animation now, just wanna get a quick code to remember for later)

Snake? What happened? Snake? Snaaaaaaaaaaaaaaaake!!! - Colonel Roy Campbell

Solidz Snake
23
Years of Service
User Offline
Joined: 23rd Oct 2002
Location: United Kingdom
Posted: 10th May 2003 00:16
Thankz Roswell, I'm downloading it now.

Just wondering about the code to directly load the Flash file itself in DBP.

Snake? What happened? Snake? Snaaaaaaaaaaaaaaaake!!! - Colonel Roy Campbell

TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 10th May 2003 00:50
What rich said was some kinda joke... you CAN load it with "open to read" (DoH), but if you don't know how to process the information inside the swf file manually, you cant use this to any good...

The command for loading animation (avi) is load animation... (DoH)

CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 10th May 2003 03:27
DBP is can make anykind of game of app, just like the box says. Granted you may need to learn c++ and program a dll for DBP to use, because the native command set doesn't have everything you need. But, hey your young and you have the rest of your life to work it out right? anything is possible with DBP (and a little help from a dll.)

CTP
Dave J
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 10th May 2003 03:33
One advantage of flash files is the ability to interact with them so converting it to an AVI might not be the best idea if you have a "Skip Intro" button like most Flash animations do.

"Computers are useless they can only give you answers."
Solidz Snake
23
Years of Service
User Offline
Joined: 23rd Oct 2002
Location: United Kingdom
Posted: 10th May 2003 03:44
Cyborg: wat do u mean 'open to read'? yes, i dun know much about it, just know on making animations in it. Care just to write up on how do i process it?

CTP: LOL! That aint really my real age! and yeah, i got the rest of me life to work it out, but once in a while, asking for help is one way to reach for it.

Exeat: Good point there mate... come to think of it, thats a really good point. Hmm..

Snake? What happened? Snake? Snaaaaaaaaaaaaaaaake!!! - Colonel Roy Campbell

Dr OcCuLt
23
Years of Service
User Offline
Joined: 27th Nov 2002
Location: a Dark Deep Dark pit, it dark in here
Posted: 10th May 2003 04:01 Edited at: 10th May 2003 04:04
i think there may be a way to get a JAVA Applet work in DBpro it will be very tricky.

[edit:if you want it to play in a new windows it very do a bull]

--Dr 0--


Most people are other people.Their thoughts are someone else`s opinions,thier lives a mimicry,their passions a quotation
Oscar Wilde
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 10th May 2003 05:01
Quote: "DBP is can make anykind of game of app, just like the box says. Granted you may need to learn c++ and program a dll for DBP to use, because the native command set doesn't have everything you need. But, hey your young and you have the rest of your life to work it out right? anything is possible with DBP (and a little help from a dll.)
"


But we're not bitter eh CTP?

I can't really imagine any BASIC language directly supporting an interactive picture format, you may aswell write your game in flash if your going to do that, and I know which system yields better results.

For the specific problem to hand here, i'd personally convert the animation to an .avi at 100% quality un-compressed, and then convert it to .mpg.

Pneumatic Dryll
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th May 2003 05:07
natively ... no it doesn't utilise .swf flash movies.
however as DarkBasic Pro can adapt to whatever you put in it, you'd have to get ahold of a current version of the swf format - use that to load and translate basically what you see, however as it is all just simply vectored graphics, javascript functions ... as long as what you were using was just native Flash and not images and such as well - then it'd be a case of making a vector movie loader and a javascript function parser

be hard as hell, and not entirely sure it'd be 100% worth it, but would certainly be something interesting to say that you've done and no one else has

Within the Epic battle of the fates the Shadow and the Angel will meet. With it will harbinger the very fight of good vs evil!
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 10th May 2003 10:38
www.openswf.org


maybe one day a bright spark will do a conversion, Id kick major ass in flash if that was the case

David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 10th May 2003 17:07
Quote: "so if it can just load it, wats the code?"


Open to read 1,"flash.swf"

Is all you have to work with!

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 10th May 2003 17:08
Oh, already said.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....

Login to post a reply

Server time is: 2026-07-11 17:07:02
Your offset time is: 2026-07-11 17:07:02