Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-02-2005, 12:00 PM   #1
xoof
Registered User
 
Join Date: Jun 2005
Posts: 2
Default Drag & Drop from Scroll Pane Component to another location

I have read other posts concerning similar matters but they have'nt really helped me.

My situation is:

I have a scoll pane component inside of which are movieClips which can be dragged around.

I need them to be draggable outside the component to another level (_root for example). At present they only move within the confines of the scroll pane.

If possible i want to aviod having to attach a new instance to the _root and remove the original from the scroll pane as the movieClips are all dynamically generated and have lots of functionallity assigned to them when they are created.

So i am asking: Is there a way of moving a movieClip instance from the scroll pane to the _root without having to attach a new instance and start assign all the functionailty from scratch?

If not, what is the best way of approaching this task?

Thanks in advance.
xoof is offline   Reply With Quote
Old 06-02-2005, 06:58 PM   #2
sleekdigital
I like pizza!
 
Join Date: Feb 2003
Location: PA
Posts: 1,310
Send a message via AIM to sleekdigital Send a message via MSN to sleekdigital Send a message via Yahoo to sleekdigital
Default

You are going to have to use attach or duplicate. If you use a movieclip subclass, then your new instance will have all the same properties and methods as the instance in the scroll pane ... Unless you change things on that instance at runtime, in which case you could create a static method that makes creates a copy. Have the method take take an instance as an argument, and then have it create a new instance and copy properties from the original instance.
sleekdigital is offline   Reply With Quote
Old 06-02-2005, 08:02 PM   #3
xoof
Registered User
 
Join Date: Jun 2005
Posts: 2
Default

Got ya, will give it a go! Thanks!
xoof is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:18 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.