Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[MX04] My Bird Gets Stuck At A Certain X Coordinate



Hey gang,

I'm working on a site that includes an animated hummingbird and it's supposed to hover around some flowers in kind of a circular pattern. My problem is that it gets stuck at a certain x coordinate and then just moves up and down. You can see it HERE . Watch the bird for a few secs and you'll see it stick.

I've kind of cobbled my code together from a shooter game I was working on a while ago, and I've forgot where I found the tute or the source code so I don't remember exactly what it's doing. Can someone look at it and tell me where it's sticking?

code: var flightAmount:Number = 75;
var flightSpeed:Number = 7;
myBird.onEnterFrame = function() {
moveBird(this);
};
function moveBird(bird) {
var dir:Number = (Math.round(Math.random()*10) == 0) ? -15 : 15;
bird.ang += dir;
bird.ang = bird.ang%360;
var x:Number = Math.sin(bird.ang*(Math.PI/180))*flightSpeed;
var y:Number = Math.cos(bird.ang*(Math.PI/180))*flightSpeed;
if (bird.birdFlight._x+x<flightAmount && bird.birdFlight._x>-flightAmount) {
bird.birdFlight._x += x;
}
if (bird.birdFlight._y+y<flightAmount && bird.birdFlight._y+y>-flightAmount) {
bird.birdFlight._y += y;
}
if (bird.birdFlight._rotation+dir<10 && bird.birdFlight._rotation+dir>-200){
bird.birdFlight._rotation += dir;
}
}
myBird.ang = 0;
myBird._y = 225;
myBird._x = 250
myBird._xscale = 70
myBird._yscale = 70

Any help is most appreciated!

-Sandy



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-02-2007, 10:59 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] Form To Create Flash Movie, Image Moving From Coordinate To Coordinate.
First, I am a 99.9% Actionscript noob. All I know how to do in AS is stop, start, go to frame, simple buttons, etc.

Second, the thing I am trying to do is semi-complicated (I think, as i have nothing to base it on)

Third, here it is:
Basically I would want something set up like this:

*********Form in HTML (or flash)*********
Coord 1 (x): |_______|
Coord 2 (y): |_______|
Frames: |_|

Coord 1a (x): |______|
Coord2a (y): |______|
Frames: |_|

etc. etc
*********************
Then I would want it to somehow (:P) take that, and generate a flash movie (well just the content-ish), so that a symbol will move from the x,y coords to the other in the specified amount of frames.

i.e.
Coord1=5
Coord2=10
Frames=6
Coord1a=20
Coord2a=34
Frames=8

Then the symbol would start at 0,0, move to 5,10 in 6 frames, then move to 20,34 in 8 frames.


Is this possible, if so, is anyone willing to code this, or provide me with some suggestions on how to do this?

Form To Create Flash Movie, Image Moving From Coordinate To Coordinate.
First, I am a 99.9% Actionscript noob. All I know how to do in AS is stop, start, go to frame, simple buttons, etc.

Second, the thing I am trying to do is semi-complicated (I think, as i have nothing to base it on)

Third, here it is:
Basically I would want something set up like this:

*********Form in HTML (or flash)*********
Coord 1 (x): |_______|
Coord 2 (y): |_______|
Frames: |_|

Coord 1a (x): |______|
Coord2a (y): |______|
Frames: |_|

etc. etc
*********************
Then I would want it to somehow (:P) take that, and generate a flash movie (well just the content-ish), so that a symbol will move from the x,y coords to the other in the specified amount of frames.

i.e.
Coord1=5
Coord2=10
Frames=6
Coord1a=20
Coord2a=34
Frames=8

Then the symbol would start at 0,0, move to 5,10 in 6 frames, then move to 20,34 in 8 frames.


Is this possible, if so, is anyone willing to code this, or provide me with some suggestions on how to do this?

[MX04] HitTest Stuck On GotAndPlay Frame.
I'm sure this is a simple noob mistake but to my best efforts I've been unable to resolve the problem after googleing it until my index fingers bleed.

I'm making a simple menu home button which drops down a box containing a picture and one word title when the mouse goes over it and then go's back up when the mouse moves off. It should also be noted that I'm using a second mc overlapping the first to trigger the drop down because of the firsts irregular size. I'm attempting to use hitTest to accomplish this instead of onRollover/out because onRollOut gets stuck in the on position if the mouse is moved off too fast, a common problem with flash movie clip buttons.

