local bgSize = cc.size(940,520) dump(GameViewLayer.RES_PATH.."card_type_nn.png") local bg = ccui.Scale9Sprite:create(GameViewLayer.RES_PATH.."wanfa/help.png") :setPosition(display.cx, display.cy) -- :setContentSize(bgSize) -- :setVisible(false) -- :setScaleX(-1) :addTo(self) local sp = display.newSprite(GameViewLayer.RES_PATH .. 'wanfa/pdkWanFa.png') :setAnchorPoint(cc.p(0,0)) -- :setFlipX(true) local sc = ccui.ScrollView:create() :setDirection(ccui.ScrollViewDir.vertical) :setPosition(cc.p(0,11)) :setContentSize( cc.size(bgSize.width, bgSize.height) ) :setInnerContainerSize( sp:getContentSize() ) :addChild(sp) :addTo(bg)