ActionScript 3.0 :: How To Get Picture X And Y On Stage

Nov 27, 2009

I have a container movieclip on stage that anyone can drag and drop. Inside are 3 pictures that also can be dragged and dropped. Now If you drag and drop the container movieclip its x and y will change. If you drag and drop the pictures there x and y will change. The question is, if you drag and drop the container movieclip, how do you get the pictures x and y as if they were on the stage and not inside the movieclip? Because if you drag and drop the container, its x and y change, but not the pictures because they are inside the movieclip. But if you look at them they actually do...

View 3 Replies


Similar Posts:


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 2.0 :: Importing Picture From Library On Stage

Jul 12, 2009

I use the DistortImage class by Sandy to distort an image. This works. However it shows the picture twice unless I add _visible = false; to it on the mainstage. Now I don't want it to be on the mainstage in the first place so I place the picture on the stage from the library:

Code:
_root.attachMovie("photo2", "photo6", 1);
photo6._x = 100;
photo6._y = 100;

Now I want to distort it:
Code:
import sandy.util.DistortImage;
_root.attachMovie("photo2", "photo6", 1);
photo6._x = 100;
photo6._y = 100;
clip = createEmptyMovieClip("holder", 1);
[Code] .....

But now the picture disappears?! Here's the .fla with the distort class for CS4: [URL]

View 1 Replies

Professional :: How To Tile Picture In Background Off Stage

Jun 11, 2010

Okay, since my stage doesn't take up the whole window when viewing it on the Internet, is there a way to tile a picture in the background? So no matter how big someone's screen is, in the background they will see a tiled picture.

View 4 Replies

ActionScript 3.0 :: Move The Picture From Movieclip To Stage?

Aug 8, 2010

i have movie clip with images and buttons: left, right, up, down, need for this buttons add events, to be able to move the picture from movieclip to stage

View 2 Replies

ActionScript 2.0 :: Make Visible The Webcam's Picture On The Stage?

Aug 18, 2009

I have problems with webcam streaming in AS2. In AS3 I can make it visible on stage with a Camera.get call and a Video object. Because of some reasons in one of my works I have to use AS2. Can anyone provide me a working code to make visible the webcam's picture on the stage? I use the following code, but it doesn't work:

var cam = Camera.get();
//it's okay I can see the real camera name in the name property
var vid:Video;
vid.attachVideo(cam);
//... and nothing happens on the stage Why?
trace(vid) returns "undefined" Why?

View 0 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 3.0 :: Flash - Import Image (handball Field) And Drag Picture On Stage

Feb 3, 2009

i have this code on first frame

[Code]...

i can draw with mouse all over stage..but when i import image (handball field) and drag picture on stage i can only draw beneath this picture..my question how can i reference in AS3 code to draw on that imported picture..i wanna do something like whiteboard for coaches so they can draw actions for game..

View 3 Replies

ActionScript 2.0 :: Calling A Picture Into A Target In The Movie Without Placing The Picture Inside An Swf File?

Mar 22, 2003

I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?

View 7 Replies

ActionScript 2.0 :: When Each Picture Loads The Loading Frame Resizes To The New Picture Size?

Jan 5, 2005

I have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.

View 3 Replies

ActionScript 3.0 :: Build A Site That Would Give Users The Ability To Upload A Picture To A Picture Frame?

May 12, 2010

I am trying to build a site that would give users the ability to upload a picture to a picture frame on my site. I would like AS3 to dynamically re-size, and upload the file from an upload bar under the frame.

View 1 Replies

ActionScript 2.0 :: Resizing Uploads - When Each Picture Loads The Loading Frame Resizes To The New Picture Size?

Jan 5, 2005

I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.It must be some sort of actionscripting but how is it done?

View 3 Replies

ActionScript 3.0 :: Flash Animating A Picture By Using A Script Need To Break The Picture?

Oct 2, 2011

I how that any Can help I have a Picture that I want To destroy it As someone break it as a glass and then something made it go back as she was

View 1 Replies

Remove The Old Picture And Then Start Fading In The New Picture?

Dec 7, 2010

i got five images, and five buttons, every image has a color, and lets say we start at the red one. When i click the the green button i want the green image to fade in.. i fugured out a way to do this on the timeline, but then i have to have a black box first fading in to remove the old picture and then start fading in the new picture..

View 2 Replies

ActionScript 3.0 :: Make Every Picture Go To A URL When The Picture Is Clicked?

May 27, 2011

