unable to build flex example
-
pengerknitter
- Posts: 20
- Joined: 01 Apr 2010, 05:38
unable to build flex example
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?
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?
-
pengerknitter
- Posts: 20
- Joined: 01 Apr 2010, 05:38
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.swfbax wrote:Do you have the DemoAvatarContainer.swc in the Flex Library Path? Did you clean the project?
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.
-
pengerknitter
- Posts: 20
- Joined: 01 Apr 2010, 05:38
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
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
-
pengerknitter
- Posts: 20
- Joined: 01 Apr 2010, 05:38
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
PD. Sorry for my english, But I am learning so far
what is my wrong?
thanks for your help!! I'm waiting your answer
PD. Sorry for my english, But I am learning so far
the flex preolader 
link of the picture: http://picasaweb.google.com/lh/photo/GP ... directlink
thanks for your help
regards
link of the picture: http://picasaweb.google.com/lh/photo/GP ... directlink
thanks for your help
regards
-
pengerknitter
- Posts: 20
- Joined: 01 Apr 2010, 05:38
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?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
PD. Sorry for my english, But I am learning so far
Btw: try running the project from inside flexbuilder instead of opening the html in a browser. Also, enable the trace messages.
good luck