Skip to main content
Participant
July 5, 2007
Question

Using SwishMax for Captivate variables

  • July 5, 2007
  • 1 reply
  • 363 views
Hi guys

I banging my head against a wall trying to get some code to allow me to drag and drop using a swishmax swf file in captivate.
I just cannot seem to get the swf file to talk to the Captivate variables.
My actionscript code looks like this in swishmax

onSelfEvent (press) {
startDragUnlocked();
}
onSelfEvent (release) {
stopDrag();
if (_droptarget==_parent.box._target) {
this._parent._parent.rdcmndNextSlide = 1;
}
}

Is this the right syntax to reference the captivate variable "this._parent._parent.rdcmndNextSlide = 1;" ???

Any help gratefully recieved
    This topic has been closed for replies.

    1 reply

    July 5, 2007
    Hello, welcome to the forums.

    Try "this._parent._parent._parent.rdcmndNextSlide = 1"

    This should work

    Hope this helps

    Doug
    Participant
    July 5, 2007
    Well done, you helped me fix it

    The syntax that worked in the end was
    this._parent._parent._parent._parent.rdcmndNextSlide = 1
    i.e. 4 levels of nesting

    Thanks