i would imagine that the lc class would be declared dynamic, but maybe it
ain't on his machine. anyway check if this solves your problem
var receiving_lc:LocalConnection = new LocalConnection();
receiving_lc["showpic"] = function (goWhere:String) {
gotoAndPlay(goWhere);
};
On 2/23/06, Dave Mennenoh <[EMAIL PROTECTED]> wrote:
>
> I posted this question in macromedia.flash.actionscript but haven't gotten
> a
> response... I figure it most be something simple - I just don't know what
> it
> is...
>
>
> I am using a LocalConnection object to communicate between two swf's on
> the
> same page. Works great. Sent .fla to client - he made a little change, but
> gets an error when he tries to compile.
>
> Here's my LC code:
>
> var receiving_lc:LocalConnection = new LocalConnection();
> receiving_lc.showpic = function(goWhere:String) {
> gotoAndPlay(goWhere);
> };
>
> He gets this error:
> **Error** Scene=Scene 1, layer=script, frame=1:Line 2: There is no
> property
> with the name 'showpic'.
>
> receiving_lc.showpic = function(goWhere:String) {
>
>
> I can't repro this on my end. We're both compiling with MX2004 Pro...
>
> I thought at first it was a class path issue, but I haven't been able to
> confirm that.
>
>
>
> Dave -
> www.blurredistinction.com
> www.macromedia.com/support/forums/team_macromedia/
>
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
--
j:pn
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com