User Tag List

Results 1 to 3 of 3

Thread: How to grab an object's current width?

  1. #1
    No Products Registered

    Join Date
    Dec 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to grab an object's current width?

    Currently trying to figure it out.

    It has nothing to do with Scales I think.

    I know its' height is 70 but i need a way to grab it in the expressions editor

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to grab an object's current width?

    There are two expressions to get the left and right edge of an object - to get the total current width, subtract the second from the first:

    X Right("Object") - X Left("Object")

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to grab an object's current width?

    Adding on to David's solution, to set the width or height

    XScale [color:#000066]==[/color] [color:#FF0000]1[/color][color:#666666] / [/color][color:#000099]X Right(" Object ") - X Left(" Object ")[/color][color:#666666] * [/color][color:#33CC00][New Width][/color]
    YScale [color:#000066]==[/color] [color:#FF0000]1[/color][color:#666666] / [/color][color:#000099]Y Bottom(" Object ") - Y Top(" Object ")[/color][color:#666666] * [/color][color:#33CC00][New Height][/color]

Similar Threads

  1. List Object Width on iOS
    By Jaklar in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 30th June 2013, 12:07 AM
  2. Change 'Height' or 'Width' of object in pixels
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th June 2010, 05:50 AM
  3. Web Control Object - height and width ?
    By DJ_Wild in forum File Archive
    Replies: 4
    Last Post: 6th August 2009, 05:58 AM
  4. Retreiving the width of Active Object
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th April 2008, 02:04 PM
  5. Web Grab object?
    By LaraSoft in forum Extension Development
    Replies: 3
    Last Post: 13th January 2007, 03:00 AM

Posting Permissions

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