ActionScript 2.0 :: Use A Blank Movie Clip For The Position?

Aug 25, 2010

how would i go about using a draw code(Code that allows users to draw within the flash) and restricting it to a certain size and location on the movie? for instance a 75x75 box located at xPos=200 and yPos = 150?

Like would I have to use a blank movie clip for the position? then make an invisible box within it to restrict drawing area?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Load A Movie Clip Into A Blank Movie Clip?

Jun 27, 2006

if it is possible to load a movie clip into a blank movie clip?On my main timeline I have a button (mode_btn) and I want to be able to click it and load another movie clip (mode_options_mc) into a blank movie clip I have (mode_empty_mc). Is this even possible?

View 11 Replies

ActionScript 2.0 :: Activating The External .swf Into A Blank Movie Clip In The Main Movie?

Oct 10, 2002

I'm still a rookie in flash and I'm having a little bit of trouble with some actionscript. I've gotten as far as placing the buttons and assign the correct actionscript for them to work. Everything is working fine with the buttons activating the external .swf into a blank movie clip in the main movie. Ony thing is, I would like the external movie assigned to the first button to open once the movie is loaded.

I thought by using the same actionscript i used on the button {and removing the on(release) tag} and placing on the first frame of the main movie would help, but it doesn't.

View 2 Replies

ActionScript 2.0 :: Load Swf Into A Blank Movie Clip Via XML?

Feb 24, 2010

I cant get the swf to load into my placeholder movieclip "gallery_ph"... instead it just opens a new window with the loaded swf inside.

here is my xml:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<NAVBAR>
<BUTTON NAME='Neuro' LINK='swfs/gallery/atlas/neuro.swf' TARGET="this.gallery_ph"/>
</NAVBAR>

[Code].....

View 2 Replies

Make A Movie Clip Based On Blank Object?

Jun 21, 2009

Is there a way to make a movie clip based on a blank object?the way i usually make one is by drawing a rectangle and making it a movie clip.

View 1 Replies

ActionScript 3.0 :: Duplicate A Movie Clip In Original Movie Clip Position?

Aug 30, 2011

I have several movie clips on the stage. They are draggable. I want to be able to drag the movie clip, then when it is dropped, a copy of that movie clip will appear where the first one had been, and the first one will just stay where it is on the screen.

However, I'm running into problems with the syntax.

Here is my current code:

[Code].....

View 14 Replies

ActionScript 2.0 :: Preloading - Loading A External Swf File Into A Blank Movie Clip?

Jul 29, 2009

In what combination of as2 code would instruct a preloader to recieve bytes loaded and bytes total in addition to loading a external swf file into a blank movie clip? I've seen countless issues regarding the same problem but still haven't goten a clear answer. I dont want to use the video player component standard on Flash. I want a preloader to preload a external swf file and play it inside a movieclip.

View 5 Replies

ActionScript 2.0 :: Unable To Load An External .swf File Into A Blank Movie Clip?

Jan 28, 2003

1)I was able to load an external .swf file into a blank movie clip (A TARGET CLIP WHICH I CREATED using createEmptyMovieClip) 2)Also by placing a button on the stage I was able to remove the movie clip

BUT I WOULD LIKE TO BE ABLE TO KEEP ALL MY CODE IN THE FIRST FRAME. I would like to Remove the Movie without putting the code on the button. But it didn't work.

Here is the code on the button that Does work

[Code]...

View 4 Replies

ActionScript 2.0 :: Targeting Mess - Blank Movie Clip Created In The Preloader Swf

Jan 1, 2004

I have a looped sound and some components in my main movie (scroll bar) which for some reason is really bogging down my swf and causing the preloader bar not to show up until like 46% or something ridiculous.

So I am trying to solve the problem by having a preloader swf as suggested by Kode in this thread. However, now all my targeting is messed up in my main movie. Everything that was _root has to change but I can't tell what to load it into. I tried using _parent, _parent._parent, _root.container_mc (which is a blank movie clip created in the preloader swf that main is loaded into after the preloader is 100%) and others but nothing works. Even the simple looped sound which was originally just _root.backsound.start(0,999) can't be targeted. how to target things on my main stage based on the preloader swf?

View 14 Replies

IDE :: Add A Movie Clip To A Button Position?

