Page 1 of 2 1 2 >
Topic Options
#64461 - 11/25/07 03:53 PM Javascript example
Jeff


Registered: 06/28/06
Posts: 5856
Loc: Oregon
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.
_________________________
Handy Links:
Tutorials for TGF & MMF
Looking for upgrade information?



Top
#64472 - 11/25/07 04:36 PM Re: Javascript example [Re: Jeff]
Andrew


Registered: 06/29/06
Posts: 362
Loc: Merseyside, UK
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.
_________________________
Gwerdy Software

Top
#64476 - 11/25/07 04:44 PM Re: Javascript example [Re: Andrew]
LaraSoft


Registered: 10/04/06
Posts: 185
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.
_________________________
Multimedia Fusion 2 Developer

Top
#64479 - 11/25/07 04:52 PM Re: Javascript example [Re: LaraSoft]
Andrew


Registered: 06/29/06
Posts: 362
Loc: Merseyside, UK
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.
_________________________
Gwerdy Software

Top
#64491 - 11/25/07 05:23 PM Re: Javascript example [Re: Andrew]
neat_Kliker2


Registered: 07/01/06
Posts: 1943
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


Edited by neat_Kliker2 (11/25/07 05:51 PM)
_________________________
nKYMG.
114990 = It's clearly obvious he didn't read it, someone get him to specsavers ASAP so his drivel stops by allowing him to read.
sgaf sff
www.msfirefox.com

Top
#64492 - 11/25/07 05:26 PM Re: Javascript example [Re: neat_Kliker2]
Villy


Registered: 09/02/06
Posts: 384
Loc: Norway
First example works fine 3.x for me. 1.5 is way outdated \:\(
_________________________
Jean Villy Edberg
Developer - AquadaSoft

Top
#64525 - 11/25/07 09:27 PM Re: Javascript example [Re: Villy]
Pkeod


Registered: 06/30/06
Posts: 961
Works fine in Firefox 2.x too
_________________________
If you need to contact me for some reason go to our site http://www.subsoap.com/ and use the Contact Us link there.

Top
#64610 - 11/26/07 07:20 AM Re: Javascript example [Re: Villy]
LaraSoft


Registered: 10/04/06
Posts: 185
 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 :\
_________________________
Multimedia Fusion 2 Developer

Top
#64617 - 11/26/07 07:34 AM Re: Javascript example [Re: LaraSoft]
Yves


Registered: 06/29/06
Posts: 4849
The problem is probably due to the script used in this page to shake the screen.

Top
#64958 - 11/27/07 05:34 PM Re: Javascript example [Re: Yves]
neat_Kliker2


Registered: 07/01/06
Posts: 1943
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


Edited by neat_Kliker2 (11/27/07 06:25 PM)
_________________________
nKYMG.
114990 = It's clearly obvious he didn't read it, someone get him to specsavers ASAP so his drivel stops by allowing him to read.
sgaf sff
www.msfirefox.com

Top
Page 1 of 2 1 2 >


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum
Quick File Links
Multimedia Fusion 2
Updates - build 248
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 248
Community Links
MFA Repository
GameBuilder
Klikdisc
The Daily Click
Madword Arcade

Extensions
Neatwares Extension List
Extension Updater

Lacewing & Moo Server
Klikfarm
Click Chat
10 People are chatting
Game Builder

Visit the GameBuilder Homepage

Latest Download

The Brick Challenge of Doom

Latest News
20 Event Competition