ActionScript 2.0 :: Drag Thumbnail To Area, Load Picture

Jun 10, 2004

How can i alter this AS from a thread here into something where the person drags the thumbnail to a certain movieclip on the stage(say a red X), then the big actual image loads into another movieclip on the same stage. So basically instead of dragging the thumbnail to on top of the already loaded image to load the new thumbnail, the new thumbnail will be dragged to a different area (the red X) to the left of the already loaded image. If it isnt dragged and dropped on the certain area (the red X) then it eases back to it's thumbnail spot. This is the thread im talkin' about: [URL]

I uploaded a visual example of what im talking about.

View 14 Replies


Similar Posts:


ActionScript 2.0 :: Drag Thumbnail To Area And Load Picture

Jun 10, 2004

How can I alter this AS from a thread here into something where the person drags the thumbnail to a certain movieclip on the stage(say a red X), then the big actual image loads into another movieclip on the same stage. So basically instead of dragging the thumbnail to on top of the already loaded image to load the new thumbnail, the new thumbnail will be dragged to a different area (the red X) to the left of the already loaded image. If it isn't dragged and dropped on the certain area (the red X) then it eases back to it's thumbnail spot. [URL]

View 14 Replies

ActionScript 3.0 :: Drag And Drop System Where The User Can Drag A Movie Clip Into An Area (Snap & Overwrite)

May 20, 2011

Im trying to do a drag and drop system where the user can drag a movie clip into an area. Although i would like to make it snap to a target instead of just sitting wherever it lands in the area. Problem Two:

The next thing i am trying to do is when the user has a movie clip on a target already, and trys to put another movie clip in that target area, it will replace the one thats in there and go back to its current position. Here is the script of what i have done so far:

[Code]...

View 14 Replies

ActionScript 2.0 :: Thumbnail Scales To 100% Of The Picture?

Nov 18, 2006

Is it possible when I click on a thumbnail that the thumbnail scales to 100% of the picture (in an motion scale?), centered in the movie, and when I click again on the large picture that the picture re-scales to the thumbnail back again.

View 4 Replies

ActionScript 2.0 :: Picture Gallery And Thumbnail Doubts?

Jan 27, 2004

Here's the situation: I'm making a script that will dynamically load JPG's from a file and will eventually display each JPG's thumbnail them side by side. I've got the code going and would like to know any suggestions for corrections.

[Code]...

View 14 Replies

Professional :: Separate Two Thumbnail Images That Open Same Picture?

May 22, 2010

Ok the fourth page of the website is a portfolio page with 16 thumbnails (4 across 4 down) which opens a larger pic on the same page to the right.
 
I can't figure out what to change. The first and third thumb down seem to be linked and open the same image. Same with two and two down from that and so on. I want to separate them so each open their own image. If I edit it in PS both thumbs change...
 
I click several times and well thumb one and the third one down is:
 
onClipEvent (load) {
i = 1;
}

[Code].....

View 3 Replies

ActionScript 2.0 :: Photo Gallery With XML And Flash : Second Thumbnail Area?

Feb 5, 2007

I'm trying to get two thumbnail movieclips on the same page to display two different arrays of pictures. It's not working though and I'm not sure why, could someone please look at my xml and ActionScript and see what I'm doingwrong. I've been at this for a few hours now and I can't see whats wrong.

XML:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>

[code].....

View 3 Replies

ActionScript 2.0 :: Load The Area Of The Xml File Into Text Area On Mouse Click?

May 21, 2004

I would like to first add the xml to my flash. Fine I can do this.But I have a number of buttons, where when I click say CW1, i get the information from the XML file with a node of CW1. I have all the xml set up fine.As I have about eight different postcode types.

ST, CW, CH, TF, WV, WS, DE, SK, SY, and each of these may have numbers that follow, i.e ST1, ST2, ST3 and so forth.

So I can only assume that the postal area could be the main nodes, and the numbers inside the child nodes, am I right thus far.o how can i load the area of the xml file into my text area on mouse click, pulling the information relating.

View 11 Replies

ActionScript 3.0 :: Add An EventListener To A Specific Area Of A Picture?

Jun 16, 2011

Is possible to add an EventListener to a specific area of a picture ?

View 1 Replies

ActionScript 3.0 :: Taking A Picture Of An Area On Stage + Webcam?

Jan 6, 2012

