AutoPlay Media Studio 9

Application.GetPageScript

Application.GetPageScript

This is the first topic This is the last topic  

Application.GetPageScript

This is the first topic This is the last topic  

OverviewExamples

string Application.GetPageScript (

string PageName,

string EventName )

Example 1

sScript = Application.GetPageScript ("Page1", "On Show");

Gets the script from the 'On Show' event of 'Page1', and stores it in the variable 'sScript'.

Example 2

-- Get the script existing in the event

sPreviousScript = Application.GetPageScript ("Page1", "On Preload");

 

-- Append an Application.Exit action to the end of the script

sNewScript = sPreviousScript .. "\r\n" .. "Application.Exit()";

 

-- Set the event's script

Application.SetPageScript("Page1", "On Preload", sNewScript);

Appends an Application.Exit action to the end of the script located in the 'On Preload' event of 'Page1'.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us