User Tag List

Results 1 to 9 of 9

Thread: Active Picture & Root Folder

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Active Picture & Root Folder

    Okay, my application has a feature to dress a character in any type of equipment, but also you can change the color of the equipped items.

    I have an active picture object that allows me to select an icon to represent the customized equipment. I can wear up to 6 different equipment...and I have global values and flags in place to determine which gear changes...I use the global values to change the equipment, and flags to change their icons. Here is what I have so far (changing the icons):

    (example):
    • [color:#FF0000]Active Picture - flag 1 (out of 6) is on[/color]
    • [color:#FF0000]User clicks with left button[/color]
    • [color:#3333FF]New picture from selector[/color]

    I can select the folder I want to pick my icon from, but what I want to do is force active picture to automatically look in a specific directory depending on which flag is turned on.

    Right now, what happens is that regardless of what flag is turned on (the other 5 are turned off so that only 1 flag at a time is on), it starts from the last folder that was accessed.

    Can active picture be forced to view a specific folder when a certain flag is on?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Active Picture & Root Folder

    Perhaps you need to reset the path Active Picture is looking in. Check your code and see if you are indeed resetting the path each time a new flag is activated.
    KnightTrek Productions
    http://www.knighttrek.com

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Active Picture & Root Folder

    That is the thing...I don't know how to have it look in certain folders

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Active Picture & Root Folder

    Maybe set the current folder with the File object?

  5. #5
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Active Picture & Root Folder

    I tried that, and it didn't seem to work. I am thinking the File Object doesn't work, because none of its actions seem to.

  6. #6
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JimJam's Avatar
    Join Date
    Jun 2006
    Location
    USA
    Posts
    353
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Active Picture & Root Folder

    I had this very same problem.

    To me, Windows seems to "remember" (through registry maybe?) the last directory accessed by most applications. But in the case of MMF, windows treats all applications made through MMF or TGF as the same application. So when it checks where to look last, it remembers the last "clickteam" application open.

    I couldn't find any way to fix this. I tried saving the last path opened to an INI or forcing it using a string. It seemed that the File object only obeyed this rule some of the time. Most times it would just "forget" that I told it to look in "C:/projects/X/" and just open up on my desktop instead.

    The file object seems very buggy to me. Or it could just be a bad side-effect in the way Windows views all MMF applications as "Edrt.exe" and doesn't treat them as separate applications.

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Active Picture & Root Folder

    Why don't you just use the file selector via the File Object, and plug that into the expression editor of the select file for the active picture object? You can set the root folder for the file object's selector, so its more robust.

  8. #8
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Active Picture & Root Folder

    I'm sorry, but there really should be some kind of syntax guide to reference to when using the expression editor. I can't seem to find where it could be (the manual perhaps? I tried doing a search for something like this online but came up dry).

    I have enough objects in my application as-is, so I am trying to refrain from adding anymore to it.

  9. #9
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Active Picture & Root Folder

    What do you need a syntax guide for? Expressions are pretty straightforward... You're not even writing most of it, you're just grabbing info from objects and it pastes in exactly the text you need to get that info.

Similar Threads

  1. Take picture and make from it Active Object / Active picture
    By qenio in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 3rd February 2014, 07:34 AM
  2. BUG: Active Picture > New Picture from Selector doesn't wait for image - Beta9
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 27th January 2013, 03:09 PM
  3. Active Picture - Load image from path or folder
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 9
    Last Post: 30th November 2011, 12:35 PM
  4. Install Creator Pro not uninstalling root folder
    By docmartin in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 18th December 2010, 07:14 AM
  5. Advice about Active Object vs Active Picture
    By Pablo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th October 2007, 02:40 PM

Posting Permissions

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