Xojo Conferences
XDCMay2019MiamiUSA

Flash in RealBasic (Real Studio games Mailinglist archive)

Back to the thread list
Previous thread: index to examples (was: Flash in RealBasic)
Next thread: modeler...


[ANN] Preview of RBD 2.4   -   Marc Zeedar
  Flash in RealBasic   -   Ken Gish
   Re: Flash in RealBasic   -   Stephen Tallent
    Re: Flash in RealBasic   -   Seth Duke
     Re: Flash in RealBasic   -   Stephen Tallent
    Re: Flash in RealBasic   -   Ken Gish
     index to examples (was: Flash in RealBasic)   -   Lars Jensen

Flash in RealBasic
Date: 26.05.05 02:45 (Wed, 25 May 2005 21:45:56 -0400)
From: Ken Gish
I am trying to figure out how to integrate flash movies that either have
controls embedded in the movie or controls that are just sitting on top of
the movie (I got the latter to work by playing a trick with layers....not
much fun though).

I would rather send a javascript command to get messages from flash
(javascript("button1") for example) to RB. From what I can tell, this isn't
easy or might be possible with WebKit. Can anyone post an example that
sends messages from Flash to RealBasic?

I am considering working around this by just saving a text file to the local
hard drive from Flash that RB reads. Not pretty but I believe it would
work.

Hope someone can help.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Flash in RealBasic
Date: 26.05.05 04:08 (Wed, 25 May 2005 22:08:01 -0500)
From: Stephen Tallent

> I would rather send a javascript command to get messages from flash
> (javascript("button1") for example) to RB. From what I can tell, this
> isn't easy or might be possible with WebKit. Can anyone post an example
> that sends messages from Flash to RealBasic?

Your safest bet that will work cross-platform is to use sockets. It is
very easy to have an RB socket listening on some port and then have your
swf use LoadVars(), XML.Load() or XMLSocket to pass data back and forth
between Flash and RB. The nice part about going this route is you only
have to rely on webkit and ActiveX for displaying the swf and not
passing messages back and forth.

> I am considering working around this by just saving a text file to the
> local hard drive from Flash that RB reads. Not pretty but I believe it
> would work.

Unfortunately you can't. The Flash player (by itself) doesn't support
writing out text files to the local filesystem. There are some obscure
hacks that are possible, but not recommended, so you are better off
going the socket route.

-stephen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Flash in RealBasic
Date: 26.05.05 04:15 (Wed, 25 May 2005 23:15:49 -0400)
From: Seth Duke
On 5/25/05 11:08 PM, "Stephen Tallent" <<email address removed>> wrote:
> Flash player (by itself) doesn't support
> writing out text files to the local filesystem.

Thank heavens too. Imagine the havoc which could be caused if flash allowed
file system access!

-Seth

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Flash in RealBasic
Date: 26.05.05 04:30 (Wed, 25 May 2005 22:30:20 -0500)
From: Stephen Tallent

>>Flash player (by itself) doesn't support
>>writing out text files to the local filesystem.
>
> Thank heavens too. Imagine the havoc which could be caused if flash allowed
> file system access!

So true. But that could/should be said about any browser plugin.

-stephen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Flash in RealBasic
Date: 26.05.05 14:59 (Thu, 26 May 2005 09:59:00 -0400)
From: Ken Gish
Thanks for the suggestion. I will give it a shot. The documentation has an
example (Simple Socket.rb by Jon Johnson) that looks like it gets me at
least halfway there.

BTW - The example projects are great but is there an index of some sort with
a description of each project and links to the projects? There are so many
examples that sometimes it is hard to find what you need (even though it is
a well-organized file structure).

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>