Flash :: Professional - Drop Target Not Working In Container?

Mar 3, 2010

I have produced a Flash movieclip, containing a fair few layers, including masked layers, actionscript etc. One of the things it does is allows the user to click and drag a number of movieclips and drop them anywhere within the mc, but if they drop them on specific drop targets then some actionscript (AS2) kicks in, stops the drag object from being draggable again and advances through its frames to basically 'enlarge' the drag object and play a sound to show the user they've hit the right mark. This all works perfectly on its own, or in a browser window etc.

The problem I have is when I try to insert the Flash movie into an Adobe Captivate 4 e-learning package. Things work ok apart from when you drop the dragged object onto a drop target, nothing happens. The actionscript doesn't execute. Would the fact that the movieclip is (probably) sitting within a container (the Captivate e-learning package) be causing the problem? If so, how do I get around this issue?

View 5 Replies


Similar Posts:


IDE :: Drop Targets Not Working After Mc Put Into Container?

Feb 25, 2010

I have produced a Flash movieclip, containing a fair few layers, including masked layers, actionscript etc. One of the things it does is allows the user to click and drag a number of movieclips and drop them anywhere within the mc, but if they drop them on specific drop targets then some actionscript kicks in, stops the drag object from being draggable again and advances through its frames to basically 'enlarge' the drag object and play a sound to show the user they've hit the right mark.

This all works perfectly on its own, or in a browser window etc.

The problem I have is when I try to insert the Flash movie into an Adobe Captivate 4 e-learning package. Things work ok apart from when you drop the dragged object onto a drop target, nothing happens. The actionscript doesn't execute.

Would the fact that the movieclip is (probably) sitting within a container (the Captivate e-learning package)? If so, how do I get around this issue?

View 1 Replies

ActionScript 2.0 :: Drop Target Function Stops Working?

Sep 16, 2009

I made a flash site and one of the pages has drag and drop functions with drop target actions, so that text appears once dropped onto a target.It works fine but when I have it loaded inside an external editor, the drop and drag still works but the drop target function stops working.

View 0 Replies

Professional :: Using GetRect As A Drop Target?

Feb 27, 2012

I want to use getRect for a target that is on the bottom layer of my timeline so that I can detect is an answer has been dropped on a target even if something is covering it.  My code at the moment isnt working, anywhere I drop my answer acts as if it is on the target.This is so I can have multiple answers for the one target, the problem I have been having is once a correct answer has been dropped, it then covers the target and causes other answers to not be able to "see" it.
 
var startX:Number;
var startY:Number;
trace(getRect(target1));
this.ans1.addEventListener(MouseEvent.MOUSE_DOWN, pickMe1);

[code]....

View 5 Replies

Professional :: Create A Drag And Drop Target Set?

Mar 2, 2011

I want to be able to create the following if possible:
 
Create five words that make up a sentence and they are mixed up in order. So basically I would turn each word into a Movie clip perhaps.
 
I would then like to assign a target hotspot for each word so that a user can drag the words into the correct order.
 
Once they are in the correct order they click a button to go to a correct response or incorrect response. Is this possible?

View 1 Replies

Professional :: Enlarge Drag And Drop Target Area?

Jul 23, 2010

if this is posted elsewhere I searched but could not find topic. I would like to know if there is a way to enlarge the size of the target drop point. Seems the users have to be spot on or the shape snaps back.
 
Any way to give users a little more wiggle room with target drops?

View 6 Replies

Professional :: Drag Drop Objects To Multiple Target Areas?

Oct 30, 2010

I am trying to make a quiz on metals. I have several elements which i want to fall into multiple target areas (e.g. the target areas are shaded grey in the following swf; metal_mc, nonmetal_mc, metalloid_mc). I can make individuals match to target areas (as there are tutorials for that) but i want each one to be able to slide in to any target area (and someday i want to create a solve button which will then place each element in the correct place). have started all over and have designated only chlorine to move (for the moment) but how do i code it to allow it to fall into any of the grey areas?

