hi Ray
thank you for your reply.
> > something like this will not (nothing happens):
> > iview1.mouseDown()=function(){iview2.setImage(iview1.image());}
actually this code does work, i've tried it with a minimal program and
it works perfectly.
so i guess the bug is somewhere else in my code.
cornel
On 18/07/06, Ray Chuan <rc...@gm...> wrote:
> Hi,
>
> On 7/18/06, cornel <tc...@gm...> wrote:
> > hi all
> >
> > in a program i work on i have 2 imageviews; in the 1st i load an image.
> >
> > something like this will work (the 2nd imageview displays the 1st's image):
> > iview2.setImage(iview1.image());
> >
> > something like this will not (nothing happens):
> > iview1.mouseDown()=function(){iview2.setImage(iview1.image());}
>
> 1. Are you sure using the event handler is being triggered? Add a
> trace inside to see if it is.
>
> 2. Are you using the right event handler? This is ActionStep, not
> plain old Flash. You should be doing (in the anonymous style):
>
> iview2.setAction("trigger");
> iview2.setTarget({
> trigger: function(){iview2.setImage(iview1.image())
> });
>
> 3. Is the scope correct? As in, are the variables iview1/2 defined?
>
> > any idea why is that?
> > thank you
> > cornel
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys -- and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > actionstep-core mailing list
> > act...@li...
> > https://lists.sourceforge.net/lists/listinfo/actionstep-core
> >
>
>
> --
> Cheers,
> Ray Chuan
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> actionstep-core mailing list
> act...@li...
> https://lists.sourceforge.net/lists/listinfo/actionstep-core
>
|