Adobe Connect User Community
Menu

#1 2010-05-03 08:32:23

**_flashcurious_**

Help With Path Error

I previously posted a problem with my code which works in test mode but not in Connect:

Pod 1:

combo.addItem({data:"1", label:"Choose"});
combo.addItem({data:"2", label:"Quality Assurance"});
combo.addItem({data:"3", label:"Phone Shop"});
combo.addItem({data:"4", label:"Fast Fix Sales"});
combo.addItem({data:"5", label:"Accounts Role Play"});
combo.dropdownWidth = 150;


var listenerObject:Object = new Object();

listenerObject.close = function(eventObject:Object) {
    combo.syncThis("close", combo.selectedItem.label);
};
combo.addEventListener("close", listenerObject);


combo.syncThis=function(message, theObj){                                   
    syncConnector.dispatchSyncMessage(message, theObj);   
};

Pod 2:

function syncMessageReceived(p_evt){
    trace("syncMessageReceived - fired by "+syncConnector.userID);
    trace("p_evt.messageValue="+p_evt.messageValue);
    textoid = p_evt.messageValue;
    class_name.text = textoid;
};

syncConnector.addEventListener("syncMessageReceived", this);

Here is what appears in the text box that is supposed to change:
_level0.mainMC.m_room.scaleArea.m_pods.module9.m_thePod.m_imgSwfLoader.m_swfHolder.swf_mc.innerClip.textoid

I've tried setting that path in the Flash code, anticipating the module number correctly, but no go.

Anybody have any ideas?

Thanks

Offline

#2 2010-05-03 10:38:42

**_jcooper9099_**

Re: Help With Path Error

Is your FLA set to use actionscript 2 or 3?

Offline

#3 2010-05-03 11:29:03

**_flashcurious_**

Re: Help With Path Error

Thanks for your reply.

Yes, AS2 and Flash Player 7.

Puzzling because it works fine in the test environment but not in Connect.

Offline

#4 2010-05-05 11:58:04

**_jcooper9099_**

Re: Help With Path Error

I am confused by your code. Is this one pod talking to another pod or one pod instance talking to another instance of  a pod?

Offline

#5 2010-05-05 12:31:29

**_flashcurious_**

Re: Help With Path Error

Two different pods.

We are gathering participant data for uploading to our LMS so we need to have the class name only editable by the instructor.

So that is pod 1 talking to pod 2. Pod 1 has the drop-down that populates the class name field in pod 2, which contains the user-entered info.

Thanks for your reply. If you have a better solution, please advise.

Offline

#6 2010-05-05 14:00:42

**_jcooper9099_**

Re: Help With Path Error

I am not able to get the two differnt pods to communicate, however if I do this within the same pod it works in connect but not locally.

Offline

#7 2010-05-06 07:17:10

**_flashcurious_**

Re: Help With Path Error

I was able to get this working after watching Alistair's demo.

Anyone wanting to do Connect development should search on SDK and watch this demo. Some other helpful links come up as well.

Thanks to all that gave me feedback.

Offline

Board footer