very very BETA FlashLib that makes Flash swf movies

Developed or developing a new product in PureBasic? Tell the world about it.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

very very BETA FlashLib that makes Flash swf movies

Post 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:
ARGENTINA WORLD CHAMPION
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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)
ARGENTINA WORLD CHAMPION
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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.
ARGENTINA WORLD CHAMPION
Lazarus404
User
User
Posts: 74
Joined: Fri Dec 02, 2005 3:11 pm
Location: England
Contact:

Post 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.
Laz

Registered PureBasic user since Nov 2005
Check out FlashML at www.designrealm.co.uk... The ultimate Flash Component
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post 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/ :?:
regards,
benny!
-
pe0ple ar3 str4nge!!!
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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)
@}--`--,-- A rose by any other name ..
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

@Dare2:

Ups ... :roll: I didn't check the date you posted previous post ! Sorry :oops:
regards,
benny!
-
pe0ple ar3 str4nge!!!
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

np.

You were offering help. I appreciate it. 8)
@}--`--,-- A rose by any other name ..
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Post by Poshu »

Nothing, just a mistake
Last edited by Poshu on Sat Dec 03, 2005 12:36 pm, edited 1 time in total.
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

dead link :?
Post Reply