User Tag List

Page 1 of 6 1 2 3 ... LastLast
Results 1 to 10 of 57

Thread: How to embed Vitalize! applications in HTML pages

  1. #1
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    12,840
    Mentioned
    83 Post(s)
    Tagged
    2 Thread(s)

    How to embed Vitalize! applications in HTML pages

    This is the same syntax as Vitalize! 3. You have to use an OBJECT tag (for Internet Explorer) that contains an EMBED tag (for the other browsers) :

    <OBJECT ID="Vitalize1" WIDTH=320 HEIGHT=200 type="application/x-cnc"
    CLASSID="CLSID:EB6D7E70-AAA9-40D9-BA05-F214089F2275"
    CODEBASE="http://www.clickteam.com/vitalize4/vitalize.cab#Version=4,0,254,0">
    <PARAM NAME="URL" VALUE="yourapp.ccn">
    <EMBED TYPE="application/x-cnc"
    SRC="yourapp.ccn"
    checkversion="4,0,254,0"
    PLUGINSPAGE="http://www.clickteam.com/vitalize4/download.html"
    WIDTH=320
    HEIGHT=200>
    </EMBED>
    </OBJECT>

    Comments

    - replace yourapp.ccn by the name of your application.

    - set the width and height of your application in the width and height parameters of the OBJECT and EMBED tags.

    - you can replace Vitalize1 by any identifier.

    - application/x-cnc is the MIME type of Vitalize! CCN files.

    - the Version number in the OBJECT tag (4,0,254,0) is the version of Vitalize! required by your application. It is recommended to use the latest version number. If the installed version of Vitalize! has a lower number, then Internet Explorer will ask the user if s/he wants to install the new version.

    - the CHECKVERSION number in the EMBED command is similar. When Vitalize! is executed from another browzer (Firefox, Netscape, Opera, etc), then it will compare this version number to the version number of the installed version and will proposes the user to go to the download page of Vitalize! if necessary.


    Optional parameters


    - Background color : use the following parameters to change the background color of the plugin window. This window is displayed while the browser is downloading the CCN file.

    OBJECT tag
    <PARAM NAME="BackColor" VALUE="red,green,blue">

    EMBED tag
    BackColor="red,green,blue"

    red,green,blue = components of the color to use, between 0 and 255


    - Progress bar : if you want a progress bar to be displayed while the browser is downloading your application, use the following parameters :

    OBJECT tag
    <PARAM NAME="ProgressBar" VALUE="x,y,width,height">
    <PARAM NAME="ProgressBarColor" VALUE="red,green,blue">
    <PARAM NAME="ProgressBarBorderColor" VALUE="red,green,blue">

    EMBED tag
    ProgressBar="x,y,width,height"
    ProgressBarColor="red,green,blue"
    ProgressBarBorderColor="red,green,blue"

    x,y = position of the progress bar
    width,height = width and height of the progress bar
    red,green,blue = components of the color to use, between 0 and 255

    - Disabling sounds and/or music : use the following parameters to disable the sounds and/or the music in the CCN file. Note 1: only the internal sounds & music are disabled with this option, the sounds played by video objects for example are not disabled. Note 2: if you use these options, CCN files created with TGF1 or MMF1 are not executed.

    OBJECT tag
    <PARAM NAME="Sounds" VALUE="no">
    <PARAM NAME="Music" VALUE="no">

    EMBED tag
    Sounds="no"
    Music="no"


    - Disabling specific extensions : use the following parameter to prevent CCNs using some extensions from being executed.

    OBJECT tag
    <PARAM NAME="DisableExts" VALUE="extension1,extension2,etc">

    EMBED tag
    DisableExts="extension1,extension2,etc"

    extension1,extension2,etc are extension filenames without file extension, for example kcbutton.


    - Disabling all extensions except for some of them : use the following parameter to allow only CCNs using specific extensions.

    OBJECT tag
    <PARAM NAME="EnableExts" VALUE="extension1,extension2,etc">

    EMBED tag
    EnableExts="extension1,extension2,etc"

    extension1,extension2,etc are extension filenames without file extension, for example kcbutton.


    - Custom parameters : you can use your own parameters and retrieve them with the CommandItem$ function of MMF2/TGF2.

    OBJECT tag
    <PARAM NAME="NameOfYourParameter" VALUE="ValueOfYourParameter">

    EMBED tag
    NameOfYourParameter="ValueOfYourParameter"

    and then in your application use CommandItem$("NameOfYourParameter") to retrieve its value.

    Example with all the parameters

    <OBJECT ID="Vitalize1" WIDTH=320 HEIGHT=200 type="application/x-cnc"
    CLASSID="CLSID:EB6D7E70-AAA9-40D9-BA05-F214089F2275"
    CODEBASE="http://www.clickteam.com/vitalize4/vitalize.cab#Version=4,0,254,0">
    <PARAM NAME="URL" VALUE="yourapp.ccn">
    <PARAM NAME="BackColor" VALUE="255,255,255">
    <PARAM NAME="ProgressBar" VALUE="0,0,320,200">
    <PARAM NAME="ProgressBarColor" VALUE="255,0,0">
    <PARAM NAME="ProgressBarBorderColor" VALUE="0,0,0">
    <PARAM NAME="NameOfYourParameter" VALUE="ValueOfYourParameter">
    <EMBED TYPE="application/x-cnc"
    SRC="yourapp.ccn"
    checkversion="4,0,254,0"
    PLUGINSPAGE="http://www.clickteam.com/vitalize4/download.html"
    WIDTH=320
    HEIGHT=200
    BackColor="255,255,255"
    ProgressBar="0,0,320,200"
    ProgressBarColor="255,0,0"
    ProgressBarBorderColor="0,0,0"
    NameOfYourParameter="ValueOfYourParameter">
    </EMBED>
    </OBJECT>

  2. #2
    No Products Registered

    Join Date
    Dec 2007
    Location
    MI. USA
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to embed Vitalize! applications in HTML pages

    New using Vtlz.
    I did not write code for my web game. I installed the v4 plugin then just openned the game from the File,Open, type ALL.

    It worked fine - but it seem from the text I did it wrong. Is that right?

    Also, Are you allowed to put the V4 plugin on your CDrom with your games when sell it? I am working with MMF2Dev

    ThankYou
    patricklyder

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to embed Vitalize! applications in HTML pages

    Since you defined type="application/x-cnc", there's no need to define CLASSID too. Both IE and Netscape-like browser can handle it with type only.

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

    Re: How to embed Vitalize! applications in HTML pages

    Also, I'd like to present my V-Code generator, which makes creating the code much easier.

    http://www.box.net/shared/yii8memdc4
    Working as fast as I can on Fusion 3

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Aug 2006
    Posts
    532
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How to embed Vitalize! applications in HTML pages

    Hello ,
    regarding the progress bar, I think it would have been nice to be able to add a message such as : " Please wait...Your game is loading" while the progress bar is displayed.
    Does anyone know if it's possible ? My vitalized page takes up the whole frame , so I can't just add the message to the html code of my webpage because it won't disappear after the game has loaded !!
    Thanks for your help !

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

    Re: How to embed Vitalize! applications in HTML pages

    You can set the loading image in your application properties and have that have a message.
    Working as fast as I can on Fusion 3

  7. #7
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Aug 2006
    Posts
    532
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How to embed Vitalize! applications in HTML pages

    Ok I'll take a look....thanks for answering !
    Eric

  8. #8
    No Products Registered

    Join Date
    Feb 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to embed Vitalize! applications in HTML pages

    hi where can i upload the .cnn file so i can use on my website and im using freewebs if anyone can help me out it would greatly be appreciated

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to embed Vitalize! applications in HTML pages

    alrighty I love freewebs - haven't used it since the dark ages, though. Just looked at it and here's how you do it:

    -Login and Click on the Edit My Site button at the top left
    -Select Manage Files
    -Click on Single Uploader
    -Click on Browse
    -Find Your .ccn file
    -Select it and hit upload

  10. #10
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to embed Vitalize! applications in HTML pages

    genius!, i have been wondering how i would do it all of this time!!!!!

Page 1 of 6 1 2 3 ... LastLast

Similar Threads

  1. Replies: 7
    Last Post: 16th December 2008, 11:10 PM
  2. Is there a way to embed external applications?
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 16th October 2007, 03:06 PM
  3. HTML Vitalize code
    By Avshai in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 3rd July 2007, 07:49 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
  •