Page 1 of 1

unable to build flex example

Posted: 03 Apr 2010, 21:33
by pengerknitter
I have installed beta 5 and after importing the new project I am unable to compile.
Note: I did add the swc folder under the project's build path:library path.

I'm getting the following errors:

1046: Type was not found or was not a compile-time constant: DemoAvatar. main/src main.as line 271
1046: Type was not found or was not a compile-time constant: DemoGhost. main/src main.as line 272

what am I missing?

Posted: 04 Apr 2010, 08:43
by Bax
Do you have the DemoAvatarContainer.swc in the Flex Library Path? Did you clean the project?

Posted: 04 Apr 2010, 15:33
by pengerknitter
bax wrote:Do you have the DemoAvatarContainer.swc in the Flex Library Path? Did you clean the project?
thanks for your quick reply... I got a bit further. It compiles now and after doing an export release build I get a progressbar with 'initializing' but it never gets past 60%. I hope I am launching this correctly, i.e. <serverip>:8080/Examples/OpenSpace_beta/examples/flex_project/bin/main.swf

When I created the project, I chose flex project, not actionscript project - is that correct?

Also, where would I be able to see those trace messages so I can tell how far it gets. I enabled the 'debug' property in the sfsClient.xml file but that doesn't seem to have any effect.

Posted: 04 Apr 2010, 16:36
by pengerknitter
ok, after crawling the forum a bit more, I found a post regarding an error message I was getting when the demo starts. The problem is described here:
http://forums.smartfoxserver.com/viewto ... t+mismatch

shouldn't this be a sticky? Or at least added to the release notes of the beta?

So I deleted the component from the libs folder, but that left me with a bunch of undefined references in the code and I commented out a bunch of the trace methods. Does this mean I won't be able to use those trace messages at all?

But, the demo now runs... whooohoooo

Posted: 05 Apr 2010, 08:54
by Bax
As the post you referenced says, the problem is with a custom component we created to show some debug info in a console placed on the stage. Simply change the code using standard trace actions.

Posted: 05 Apr 2010, 17:22
by pengerknitter
bax wrote:As the post you referenced says, the problem is with a custom component we created to show some debug info in a console placed on the stage. Simply change the code using standard trace actions.
Thanks for the tip - I'll give that a try

Posted: 05 Apr 2010, 17:27
by warhell
You may also try replacing the collapse canvas with a regular canvas. You won't be able to hide it but you will be able to see all the trace statements and logs.

Posted: 13 Apr 2010, 22:36
by fats2005
Hi guys!, I have a problem with the flex example, I imported the project (OpenSpace_Flex.zip) in Flex 4.0, and compiled whit Flex 3.5 SDK. the compilation generated a new folder called 'bin-debug', this folder I moved to 'SmartFoxServerPRO_1.6.6\Server\webserver\webapps\root\Flex'... but in the final of the process when I try to open the link 'http://127.0.0.1:8080/Flex/main.html' in my browser, the aplicattion load only half of the bar and stop. And and nothing happens more.

what is my wrong?

thanks for your help!! I'm waiting your answer :D

PD. Sorry for my english, But I am learning so far :)

Posted: 14 Apr 2010, 16:29
by Bax
"the aplicattion load only half of the bar"... what do you mean? which bar?

Posted: 14 Apr 2010, 16:41
by fats2005
the flex preolader Image

link of the picture: http://picasaweb.google.com/lh/photo/GP ... directlink

thanks for your help
regards

Posted: 14 Apr 2010, 21:05
by Bax
I never saw this kind of problems, and it doesn't seem to be related to OpenSpace. Maybe you should search Google for possible causes of this behavior in Flex applications.

Posted: 14 Apr 2010, 22:49
by pengerknitter
fats2005 wrote:Hi guys!, I have a problem with the flex example, I imported the project (OpenSpace_Flex.zip) in Flex 4.0, and compiled whit Flex 3.5 SDK. the compilation generated a new folder called 'bin-debug', this folder I moved to 'SmartFoxServerPRO_1.6.6\Server\webserver\webapps\root\Flex'... but in the final of the process when I try to open the link 'http://127.0.0.1:8080/Flex/main.html' in my browser, the aplicattion load only half of the bar and stop. And and nothing happens more.

what is my wrong?

thanks for your help!! I'm waiting your answer :D

PD. Sorry for my english, But I am learning so far :)
I have run into the same problem, but I can't quite remember how I fixed it. Do any of the other smartfoxserver examples work for you?
Btw: try running the project from inside flexbuilder instead of opening the html in a browser. Also, enable the trace messages.

good luck