Thread: Number Cloning
View Single Post
  #4 (permalink)  
Old 12-21-2006, 08:23 AM
Zlaire Zlaire is offline
Newbie
 
Join Date: Dec 2006
Posts: 5
Credits: 0
Rep Power: 0
Zlaire is on a distinguished road
Default

Isn't the return type of clone() "Object"?

So basically you're trying to assign "Object" to "Number". Maybe you could try:

Code:
this.scale = (Number)scale.clone();
this.offset = (Number)offset.clone();
Reply With Quote