|
User Details |
message
|
|
William Grand
post date:
2011-06-25 15:31:59
|
|
I found instructions to code with AS3 here:rnrnhttp://www.extendstudio.com/flash-components-creative-flash-scroller-extension/creative-flash-scroller-ActionScript3.htmlrnrnOnly, the instructions are not AS3, they are AS2! There don't seem to be instructions to do this anywhere! rnrnI tried:rnrnvar scroller:ScrollerAdv = new ScrollerAdv();rnscroller.targetType = "Stage";rnscroller.name = "scroller";rnscroller.target = "copyContainer";rnscroller.baseWidth = 100;rnscroller.baseHeight = 100;rnscroller.scrollBehavior = "Mouse Absolute";rnaddChild( scroller );rnrnBut, I get the following error:rnrnTypeError: Error #1009: Cannot access a property or method of a null object reference.rn at xtd.scroller.ui::ScrollerBase/draw()rn at xtd.scroller.ui::ScrollerAdv/draw()rn at fl.core::UIComponent/callLaterDispatcher()rnrn
|
|
|
William Grand
post date:
2011-06-25 15:33:42
|
My post displayed everything one line. Here is another attempt:
I found instructions to code with AS3 here:
http://www.extendstudio.com/flash-components-creative-flash-scroller-extension/creative-flash-scroller-ActionScript3.html
Only, the instructions are not AS3, they are AS2! There don't seem to be instructions to do this anywhere!
I tried:
var scroller:ScrollerAdv = new ScrollerAdv();
scroller.targetType = "Stage";
scroller.name = "scroller";
scroller.target = "copyContainer";
scroller.baseWidth = 100;
scroller.baseHeight = 100;
scroller.scrollBehavior = "Mouse Absolute";
addChild( scroller );
But, I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at xtd.scroller.ui::ScrollerBase/draw()
at xtd.scroller.ui::ScrollerAdv/draw()
at fl.core::UIComponent/callLaterDispatcher()
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2011-06-27 06:27:45
|
Hello William,
Sorry for the confusion, it seems like we added the same tutorial twice.
Here's the link to the correct tutorial for AS3:
http://www.extendstudio.com/documentation/creative-flash-scrollerAS3/documentation/tutorials/how-to-use-with-actionscript.html
Regards,
Andrei Rinciog
|
|
|
William Grand
post date:
2011-06-28 00:36:59
|
I get the following error when running the example from the the link that you shared:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at xtd.scroller.ui::ScrollerBase/cDimCheck()
at use_fla::MainTimeline/frame1()
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2011-06-28 05:12:32
|
Hello William,
When are you calling the cDimCheck() method? It's possible that you are calling that method before the target is set on the scroller.
You call it inside an event handler?
Regards,
Andrei Rinciog
|
|
|
William Grand
post date:
2011-06-28 09:46:36
|
Hi Andrei,
I just downloaded the FLA from here:
http://www.extendstudio.com/documentation/creative-flash-scrollerAS3/documentation/_files/how-to-use-with-actionscript.zip
And did Test Movie and go that error message. I am using CS5.5 on a Mac OSX 10.6.7
Thanks,
Wililiam
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2011-06-29 08:18:46
|
Hello William,
The cDimCheck() call at the end of the script it shouldn't be added there. I think it was left somehow from the code of a different sample.
cDimCheck() is used when you have dynamic content inside the target movieclip.This is not the case here and it's unnecesarry. So, you can remove this from the bottom of the script: scrollObj.cDimCheck();
It gives an error because that method expects the target to be created. However, because it's called on the first frame, the method is executed actually before the target movieclip is created.
Regards,
Andrei Rinciog
|
|