paulgrant.ca


Tranist Player Generator


This page is for programmer/web people who want to embed my Flash TTC plans in their site.   They can use javascript to alter the plans, and make it animate.   Developers can view the source of TransitPlayer.html for samples.

Basically set a parameter like this:
//parameter and value are same as in the SWF's Query String.
oSwf.SetVariable("Yonge_01", 2);
oSwf.SetVariable("Yonge_02", 2);
oSwf.ReDraw();


Use the tools below to generate arrays of parameters and their values.

You can also find the parameter name of a station or track by clicking "Show Hints", and then rolling your mouse over them.


Url to Array

Url:


Copy the url of the modified transit plans into the URL box and click Go.  
Use the generated javascript code to control the transit plans Flash code.   See source of TransitPlayer.html for samples.


Difference Between 2 Plans

Url 1:
Url 2:


Copy the url of a modified transit plan into the URL 1 box.   Copy the url of a slightly further modified transit plan into the URL 2 box and click Go.  
Use the generated javascript code to control the transit plans Flash code.   For example to animate between steps.   See source of TransitPlayer.html for samples.


Steps Links




Copy some urls in the 1st box.   Click Go to generate html links to be used in Transit.html.

 
Transit | Transit Player | Transit Infrastructure | Transit WAP | Transit Gallery

© paulgrant.ca