ActionScript 2.0 :: Flash8 Xmouse Hits A MC
Apr 9, 2009
I want a hittest of the _root.mouse and a mc when the mouse is down.
I tried among other things this but it doesnt work.
this.onMouseDown = function(){
if ((_level0._xmouse == boll._x )&&(_level0._ymouse == boll._y )){
trace("down");
}
}
View 3 Replies
Similar Posts:
Oct 27, 2005
How do i obtain the xmouse value outside the flashmovie - or even outside the browser itself.
Check out this site - they do it:[URL]..
It even works if you draw the area on to a secondary screen.
I want to do it - and i want it now
View 3 Replies
Sep 5, 2007
I am a having a MovieClip on the stage , instance name "photo"
-width 1500 px
-height 100px;
and main scene width & height 400px;Now when i take mouse on the left side of the main scene, the "photo" MovieClip should move on the right side and when i take my mouse on the right side of the scene the "photo" MovieClip should move on the left side. Maintaing the exact ration from left and right side.
View 1 Replies
Jun 9, 2008
im trying to make a mc start playing by moving the mouse (_xmouse) of to the right side.. I need to make the mc paly without the use of a rollover button when the mouse passes over a the last 100 or so pixels to the right.. i been trying to modify this scrip to do the job but it currently plays the mc with every little move of the mouse.
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
if (root._xmouse, true) {
mymovieclip.play(1);
[code]...
View 10 Replies
Mar 1, 2003
I was wondering if any one knew how to create a menu similar to the MacOS X dock or like the green text column here URL...i made one but it goes really weird and jumpy after certain numbers.i made a MC in an MC on the stage with the MC code:[code]i put some restraits on it, so it doesnt go extrememly small, but anyways any suggestions?
View 14 Replies
Mar 25, 2006
I'm trying to change kirupa's xml gallery to scroll the foto on rollover based on xmouse and ymouse . [URL]
View 1 Replies
Jul 9, 2009
I'm making a small adventure game, and I want the game to go to the next frame once the main guy MC hits another invisible mc, like where the door is. I suppose another way of doing this is when the main guy mc hits an xy coordinate. So basically what I want is a script that says, when MainguyMC hit another MC/ coordinate, go to frame 2
View 14 Replies
Dec 5, 2010
I have two movieclips A and B when the movieclip A hits the movieclip B , I want the movieclip A to be removed what code should i write for this flash problem ?
View 1 Replies
Nov 1, 2009
I want it to remove everyone that it hits, but it only removes the first one that hits. I am sure the answer is simple, but i am slow. Here is the code:
ActionScript Code:
function removeSpawn(){
for(j=0;j<lvl1A;j++){
[code]......
View 1 Replies
Aug 5, 2005
_root>mc1>mc2>box
The box got this code:
PHP Code:
onClipEvent (enterFrame) {if (_parent.hitTest(this)) { trace("hitting"); }}
I want the box to trace when it hits mc2, but it don't works!
View 3 Replies
Jul 13, 2007
I have 2 movie clips with a linkage. In a process both mc's are being attached lots of times and a new name is given to each every time.I want to make it so that is these 2 mc's hits each other they dissappear, but i can't do that because they all have different names and i don't know how to call to them.
View 1 Replies
Mar 23, 2009
Is there a way to keep track when an FLV hits a certain point in its playback WITHOUT using cue points? If so, how is this implemented and does it make the experience sluggish?
View 3 Replies
Mar 18, 2009
When the timer hits 10 I want it to go to frame 2.Here is the script:
var clock:Number = 0;
if (Number == 10){
gotoAndPlay (2);
[code].....
View 4 Replies
Jun 4, 2009
Is it possible to make a visitor hits counter using just AS2 ?
Or what is the other way to do this ?
The site is totally in flash only.
View 4 Replies
Dec 15, 2009
Im looking to make something happen when my timer of 30seconds reaches zero. This is the code I've used: how to ad a function that will make something else happen??
[Code]...
View 5 Replies
Nov 12, 2009
Im making a sort of maze game and have a ball that moves up, down, left and right when the corresponding arrow key is pressed. What I want to do now is introduce some walls, how do I make the ball stop moving when it touches a wall? (so it doesnt pass through the wall)
View 1 Replies
Nov 29, 2010
i make simple random tester. it show how often a certain number hits.
View 0 Replies
Apr 29, 2009
Basically the code creates 3 sasquatches. When you click on the sasquatch it displays "you be dead sucka!", well, only ONE of the 3 sasquatches are registering hits, and the one that does traces "you be dead" 4 times.
package{
import flash.display.*;
import flash.events.*;
[code].....
View 9 Replies
May 15, 2009
I'm initiating my migration process from AS2 to AS3 .After reading A LOT of tutorials and, of course, pretty much everything that mister senocular wrote I finally got something going Well until this pickle[code]...
View 8 Replies
Oct 15, 2009
i would like to know when a circle hits a square.Following code returns true when the rectangle of the MovieClip (blue) hits the square and not the circle itself:
circle.hitTestObject(square);
In as2 you had an extra parameter to indicate that.
View 3 Replies
Sep 23, 2010
One of my buttons, flash will not read it as a button when I publish it and run the swf file. The cursor stays as a arrow meaning its not a button in the swf file. Inside of the fla file it is a button with a hit. There is no movie or tweening or anything like that. I think it's not reading it as a button because Flash is placing the hit behind the actual button. Inside of my button there is only 1 layer. When placing the hit usually it covers the button. But in this case, the hit is going behind the image. I think this is why when its ran, its not reading it as a button.
I even removed the AS3 code from the button to see if it was a coding error. Rather if theres code in there or not the swf should still read it as a button and the cursor should change to a hand by default. Because of this, I tried to create another button in another area on the stage to see if it's just that one area thats having that problem. I created a new button from scratch, placed a hit, no AS3 coding added, and it works. The swf reads it as a button. But with that button, I added a AS3 CODE to go to an external website and now Flash isnt reading the AS3 code for that button. Heres the code:
import flash.net.URLRequest;import flash.display.Loader;import flash.net.navigateToURL;
itunesBTN.addEventListener(MouseEvent.CLICK, gotoITUNES);
function gotoITUNES (event:MouseEvent):void{ var req:URLRequest = new
[code].....
View 1 Replies
Mar 25, 2011
Is the forum-specific search broken? I get 0 hits on the keywords scrollbar and scrollpane, but what's more curious is I get 0 hits on the word movieClip.
View 1 Replies
Jul 23, 2011
I have a grid of objects that have been added to the stage dynamically, the objects are either of a Class Red or Class Blue, how do I perform a hit test on the Classes? I want the Blue object to disappear once it hits a Red one.
View 3 Replies
Sep 12, 2010
I been trying to get a remove child function to it seems to work sometimes at least according to the output window. But the majority of times when ghost hits a flame the flame doesn't disappear.
heres the code so far it would explain it better
virtuallife_forum_1.zip
Should I use an array to manage multiple hits?
View 0 Replies
Jun 29, 2011
I've made a video scrubber for a couple of external F4Vs in my movie. I'm using 2 setIntervals for the scrub function: 1 to move my video playhead as the video plays, and 2 to seek to the correct video frame as the user drags the playhead.
This seems to be working ok. I wish it was a little bit more fluid in the scrub action, but I'll take what I can at this point.
But, one thing I'd like to work on is the audio hits during the video scrub. As the netstream seek is happening, the audio is hitting while I scrub. I'd like to temporarily kill the audio as I scrub, and then bring it back on at the MOUSE_UP.
I'm pretty sure that SoundMixer.stopAll(); will get rid of my audio, but what will make it come back?
View 2 Replies
Jan 7, 2004
I am wanting to make a game, and I need a gravity code that works great. I want gravity, a jumpibg code, and then a code to make something stop when it hits another thing.
View 2 Replies
Jul 15, 2008
This doesn't work
if (lives <= 0) {
gotoAndStop(22);
}
When I change the "<=" to something like "!=" it does work. I'm trying to make it go to a certain frame when the variable hits 0
View 8 Replies
Jul 30, 2008
I am creating a kids game in AS 1 and want a "good" sound to play when a "good" object falls into the beavers basket and a "bad" sound to play when it falls into the basket. What is the best way to handle this in AS 1?
View 3 Replies
Apr 7, 2009
I have a window that is dragable, but I want it to stop dragging not only on the release but when it hits a certain x and y cord. Here is my function:
Code:
function windowDragon(){
_root.partners_container_resize.partners_container.vidWin_Panasonic.vidWinheader_panasonic.onPress = function(){
_root.partners_container_resize.partners_container.vidWin_Panasonic.startDrag();
[Code] .....
View 2 Replies
Jul 30, 2011
I have created a class named Bullet() and I create a child named bullet_mc every second.This bullet_mc moves to a direction on the stage.I also created a class named Plane() and I create a child named myPlane_mc every two seconds. Also, every myPlane_mc moves to a direction on the stage.
View 5 Replies