taking a screen grab of a movie clip while the webcam is on..(the end goal is to create an app where people can put funny stuff on their face e.g an eye patch ect..)Is there any simple tutorials on how to do this?, i've tried the whole matrix thing but im still having issues when i resize or move movie clips around, to get it align with someones face!

View 7 Replies

ActionScript 2.0 :: 'undefined' In Txt Area And Picture Slider Only Loading Some Pics

May 21, 2009

I made a website that does it alright on the internet on my PC, and I haven't heard any complaints from my client either, but a few hours ago I visited a friend and on his PC the website didn't work exactly as it should. So I wanted to ask all who reads this, to please have a look at this and tell me if you have the same problem or not.

The website is here

When you're on the opening page you have to press the 1st button under the pics (the word = the link), then a centered flash pop-up appears with in the upper banner the buttons of the 4 different pages. In the Arabic "gate" there should always be a text scroller.

The problems were the following:

- - On some of the pages the text scroller didn't appear, or the scroller appeared but where the text should have been there was the word 'undefined'

- - On the "wat" page, there should be a horizontal picture slider behind that Arabic gate. On the PC of my friend only a few pictures appeared, making the gaps between the pics that were shown gigantic and with variable sizes (normally, with all the pics shown, the spaces between the pics are all the same width)

View 3 Replies

ActionScript 3.0 :: Sliding Thumbnail Gallery - Loader Content Drag

Jul 28, 2010

I have a sliding thumbnail gallery which when a thumbnail is clicked loads an external .png into a container with an instance name of mycontainer which I have on the stage in the .fla. Its added like such:
When the Loader's (which I gave an instance name of imgLoader) complete event is called the function onLoaded loads it -like this: mycontainer.addChild(imgLoader);

I also added a mask(stageMask2) to mycontainer which is the same size as the external .png--I then used this code imgLoader.mask=stageMask2; to mask the .png. I did this because I added a zoommc function which enlarges the imgLoader and wanted to keep the visible size of the container the same. I would also like to be able to drag the zoomed image. I don't want to drag mycontainer as it contains the mask and I cant drag the imgLoader as it doesn't have that property--Do I need to put the imgLoader in another container?

Here's the problematic code:
var stageMask2:Sprite = new Sprite();
stageMask2.graphics.beginFill(0x183045,0);
stageMask2.graphics.drawRect(swfX,swfY,604,403);
stageMask2.graphics.endFill();
var closeWin:TextField=new TextField();
[Code] .....

View 9 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

ActionScript 3.0 :: Drag And Drop, And Then Picture Change?

Jul 30, 2011

I'm using Flash CS5, and was wondering if this situation is possible:

I want to drag and drop an object to a specific area (which is a picture), and then the picture will change if the object is dropped at the area of the picture.

And I have one more question. Must drag and drop an object be in movie clip? I searched for examples and almost all use movie clip, a concept I have yet to understand.

View 5 Replies

ActionScript 3.0 :: Sprite Drag Area Is Too Big?

Jul 16, 2009

I've dynamically created sprites with graphics and added a text field dynamically to each sprite, displaying different text. These sprites (checkers in this case) are draggable. Without the text added to it, the drag area is very precise, dragging only when the circle is selected. However, when I dynamically add the text, there's a significant portion underneath and to the side of the sprite that is also draggable. This is really annoying when one sprite is placed above another because trying to move the sprite below causes the sprite with a lower y coordinate to move even though it shouldn't. When I tried to define a width and height for the text field to avoid this unnecessary space, it made the text much too small!

There must be some way to make it so only the graphics and text are draggable. I don't even mind if there is a square (like the old Flash 5 movie clip square) around the combined object, but there shouldn't be the white draggable space.

For reference, here is the code:

Code:

var i:int = 0;
var Rwidth:uint = 20;
var Rlength:uint = 20;

[code]....

View 1 Replies

ActionScript 2.0 :: Fencing In The Drag Area

Jul 8, 2003

So I want to fence off part of my stage for dragable MCs. I don't want them to be able to be dragged out of. Say withing 50 pixels of both the left top and right borders, and within 150 of the bottom border.

View 4 Replies

ActionScript 3.0 :: Set Drag & Drop Area In Flash?

Aug 17, 2009

Can We set drag & drop area in flash?

for example, i want to drag a movie clip in the sample_mc, and i want to move only sample_mc's area, it doenst move out of sample mc.

My drag code is

Code:
drag_mc.addEventListener(MouseEvent.MOUSE_UP, stopMove);
// Functions
function startMove(evt:MouseEvent):void {
drag_mc.startDrag();
}

