ActionScript 2.0 :: DropTarget Not Working When Puzzle Loaded Into Movie

Nov 14, 2002

I have a problem with _droptarget. I created a puzzle in witch the target works. Now I want to load the puzzle into an other movie, lets say in _level100. Everything in the puzzle works, except for the _droptarget.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Droptarget.name Not Working Properly?

Aug 6, 2009

I'm setting up some objects connected to classes onto a movie clip dynamically, and although I'm setting the name fine, when I drag another movie clip on top of it and trace for droptarget.name I always get something like "instance01" what am I doing wrong?

View 4 Replies

Jigsaw Type Puzzle And Visibility Not Working?

Jul 2, 2009

The top left corner works ok - I copied and pasted the code and made the minor changes. The other 3 parts of the puzzle are causing a real puzzle for me.I've checked instance names, and everything else I can think of.Is there something in the code that could prevent the other bits working properly? Some of the names aren't brilliant - I thought this would only take a few minutes to knock up!

Code:

// Drag cameron 2
a2.onPress = function() {
this.startDrag(false);
};

[code]....

View 1 Replies

Jigsaw Type Puzzle And Visibility Not Working

Mar 14, 2009

I have a simple jigsaw type puzzle - only 4 pieces at the moment. The top left corner works ok - I copied and pasted the code and made the minor changes. The other 3 parts of the puzzle are causing a real puzzle for me. I've checked instance names, and everything else I can think of.
Is there something in the code that could prevent the other bits working properly?

Code:
// Drag cameron 2
a2.onPress = function() {
this.startDrag(false);};
a2.onRelease = function() {
this.stopDrag();
// Convert the slash notation to dot notation using eval.
if (eval(this._droptarget) == b_mc) {
b_mc._visible = false;
c2._visible =true;
a2._visible =false;
change_score();
}};
The fla is attached.

View 1 Replies

ActionScript 2.0 :: Make A Puzzle With An Externally Loaded Background?

Oct 7, 2007

I am trying to make a jigsaw puzzle where you can upload an image of a set size.Right now the only way I can think to do that would involve loading the same image for each piece, which I don't want to do for performance reasons.Is there a way I can make an instance of a movieClip the same as the instance of a different movieClip?

View 1 Replies

ActionScript 1/2 :: Single Droptarget For Multiple Movie Clips?

Aug 19, 2010

I have a movie clip which i use as a drop target. And I have four additional movie clips which can be dragged and dropped into the droptarget movie clip. But when I place a movie clip into a droptarget and I drop the second one too, the droptarget for the second one becomes the first movie clip but not the actual droptarget movie clip.

View 3 Replies

ActionScript 1/2 :: Draggable Objects Don't Register On The Droptarget As They Are Within Another Movie Clip

Apr 9, 2010

Unfortunatly im having to extend to more draggable objects. So they will be within another movie clip so i can have them scrolling. After making the scroll, the draggable objects dont register on the droptarget as they are within another movie clip. Below is i think the part of the code that needs to be changed so the draggable objects know where to find the drop target.

View 1 Replies

ActionScript 2.0 :: Loadsound() Not Working When Movie Is Loaded In Other Movie?

Mar 17, 2009

I'm made a flash movie[main movie 1] where another movie is loading using the "loadMovie()"[this is the movie2] command.my probblem is - when I'm trying to loadsound in to the second movie

Code:
var mySound1:Sound = new Sound(this);
mySound1.loadSound("music.mp3",true);

[code]....

View 3 Replies

ActionScript 2.0 :: Can Not Working On Loaded Movie?

Dec 17, 2009

i have a chat page in flash, that works.but when i load the chat true a loader (loadmovie) it works but only the cam is not working (own cam).in my chat.swf this works