Here's my problem. My hitTest roll on code jumps straight past the drop down animation and gos directly to the down state. When the mouse is rolled off, the animation plays correctly showing the box rise back up, However its quite common to have the movie clip still get stuck in its down position regardless of mouse speed which I though might be because of the complexity of the scene but I've copied the code and button to a new project with nothing else and it acts the same way. So really I have two problems. Animation is not playing right most likely do to my hitTest code and secondly, the animation does not play consistently every time .

If any of you have any suggestions what so ever. I would be ecstatically grateful for your effort! I've felt the tumor deep within my brain grow because of this one.

The file was slightly larger than the limit so I linked it to this url so you all could take a look for your selves.
http://reversecosmosis.com/homebuttonnotwokring.fla


Heres the code

Code:
hometrigger.onEnterFrame = function() {
if (bhome.hitTest(_root._xmouse, _root._ymouse, true)) {
(bhome.gotoAndPlay(1));
}
}

hometrigger.onEnterFrame = function() {
if (bhome.hitTest(_root._xmouse, _root._ymouse, false)) {
(bhome.gotoAndPlay(61));
}
}

A Bird
What i need to do is make a small bird fly across (from left to right) the header graphic of my page. Im pretty new to flash, but i do know how to make it JUST move from one side to another. I want to be able to make the wings move up and down as though its flying while actually moving.

If someone could help me out, ill be on aim @ yo MrStiffy.

How To Design Bird
hey can any body help me how to design a bird and then animate it if any tutorial is there i would be highlt obliged

regards

Hussain

Flying Bird
I am new to Flash. I just upgraded to CS3 and am trying to create an employee website with a flash file. I created my design in Photoshop and am using Fireworks to create my slices and Dreamweaver to finish it off. I am not sure if I need to do my slices first in Fireworks and then import that into Flash to create my animation. anyone know?

also, for my flash file, I have a scene with a tree, buildings, grass and clouds. I wanted to add a bird flying, some moving clouds and a light flashing on and off. The problem I am having is with the bird flying. I found animated gifs on the internet and tried to use those with a motion guide but the animated gif won't work. I tried doing my own animation with a bird with it's wings up and then down. It is very choppy and I know I didn't do it the right way. I used all kinds of keyframes and motion tweened between each one and then added motion guide. Can anyone help me out? I just want a small black bird flying across my scene and I want to do it the easiest way as possible. Any advice will be greatly appreciated. Thanks.

Flying Bird
I make a bird that wave it wings
I make it fly with random motion
but how do I make it point it's nose in the right direction?
tricky huh!!

Exploding Bird
Hello! I have an animation of a bird flying that starts when the "our work" button on our site is rolled over. I would like to make this bird explode somehow, where ever he is atthetime, when the button is released....then, the "our work" section would load. Any ideas?

Flying Bird
I make a bird that wave it wings
I make it fly with random motion
but how do I make it point it's nose in the right direction?
tricky huh!!

Bird Flock
I once saw an animated bird flock, it was a gif or a swf.
You know where can i find one that is animated to use in a flash animation?

Random Bird Movement
Does anybody have any random code I can slap on a movieclip that will look like a bird (seagulls) moving in the distant? I tried tweening it it but it just looks too repititive and boring.

I'll have at least 5 birds that I want to animate, I figure it will be easier if I just do it with code.

Your help will be greatly appreciated.

Creating An Animated Bird
I am trying to incorporate a "near realistic" animated bird into my website, but I don't know how to go about it. I want the bird perching, and later flying away just as birds do. I was hoping may be someone can point me in the right direction. Anyone seen something like this done before? thanks

[F8] Flying Bird Animation
Im trying to make a bird fly and move around the screen at the same time but im not sure how to do it. I already made the layers of the bird flying and i can set it up so the frames change and its wings flap ... but how do i loop the flying and make the birds move around? Thanks!!

Flying Bird In Flash
I am new to Flash. I just upgraded to CS3 and am trying to create an employee website with a flash file. I created my design in Photoshop and am using Fireworks to create my slices and Dreamweaver to finish it off. I am not sure if I need to do my slices first in Fireworks and then import that into Flash to create my animation. anyone know?

