User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Javascript example

  1. #1
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,822
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)

    Javascript example

    Screen shaking example using the Spry Javascript library.

    http://www.clickteam.com/vitalize4/examples/javascript_shake.html

    Thanks to Andrew from Gwerdy for this.

    More examples showing Vitalize and Javascript intergration will be happening soon.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    Merseyside, UK
    Posts
    398
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    Example 1

    Using JavaScript to pass information in to an application to change the background colour (sets global values which the app then uses to set the background colour). Also shows resizing of the application via a container div tag.

    http://www.gwerdy.com/test1.html

    Example 2

    Example using JavaScript to pass information in and out of multiple Vitalize applications:

    Url: http://www.gwerdy.com/test2.html
    Code: http://www.gwerdy.com/downloads/mmf/examples/vitalize_balls.zip

    Example 3

    Vitalize application controlling Google Maps via JavaScript.

    Url: http://www.gwerdy.com/googlemaps.html
    Code: http://www.gwerdy.com/downloads/mmf/examples/google_maps.zip


    Notes

    Use view source in your browser to grab a copy of the Html / JavaScript.

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    Some excellent examples =) I loved using the Google Maps one with you this evening; great being able to click your name and to view what you were looking at in real time.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    Merseyside, UK
    Posts
    398
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    Yes, forgot to mention in the GoogleMaps, double click another users name to view what they are looking at.

    You can set a home location with the Set Home button, view others home by selecting the name from the user list then 'View Home' button.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    in the first example, using firefox 1.5.. well its all screwed up... fixed in firefox 2.x / 3.x anyone ?
    by first, i mean Jeffs, the shake

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    Norway
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    First example works fine 3.x for me. 1.5 is way outdated
    Jean Villy Edberg

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    Works fine in Firefox 2.x too

  8. #8
    No Products Registered

    Join Date
    Oct 2006
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    Quote Originally Posted by Villy
    First example works fine 3.x for me. 1.5 is way outdated
    Very true; but many people still use it :\

  9. #9
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,095
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)

    Re: Javascript example

    The problem is probably due to the script used in this page to shake the screen.

  10. #10
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Javascript example

    Is build 247 required ? 'cos in Andrew's first example, all the vitalize! object events are... non existant and it just shows the bullet points
    EDIT: ah yeh, b247 fixes it
    EDIT2: think I found a bug, in IE, using the JS code it will pickup the vitalize ID fine (ID: 2 (object Vitalize2)) but using firefox, it will not pick it up unless the ID to search for in the JS is 0, which doesn't work for IE... bug with firefox (1.5) or what ;s?
    And one final thing: there needs to be global value protection for scores and such so that not all global vales / strings can be changed via JS

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Javascript and MMF 2
    By nameless in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th December 2012, 02:23 AM
  2. Javascript Question
    By Zoglu in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 17th February 2012, 08:24 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
  •