if (Camera.names.length > 0)
{
cam = Camera.get();[code].....

to view a local copy of the cam.the same fuction works it i put it in the loader.swf but when the chat.swf is loaded into the loader.swf the fuction does not work anymore.also not working when loaded true the loader

cam.onStatus = function (data)
{
tracer.text = data.code;[code].....

and works when loading the chat.swf directly.viewing camstreams works, but publishing and local view dont works

View 2 Replies

ActionScript 2.0 :: Movie Clip Resize Not Working When Image Is Loaded

Oct 25, 2007

I'm having some strange luck in building an image slide show.I load the image paths into an array from an XML page and then step through the array elements w/ forward and back buttons.I have an empty image clip on the stage where I create an empty movie clip inside each time a new image is loaded.I load the image into the second movie clip like this:[code]Now, 98% of the time this works perfectly, but there is some certain times where the image resizing is completely ignored and the image gets loaded as it's normal size.Can anyone see why the image sizing get's ignored in some instance?

View 1 Replies

ActionScript 2.0 :: Form Mailer Not Working When Loaded Into Movie Clip?

Apr 19, 2004

I followed this tutorial for a form mailerHowever when I try to load this from my main swf into a movie clip holder, it no longer works. It only wants to work by itself, im a novice at flash/actionscript but im wondering if this is causing the problem by trying to get to the root of my main movie instead of the actual mailer.swf?

onClipEvent(data){
_root.nextFrame();
}

View 3 Replies

ActionScript 3.0 :: Loaded Swfs Not Working When Loaded Through Xml?

Jun 10, 2010

I have a "photo" gallery that loads numerous SWFs through xml, one by one on click. All works fine. All my SWF work fine stand alone. But when I load them into the player, many swf dont work properly.in example, I have textinput textfields in many of the swfs, which work fine on their own but not when loaded into the player. Then I have a word search game that works fine when alone, not when in player. I can see there is something as my mouse cursor changes into the "button finger", but nothing visual.

All drag and drop assigments work fine etc. I have no idea whats up. I have receantly switched to as3 and in as2 there was _lockroot declaration that solved similar problems, but now in as3 (where it supposedly should be automatic) it doesnt work. As it seems that it cannot recognise it own stage value, or selection_focus when loadedinside another swf through xml.Using cs4, as3.

View 4 Replies

ActionScript 3.0 :: How To Use Droptarget

Nov 29, 2009

in AS2 it was

Code:
on (press) {
startDrag(this);
}
on (release) {

[Code]...

i want "x_mc" to droptarget on "y_mc" and use an action

View 2 Replies

ActionScript 3.0 :: Droptarget Only Contain 1 Mc?

Feb 18, 2009

I'm having a little problem of which I'm guessing the solution isn't that hard.. but I just can't put my finger on it...

The thing is: I have got 5 movieclips which are able to drag and drop. Next to that I've got 20 containers which are all droptargets. The movieclips are able to be dragged and then dropped on a container. So far so good. But what I want is that when I drop a movieclip on a container which already has a movieclip dropped on it, the first movieclip gets removed and the second movieclip is dropped on the container. Or you could also say.. that the second movieclip replaces the first movieclip. This instead of the fact that a container has multiple movieclips dropped on itself.

[Code]...

View 3 Replies

Can't Make Droptarget Work

Mar 31, 2010

I have been going nuts all day trying to figure out why my 'drag and drop onto a target' movie doesn't work. I have a movie clip to drag onto another movie clip which is the target.when the first clip is dragged onto the target clip i want the target clip to gotoandplay(2);

the clicking and dragging and stopdrag() etc works, but when I drop the piece over the target, it just does nothing.here is my code on the MC that is being dragged:

on(press){
startDrag (this, true, 135, 95, 700, 440);
}
on(release){

[code]....

btw, I am using actionscript 2.0

View 2 Replies

ActionScript 3.0 :: Null DropTarget?

Jun 14, 2009

I'm testing out some different things right now and I'm trying to make a box, that, when one of two balls is dragged and dropped into it, causes the correct color text to display (i.e. redBall displays "RED", blueBall displays "BLUE" when dropped into box).I've gone through a few different ways of doing this, but now I"m trying to use dropTarget.I'm finding that when I drop it into the box using the code below, everything works fine, but if I drop is anywhere outside the box, I get an error stating "Cannot access a property or method of a null object reference."I'm assuming that I'm just wording this second dropTarget conditional statement (if (e.currentTarget .dropTarget == null)) incorrectly, but I'm not sure how to fix it.Here's the code of the dropping function I'm using:[code]....

View 3 Replies

ActionScript 2.0 :: Droptarget Won't Work?

Sep 15, 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

ActionScript 2.0 :: Use Droptarget With Dot Syntax?

May 19, 2004

How can I replace this code to use dot syntax instead of slash?[code]...

View 1 Replies

ActionScript 2.0 :: Using Droptarget With Dot Syntax?

May 19, 2004

How can I replace this code to use dot syntax instead of slash?

Code:
square.origX = _x;
square.origY = _y;

[code].....

View 1 Replies

ActionScript 3.0 :: Emptying A DropTarget On MouseEvent?

May 5, 2009

I'm building a grammar excercise where I've got 24 drag'n'drop cards (movieClips), that I can drop into two 'slots' or dropTargets. Each card has its corresponding card, and when the right cards are dropped in the dropTargets, they get a 'well done' message, and a button appears so the user can go on to matching the remaining cards. When the button is clicked, I want the dropped cards to simply disappear.

View 7 Replies

ActionScript 2.0 :: Create A Droptarget Dynamically?

Oct 10, 2010

How can I create through actionscript (i.e. not drawing it on the stage) a drop target that works? For some reason I can't work it out. I tried the following code (it looks reasonable), but nothing happens when I drop the square_mc on the target[code]...

View 2 Replies

ActionScript 3.0 :: Something Similar To CurrentTarget With DropTarget?

Mar 10, 2009

is there something similar to currentTarget with dropTarget?Right now dropTarget will get me the "lowest" DisplayObject possible, but I'd like to get the top-most. I cannot use parent as my objects are of different nesting depths.

View 1 Replies

ActionScript 3.0 :: DropTarget And Mouse Overs?

Feb 21, 2010

I have a drag and drop based SWF. When I pick up a MC and move it , when I put it down it gives me the MC it is on.However there are times when the returned MC isnt the intended MCEg. The top of the MC is *just* on top of One MC but the mouse pointer is over another (the intended spot), So I am trying to find out if there is a way to return the MC that the mouse is over, rather than the MC's top left corner.

View 1 Replies

ActionScript 3.0 :: Droptarget 1009 Error?

Sep 28, 2011

I am teaching with an basic AS3 programming class and we are looking at drag/drop. I cannot get the following code to work without a 1009 error when not dropping the ball into the inventory box.What we are trying to accomplish is creating an inventory for an adventure game.

Code:
function ball_drag(event:MouseEvent):void {
ball.startDrag();

[code]....

View 5 Replies

How To Get Puzzle Game To Be Aligned Right

May 21, 2009

I'm pretty new to flash but recently got an assignment at college to produce a childrens game, I've been following a tutorial online to produce a jigsaw puzzle, so I can get use to actionscript and gain a little experience. I cant get some alignment right. I've followed this tutorial exactly and this is where i am stuck, below are the instructions and how it should look:
This is how mine looks, as you can see its out of place:

View 2 Replies

Professional :: DropTarget Check Against All Objects On The Stage

Oct 1, 2010

Not sure the best way to do this. I have a class we will call DropActivity, here is the code

[Code]...

when the stopDraggingMe() method is called from another object (code shown below) I need to see all the objects on the stage to see what objects on the stage my currently selected movie clip is over and assign it to the dropCheck.checkAgainst method (that will be checked against an array to see if it can in fact be dropped, if so set the canBeDropped value to true and therefor run the .stopDrag() ). I have read using root is not a good coding practice in AS 3.

[Code]...

View 3 Replies

ActionScript 3.0 :: Disable DropTarget Method For Specific MC?

Feb 20, 2011

I want to drag a object using a animated hend (MovieClip) and drop it in a holes. I cannot use dropTarget method to this because when i trace(object.dropTargat.parent.name) output shows "hend" only.

View 3 Replies

ActionScript 2.0 :: Action For A Draggable Button With Droptarget?

Jan 10, 2005

I have a draggable button , and I need to go to "scene1" when the draggable button is dropped into a droptarget ("dentro1") But it doesn�t work with this action (gotoAndPlay), it works with load movie, or get Url. It only goes inside de droptarget (called "dentro1") This is the code of the draggable button:

on (rollOver) {
startDrag(root_draggablebutton, true);
}
on (release) {

[code]...

View 1 Replies

Import Stage / Library Puzzle?

Jul 27, 2009

I'm using CS4 and was wondering why when I import my PSD files onto the stage I don't get a symbol created in the Library but when I import into the Library itself I do? Is there a prefercence somewhere I can turn this off or on so I don't have them created?

View 7 Replies

Professional :: Exceeding Stage Puzzle?

Feb 7, 2011

I placed a large photo (movie clip object) as a background onto the stage, but it exceeds the stage size by 25%.  It's done on purpose.  While I see it in the Flash authoring environment, the image excess refuses to appear in Internet Exlorer once published.I also have an animated object over (foreground) that does appear past the stage in the browser.

View 1 Replies







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