I made a simple picture slideshow with a timer, prev/next buttons, pause/play buttons and jump buttons. Everything went good so far.Now i'm trying make every picture go to a URL when the picture is clicked but only the link on the first frame goes to the URL when clicked the other 5 buttons do nothing when click.(FYI: I made alpha 0% buttons in a layer above pictures)I tried two different codes but both have no effect.

as layer

Code:
stop();
var nextImage:Timer = new Timer(3000);
nextImage.addEventListener(TimerEvent.TIMER,playNext);
nextImage.start();

[code]....

View 1 Replies

Actionscript 3.0 :: Regarding Picture Rollover Another Picture?

Jun 18, 2009

is some thing like i have a menu as the background, then if i click the picture, another menu rollover the background picture covering ard 40% of the background.any1 can lead the road for me >< me jus start learning AS3 ><

View 3 Replies

Fullscreen Picture Display?

Jul 7, 2002

Im creating a sort of a picture album, i would like the users to be able to click for full screen display! How do I achieve this??? pics. are most probably jpgs.

View 4 Replies

Animate The Drawing Of A Picture?

Jun 20, 2009

i'm trying to animate the drawing of a picture with my wacom tablet, but the only way that i know how is to start with the full drawing and erase frame-by-frame backwards, which takes a lot of time and can look choppy.

View 1 Replies

How To Change Background Picture

Oct 25, 2011

i've downloaded flash template, and i would like to change background picture,

View 2 Replies

Can't Load A Picture On Server

May 6, 2009

Can't understand why: loadMovie("pict/my_picture.jpg",movieClip); the path seems to be correct, but Flash canīt load the picture. It works locally, although, but not on the server.

View 1 Replies

Add A Preview Picture To Video?

Jun 8, 2009

I've imported an offline video to my Flash CS4 movie.As it is, the video window is black with the play controls.How do I make it show a snaphot of one of the video frames so it's clear what the video is about?

View 1 Replies

Click A Picture And It Gets Bigger?

Jul 29, 2009

I don't know what Flash calls this type of action - if I did - I'd know where to go for help or what to ask for.So is this a button, a movie?

View 2 Replies

Make A Button With Picture?

Sep 3, 2010

I'm trying to make a button with a picture I made in photoshop.. but the problem is that the background is transparent, I just want the main part to be clickable.
 
Here is an example.. I just want the purple part to be clickable. The box around that is the actually whole image. So how can I fix this?

View 2 Replies

Professional :: Picture Cannot Appear In The Belt

Feb 3, 2012

The first Picture show my original program. Example: From Picture 2, i drag a fish and drop into the trolley. In Picture 3, i want the fish appear in the belt again. So the user can drag the fish again. Problem: The fish will not appear in the belt.

[Code]....

View 9 Replies

Picture Shideshow Won't Display

Sep 28, 2009

I've been stuck on this one a while. I've created a simple picture slide show whiich works fine on Dreamweaver. However, when I throw it onto the server it doesn't display on the website. I've checked everything and i'm pretty sure all is in order so i'm baffled as to what I'm missing. It's probably something simple that I simply don't know. The Flash file is a .swf. It's saved in the root folder. It works fine when off-line. When online nothing appears (area where the the Flash file should be remains clear).

[Code]....

View 5 Replies

ActionScript 2.0 :: Get Picture From Library?

Dec 21, 2009

I have a .jpg in the library linked to Actionscript as "npc10". At a certain point in my code, I try to attach this to a movie clip using attachMovie(). But nothing happens. So I've tested with another MovieClip instead of the .jpg. It works! I've also tried attachBitmap() with a simple bitmap. That works, too! Then I try attachBitmap with the .jpg. Nothing.[code]...

View 3 Replies

ActionScript 3.0 :: Get Picture To Disappear?

Feb 7, 2010

I got the first part to work now upon click how do I get the picture to disappear? So click opens but how do I click to make go away?[code]...

View 2 Replies

ActionScript 3.0 :: How To Appear Picture By Rollover

Jan 27, 2011

Ihave picture and i put ashape on it (rectangle) i want this shape to appeare when mouse rollover I find this code in action script2 but i have to do it with evry shape what is the code in as3 to do it for all shapes by shape name instead of one by one in as2?

[Code]...

View 0 Replies

How To Change Background Picture?

Jul 17, 2009

i've downloaded flash template, and i would like to change background picture?

View 6 Replies

ActionScript 2.0 :: Use A Different Picture For Each Page?

Jul 16, 2008

I am trying to edit a site, I have a picture on top right side. I want to use a different picture for each page using action script. I have added the pictures in series and no actionscript seems to be working for that. Can anyone pls check it out?

[URL]

View 3 Replies







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