var objectoriginalX:Number;var objectoriginalY:Number;chlorine_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);chlorine_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);function

[code].....

View 6 Replies

ActionScript 3.0 :: Flash Release To Drop NOT WORKING On Drag And Drop?

Mar 10, 2011

Release to Drop NOT WORKING on drag and drop? Or is it something else?Can be seen here:

[URL]

Code:
var origX:Number;
var origY:Number;
for(var i:uint=1; i<6; i++){
this["choice_"+String(i)].buttonMode = true;

[code]....

View 3 Replies

ActionScript 3.0 :: Drop And Drop 4 Movie Clips To Single Target To Navigate To Separate Urls

Jan 20, 2010

var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
navigateToURL(new URLRequest(http:// websiteAdress.com));
 
I am trying to navigate to a new url for each movie clip, problem is im really unsure of how to achieve this I have one target on my page and would like to be able to drop any of these movie clipt o to  it?
 
the movie clips are named:

port1_mc
port2_mc
port3_mc
port_4mc

View 3 Replies

Professional :: 2nd Scene Not Working If Landing Target Is Other Than 1st Frame

Apr 19, 2010

Ok... I have 2 scenes.... 1st scene is an intro menu with several movie clip symbols (let's call them buttons for all intents and purposes) that gotoAndPlay various sections of the 2nd scene when clicked ... The various buttons on this intro screen point to different frame numbers in the 2nd scene... button1 goes to frame 1 of scene 2... button 2 goes to frame 10 of scene 2.... button 3 goes to frame 20 of scene 2 and so on....

when I click  the 1st button, it takes me to the 2nd scene at frame 1 and correctly shows me that page ... (all 2nd scene pages have a navigation bar at the top to access the other 2nd scene pages) ... when I click on a navigation button it takes me to the next page within the 2nd scene that I am looking for and each progresive page works correctly.

[Code]....

View 6 Replies

Professional :: Drag And Drop Jigsaw Not Working

Apr 9, 2011

After 3 drag and drops of the puzzle I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MultimediaProducttest_fla::MainTimeline/dropIt()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MultimediaProducttest_fla::MainTimeline/pickUp()

restbar_btn4.addEventListener(MouseEvent.CLICK, restbar4Clicked);
museum_btn4.addEventListener(MouseEvent.CLICK, museum4Clicked);
sark_btn4.addEventListener(MouseEvent.CLICK,sark4Clicked);
market_btn4.addEventListener(MouseEvent.CLICK, market4Clicked);
[Code] .....

View 10 Replies

Flash :: Using A Vgroup As A Drop Target In Flex

Dec 3, 2010

Is it possible to use a VGroup as a drop target in flex? I like the functionality of a vgroup (adding elements easily, etc) but I haven't found a way to get it to register when things are dropped on it.

View 1 Replies

Actionscript 3 :: Flash Pro Drop Target Instance During Authoring On Artboard

Sep 21, 2011

Developing custom components within Flash Professional CS5.5, I am attempting to implement functionality similar to the way a UIScrollBar can be dropped on a TextArea to bind functionally.Place a TextArea on the artboard.Drop a UIScrollBar on to the TextArea.The UIScrollBar will auto-position itself against the TextArea, and if instance names are not defined, the TextArea will receive a name such as 'InstanceName_0' and the UIScrollBar's scrollTargetName will set to match.For those familiar with Flashblocks Flash CMS, this functionality is replicated using their Editblock component. The Editblock can be dropped on a component, automatically position itself, and bind instance names.Following threads and examples, I see mostly historical implementations citing _targetInstanceName and scrollTarget.[code]

Is this a special property of "scrollTargetName", or can this functionality be implemented with different property names?Have I correctly implemented this functionality per Adobe's intention of authoring on the artboard?UPDATE 2012-01-05My remaining issue is getting the dropped component to position itself. Regardless of x and y positioning, the DisplayObject remains at 0x0 upper-left corner. I know this must be possible as a scroll-bar can change its position when dropped on a text area.

View 1 Replies

Target Container On Main Timeline?

May 19, 2009

I have 3 movieclips on the main stage.

btn1, 2, 3

I have this code in the maintime line, that when i click a button, the btn the stays static (like its on), when i click another btn, it switches on the next button and loads an external swf.

Each button's instance name is button1, 2, 3..and more buttons I add the stage I would increase the button number, so for 3 buttons on stage I have up (var buttonNum:Number = 3

code//
var buttonNum:Number = 1;
for (i=1; i<=buttonNum; i++) {
this["button"+i].onRollOver = function() {

[Code].....

This all works fine.

I have built a scroller with thumbnails as movieclips and would like to add this code to movieclips.

The thumbnails are indivdual moviclips and are inside a movieclip (productscroll), as the dragbar i am using targets the clip (productscroll) to scroll the thumbnails.

I basically need the same actions as the buttons. When I click a thumbnail I need to load an external swf.

View 3 Replies

ActionScript 2.0 :: Placing MC Into A CONTAINER MC, Target?

Jul 8, 2004

I'm using an effect I found on the net which moves clips around randomly, works really nicely, however, Im having a problem with it when it's put inside another MC.I have a site setup that uses a navigation section which loads the separate sections into a container MC on the stage. When the section is loaded that contains this special effect, it doesn't work. I guess this is a target issue in the action script somewhere, but I'm not good enough with code to see it.he special effect file and a "container" file for it to simulate my problem are attached.[URL]

View 3 Replies

Professional :: Run Project (main Container SWF And Child SWFs) Into Another Container File Which Place On A Website?

Jun 17, 2010

I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
 
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?

View 1 Replies

ActionScript 3.0 :: Target A MC Being Loaded Into Empty Container?

Oct 1, 2010

I'm trying to somehow target a MC being loaded into an empty container MC. I've tried everything I could think of.

Basically, I'm making a movie editor. Right now clips are added to the stage on initial load, then when they are clicked on they are added to the "reel" and they can be previewed in the order that they are added. Now, I'm trying to get it so that when they are on the "reel" they can be click and dragged and rearranged.

Here's how the clips are added to the stage in a function called loadClips():

ActionScript Code:
addChild(clip1);
clip1.name = "1";

Here's how they are being added to the "reel" in addClips():

ActionScript Code:
if (currentTarget.name == "1")
{
clipCopy = new Clip1();

[Code]....

Now, I just want the clips that are on the reel to be click and drag-able (along the X axis but I'll worry about that later). I realize now they're all being added as clipCopy. That's going to be an issue huh? Is there a way that I can target the container and make that mobile?

View 2 Replies

ActionScript 3.0 :: Target The Parent Container Of Whichever Object Receives An Event?

Sep 28, 2010

how I can target the parent container of whichever object receives an event?

Code:
Parent1.btnA.addEventListener(MouseEvent.CLICK, doSomething);
Parent2.btnA.addEventListener(MouseEvent.CLICK, doSomething);
Parent3.btnA.addEventListener(MouseEvent.CLICK, doSomething);

[Code].....

View 1 Replies

ActionScript 3.0 :: Cannot Drag And Drop Picture In Container

Nov 22, 2009

I am having this problem with my movieclips. One is container_mc and inside it is picture_mc. They both have drag and drop functions. Container drags when it is clicked...but when I try to drag and drop picture_mc, I end up dragging the whole container itself. picture_mc is inside container_mc.

View 7 Replies

Flex :: Drag And Drop An Image From A Container To Another?

May 23, 2011

I need a way to drag and drop an image from a container to another. I have tried a few different ways but I guess the drag & drop thing is still eluding me. Anyway, here's what I am trying to do, A container will contains a few bitmap/vector image (what's the best way for this? Tile Group? Or?) and then I want to be able to drag any of the image onto another larger Image inside of a Panel. Just like dragging shapes in Photoshop. No code here, as I am completely lost on how to go about it. I found a few tip/tutorial here and there but none which I could understand easily or adapt to my need.

Edit 1 : Got so far till now :
public function beginDrag( mouseEvent:MouseEvent ):void
{

[code]....

View 2 Replies

ActionScript 2.0 :: CS3 Drag N Drop Target?

Jul 21, 2010

I created a drag N drop .swf that works great until i pull it into the main movie (see attached for coding). The drag works, but not the drop. I know its level's issue/pointing and the targets i.e. "/target_ex" arent being read correctly by the main...

[Code]....

View 1 Replies

ActionScript 3.0 :: Drop Target Can't Open Url

Oct 28, 2009

I have a movie clip on the stage called targetport1a_mc and i want to drop port1a_mc to it and open the url.[code]...

View 3 Replies

ActionScript 3.0 :: Drop Target Can Not Be Identified?

Jun 12, 2011

-I have a movie clip  mc1 that is a member of an array lets say arr1

-I have another Movieclip mc2 which is member of another array arr2
 
-I have a start drag stop drag function. When I start dragging mc1, I also want to trace the event target index of arr1. Well it shows me the index of mc1 in arr1 quite ok.
 
-Now I stop dragging mc1 on mc2. mc2 is now the drop target. ok. And I want to trace the drop targets index in arr2. it should be something not minus right?
because mc2 is a member of arr2. But it gives me -1 .WHY.
 
-And second, If I trace what the drop target is , it sholud say mc2 . but it says OBJECT-SHAPE. ANOTHER BÄ°G WHY

View 10 Replies

ActionScript 1/2 :: Drop Target Under A Movieclip?

Feb 27, 2012

I have some drop targets that work, but I also have a movie clip that can be turn on over the main timeline. All this clip is, is some low alpha colors for a viewing effect. Since it's above the drop target though it doesn't want to work. Is there a way to make it associate with the droptarget underneath, or a way to make the

View 6 Replies

ActionScript 3.0 :: Drag And Drop Target?

Sep 10, 2009

I have a drag and drop game, 4 objects can be dropped onto 4 targets, I have no problem getting it to work when there is one specific target for each object... however I want the user to be able to drop any of the objects onto any of the targets ( before it locks them down) I just cant figure out the action script for this

View 5 Replies

ActionScript 3.0 :: Drag And Drop Onto One Target

Nov 5, 2009

I have mutiple items that are supposed to go to one target. I am dragging items into a cart graphic. The problem is none of the items want to go into the cart. The target for the cart is called "cart".. Here is my code

Code:
handbag1_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
handbag1_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
handbag2_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
handbag2_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);

[Code]....

View 9 Replies

ActionScript 3.0 :: Drag And Drop Target On Top?

Jun 15, 2010

I have 4 items and 4 target zones in which the items can be dropped. I want to be able to drop several items on the same target.However, I've noticed that the space occupied by one item "covers" part of the drop target. As a result, I have to drop the next item next to the previous one. I'm wondering why each item I drop on a target zone covers the space of the target zone it occupies, and how I could avoid this. Here's part of my code (see dropit function)[code]...

View 3 Replies

ActionScript 2.0 :: Drag And Drop On A Target?

Mar 16, 2011

Im trying to drag a mc onto a target mc.ive got the drag part ok, but im finding it hard to drop on the target area.i think its got something to with the x y co ords.

View 6 Replies

ActionScript 3.0 :: Cant Seem To Get Drop Target To Work

Jun 15, 2011

I'm trying to do a basic drag and drop. I can pick up and drag my MC named "wide_mc" thats inside my "Toolbox_mc". That works fine.I cant seem to get the drop target to work.The target is "c_mc" which is burried inside a MC called "MyPicture_mc".I want to drop it on MyPicture_mc.c_mc.[code]

View 1 Replies

ActionScript 3.0 :: Drag And Drop Color To Target Mc?

Nov 17, 2009

how to drag one movieclip(color button) to another movieclip(target to have color changed) and have it change the color of the clip?I have a color menu and I want to be able to drag the color to an mc on the stage and when released over the top of that mc it will change its color.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved