Can Active Object load image from external source in HTML5 runtime?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi, I want to load specific png file on my website to a frame of Active Object. (It is not Active "Picture" Object).

    In the CF2.5, I used "Load Frame" action of Active Object with "USE EXPRESSION". The code is like this.

    Condition: Start On Frame
    Active:Load"./TargetPicture.png" into Animation Stopped, ........

    The structure of my website is like this.
    /test/resources/...
    ....../src/...
    ....../index.html
    ....../TargetPicture.png

    When I ran the program on the browser, the TargetPicture.png wasn't loaded as frame of Active Object, and nothing happened.

    Are there any mistakes to specify the file path? or
    Can't Active Object load image from external source in HTML5 runtime?
    I guess it can, because the questioner said that ActiveObject could load image on HTML5 runtime at the last of this thread....

    Please help me, thank you.

  • Thank you for your advise.
    But I must cling with ActiveObject...

    Because I need to load sequential images to ActiveObject and handle them as animation.
    I also need to use ActiveObject to set them physics property.

  • I made a simple test program to compare the path expression and object's function.
    Please login to see this link.
    1)choose the combination of objects(Active or ActivePicture) and path expression (URL,Apppath$,"./")
    2)click "test" button

    In the URL source test, you firstly need to set url in the textbox. The below url can be used as test image.
    Please login to see this link.

    The structure of server directory is like this.
    LoadFrameTest/resources
    ...................../src
    ...................../image.png
    ...................../index.html

    In result, Only ActivePicture could load image from external source on HTML5 runtime. And ActiveObject can't.
    Is it bug? or ActiveObject doen't have the function to load external image as a frame on HTML5 runtime?
    Anyway, I am strongly wish that ActiveObject would have the function to do that.

  • Anyway, thank you for your cooperation.

    Ok... Maybe I need to change my question.

    The problem will also be solved by including external data when building html5 app.
    By this, I can replace the images which will be used in the game, in working folder. Then, build these pictures into the html5 app.

    Please do not recommend me to add images to frames of Active Objects one by one...
    It's too time consuming because the number of frames is over 50 and each frames will have many source options.

    I found that I can register external image to "data elements". In Windows runtime, the app can include external image which is registered in "data elements".
    I wonder if html5 app also can include external image registered to "data elements" as windows exporter have the build option "include external file"?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!