About the new note in Documentation: LiveAPI Object

Learn about building and using Max for Live devices.
Post Reply
Surreal
Posts: 560
Joined: Wed May 17, 2006 1:18 am

About the new note in Documentation: LiveAPI Object

Post by Surreal » Sat Mar 26, 2011 5:19 pm

Technical note: you cannot use the LiveAPI object in JavaScript global code. Use the live.thisdevice object to determine when your Max Device has completely loaded (the object sends a bang from its left outlet when the Device is fully initialized, including the Live API).
does this 'only' mean that i cannot create LiveAPI objects in global code or does it mean LiveAPI objects cannot be added to global scope? I think it is the former, But i just want to make sure. It makes more sense that I can still add to global scope, as observers need to stick around.

ST8
Posts: 259
Joined: Mon Jan 26, 2009 12:55 pm

Re: About the new note in Documentation: LiveAPI Object

Post by ST8 » Sun Mar 27, 2011 11:51 am

I think it just means you cant initiate them in the global scope as the liveapi object wont be ready at that time. Ive got no problem with a globally declared variable being initiated in a function triggered by live.thisdevice.

Post Reply