PDA

View Full Version : Using the new flash player plugin



gbumgard
December 5th, 2006, 10:31 PM
The latest distribution includes a new plugin for the Macromedia Shockwave control that allows you to embed Flash movies in your NetRemote interface.

The plugin is attached to a button as a component (in a manner similar to that of the web browser). The component properties are used to specify the movie that will be played initially. There are additional properties that control looping, scaling, etc.

The plugin exposes a significant number of functions that can be used to manipulate the control and the movies played within it. The player plugin also produces some events (the fscommand being the most useful).

These properties and methods have not yet been documented. But I have put together my own .ccf that demonstrates most of the functions and events (attached). Please look at the .lua code and the button properties and actions to see how it works.

The test ccf currently loads its movies from other sites, including my own, so if you plan to use any of these movies, please save/download them to your local environment (open the .swf file in a browser and do a "save page as... "), and modify the ccf accordingly (and save me some hosting fees).

You must install the latest version (v7) of the Flash player for the PPC in order to use this plugin. You can use either the v7 or the v8 version of the player on Windows. Both players can be downloaded from the Adobe site.

Feel free to post questions to this thread, but please take some time to look through the test ccf before doing so. Many answers can be found there.

Have fun and good luck!

-g.b.

Ben S
December 9th, 2006, 08:01 AM
Cool stuff Greg, thanks!

marketability
January 26th, 2007, 07:01 AM
Greg

Would this work to address the following...

I use a Netremote CCF to display MC information on a TV (ie. one CCF on a tablet to control and a different CCF on the TV attached to the HTPC)

I want a way to avoid screen burn and wondered if I ran a flash sequence as a backdrop to the display CCF.

Can the flash button be placed behind other CCF frames/buttons?

Thanks

gbumgard
January 26th, 2007, 01:39 PM
Greg

Would this work to address the following...

I use a Netremote CCF to display MC information on a TV (ie. one CCF on a tablet to control and a different CCF on the TV attached to the HTPC)

I want a way to avoid screen burn and wondered if I ran a flash sequence as a backdrop to the display CCF.

Can the flash button be placed behind other CCF frames/buttons?

Thanks

The only way something can be placed in front of the flash player/button is if it is in a non-transparent frame (which results in the creation of an actual window object within NR). Since the frame cannot be transparent, then placing it over the flash movie won't help with your burn-in issue.

You could use a flash movie as a screen saver if you use a timer to make a foreground flash button visible, or jump to a page that hosts a flash button. Not sure what might be the best way to accomplish that.

-g.b.

Rob H
January 26th, 2007, 02:49 PM
You could use something like


NetRemote.RegisterVariableWatch('Utility.TimeSince LastAction',
function(name, value)
if value > 30000 then
NetRemote.GoDevice('ScreenSaver', 'FlashPage')
end
end)

Obviously you'd adjust the 30000 to suit your circumstances and the destination of the GoDevice call.

marketability
January 27th, 2007, 01:26 AM
Thanks - I'll have a play

NeoMorph
August 8th, 2007, 07:09 PM
I hate this flashplayer demo... hate it I say!

Why...

I can't stop playing that little golf game... :eek:

quixote
January 20th, 2008, 04:06 AM
Can the .SWF files have sound as well?

gbumgard
January 20th, 2008, 11:29 AM
I think so. It has been a awhile since I've tried using the plugin, but I seem to recall that the golf game referenced in the test .swf had sound. The plugin simply hosts the flash control, so if the flash player output sound, then the Netremote plugin should as well...

-g.b.

quixote
January 20th, 2008, 11:32 AM
Nice. Thanks!

liofr
February 19th, 2008, 12:42 PM
which version of netremote do you use ?

which ppc version have to be use ?
(hope 2003 version could be use and if not some MS cab ll resolve the problem )

before test ll think gui of netremote was in flash . but not : ccf is a composite file that let netremote call in this main window a sub window that use flash player already install in the ppc and read external file using some protocol ( not explicitly name but is http) .ccf/lua can read flash player property accessible and use by flash player . i test so ok fro variable and game but nothing for video.
use a proxy scanner in my xp port 15000 ? on http and see game download many files from http://www.puffgames.com/pandagolf ( pandafgolf.swf getFlashInfo.php ).

so many questions
1) does the swf could interact with netremote software ( two way protocol ) .?

2) if we call a html page where swf object is call ; does netremote ll show us the swf animation content ?

3) could i have much information on the size and value type to enter in property variable view in properties window because don't find how change value are update ?

4) the http is manage by flash or netremote ? is other protocol is uspported ?



really good work !!
thank's


thank's
--------------------------------------
homeseer girder netremote ac3d
Visual basic 2003,flash MX 2
t68i ,usb uirt , audio BT ,cyberlink remote

liofr
April 28th, 2008, 12:37 AM
hi
1- could you post a zip file that contain all the .fla upload to http://www.avepro.com/ and that FlashTest use .

2- does binary swf compile using flash IDE need some plug in to work inside pda and pc device ? i ve got the old flash 2003 version !


thank's