Re: [Flashcoders] When is 1 not 1?
Try this (guessing): $defUser = 1; echo(im= . $fName . def= . $defUser . ); On Tue, Mar 11, 2008 at 2:48 AM, Dave Mennenoh [EMAIL PROTECTED] wrote: When 1 had line feeds... Well, I'm not quite sure how yet but somehow I'm getting a couple of line feeds in my def variable when it comes back to the LoadVars.onLoad. I do: $defUser = 1; echo(im=.$fName.def=.$defUser); But I found I get 1 plus a couple of line feeds... I sure like AMFPHP a whole lot better. Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] When is 1 not 1?
When 1 had line feeds... Well, I'm not quite sure how yet but somehow I'm getting a couple of line feeds in my def variable when it comes back to the LoadVars.onLoad. I do: $defUser = 1; echo(im=.$fName.def=.$defUser); But I found I get 1 plus a couple of line feeds... I sure like AMFPHP a whole lot better. Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] When is 1 not 1?
OK, it's late and I must be an idiot because I am not figuring this out. This is from an old project - where I used _global and frames.. hey it's like three years ago. :) relevant PHP called with LoadVars: $defUser = 1; echo(im=.$fName.def=.$defUser); And in Flash on frame A: rv.onLoad = function(success:Boolean){ if (success) { _global.userData.isDefault = this[def]; trace(isDefault: +this[def]); It traces isDefault: 1 as I expect it should... Next Frame - frame B I go: trace(_global.userData.isDefault: +_global.userData.isDefault); if(_global.userData.isDefault == 1){ trace(_global.userData.isDefault == 1: true); }else{ trace(_global.userData.isDefault == 1: false); } It traces _global.userData.isDefault: 1 and: _global.userData.isDefault == 1: false I cannot figure out why it isn't true. I have tried in my LoadVars doing: _global.userData.isDefault = String(this[def]); to make sure it's 1, and I've tried testing for the number 1, but it's still false. Service Capture shows the 1 being returned properly from PHP... maybe I should not use 1... WTH? Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders