Open Space + Flex Builder

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
virtual_whirrled
Posts: 2
Joined: 15 Aug 2008, 15:24

Open Space + Flex Builder

Post by virtual_whirrled »

Hi!
Is is possible to use Flex Builder to compile Open Space?
Is there a swc available? Plans for that in the future?

Thanks!
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Currently OpenSpace is a Flash CS3 component only. Still, there's a way to use it in Flex: check this post.
We will take into account the creation of a Flex version only after the first official release of OpenSpace.
Paolo Bax
The SmartFoxServer Team
virtual_whirrled
Posts: 2
Joined: 15 Aug 2008, 15:24

Post by virtual_whirrled »

Thanks, I'll give that a shot.
When is the official release date?
Are the dates different for the engine and the editor?

Thanks!
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

We should be able to release the engine and the editor at the beginning of september.
Paolo Bax
The SmartFoxServer Team
LEAn
Posts: 16
Joined: 21 Aug 2008, 11:01

Post by LEAn »

Does anyone succeeded in using Flash component of OpenSpace in Flex?
I'm getting
TypeError: Error #1034: Type Coercion failed: cannot convert com.smartfoxserver.openspace::OpenSpace@2d03c741 to mx.core.IUIComponent.
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3251]
at mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2200]
at mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2140]
...
With TextArea, as in example - all is ok.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

OpenSpace isn't a UIComponent. How do you use the OS component in Flex?
We haven't tested it, but in order to use OS in Flex you probably have to follow these steps:
- create a container in Flash using the "Flex Component Kit for Flash CS3"
- drag&drop the OS inside that container
- export it as an swc
- add the swc to the Flex libraries for your project and use it
Paolo Bax
The SmartFoxServer Team
LEAn
Posts: 16
Joined: 21 Aug 2008, 11:01

Post by LEAn »

Thanks, now it works.

But now when I resize container map just scales. It seems to be default behaviour for flash components.
Will you provide ability in your custom Flex component not to scale map on resize, but just show more/less map in this case?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

The feature you are asking for (dynamic resizing of viewport at runtime) won't be available. You have to set the size of the component in Flash, before exporting it for Flex usage.
Paolo Bax
The SmartFoxServer Team
Post Reply