actionscript - How do these vars get initialised? -


The following code is a combination of samples taken from red5. Actually I'm trying to combine a live stream client with a chat box based on a shared object. I'm not a flash developer and here's a lot of limited understanding that what's going on.

  // ** Auto-UI Import Statement ** Import org.red5.utils.Connector; Import org.red5.samples.simplechat.basicChat; // ** end auto-UI import statement ** import com.neoarchaic.ui.Tooltip; Import org.red5.net.stream; // import org.red5.utils.Delegate; Import com.blitzagency.xray.util.XrayLoader; Class extends org.red5.samples.livestream.subscriber.Main Movie Clips {// Continuous: Public Static Works CLASS_REF = org.red5.samples.livestream.subscriber.Main; Public Static Var LINKAGE_ID: string = "org.red5.samples.livestream.subscriber.Main"; // Public Properties: // Private Property: Private Wise Stream: Stream; Private Vira Camera: Camera; // UI Element: // ** Auto-UI Element ** Private Vir Connector: Connector; Private var publish_video: video; Private Variable Chat: Basics; // ** end auto-UI elements ** Private URI: string = "rtmpt: // localhost / offline demo"; // Start: Private function main () {XrayLoader.loadConnector ("xray.swf");} Private Function ONLOD (): Zero {configUI (); } // Public methods: // semi-private methods: // private methods: private function configUI (): zero {// setup tooltip default tooltip.points = {size: 10, font: "_sans", corner: 0 )}; // Setup camera cam = camera.gate (); // Notify connection connection change connector.addEventListener ("connectionChange", this); // set uri Connector.red5URI = Yuri; // Configure Connector Connector Config UI (); Connector.makeConnection (); } Change the Private Function Connection (evtObj: Object): Zero {if (evtObj.connected) {// Setup Stream // XXX: Awesome hack required for Flashass. Var conn = evtObj.connection; Var x = new stream (conn); Stream = x; Stream.play ("red5streamdemo", -1); Publish_video.attachVideo (stream); Trace (chat); // Register Netconnection that GlobalAbject will need chat.registerConnection (conn); // Connect to Shared Object Chat. ConnectSo (); }}}  

I do not think that var chat to trace prints anywhere in the form of 'undefined' is being done. However, they start collecting examples from the var connector and var publish_video forums.

This sample code was included in both of them and worked fine, but I '

I added an example of BasicChat for the forum (I am using Flash CS4 ) And spent the past several hours playing with different qualities, layers and groups, but there is no benefit.

Can anyone suggest why my var chat is not collecting your example from the forum?

Have you set the example name of your BasicChat step frequency? It should be set to "chat" To set it, click on the step frequency and find the instance name field in the property panel (first / top view area).


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -