This content has been marked as final. Show 6 replies
spriteObject[scrollAxis] = spriteObject[scrollAxis] +30;
yeah GWD (hey), the second for sure.
But also gv, it looks like your assigning the property 'scrollAxis' as a String in the class def as above, and it should be a Number if you're storing the y value of the object, and you may want to use something like:
spriteObject['scrollAxis'] = spriteObject.y;
additionally, using this method the property would not need to be declared within the class file, the access operator, is assigning the new property.
I think gv wants scrollAxis to be a string. Sometimes it could be "y", sometimes "x" (do we have a "z" yet?)
So a function for scrolling might change the scrolling to be vertical or horizontal. Just a guess.
hmmm, that's an interesting thought, I wonder if you can call on a static property as a string like:
movieclip['_y'] = 100;
a little offtopic ( sorry there, gv) but interesting, I'll have to try that.
(@GWD: OT - there's been a movement to establish a DB system that will contain standard question answers for quick referencing by those of us here that are regulars, dzedward has cooridinated a php driven back end system and DB where we'll start to compile data, you may want to get in on this, it should be handy resource tool for us without having to retype answers that are common. there's even a new domain www.flashgods.org :) check out the post in the General discussion section, it's pretty long though 49-50 or so, and it's probably a couple of page deep now, as discussion has cooled off a little for now.)
And kglad - if you're listening, your input would be invaluable as well. since you know damn near everything :)
GWD had it... here's how you do it.
With cs3, you now use this, with no quotes on scrollAxis:
scrollAxis is either x or y, and would be used to set or get the x or y value of the spriteObject.
@cbeech: for movieclip['_y'] = 100; you certainly can do it that way.
re OT:I'll take a look at that site on Monday. I think it could save time. But Adobe should really do something like that here, they could harvest a lot of common Q&As from the forums. FAQs that you arrive at from multiple taxonomy/category terms.
Never mind, I know they're busy doing other stuff like flash 10. I'll check it out Monday, its not working at the moment.