Bots Home
|
Create an App
lol67676766776676767643534
Author:
88gfhgfhgf666
Description
Source Code
Launch Bot
Current Users
Created by:
88gfhgfhgf666
//Called when application is started. function OnStart() { //Create layout that fills the screen. lay = app.CreateLayout( "Linear", "FillXY,VCenter" ); //Create video view. player = app.CreateVideoView( 0.9, 0.4 ); lay.AddChild( player ); player.SetOnReady( player_OnReady ); player.SetOnComplete( player_OnComplete ); player.SetOnError( player_OnError ); //Create video list. spin = app.CreateSpinner( "...,NASA,BUNNY" ); spin.SetSize( 0.8, -1 ); spin.SetOnTouch( spn_OnTouch ); lay.AddChild( spin ); //Create Play button. btnPlay = app.CreateButton( "Play", 0.4, 0.1 ); btnPlay.SetMargins( 0, 0.05, 0, 0 ); btnPlay.SetOnTouch( btnPlay_OnTouch ); lay.AddChild( btnPlay ); //Create Pause button. btnPause = app.CreateButton( "Pause", 0.4, 0.1 ); btnPause.SetOnTouch( btnPause_OnTouch ); lay.AddChild( btnPause ); //Create seek bar and add to layout. skb = app.CreateSeekBar( 0.8, -1 ); skb.SetMargins( 0, 0.05, 0, 0 ); skb.SetRange( 1.0 ); skb.SetOnTouch( skb_OnTouch ); lay.AddChild( skb ); //Add main layout to app. app.AddLayout( lay ); //Start timer to update seek bar every second. setInterval( "Update()", 1000 ); }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.