Thank you Laurent and be welcome!
You're right, it seems documentation must be updated.
francis
----- Original Message -----
From: "laurent untereiner" <luntereiner free.fr>
To: <Pixlib osflash.org>
Sent: Monday, November 27, 2006 6:12 PM
Subject: Re: [Pixlib] Newbie from Newbieland ;)
> Hi all
>
> I'm learning Pixlib.
>
> I'm trying all the the commands step by step to learn.
>
> On the step "Command" I found a error in the
exemple:
>
> http://www.get-url.net/pixlib/com_bourre_commands_
Command.html
>
> **Error**
>
/Volumes/luntereiner/WEB/lu/documents/tutPixLib/DisplayDateC
ommand.as:
> Line 9: The
> implementation of the interface method doesn't match
its definition.
> public function execute ():Void {
>
> Total ActionScript Errors: 1 Reported Errors: 1
>
> And I found also the solution, here is the exemple
rewriting :
>
> // the news in the lines are : import
com.bourre.events.IEvent;
> // and function execute ( e: IEvent ) >>
e:IEvent
>
> import com.bourre.commands.*;
> import com.bourre.events.IEvent;
> class DisplayDateCommand implements Command {
> private var _tViewHelper:TextField;
> public function DisplayDateCommand
(tViewHelper:TextField) {
> _tViewHelper = tViewHelper;
> }
> public function execute ( e: IEvent ):Void {
> _tViewHelper.text = String (new Date ());
> }
> }
>
>
> --
> Laurent Untereiner
>
>> skype : laurentuntereiner
>> aim : luntereiner
>> icq : 294429730
>> msn : laurent untereiner.com
>
>> http://www.untereiner.com
a> <
>
> mes photos sur fotolia: http://www.fo
tolia.fr/p/116/partner/116
>
> _______________________________________________
> Pixlib mailing list
> Pixlib osflash.org
> http://osflash.org/mailman/listinfo/pixlib_osflash.org
>
_______________________________________________
Pixlib mailing list
Pixlib osflash.org
http://osflash.org/mailman/listinfo/pixlib_osflash.org
|