Expand my Community achievements bar.

How do I go about calling the Whiteboard toolbar's functions externally?

Avatar

Level 1

I intend to have a toolbar on the page that makes use of the externalinterface to initiate the pen marker tool and so on. Wondering where I should look for this as I can't seem to find it. Thanks.

3 Replies

Avatar

Level 3

There's not currently any support for addressing the WhiteBoard toolbar from

External Interface. You'd have to extend either SharedWhiteBoard or

EditorToolBar, I think.

Avatar

Level 1

And how can I call it inside Flex itself?

I want to build my own toolbar inside Flash Builder. So I'll have a bunch of buttons to replace each button from the default toolbar.

Thanks in advance

Avatar

Employee

Hi Gustavo,

Its possible to build your own toolbar inside Flex, and call your code that creates a custom tool bar through an external interface call.

But its not straight forward though. Please explore WhiteboardCustomShapes sample app for your reference. Also you might want to explore the WBShapesToolBar.dataProvider property. Its not well documented, but manipulating this property would allow you to create your own custom tool bar.

Thanks

Arun