This is a message.

Plugin development doubts: Chetan Sachdev Created Jul 22, 2010

This thread is solved

Views: 1524     Replies: 1     Last reply Jul 26, 2010  
You must login first before you can use this feature

Chetan Sachdev
-- http://riageeks.com

Posts: 62

Registered:
Jan 27, 2010

Plugin development doubts: Chetan Sachdev

Posted: Jul 22, 2010

I am facing few issues with Custom Plugin, I guess, this is the best place to post them.
1. How do I set the plugin configuration/PluginModel at runtime. I want to change the width/height, left/right property in my plugin. I can change the PluginModel object, but changes don't reflect in the UI? How do I invalidate the plugin, is there any particular method, I should be invoking ?

2. While referring to the flowplayer source and the documentation fromhttp://releases.flowplayer.org/apidoc-latest/index.html, I noticed that LayoutEvent and Layout classes, don't have any documentation. Are these classes of use or do I need to make use of these classes, to change width/height at runtime

3. PluginModel, exposes a couple of dispatch methods, but I don't understand, how I can use them.

Could anybody reply to these questions, to clarify my doubts.

Thank you

--
Best Regards;
Chetan Sachdev
http://riageeks.com

Anentropic

Posts: 5

Registered:
Jul 13, 2010

» Plugin development doubts: Chetan Sachdev

Posted: Jul 26, 2010

Reply to: Plugin development doubts: Chetan Sachdev, from cksachdev
I have similar problems. My plugin extends StyleableSprite.

I have overridden the set width, set height and setSize methods to implement custom sizing logic. At that point I update the width and height on the model.

I also have custom centerVertically, centerHorizontally methods, which are called when sizes change and which update the top and left properties on the model once they've done their work.

My problem comes when I use the AnimationEngine.animate method to fade in and out... it's ok until you go to fullscreen. It tries to tween the other properties as well, but although I think I've updated the model the top and left seem to revert to old values.

Due to lack of docs it's not clear how to do any of this stuff 'the Flowplayer way' and if I try and do it with my own code I keep running into these sorts of clashes.