Jump to content


Photo

Flash Dll ** Fixed Link **


  • Please log in to reply
120 replies to this topic

#1 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 30 July 2008 - 02:47 AM

Flash DLL

With this DLL, you have the ability to show SWF files in the game window. These SWF files can be stored on the computer or online, as long as the correct location is given, it will load. The DLL is quite simple to use, you can look at my simple example included in the download. It can play flash games, use "http://users.skynet....idiot_test.swf" as the SWF file and try it out!

There isn't really much to it right now as I am having issues with a few functions so it's not well controlled.

Other:
- This requires Flash 9, you can get it here.
- This is no longer supported and probably wont work.

Credits:
- uuf6429 ( Embedding and Multiple Instances )

Download: Host-A or Mediafire

Known Bugs:
- If you destroy more than one flash object in the game end event, it will not finish all and attempt to free the DLL, the DLL is still in use and the freeing fails. it then causes an "Unexpected Error."

Edited by TheMagicNumber, 04 September 2011 - 10:49 PM.

  • 2

#2 LoopStan

LoopStan

    North-See Developer

  • GMC Member
  • 1398 posts

Posted 30 July 2008 - 02:52 AM

Wow, this is the first thing that actually plays flash in a gm window! Amazing! This is awesome, great jorb! I have used this before, and i must say, it is amazing (beta tester) Everyone should try this out!
  • 0

#3 coolist

coolist

    The Coolist

  • New Member
  • 913 posts

Posted 30 July 2008 - 03:26 AM

Nice work. I'm guessing it works with flash games too?
  • 0

#4 Postality

Postality

    GMC Member

  • New Member
  • 244 posts

Posted 30 July 2008 - 03:46 AM

Considering the link in the example is a game, I would say yes.

If it's SWF of any type it should work.

This is great, I may use this for the commercial game under development for videos.

Edited by Postality, 30 July 2008 - 03:47 AM.

  • 0

#5 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 30 July 2008 - 07:14 AM

This still requires you to have the Flash Player ActiveX installed, right?
  • 0

#6 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 30 July 2008 - 09:18 AM

Considering the link in the example is a game, I would say yes.

If it's SWF of any type it should work.

This is great, I may use this for the commercial game under development for videos.

Yes, it is entirely possible to use any SWF file. Coolist couldn't try it because he has too slow internet at his location.

Thanks!

I have gotten YouTube videos in it...again, I just need a function that will processes the links you submit into the SWF's link.

This still requires you to have the Flash Player ActiveX installed, right?

Yes, it needs "flash9d.ocx," it should be located in "Drive:\Windows\System32\Macromed\Flash\Flash9d.ocx."

It is installed with Flash 9, I should say that in the first post.

Edited by GMREC1111, 30 July 2008 - 09:18 AM.

  • 2

#7 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 30 July 2008 - 09:38 AM

Could you try completely remove the Flash Player right click menu (Zoom|Play|Stop|Loop|Settings|About etc.)? There are some tutorials on how to do that with Delphi.
  • 0

#8 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 30 July 2008 - 10:48 AM

LoopStan - Not exactly the first, but it's a good clean solution :)
Also, I don't know how you can implement in this, but my GMAX can load all Flash activex versions because it works dynamically at runtime. Believe me I'd try to help you fix it, but I really don't know how. :s

Edited by uuf6429, 30 July 2008 - 10:50 AM.

  • 0

#9 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 30 July 2008 - 10:59 AM

Could you try completely remove the Flash Player right click menu (Zoom|Play|Stop|Loop|Settings|About etc.)? There are some tutorials on how to do that with Delphi.

Hehe, I think I can do that :)

Also, I don't know how you can implement in this, but my GMAX can load all Flash activex versions because it works dynamically at runtime. Believe me I'd try to help you fix it, but I really don't know how. :s

Is this directed to the post above yours =S

Edit: I have updated the DLL and it has, umm...14 new functions.

Edited by GMREC1111, 30 July 2008 - 02:07 PM.

  • 2

#10 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 31 July 2008 - 09:02 PM

Could you try completely remove the Flash Player right click menu (Zoom|Play|Stop|Loop|Settings|About etc.)? There are some tutorials on how to do that with Delphi.

Hehe, I think I can do that


Were you able to do it?

Edit: I have updated the DLL and it has, umm...14 new functions.


