User Tag List

Results 1 to 8 of 8

Thread: Change Frame width at runtime.

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Change Frame width at runtime.

    How do you change the frame width at runtime?

    In my code I say at start of frame set frame width to 1024.

    The starting is size if 640. It never changes.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Change Frame width at runtime.

    Use the Window Control to set the width and height of the window, then set the frame width and height.

    Stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: Change Frame width at runtime.

    Is this a bug in MMF2? I mean if you say in the code to set frame width to x it should do it.

    Your solution worked by the way. Thanks. I did notice that with MMF, after changing the setting in my code, I had to run the application twice to see the frame really change size. This appears to be a small bug in MMF.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Change Frame width at runtime.

    Huh? Window control is only needed if you want to change the seize of the frame window the space the frame is displayed in. You can change the frame width from the Storyboard object.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: Change Frame width at runtime.

    I wanted to change the frame size at runtime not at design time.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Change Frame width at runtime.

    Any Condition: Storyboard Object -> Frame -> (your resize ctions)

    That looks like it's for runtime to me!
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Posts
    311
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bug

    The "Set Frame Width/Height" actions in the Storyboard Object don't really change the frame size.
    You can set a counter to the frame dimensions - the counter is changed, but the frame size visible in the window is not updated.
    You need the Window Control Object and the "Set Width/Height of frame, adjust frame size = 1" action to get it to work.

  8. #8
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Sep 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Quinto,
    Just to give a trivial example: assume a small game with scrolling. The frame could be 2000x2000 and the visible part only 640x480 (frame's window). But the application window may fill the entire screen, let's say with 1024x768 resolution. In these case you will have a colored border around the frame window and the final dimensions will be:
    - Main window 1024x768
    - Frame window 640x480
    - Frame 2000x2000

    Now, assume a software having a large interface, in this case you may have the frame window and the main window at the same size, but the frame having a larger dimension (with scrollbars probably).

    ouly

Similar Threads

  1. Frame Width
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd October 2012, 08:16 AM
  2. Animation Frame Width?
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th November 2011, 05:32 PM
  3. 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
  4. Bug with virtual frame width?
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 15th June 2010, 01:57 PM
  5. Max width/height frame
    By Johnny in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 25th March 2010, 07:14 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
  •