i add a picture about i want to do.

View 1 Replies

ActionScript 3.0 :: Area Limit Drag And Drop?

Jan 27, 2010

Im trying to think how i fix this problem. i have a map at the stage and its big, i need to click and move it. But when i get the final of the image, i continue move it and appears the stage.

How i lock the image when it get the final to dont appear the stage? the cod that im using is:

map.addEventListener(MouseEvent.MOUSE_DOWN, move)
map.addEventListener(MouseEvent.MOUSE_UP, drop)
function drag (e:Mouse Event)
{ e.target.stargDrag();
}

[Code]...

View 5 Replies

ActionScript 2.0 :: Drag And Drop MovieClip Onto Certain Area

Mar 12, 2004

I need to drag and drop a movie clip onto a certain area and if the position it landed is right I do not want the users to be able to drag the clip again. How can I stop the clip being dragable?

View 2 Replies

ActionScript 3.0 :: Set Drag & Drop Area In Flash

Aug 17, 2009

Can We set drag & drop area in flash?for example, i want to drag a movie clip in the sample_mc, and i want to move only sample_mc's area, it doenst move out of sample mc.[code]

View 8 Replies

Professional :: Drag A Word Onto A Picture And Then Hit A Button That Says If Its Correct Or Not Or Something Similar?

Aug 7, 2010

good tutorial for drag and drop quiz style? I have managed to actually create the drag and drop but I need it for a quiz (as quiz templates are no longer available past CS3) so need it to tell the user if they are correct or not i.e. drag a word onto a picture and then hit a button that says if its correct or not or something similar.

View 4 Replies

ActionScript 2.0 :: Find Center Of The Visible Area After Drag?

Jul 19, 2009

I have a AS2 movie clip that has a drag navigation. The movie clip is bigger then the visible area. How can I find the center xy of the current visible area when I stop the drag?

View 2 Replies

ActionScript 3.0 :: Drag Some Bitmap Area On Main Stage

May 12, 2010

I am trying to distort a bitmap, I mean, I have this bitmap in the main stage and I want to drag a section to. I don't know, maybe drag the eye of the character in the picture but I want all the bitmap to react or at least the closest region of the point I am dragging. Is that possible? I know the drawTriangles() that is been use to gave this 3D effect, but I need something different.

View 3 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

Flex :: How To Restrict Drag And Drop Area In Canvas

Apr 19, 2011

I have a canvas,lets say of dimensions 500x600. I have some controls inside that canvas.User can rearrange the controls by drag and drop. But I want to restrict the drag and drop within that canvas. For example: There is a button in the canvas. User can drag and drop the button anywhere inside the canvas.But if the user tries to drag the button out of the canvas boundaries, it should stick in the canvas boundary. How to achieve this?

View 2 Replies

ActionScript 3.0 :: Drag And Drop Dynamic Text Area

Oct 20, 2009

I have 20 squares, each one has a different number(1, 2, 3, etc.) The number is in a dynamic text box which is centered above the square( the square is a Sprite object called "MySquare".) I would like to make the squares drag and droppable. When I test the movie, the arrow cursor becomes a vertical line when over the number. I can click on the edge of the square but then the cursor automatically goes to the center and the compiler returns the error: property StopDrag not found on flash.text.textField.

Here is ActionScript Code:
var startX:Number;
var startY:Number;
var m1:MySquare = new MySquare();
m1.theText.text="1";
addChild(m1);
[Code] .....

View 7 Replies

ActionScript 2.0 :: IF Statement - MovieClip Drag And Drop Into Certain Area

Mar 27, 2008

I am wondering if I can write an IF statement that is a movieclip is drag and drop into a certain area that an event occurs. Everything I try seems not to work any idea?

View 2 Replies

ActionScript 2.0 :: Make A Picture Gallery And Use Buttons That Move You From Picture To Picture And Backwards?

Apr 22, 2002

I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:

on (release) {
thisframe =+1
}
[code]........

but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.

View 2 Replies

ActionScript 3.0 :: Drag And Drop Into Target Area, Then Activate Button?

Feb 24, 2012

I want the user to be able to drag 3 items onto a target area, which will then activate a button.All i'm after is the code rather than a complete guide

View 5 Replies

ActionScript 3.0 :: Senocular Transform Tool / Restrict Drag Area

Jul 16, 2009

I am using senocular's transform tool AS3 in one of my projects.I am having a problem in customizing the tool, I need the movieclip to be drag only with in a rectangle.

View 2 Replies







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