also, for my flash file, I have a scene with a tree, buildings, grass and clouds. I wanted to add a bird flying, some moving clouds and a light flashing on and off. The problem I am having is with the bird flying. I found animated gifs on the internet and tried to use those with a motion guide but the animated gif won't work. I tried doing my own animation with a bird with it's wings up and then down. It is very choppy and I know I didn't do it the right way. I used all kinds of keyframes and motion tweened between each one and then added motion guide. Can anyone help me out? I just want a small black bird flying across my scene and I want to do it the easiest way as possible. Any advice will be greatly appreciated. Thanks.

Flying Bird For Flash
Hi guys

I need to make an animated vector flying bird. Not a bird drawing but a bird shape only. First i tought that making some modifications to he vector and then doing a shape tween would be enough but i havent been provided by a good shape....

I got Poser 6 but even i have basic knowledge about 3D programs like Lightwave i'm stuck with it. I was told you can animate animals with it but i haven't been able to change the character.

Can anyone point me to a basic tutorial for Poser 6, a model ti import into Poser or maybe any other idea on how to make a simple flying bird.

Kill The Robo Demo Bird
does anyone else want to kill that bird going on about robo demo.
man she hurts me badly, she also looks pants and has the most anoying voice in the world. am i alone here.

however much robo demo are paying flash kit to put that bint on here isn't enough.

anyway can anyone tell me where i can get video clips from. i wanna take clips of video into flash for dvd authoring.

Thank you

Much love

Load Jpegs In MC Stuck Stuck Stuck
ok i'm sure this is in another thread if someone wants to point me in the right direction i'd appreciate it.

question is.

i have a button that will load a jpeg into a mc. did that.

how do i get the jpeg to center and resize to my mc? mc is 300 x 480......

the site is for an art porfolio and this button/action will be repeated throughout the site

new to FLASH MX & actionscripting and it's driving me over the edge..................


[EDIT/CyanBlue]
Moved to the Flash MX ActionScript forum
Please state what your working environment is and
please post in the right forum
[/EDIT]

Hrmm... Animating A Bird Flappin It's Wings
Basically i got 4 birds on fenceposts, and when i click on em i want them to fly away..... that's not really my question tho...i just need some animating tips on moving the wings... i've dinked around with em for awhile but can't get em to look right, here's the .fla

it looks cheesy as hell, but i'm bored and im just experimenting =D

I'm Stuck, Probably Simple...but Stuck
alright i'm making an entire site in flash.

i have my main timeline that i have label on, that i'm trying to get my button to go to.

here's the deal:

main timeline -> movielcip -> movieclip (button inside this clip)

on the button inside this movieclip i have all my actionscripting (rollover, rollover and on release)

now on release i have: gotoAndPlay("_level0", "news");

news is my frame label on my main timeline, also frame 101.

but when i click on this button it does nothing, just sits there. hmmm.....

thanks.

Max And Min X And Y Coordinate
How do I set the maximum and minimum limit the x and y axis could go for a MC? Thanks.

GPS Coordinate
Is there any transform function or a way to define a viewbox (like in SVG) in order to be able to read GPS data from database and plot places (x, y) accurately on map (enable use of real-world coordinate systems).

I would also like the user to be able to click on the map and get the GPS x, y and store it. Would that be possible?

X, Y Coordinate Help ?
Hi, I am a graphic design student and I'm trying to create a simple webpage in flash, I have been trying to search for this specific thing i need and have no clue what its called but heres what im trying to do.

I have a large image file that i would like to divide into 4 sections, whether its divided mentally, visually, i just want it to stay a whole image and use it as 4 quadrents. I would love to just be able to put the image file in flash, make some simple buttons so that when i click on one it takes me to a section(quadrent) on that picture so its scrolling around on the x & y axis on that picture instead of creating new pages. Does anyone understand what im trying to do or have any sample code/movie clips to simplify this so i can understand whats happening. I have a Flash 8 quickstart book and nothing is really covered in there for what i want to do. Any help you can give is greatly appreciated! thanks

[F8] X Y Coordinate Help
Hello,
My question is how to move a movie clip along an the x coordinate. It's a long movie clip that extends pass the right side of the stage. I want a button each time when pressed to move the movie clip about 500 pixels along the x coordinate to the left. Is there any actionscript that can do this or know of any tutorials? Any suggestion are appreciated! Thanks!

X And Y Coordinate Help
hey guys, I was wondering if you could lend a hand...

I want to write a script that would work something like this: when the cursor is between 125 and 175 on the x plane and 100 and 125 on the y plane, mymc.gotoAndPlay (2).

