Adobe Connect User Community
Menu

#1 2008-11-26 11:20:11

**_nickcourt_**

Drag and Drop interaction fails in Connect

Hi

I have published a few slides containing flash interactions.  Most work OK but those with drag and drop don't work.

The drag part of the script seems OK but the target doesn't seem to be recognised.

Works fine stand alone and in Powerpoint.

if anyone has any ideas .... samples below:

http://www.le.ac.uk/sc/njc6/connect/index.htm

http://www.le.ac.uk/sc/njc6/connect/dra … roblem.ppt
Thanks

Nick

Last edited by **_nickcourt_** (2008-11-26 11:21:47)

Offline

#2 2008-11-28 12:19:46

alistairlee

Re: Drag and Drop interaction fails in Connect

Hey Nick,

I'm assuming - based on your example - that these were created with Flash, not by using a drag & drop quiz question with Presenter.

When you run it inside of a Connect room, you're introducing an extra layer of complexity since the Connect room is itself a flash movie.  That's not to say it won't work - but there are best practices and you definitely want to avoid any code that could interact with the Connect meeting room as well.
- Stay away from Global variables - these could conflict with existing variables in the meeting
- Use relative paths instead of absolute paths.  For example - stay away from using _root. Using _root will definitely cause problems with your content since _root will refer to the container of the Connect room, not your flash movie.

Thanks,
Alistair

Offline

#3 2008-12-01 04:11:39

**_nickcourt_**

Re: Drag and Drop interaction fails in Connect

Thank for that Alastair ... thanks for your response.

I *think* all my paths are OK .. I have modified a script from a third party .. (in the great tradition) and I can't see what's amiss. 

This is the only script in the movie - it is in the first frame. 

To be honest I don't know if anything in here counts as a 'global variable' or anything likely to conflict with the Connect environment. If you or anyone could have a look to see if there is anything glaring then I would be v grateful.

code is here:

http://www.le.ac.uk/sc/njc6/connect/draganddrop.txt



cheers

Nick

Last edited by **_nickcourt_** (2008-12-01 05:38:24)

Offline

#4 2008-12-15 05:57:54

**_catholicon_**

Re: Drag and Drop interaction fails in Connect

The code you mentioned looks fine. But, in my experience, these things don't work out because some hidden object becomes the drop target. I think a nice way debug this would be to put trace statements in your code for _droptarget.

To have traces from the webplayer, you would need to install debug flash player from http://www.adobe.com/support/flashplayer/downloads.html. Then configure mm.cfg to have traces available.

Hope that helps. BTW, please share the solutions that you would come up with. It would help the community :).

Offline

#5 2008-12-15 06:08:00

**_nickcourt_**

Re: Drag and Drop interaction fails in Connect

Thanks for that catholicon ...Stragely enough I have just been tracing the results for _droptarget and indeed other undefined objects are showing as the drop target. 

Will post WHEN I succeed!!!  (currently trying hitTest for a different approach)

N

Offline

#6 2008-12-19 05:05:39

**_nickcourt_**

Re: Drag and Drop interaction fails in Connect

Oh ... by the way ..  I have bought my way out of the problem. 

I got a drag and drop component form Flashvalley:

http://www.flashvalley.com/fv_components/dragNdrop/

which works just fine :)  Life is too short

Cheers

Nick

Offline

#7 2009-01-09 16:42:51

**_catholicon_**

Re: Drag and Drop interaction fails in Connect

Just found the problem that you might have been hitting (although I know you are now using the component....but it still might help someone else).

The _droptarget variable is being reported with the top level movie clip on stage (ie Presenter's top level movieclip). Although, eval("/") is returning the top-level movieclip of the embedded swf. Hence, eval(_droptarget) was evaluating to undefined and eval couldn't find the path wrt to the embedded swf's root.

This happened to me for embedded swf compiled for FP8.
Although, an embedded swf compiled for FP6 got corrrect return value from eval and hence the drag drop things work out.

Offline

#8 2009-01-13 11:39:39

**_nickcourt_**

Re: Drag and Drop interaction fails in Connect

Catholicon ... you are a god.

Published as FP6 et voila! all working as intended!!

Offline

Board footer