||unity-dev|| Unity 2 login not compatible with Flash 7 publishing?

Discussion list for Unity developers. unity-dev at moock.org
Thu May 31 01:12:25 CDT 2007


hi derek,
i'm surprised that uSimpleChat w/ client login compiled at all for you 
in flash 8. flash 8 should give you a compiler error when you attempt to 
compile because i (stupidly) used "int" as a variable name. to fix that, 
change lines 278 and 279 of USimpleChat.as to this:

   var intID:Number = setInterval(function (client:USimpleChat) {
   clearInterval(intID);

as for your infinite loop, it's a bug in UClient that only appears when 
you publish to flash player 7 format. here's the fix:

http://www.moock.org/pipermail/unity-dev/2004-July/002501.html

note that the macromedia v1 components used in uSimpleChat w/ client 
login might not behave properly in a flash player 7-format .swf file. 
you should export to version 6 if you're using those components. or if 
you want to export to version 7 you should upgrade to the v2 components.

colin


Discussion list for Unity developers. wrote:
> Hi everyone,
> 
> I've been playing around with Unity 2 for a while now and just bought the full version.  I've been creating some apps using the login feature to store persistent data. All the example apps were set up as a Flash 6 export under publish settings, so that's how I originally designed my apps. 
> 
> Well the other week, I changed the publish settings to export as Flash 7. All of a sudden I was having weird problems where the flash app would hang and eventually Flash will pop up a dialog box that says "A script in this movie is causing Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"  Any thing other than pressing Yes is bad news. 
> 
> Anyway, I've finally tracked this down to the publish settings. You can test this by setting the publish settings of uSimpleChat, (clientlogin version) to export to Flash 7. Just try logining in with a non-registered account name, or a registered account with the wrong password.  It gives me the pop error every time in that situation. I'm using Studio 8 and Unity 2.0.2.  
> 
> I don't necessarily need to export to Flash 7, but just wondering why this doesn't work?
> 
> I appreciate any insights.
> 
> 
> Thanks,
> Derek
> 
> --
> you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/mailman/listinfo/unity-dev/
> 
> superb hosting for this list and moock.org is generously provided by Rackspace. See: http://www.rackspace.com/?supbid=moock


More information about the unity-dev mailing list