-
For some reason this doesn't work. I have the connection light component on at the same time, so I know everything is set up right. Any help is most appreciated.
stop();
// Create a connection
client_nc = new NetConnection();
// Connect to the application
client_nc.connect("rtmp://flashcom.mysite.com/examples");
// Create a remote shared object
so = SharedObject.getRemote("changecubes", client_nc.uri, false);
// Connect to the shared object
so.connect(client_nc);
// Update all shared objects
so.onSync = function(list) {
_root.column8.cube1.gotoAndStop(so.data.column);
};
// fill the shared object with column8 info
so.data.column = _root.column8._currentFrame;
gamist
-
Okay...let me put it this way...
I want a mc (column8.cube1) to change for all the users when one user changes it current frame:
stop();
// Create a connection
client_nc = new NetConnection();
// Connect to the application
client_nc.connect("rtmp://flashcom.mywebsite.com/versions");
// Create a remote shared object
so = SharedObject.getRemote("changecubes", client_nc.uri, false);
// Connect to the shared object
so.connect(client_nc);
// This should invoke onSync when any client changes column8.cube1's current frame
so.data.columneight = _root.column8.cube1._currentframe;
// Should update all the user's column8.cube1 current frame
so.onSync = function(list) {
_root.column8.cube1.gotoAndStop(so.data.columneigh t);
};
It seems as if when the users change the current frame of cube1 it does not invoke the onSync call. It should...but doesn't. Does anyone see if I am making a mistake?
Thanks,
gamist
-
You need to set it everytime the value changes.
like:
Code:
function setCubeFrame(column) {
so.data[column] = _root[column].cube1._currentframe;
}
Then call it everytime your cube switch's frames.
Psx
[Edited by psychlonex on 09-29-2002 at 07:14 PM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|