Dec 2, 2009

how do i add a movie clip to a button position? i want a button that, when clicked, slides out to a certain position and stop. kinda like a drawer in a desk.

View 1 Replies

ActionScript 2.0 :: Get The Position Of A Movie Clip, On A Particular Frame Of A MC?

Jun 12, 2010

I am trying to get the position of a movie clip called "Shooter", returned to a variable called spitballYpos.

The movie clip is sitting on frame 6 (labelled "Shooting") of a movie clip called PDFstanding.

The position returns perfectly if I place the .shooter MC on the first frame of PDFstanding, but on frame 6 the variable result just returns "undefined".

What have I missed? If I need to reference the particular frame the 'shooter' movie clip is on, then what is the correct syntax?

Here's my code...

Actionscript Code:
spitballYpos = _root.PDFstanding.shooter._y;

View 1 Replies

Flash :: How To Position Empty Movie Clip

Jan 20, 2011

I have two images pulling though an empty movie clip, using the actionscript below. I can't seem to figure out how to position both of them, could anybody shed some light on this? I'm using AS3.

[Code]....

View 1 Replies

ActionScript 2.0 :: Display A Movie Clip's Position?

May 6, 2005

actionscript and was trying to display a movie clip's x and y positions in dynamic textboxes. I can make them display the mouse's x and y positions but need to get it to say the movie clip's

View 2 Replies

Actionscript 3.0 :: Change A Movie Clip Position?

Aug 24, 2009

I am creating a flash presentation for school. I am unable to solve this problem, that keeps on pestering me.The problem is:I am trying to create a touch screen calibration movie clip. The only problem i keep running into is, when i click the calibration touch screen cross, what is the script that allows the change in position of the cross after it has been clicked on?Example:The original cross is orientated on the top left of the screen, after it has been clicked i need it to move to the top right of the screen, then clicked again - bottom right, and again bottom left and finally clicked again to be displayed in the centre

View 1 Replies

ActionScript 2.0 :: Add X And Y Position For Empty Movie Clip?

Mar 27, 2004

I created an empty movieclip with[code]...

Where in the script can I add the x and y properties for that empty movieclip?

View 3 Replies

ActionScript 2.0 :: [FMX] Locking A Movie Clip's Position?

Oct 20, 2004

I'm an ActionScript beginner, by the way.

I have a simple drag and drop interface, fill in the blank type thing, and I wat to lock a specific move clip's position once it's dropped in the appropriate place. Make sense?

View 1 Replies

ActionScript 2.0 :: Movie Clip Position Testing?

Dec 16, 2008

Is there a way to test the _y of all movie clips and set a function that if there is a movie clip at _y = 75 that it is 'topMovie' and if another clip is at (topMovie + topMovie._height) THAT movie will be 'secondMovie' and so on ad infinitum?

View 2 Replies

ActionScript 3.0 :: How To Test For Movie Clip Position

Nov 24, 2009

I need to test for the x position of a movie clip and if its in place a do something otherwise if its in position b do something else. Can you tell me how to test for this?

View 2 Replies

ActionScript 2.0 :: [FMX] X And Y Position For Empty Movie Clip?

Mar 27, 2004

I created an empty movieclip with:Code:_root.createEmptyMovieClip("container", 1);Where in the script can I add the x and y properties for that empty movieclip?

View 3 Replies

ActionScript 2.0 :: _x And _y Position - Stop The Movie Clip

Jul 8, 2004

i have this

onClipEvent(enterFrame){
speed=5;
this._x+=2;
}

i wanna know how do i stop the movie clip in a place?

View 1 Replies

ActionScript 2.0 :: [FMX] Locking A Movie Clip's Position

Oct 20, 2004

I have a simple question, but for the life of me I can't figure it out. I'm an ActionScript beginner, by the way. I have a simple drag and drop interface, fill in the blank type thing, and I wat to lock a specific move clip's position once it's dropped in the appropriate place. Make sense?

View 1 Replies

ActionScript 3.0 :: Movie Clip Should Pop Back To Its Original X And Y Position?

Feb 2, 2009

I made two movie clips that follows the mouse but I want to put constraints on them, they should follow the mouse until the mouse reaches a certain distance and then the movie clip should pop back to its original x and y position.