Updates need BUMP! :)
  • 0

#11 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 31 July 2008 - 10:42 PM

Ugh, my sister just broke my mouse or it just stopped working.

I was able to remove all up to "Settings...|-|About" but I do not know how to do the other stuff. I believe I need to use API but I do not know what API to use...I looked around and found nothing on completely removing the right click menu but uuf6429 did find an extended version of the ShockwaveFlash control that has the ability to do it. I have difficulties with it's type, it is supposed to be TShockwaveFlashEx but it never worked when I tried, it may be my uses clause that needs to be updated. I will continue with what I'm doing...uuf6429 is making me some VDI or RTTI thing that will lower the amount of functions I have.

My left button doesn't work like 15-20% of the time...

I guess I should have bumped, hehe, 3 hours after a post.
  • 2

#12 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 01 August 2008 - 12:40 AM

Update!

1 more function, 1 updated feature! You can now disable the right click menu entirely, you can also call a function that simplifies the use YouTube videos in the window. It was possible before, but not with special knowledge of how to do it.

Imagine a little teaser of the game from YouTube in the game, or a tutorial? You can even play music if you know how to make use your own sound player.

Two hours later, the right click menu is...gone?

Edited by GMREC1111, 01 August 2008 - 12:41 AM.

  • 2

#13 jakman4242

jakman4242

    Vertical Shmup Junkie

  • New Member
  • 3222 posts

Posted 01 August 2008 - 01:31 AM

This is seriously great -- except in the process of adding the YouTube example you removed the Flash embed example x_X

[EDIT]
Haha, neeeevermind!

Edited by jakman4242, 01 August 2008 - 01:40 AM.

  • 0

#14 Cyril

Cyril

    GMC Member

  • GMC Member
  • 106 posts

Posted 01 August 2008 - 08:29 AM

Fantastic dll !!! Thanks a lot !


I think to finish at 100% :

- Remove "Settings...|-|About" etc.
- I can't exit from a flash file in fullscreen mode. Flash execution blocks mouse or keyboard tests.

Otherwise, it's amazing !

Cyril
  • 0

#15 wat_a_noob

wat_a_noob

    GMC Member

  • New Member
  • 129 posts

Posted 01 August 2008 - 08:54 AM

sorry to be a bother but can u make a mirror host-a-net doesnt want to work :)
  • 0

#16 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 01 August 2008 - 11:28 AM

This is seriously great -- except in the process of adding the YouTube example you removed the Flash embed example x_X

[EDIT]
Haha, neeeevermind!

I will put both in it in a bit.

Fantastic dll !!! Thanks a lot !

I think to finish at 100% :

- Remove "Settings...|-|About" etc.
- I can't exit from a flash file in fullscreen mode. Flash execution blocks mouse or keyboard tests.

Otherwise, it's amazing !

Cyril

I have removed the right click menu completely, redownload? The input would need some other things, I will need to block it from getting the focus rather than letting you change the focus. YouTube videos are the weirdest, they block the game from exiting until paused sometimes.

Thanks :)

sorry to be a bother but can u make a mirror host-a-net doesnt want to work ::lmao::

Yes, there's a few mirrors on Host-A, look under "Or, try a different server:" for Host-A's mirrors.
  • 2

#17 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 01 August 2008 - 11:28 AM

Fortunately GMAX captures them events (mouse keyboard...) ::lmao::
I'll show you how to do that too some time.
  • 0

#18 Cyril

Cyril

    GMC Member

  • GMC Member
  • 106 posts

Posted 01 August 2008 - 02:41 PM

Yes GMAX is a good solution too, but always "Settings...|-|About" etc. for a flash file
  • 0

#19 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 01 August 2008 - 03:31 PM

Yes GMAX is a good solution too, but always "Settings...|-|About" etc. for a flash file

I don't know what your talking about...You want an option for Full, Settings...|-|About, and none? GMAX: GAXC hasn't come out yet...If it did, he may have not implemented the features.
  • 2

#20 Cyril

Cyril

    GMC Member

  • GMC Member
  • 106 posts

Posted 01 August 2008 - 05:17 PM

No, I talk about when you click on the right button on a flash animation :
a menu appears with "Zoom in" / "Zoom out"/ "Quality" / "Loop" etc.

You can't delete this menu and for a game application it's a little strange...

Otherwise great job!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users