dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: help!

  1. #1
    Senior Member
    Join Date
    Jan 2006
    Posts
    140

    help!

    if anyone can help i need to do this calculation and need correct syntax:

    ive tried so many ways

    (xcord - stageW) * -1 / stageW - .5

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    Sorry, not enough information. What are you trying to do? What is it supposed to do? What is not working?

  3. #3
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Try this code:
    Code:
    var xcord:Number=12;// you can put any number.
    var stageW:Number=34;// you can put any number.
    var res:Number;
    res=(xcord - stageW) * -1 / stageW - .5;
    trace(res);//shows 0.147058823529412.
    LOL
    <signature removed by admin>

  4. #4
    Junior Member
    Join Date
    Sep 2005
    Posts
    15
    Still we need to know what you are trying to calculate

  5. #5
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Quote Originally Posted by omni-0
    if anyone can help i need to do this calculation and need correct syntax:
    ive tried so many ways
    (xcord - stageW) * -1 / stageW - .5
    omni-0 Are you there!!!
    <signature removed by admin>

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