Code:
private function init():void
{
addChild(backgrnd);

[code]....

View 1 Replies

ActionScript 2.0 :: Stage Position While Inside A Movie Clip?

Jul 3, 2009

Is there a way to position something INSIDE of a movie clip, based on X and Y values of the root stage?

Basically the X and Y of the container movie clip is at Stage.width/2; but I want one specific movie clip inside to stay permanently at 200X and 200Y on the MAIN STAGE. I can't actually move it to the root timeline though because it is using actionscript inside of the container.

View 1 Replies

ActionScript 2.0 :: Preserving Movie Clip Playhead Position

Apr 29, 2010

I need to jump the movie clip position back and forth between two positions on the stage--without tweening--via a mouse click on a button. I have no problem doing this by creating a 2-keyframe timeline, and re-positioning the movie clip for each frame. To move back and forth from frame 1 to 2 and back to 1 on the main timeline, I wrote a gotoAndStop action for the button, (labeled flipflop.) In frame 1 of the main timeline:

flipflop.onMouseDown = function() {
gotoAndStop(2);
};

In frame 2 of the main timeline:

flipflop.onMouseDown = function() {
gotoAndStop(1);
};

The problem is, when the movie clip jumps from position A to position B on the stage, the movie clip resets to frame 1. I need the movie clip to hold its current frame as it changes position from frame 1 to 2 and back to 1. How do I do this, and would the method be the same if the single button controlled the movement of multiple movie clips?

View 1 Replies

ActionScript 3.0 :: Put Movie Clip Object In Diagonal Position?

Sep 20, 2010

i want to put the movieclip in diagonal object and i have the sample image in attached thumbnails:

the image has one pig in diagonal position but, i want more than one pig in diagonal position and i want to create that using actionscript3.

View 2 Replies

ActionScript 2.0 :: OnClipEvent - Get Movie Clip To Ease Into Position

Feb 27, 2005

I'm trying to get my movie clip to ease into position with the below AS and then delete the actions, but it's not working. What am I doing wrong?

[Code]...

View 4 Replies

ActionScript 2.0 :: Displaying A Movie Clip At Mouse Position?

Feb 18, 2007

Im learning actionscript using the tutorials here so im more interested in learning *how* rather than just getting it done.

Ive come across a problem on something ive been trying to do. Ive been trying to make a 10 framed movieclip appear at the mouse position and play continuously. To do this I have a two framed loop.

Here is my code. Circle_mc is the movie clip:
-----------------------------------------------------
//this is the name of my function and what it has in it.
CreateAtMouse = function () {
Circle_mc.duplicateMovieClip("circlecreate", 2, {_x: _root._xmouse, _y:

[Code]....

View 1 Replies

ActionScript 2.0 :: Start External SWF When Movie Clip Gets To Y Position?

Mar 3, 2008

I have one movie clip that when clicked on moves to the left of the screen, after it gets there I want another and exteral swf to load. But I dont know how to get the external clip to load after the movie clip gets to the left side of the screen....Here is what I got so far..

square_mc.onRelease = function()
{ square_mc._x = 30;
square_mc._y = 180;

[code]....

when square_mc get to the Y position of 180, run the external clip.

View 5 Replies

ActionScript 2.0 :: Movie Clip Position On Browser Resize?

Mar 20, 2008

why isn't this working?

Code:
Stage.scaleMode = "noScale";
var myListener:Object = new Object();
myListener.onResize = function() {

[Code]...

I want the movie clip to be at the bottom right corner or the stage at all times when the browser is resized. The name is the clip is bottom right piece. The flash movie takes up the whole browser with no scale. The movie clip is always over or under the point in space its suppose to be. When i trace the value or the movie clip's _x... its the same as the Stage.width... but it doesnt portray that visually on the stage...

View 2 Replies

ActionScript 3.0 :: Load - Resize And Position SWF Into A Blank MC

Oct 6, 2009

I've honestly tried to look everywhere and have no clue how to do this. PLus i've tried for hours and still have no success! As the post thread title states, I have a swf file and i want to import anothe swf file into a blank movie clip. Can it be % wise? And can the image's width be set to say 100 and the height be automatic? Also, what about the x and y positioning? also, I do not need or want a progress bar.

View 4 Replies







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