-
1. Re: Drop & drag in a symbol not at frame 0:00
meenat3 Jan 22, 2014 2:22 AM (in response to rossfranks)Hi,
Please give a try writing drag and drop code inside the "Complete" event within a Symbol's Timeline.
Let us know if it works.
Regards,
Meenakshi
-
2. Re: Drop & drag in a symbol not at frame 0:00
elainefinnell Jan 22, 2014 10:04 AM (in response to rossfranks)Hi, pancreasboy12-
You should probably use the creationComplete event in the symbol definition.
Thanks,-Elaine
-
3. Re: Drop & drag in a symbol not at frame 0:00
rossfranks Jan 22, 2014 4:25 PM (in response to elainefinnell)Thanks guys,
ok I gave it a whirl and it's not working.
Here's what I've done...
http://twistedpancreas.com/edge/misc/dropDrag.zip
dropDragSimple is a working version from the video tutorial I did.
dropDrag is trying to get it to work within some symbols, but alas the circle won't drag
Any help is appreciated.
-
4. Re: Drop & drag in a symbol not at frame 0:00
elainefinnell Jan 23, 2014 11:32 AM (in response to rossfranks)It looks like you were really struggling with scope in the sample. Here's a cleaned up version of your file:
What I did was to:
- Rename "circle" to "combination" to remind me which one had both the target and the element to be dropped
- Removed the code to include the call to yepnope and used the fancy, new script loading feature to include jQuery-UI (look in the Scripts section of the Library Panel)
- Changed the call to be local to the combination symbol (in that context, "sym" stands for "the current symbol," which is "combination" in this case)
Hope this helps!
-Elaine
-
5. Re: Drop & drag in a symbol not at frame 0:00
rossfranks Jan 23, 2014 3:24 PM (in response to elainefinnell)Thanks Elaine,
that's the ticket!
One other small thing, the reason I had all of that in one main symbol was so that I could animate that main symbol scaling. The problem is that throws out the drag and drop like so...
http://twistedpancreas.com/edge/misc/dropDragScaled.zip
Is there a way around that?
-
6. Re: Drop & drag in a symbol not at frame 0:00
rossfranks Jan 27, 2014 8:32 PM (in response to rossfranks)No way around it?
-
7. Re: Drop & drag in a symbol not at frame 0:00
rossfranks Jan 29, 2014 2:47 PM (in response to rossfranks)Hmm maybe I'm not getting a response here because the post has been marked as "Correct". I'll make a new post.



