Page 1 of 1

very very BETA FlashLib that makes Flash swf movies

Posted: Wed Mar 03, 2004 7:21 pm
by ricardo
Hi,

This lib is for making Flash (swf) files directly from PB.

It was maded using the El_Choni's great libmaker.

At this moment it let you create a swf file and add up to 100 images (jpegs) and move/rotate/escale it to make your movie.

In a future i will add the features to add move/resize/rotate text and to use buttons to get user ipunt.

*Need the PBMSScriptControl installed (its a very nice lib downloable from PureProject)


http://www.getafile.com/cgi-bin/merlot/ ... ashLib.zip

Enjoy!!

**Remember its my very first lib, dont be cruel :wink:

Posted: Wed Mar 03, 2004 7:56 pm
by El_Choni
I bet lots of people will be interested in this.

I haven't been able to create an swf file. I use your example code:

Code: Select all


FlashInit(400, 400, 255, 255, 255, 20)
;Here you init the Flashlib and set the image and backgroundcolor of the final swf file and the frane rate
;remember that swf are like movies, has some frame rate

FlashLoadPhoto(1, 100, 100, 1, "pic.jpg", 0);load one pic (i think it must be jpeg), you can load up to 100

For i = 1 To 100
  Delay(0)
  FlashMoveImage(1, i, i*1, i*5, 10*i, 1, 1, i+10, i)
Next

FlashLoadPhoto(2, 100, 100, 1, "pic2.jpg", 0)

For i = 1 To 200
  Delay(0)
  Cont+1
  If Cont =< 25
    FlashMoveImage(2, i, i*5, i*5, Cont*3, 2, 0, 0, 0)
  ElseIf Cont>25 And Cont<50
    FlashMoveImage(2, i, i*5, i*5, Cont*3, 1, 0, 0, 0)
  Else
    FlashMoveImage(2, i, i*5, i*5, Cont*3, 1, 0, 0, 0)
    Cont = 0
  EndIf
Next

FlashGenerate("look")
Beep_(1000, 100)
All the files in the same folder. Ran "reg.bat" file before, success. Put swfobjs.dll in %system% just in case. No swf created.

My advice would be: make your functions return some value (if it has itself a meaning, better), so you can check if it has succeeded. Maybe they already do, but it's not in your docs.

Waiting for your help, regards,

Posted: Wed Mar 03, 2004 8:06 pm
by ricardo
Did you have the PBMSScriptControl Installed?

The FlashLib.lib on Users Libraries?

And need to have registered the MS ScriptControl of your windows (i think iots msscript.ocx)

Posted: Thu Mar 04, 2004 1:28 am
by Dare2
FLASH!

Hi ricardo,

Go for it!

As well as bukoo, there is http://ming.sourceforge.net/ and also http://www.openswf.org/ for stuff like this, but you probably already know that.

If you conquer running a flash movie in a Pure application (without using a browser control) please publish! This is my head/heartache at the mo, despite all the cool ActiveX and Com stuff published by Danilo, Freak, Leo, GedB and everybody else (sorry if I missed your name). Just can't get the darn thing going.

BTW, just in case you didn't know, there are docs available on swf format from macromedia.

Posted: Thu Mar 04, 2004 1:37 am
by ricardo
Dare2 wrote:If you conquer running a flash movie in a Pure application (without using a browser control) please publish!
I think you need a COM container to do what you want.

Thanks for your comment.

Posted: Fri Dec 02, 2005 5:46 pm
by Lazarus404
It should just sit on top. If you can embed a browser activex, then you can embed the Flash activex. The answer might lie in how you initialise your app. I currently have an application in .NET that uses Flash as the presentation layer... It's very simple to include.

Posted: Sat Dec 03, 2005 9:23 am
by benny
@Dare2:

Do you remember the following thread :?: Isn't that what you are looking for :roll:


viewtopic.php?t=11465&highlight=swf


Btw ... what kind of link is this:

http://www.openswf.org/ :?:

Posted: Sat Dec 03, 2005 10:17 am
by Dare2
Hi benny,

Indeed that was what I was looking for. I found it on Jun 28, 2004, shortly after Fred posted on Jun 28, 2004. I posted a smoochy thank you further along the thread. ;)

Regards the link, that domain has probably expired some time since Mar 04, 2004, when I made the post above. It was originally and primarily an opensource swf player, IIRC, but not 100% sure anymore. Looks like someone is using it now as a revenue earner. :)

But thanks, anyhow, for bringing it to my attention. 8)

Posted: Sat Dec 03, 2005 10:46 am
by benny
@Dare2:

Ups ... :roll: I didn't check the date you posted previous post ! Sorry :oops:

Posted: Sat Dec 03, 2005 10:48 am
by Dare2
np.

You were offering help. I appreciate it. 8)

Posted: Sat Dec 03, 2005 11:57 am
by Poshu
Nothing, just a mistake

Posted: Sat Dec 03, 2005 12:09 pm
by Droopy
dead link :?