April 02, 2020, 07:54:29 AM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://plus.digitalsignage.com

MediaSignage support forum



Author Topic: Parameters of SWF object  (Read 3687 times)

egwyh04

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Parameters of SWF object
« on: October 18, 2010, 04:02:32 AM »
Hi I'm a newbie!
I want to ask how can i add custom parameters (for example wmode = transparent) and flashvars to my swf?
Thanks!

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5058
  • Karma: +35/-8
    • View Profile
Re: Parameters of SWF object
« Reply #1 on: October 18, 2010, 07:49:43 AM »
Do you mean for the SignagePlayer embedded version > and if so, it should work ...
Eric.

egwyh04

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Parameters of SWF object
« Reply #2 on: October 19, 2010, 02:02:23 AM »
I mean the Media Signage Studio (Web).

In "Resources" page, when i click on a swf object, the "Properties" panel only allow me to modify "Name", "Folder", "Type", "Width", "Height", "Total Time", "Total bytes", "Access Key" but no custom parameters.

Could you tell me how to add the parameters?

And please tell me how to do so when i add an external swf.

Thanks :D

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5058
  • Karma: +35/-8
    • View Profile
Re: Parameters of SWF object
« Reply #3 on: October 19, 2010, 08:48:18 AM »
The only way to add "Custom settings" for a SWF is to develop the swf to our Interface using our SDK.
See this:

http://mediasignage.com/html/signage_video.html?videoNumber=flashSDK

egwyh04

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Parameters of SWF object
« Reply #4 on: October 19, 2010, 08:02:07 PM »
Hey Admin,

I watched the FlashSDK Video Tutorial.

Then i wrote & uploaded a flash object that implemented the function getPropertyDefinitions():XML
but the Properties panel in "Scene editor" does not show up the flash variable "file",
could you have a look on the source code (below), or tell me where can i find more tutorial material?

Thanks!

package
{
   import flash.display.Sprite;
   import flash.events.Event;
   
   public class Main extends Sprite {
      
      public function Main():void {
      
      }
      
      public function getPropertyDefinitions():XML {
         return new XML("<Properties><Item key=\"file\" label=\"Filepath\"><Field key=\"text\" ></Item></Properties>");
      }
   }
   
}

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5058
  • Karma: +35/-8
    • View Profile
Re: Parameters of SWF object
« Reply #5 on: October 20, 2010, 08:40:09 AM »
The code looks ok... so it must be something else...

Do this, take our sample and compile and upload, confirm that all works ok...
Once it does, start adding your code a few at a time until you can see at what point it fails...

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines