ActionScript 2.0 :: [FMX2004] Prototype Only Moves One Clip?
Mar 3, 2006
i have this prototype where i send this mc to certain x position. But when i try to send TWO mcs at the same time it only sends the last one. What to do for it to work on two mcs at the same time?
here is the prototype:
Code:
MovieClip.prototype.moveOut= function ( mc, endX ){
speed = 5;
this.onEnterFrame = function(){
[Code]....
View 2 Replies
Similar Posts:
May 8, 2004
Im loading several thumbnails from out of a database into flash, everything is stored as it should. Then i create a Rectangle called "mc_mask". This one is created as it should with the correct values. Then im looping through this for(){}. As you can see im duplicating a movieclip "mc_thumb_holder" then eval them to my array, there im loading in a Movie with .loadMovie(thumb); Now when i set the rectangle as a mask on each of the duplicated movieclips it wont work. So my question is:
[Code]...
View 2 Replies
May 2, 2005
I'm trying to make a random jpeg gallery with images that fade in, remain on screen for 10 seconds, and then fade out. So I'm starting with the fadeIn and I am making it a movieclip prototype. Now, I put a MC named ball_mc on the stage and gave it an alpha value of 0 to use for testing purposes. The ball_mc clip calls the prototype fadeIn fine, but the dynamically created movieclip does not. Is it impossible for a dynamically generated movieclip to use a prototype? I'll post the code below.
Code:
MovieClip.prototype.fadeIn = function () {
this.onEnterFrame = function() {
if (this._alpha<100) {[code].....
View 1 Replies
Jan 15, 2011
I have a movieclip that moves on the X axis. Thing is, I need to make certain areas of it clickable... I have already tried a couple of things but didn't succeed.
View 1 Replies
Nov 22, 2006
[Code]...
the preceding works exactly as i want it to.. the catch is, it only does so in it's own swf.. meaning, i want to use it as an external swf embedded in another movie... when it's on it's own, the panning will stop if the edge of mc hits the border, when it's called externally the panning won't stop!
i feel like i've tried everything i can (obviously not!).. where you see 521 and 315 there WAS Stage.width/height and that code was on the external swf itself, in an attempt to stop the panning when it should i tried putting the code in the parent movie and changing some variables, which worked the same with no avail.
here's a link if my babbling wasn't clear enough: [URL] also.. i would like for it to pan only if the mouse moves over the panning clip, it currently pans based on where the mouse is over the parent movie.. i've made multiple attempts at changing this as well, with no luck.
View 2 Replies
Dec 17, 2009
I am trying to make a flash game for a website. In the game, there is a large interactive map which I created. The map is supposed to scroll just by moving the mouse.
As a placeholder for the map, an ex-coworker created a gradient background, which moves along with the mouse. Here is the AS.
// Width and height of image
var w = Stage.width * 2;
var h = Stage.height * 2;
// Mock up graphic that will be the image
[Code].....
how to make the MC move and pan along with the mouse? Even if it is a completely different code?
View 1 Replies
Mar 12, 2004
(I'm working in flash 6 due to some constraints but if what I'm doing could REALLY be optimized by going to 7 then feel free to yell at me - OH, and feel free to yell at me because there is a bunch of pink - I haven't worked on the actual layout because I'm waiting for the colors-font-realImages) I will save space here and just post the link to the dir, swf, and fla...
[Code]...
View 1 Replies
Oct 5, 2009
My issue is this: When I call MC1.addChild(MC2), it moves MC2 a few pixels from the location it was originally. I don't want it to move MC2,
View 7 Replies
Sep 1, 2005
I have a movie clip that I would like to slide to the right or left depending on which button the user clicks. When I test the movie and click on the buttons, the target movie clip only moves one pixel. I want it to slide into place. What am I doing wrong?
[Code]...
View 4 Replies
Dec 25, 2011
I've a movie clip in the stage that moves from left to right.
And i whant to add more instances from that movie clip
I tried:
Code:
addChild(cloud);
stage.addchild(cloud);
View 3 Replies
Nov 16, 2003
I have a lizard movie clip that contains a bunch of moving parts. I have placed this clip on the stage and then did a motion tween along a path. The clip moves along the path but you can't see any of the parts moving.
View 4 Replies
Apr 1, 2010
i have some dynamic text inside a moive clip which is supposed to hold the users' mouse x/y.my code is
_root.findx = _root._xmouse;
_root.findy = _root._ymouse;
my problem is how can i make the clip update itself so that everytime the mouse moves the code will change?
i feel bad abt posting this question, but idk what the problem is.
View 4 Replies
Dec 11, 2009
To start things off, I use Flash CS3.moving menu that moves on its own when the mouse moves around it. Like the menu moves up when the mouse moves down.[URL]i have found similar tutorials for what i wanted.. but they are AS2 or older versions of flash..and what i needed is more along the lines of AS3 as that's what my class is learning and using.Does anyone know of an AS3 or anything that works with Flash CS3 tutorial thats what I'm asking?
View 0 Replies
Apr 21, 2010
I have MC masked with TEXT,when the user moves his mouse down more text appears from the bottom and when he moves it goes bakc to the original position...I do not want the mouse wheel .. I woudl like to do it by mouse hovering...
View 5 Replies
Nov 7, 2009
I have 2 scenes. In both scenes, I have a movie clip that moves via keyboard control. If the goto next scene is triggered by the movie clip in the first scene the keyboard control works in the second. However, if I use a button to move to the next scene then there isn't any control over the movieclip in that scene. I've traced the keyCode in the second scene and it is picked up but the switch statement doesn't run. I'm migrating to Actionscript 3.0 and updating something I created in 2.0. I would like to do it without writing a class.
[Code]...
View 5 Replies
Nov 18, 2009
I have a movie clip called column1_mc. when I click a button I need to move the movie clip in incremental moves consisting of 30 pixels.
column1_mc._y = 30;
Does not work because that is giving a _y coordinate.For example.I need to make the movie clip jump to _y 300 but make 10x30 pixel incremental jumps. Moving 10 times 30 pixel jumps.
View 1 Replies
Aug 3, 2009
So I tried to code something in AS3, it works technically, but not so smoothly. Try opening the three graudge doors here: [URL]..
They don't relly want to open and seem to open when the mouse moves out of the movies clip which is not how it's programmed:
[Code]...
View 7 Replies
Jan 13, 2004
How do you use that??? I'd like to duplicate a MC and give it dynamicly a position but i don't know how to tell that to flash...I'm using that code :
[AS]
onClipEvent(load){
for(i=0; i = nb_titre; i++){
_root.bande.duplicateMovieClip("bande" + i, i, .......................)}}
View 2 Replies
Mar 15, 2004
for (x = 0; x < 10; x++){
for (y = 0; y < 10; y++){
this.createTextField("_txt"+depth, depth, x*20, y*20, 20, 20);[code].....
the above script is from senocular's isometry tutorial, but when i place it on the first frame in MX04 and test the movie -> the result is one box with text "9:9".
View 2 Replies
Jul 4, 2004
I am having trouble setting the alpha of a movie clip (this is a bitmap, if that matters). My code is as follows:
Code:
on (change) {
if (this.getSelectedItem().data == 3) {
set (this._parent.ahouston._alpha,100)}
if (this.getSelectedItem().data <> 3) {
set (this._parent.ahouston._alpha,0)}
}
I don't believe it is a problem with my combobox actionscript, as just putting:
Code:
set (this.ahouston._alpha,100)
in the only frame of the parent movie clip doesn't work either.
EDIT: Now it shows it with 0% alpha, but won't turn to 100%. I was wrong. It is a combobox problem.
View 7 Replies
Aug 10, 2004
ive done a little media player for my mates website.means i didnt understand the xml and loading audio that way i decided to try another way,which was to load external .swf which contained audio.so ive done this everything working.the problem is i tried to add a timer, so that when the 30 sec sample was done it would go to the next frame which loads a different track.i found a piece of timer code which is
loadMovieNum("track2.swf", 1);
if (bytes_loaded == bytes_total) {
var time = 0;[code].....
It all works first time around but when you select the track again then it cuts out 20-25 seconds,
View 2 Replies
Jan 15, 2004
I have that loop:
[AS]
for (i=1; i<this.nb; i++) {_root.bande.duplicateMovieClip("bande"+i, i, {_x:originex, _y:(originey+(bandeheight*i))});
[code]....
View 6 Replies
Jan 5, 2004
I just started learning actionscript and decided to make something easy. Some draggable points and make a like between two of them, but I can't clear the previous drawn line.
View 1 Replies
Jan 14, 2004
im aware of the movieclipinstancename.enable=false;but i cant seem to get it to work.I want it to work because i slide in a sound control panel over my content (also in a movieclip) but the mouse still reacts to mouse events of the content under the sound control panel. eg i have a flash email form, and the icon changes to it.
View 2 Replies
Jan 5, 2005
why I cannot use a variable in a path?
[Code]...
I can work my way around it, but why doesn't it work?
View 3 Replies
Mar 18, 2005
I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml");and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.
View 5 Replies
Mar 18, 2005
Well it is quite simple but I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml"); and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.
View 5 Replies
Oct 2, 2005
[Code]...
the movies go the next row but they stay all in the same x location
View 3 Replies
Mar 20, 2006
I'm working on a website that is kind of set up a bit like a flash game. the background scrolls continuously with the movement of your mouse, and loops to make it appear seamless. my problem is with the quality.. it seems to skip or jump a little when it moves, and I am trying to get it as smooth as possible.
the source file is here: http:[url]....
you can just export it to see what I am talking about. what can I do to make it not so jumpy? are there settings I can adjust, or does anyone have any other code variations that would improve on mine?
View 4 Replies
Jul 19, 2007
what i'm trying to create is a map system with pan and zoom functions similar to google maps. that part is easy. what i'm having trouble with is figuring out how to scale the coordinates at the top and left of the map.so if at 100% my map is viewable from mile 0 to mile 99 (numbers are only for the sake of example) then when i zoom in on the center to 150% i would need to show coordinates from mile 25 to mile 75 ... i think if that example is not clear just look at flash or photoshop. when you zoom in just look how the ruler around the stage changes with the zoom level.
View 1 Replies