I was thinking about using the _xmouse and y_mouse commands but I can't seem to get them to work correctly...the movie clip always plays from the start.

Following The Y Coordinate Only...
It has to be simple.... err ok. I have a rocket launcher. I know how to make it follow the mouse.. but I only want it to follow the y coordinate. I need the x position to stay locked, so the launcher will only move up and down with the mouse.

so, simply thinking, I put this on the launcher:


ActionScript Code:
onClipEvent (enterFrame)      {       this._y = _ymouse        }


when I preview the movie, it just dissapears

*sigh* why?

after that I tried all kinds of things relating to stopping and start dragging, hit testing various movie clips, etc. and nothing works right.

X And Y Coordinate = 0
hi i generate numbers of sprite in a loop and i put them at the stage with random coordinates. When i look their x and y (sprite.x or sprite.y) coordinate they seems 0.
i guess the 0 is the origin of the sprites i want to learn their position according to stage

how can i do that?

Please Help With Random X-coordinate
I'm trying to create a flash with a MC that has a random x coordinate and then pauses a few secs before moving to a new random x coordinate. I'm an actionscript newbie, please help.

Coordinate Confusion.
Hello all need help on newbie question,

I place a pic onto scene 1.
Then, I make a new MC contains that pic.

The problem is I don't know how to place the pic on the MC, same place as the pic on scene 1. Tried to key in the X and Y coordinate of the pic in MC same as the coordinate of pic in scene 1 but still dislocate.

Help With X Coordinate Variable
Hi,

