On Tue, Oct 4, 2011 at 1:30 AM, Andy <[email protected]> wrote:

> Hey, thanks for your time.
>
> I upgraded to .5rc0 and verified:
> >>> import cocos
> >>> print cocos.__version__
> 0.5rc0
>
> but I am still running into this problem. It creates the screen just
> fine but the moment that it updates mouse position, Bam:
>  File "viewr.py", line 231, in update_view_bounds
>    scx , scy =
> world_to_screen(scroller.restricted_fx,scroller.restricted_fy)
> AttributeError: 'ScrollingManager' object has no attribute
> 'restricted_fx'
>
> I delved into the library and I do indeed see a self.restricted_fx in
> ScrollingManager, but it is only referenced inside of set_focus, and
> it does not call set_focus after until after it looks up
> restricted_fx. Am I missing an init step?
>
> Thanks,
> Andy
>
>



The editor initializes some variables at __init__ and at on_enter.
Probably calls set_focus.
Or you can call set_focus right after instantiating a ScrollerManager.

--
claudio

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to