A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Rotation = .... Curious?

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    34

    Rotation = .... Curious?

    How do I set the properties within a script for a 3d text element? I couldn't find the ( this element has properties) button any where in the 3dtext element. What i need to do basicly is make the text rotation = getBytesLoaded. please help me with this anyone.

  2. #2
    Senior Member
    Join Date
    May 2005
    Posts
    163
    I'm not exactly sure what you are looking for but the only thing (that I'm aware of) that you can do with 3D objects (text, models, shapes) is use the "Animate 3D" event. You can not set any properties directly (again at least not to my knowlege/experience).

  3. #3
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    474
    yeh, what he said, to do anything with 3d you must go to scenes and click move or animate 3d.
    BC

  4. #4
    Junior Member
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    15
    for just normal text?

    Code:
    text.rotation = blah;
    That?

    EDIT: read wrong -_-
    N00b flasheR
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

  5. #5
    Senior Member
    Join Date
    May 2005
    Posts
    163
    For normal text yes text.rotation works but for 3D text you need to use the "Animate 3D" event.

  6. #6
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    Hi,

    In case it wasn't clear in the posts above:

    You can't animate 3D text with a script directly. Having said that you can do 2D movements of it by placing it in a child movie, and rotating that child movie.

    For regular text elements, and all other elements that can have properties enabled, you can change that elements properties with a script.
    However, In case you hadn't done this, you need to set text to be a handler for the element before you can amend its settings with text.rotation :

    eg.

    text=element("text")
    text.rotation=180

    or

    element("text").rotation=180


    Hope this helps,

    M.
    Last edited by ForumNewbie; 02-02-2006 at 06:04 PM.
    Please note that my domain has changed to http://www.morganmultinational.com

  7. #7
    Member
    Join Date
    Jan 2006
    Posts
    34
    Thanks for the post guys. Really helpful. See you agian on another post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center