I'm trying to use the x coordinate of one of my movie clips as a variable in a particular scene. The x coordinate of this movie clip changes around alot. I'm looking for some actionscript property or code which will grab the x coordinate as a variable whenever the movie clip reaches a stopping point ( I don't wnat multiple variables, just one that changes value whenever the x coordinate changes). Is this what "GetProperty" does? Also, I need to feed this variable into another movie clip embedded into the one whose x coordinate" I'm trying to get. I realize this message is probably pretty convoluted. But if you can decipher this message and help me out, I'd greatly appreciate it. Thanks

Rob

X And Y Coordinate Return
In the code below, I have a button named "rmc" within a mc named "redmc". In the rmc button code on the second on release (if) statement is true, (the target is not hit), the "rmc" does not return to the exact same location as it is initially set. Whats up with that.

Thanks for the help!!!!


on (press) {
startDrag(_root.rmc, true);
}
on (release) {
stopDrag();
if (_root.rmc._droptarget == "/rtarget") {
_root.correct.gotoAndPlay(2);
}
}
on (release) {
if (_root.rmc._droptarget !== "/rtarget") {
_root.rmc._x = "75.9";
_root.rmc._y = "224.8";
}
}

Coordinate Confusion
I found some code that allows me to move an object across the stage and ease it into position:

onClipEvent (load) {
point_a = -25;
point_b = 400;
this._x = point_a;
speed = 7;
}
onClipEvent (enterFrame) {
this._x += (point_b-this._x)/speed;
}

I used this code on some symbols that I planned to add to the root timeline at some point. In fact I put the afore mentioned symbols into another symbol (B) to be added to the timeline.

I noticed that when i put the coded symbols into symbol B that the objects didn't slide into the correct position on the stage when I previewed.

After wracking my brain I realized that the coordinates of the root and preview timelines are different than symbol timelines. Symbols tend to put the 0,0 position in the middle of the screen. The root/preview timelines puts 0,0 in the upper left.

To rectify this I put my coded symbols into the lower right corner of symbol B (all positive _x._y values.) This worked but it squeezed me into the corner. I don't have access to the full 800 px width of the _root movie.

Is there a better way to do this? Why does Flash treat the coordinates of the main stage and the symbol stage differently? How come when I center a graphic in a symbol it only shows the positive area of the symbol when I preview it?

Any thought or help would be appreciated.

Thanks.

D

X Coordinate Motion
Hi all,

This being my first post and venture into flash my lingo may be a little hard to understand but I shall try to explain myself.

I have attached an example file of what I am trying to do. I need to learn how to move mc's off the screen by way of only an x coordinate change on a button press.

For example when you press the red button I want the green blocks going accross the screen to move off the screen and then come back on as red. And then the same back to green or blue.

Thanks a lot for your help and please tell me if this does not make sense

Xy Coordinate Menu
I am trying to design to a flash layout where every link (menu option) changes the XY coordinates of the content on the page. Essentially the whole page is moving except for the menu.

This example is the closest thing on this site that I could find:

http://www.flashkit.com/movies/Appli...0560/index.php

The difference would be that clicking on a menu item would cause the content to move to one specified set of XY coordinates. Anyone have any tips on how to accomplish this sucker?

Thanks a lot,
Chris Bjerken

Getting The X Or Y Coordinate Of A Movieclip
This is probably real simple. I am trying to create a variable that will tell me the y coordinate of movieclip "object1_mc" and then use that in the below tween. I am just trying to figure this out, I will eventually want to put an if statement in there, to run the tween only if that movieclip is on the stage. Thanks for any help.


import fl.transitions.Tween;
import fl.transitions.easing.*;

white_btn.addEventListener(MouseEvent.CLICK, doClick1)
function doClick1(e:MouseEvent):void
{
var myTween:Tween = new Tween(object1_mc, "y", None.easeOut, 0, 600, 1.5, true);
}

Coordinate Systems
I'm having an issue resolving the correct dimensions for the stage. Check out this code below:


Code:
var brick1:Sprite = new Sprite();
var brickHolder:Sprite = new Sprite();
stage.addChild(brickHolder);
brickHolder.addChild(brick1);

brickHolder.x =0;
brickHolder.y = 0;
brickHolder.graphics.beginFill(0x00ffff);
brickHolder.graphics.drawRect(brickHolder.x, brickHolder.y, stage.stageWidth, stage.stageHeight);
brickHolder.graphics.endFill();

brick1.x = brickHolder.width/2-10;
brick1.y = brickHolder.height/2-10;
brick1.graphics.beginFill(0x000000);
brick1.graphics.drawRect(brick1.x, brick1.y, 20, 20);
trace("This brick is at: "+brick1.x+" "+ brick1.y);
trace("Stage size: "+stage.stageWidth + " " +stage.stageHeight);
brick1.graphics.endFill();
Now, what I expected to happen was there would be a square in the center of the viewable area right? But instead the square appears in the bottom right corner. If I don't divide by 2, the square appears waaaaay off screen. What gives?

CS3 Get Y Coordinate Code
Hi everyone,

I am trying to create a menu in CS3 using Action Script CS3, and I would like to have a rectangle (menuHighlight_mc)beneath the text move to the button (about_btn) when you roll over the button with your mouse. Right now, the box always goes to the 0.00 y coordinate, and then goes to the button I am rolling over.

My question is, is there any way to tell flash to get the current y coordinate of "menuHighlight_mc" and using that number as the beginning tween coordinate, or do I have to have 4-5 if statements to cover them all?

Thanks in advance for the help! (See code below)
Rich

var toabout:Tween = new Tween(menuHighlight_mc, "y", Strong.easeInOut, 0, 184.9, 2, true);

about_btn.addEventListener(MouseEvent.MOUSE_OVER, goAbout);
function goAbout(e:MouseEvent):void{
toAbout.start();
}

Getting Coordinate Of A Sprite
Hi all,

sorry if this is a repost, but i couldn't find any related post.

I have written a class that extends flash.display.Sprite. The instances
of this class are added to a container sprite.

Now when accessing this.x or this.y in the instance, i keep getting 0 for both
calls, no matter where the object is positioned.

As far as i can tell from the documenation the x and y properties hold the X/Y coordinates of the object relative to the local coordinate system of the parent.

Why are these properties 0 all the time ?


thanks for your help !

Coordinate Confusion. Help?
I am working through the Flash To The Core book by Josh Davis. I am having difficulty understanding how to get coordinates to constrain a rectangle while working on the HitTest chapter. I know that there are 4 coordinates. Is it Left-Right-Top-Bottom? As far as I can see I don't get how he has come to the coordinates he has entered. The upper left corner is x-0 & y-0. I am just confused on how to generate the rest. The numbers he has don't make sense to me, but they work. Thanks to anyone who will try to understand my confusion. I want to know how to do figure this out for myself in the future.

X And Y Coordinate Inconsistency?
I have successfully created a drag and drop quiz interaction with Flash MX where the user drags movie clips to their respective targets. If they release the draggable clip within a certain number of pixels from its target, it snaps to the target, but if not, it snaps back to its original position. It works wonderfully, but I had to modify the x and y coordinates in the actionscript code to arrive at the correct result and I'm not sure why.

First I created four draggable objects and aligned and spaced them evenly using the x and y properties on the Properties Inspector. I then applied code to the object, for example:

on (release) {
stopDrag();
if (this._x >=357 and this._x <420 and this._y >=290 and this._y <330){
this._x = 395;
this._y = 309;
}else{
this,_x = 107;
this._y = 205;
}
}

But I had to shift all of my x and y coordinates in the code to make it work. I had to add about 77 pixels to each x coordinate and about 25 pixels to each y coordinate. Specifically, in the code above, the object snaps back to x107 and y205, but the original position of the object (placed by the Properties inspector) was x30 and y180.

Why is there this inconsistency between the coordinates created by the Properties inspector and the coordinates used in the actionscript code?

Thanks!!!
nymnyi

Maximum X/y Coordinate
Is there any limit for x/y coordinate of MovieClip (real question is what is maximum x/y coordinate that MovieClip can have) ?

Thanks,
Zaharije Pasalic

Coordinate Array
hi
i have these codes i want to play the movie by NetStream but it gives error when i debug it.
isnt coordinateArray[0] a number???how can i use this array?

var coordinateArray:Array;

var coordinate:Number =Math.floor((mouseX-201)*4000);

coordinateArray[0] = coordinate+1 ;

netStr.play(flvnmfull+coordinateArray[0]);

The Text Coordinate
i have a input text to let user key in text....
i want to mark a tick beside any "a" that the user key .
So i want my movie clip(tick) appear just beside the "a" the user key in...
how do i know the coordinate of "a"?

Random Y Coordinate
Does anyone know how to make a movie clip begin to play at a given x coordinate, but a random y coordinate? Thanks in advance.

Help Locating X N Y Coordinate
i have a flash movie that search the body of the person. i already tried locating the x and y axis thrue entering the exact x and y coordinate.

what i want to do now is create a text box that locate the ear, nose and etc.. what i understand is i have to instantiate the nose= x,y , ear=x,y and etc.. the provlem is i dont know how to star it. and i watn more dynamic.

thanks in advance.

sample code is very much apprediated!

Random Y Coordinate
Does anyone know how to make a movie clip begin to play at a given x coordinate, but a random y coordinate? Thanks in advance.

Help Locating X N Y Coordinate
i have a flash movie that search the body of the person. i already tried locating the x and y axis thrue entering the exact x and y coordinate.

what i want to do now is create a text box that locate the ear, nose and etc.. what i understand is i have to instantiate the nose= x,y , ear=x,y and etc.. the provlem is i dont know how to star it. and i watn more dynamic.

thanks in advance.

sample code is very much apprediated!

Coordinate System
is it possible to move coordinate system center point and to rotate whole coordinate system?

I would need something like:

newCoordinateSystem(100,100,60)

it would be new coordinate system with center 100, 100, rotated for 60 degrees? I am trying to illustrate what I mean.
Thanks.

Stopping Mc At Certain Coordinate
I've got a Flash movie that has a movie clip that scrolls from right to left. The clip contains 6 sample full page magazine covers and each one is a movie clip that contains a button.

When you rollover a particular ad a screen that contains info rolls down and it's the width of two of the ads. When you rollout the screen rolls back up.

What I'm TRYING to do is have the scrolling movie clip stop when the ad you've rolled over reaches the far left so what you'll end up with is the ad on the left and the screen to the right. THEN when you rollout the movie will continue scrolling and the screen will roll up.

I've tried different methods of setProperty but can't seem to get the 'x' coordinates right. Nothing happens.

Example:

setProperty
var guardianx = ("_root.adsmc.guardianbutton",xPos);

if (guardianx > 0) {
_root.adsmc.play();

} else if (guardianx = 0) {
_root,adsmc.stop();
}

If it would help you can download the fla at http://www.baymed.com/parexcellence/flash/pe_contentsads3.fla

This is driving me nuts and would appreciate some help. It seems like it should be a simple thing to do.

LoadMovie With Coordinate
hi, i want to load a movie in another .swf exactly where i want to, without the same size. The first is 550 x 400 pixels, and the 2 will be 130 x 40 pixels.

Something like this one: (but this is not working)

on (release) {
_root.my_movie.loadMovie("contact.swf",w = 130,h = 40,x = 329,y = 430);
}



PLS reply

Copyright © 2005-08 www.BigResource.com, All rights reserved