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




_x = X Position But Whats The One For Colour?



_x I know is for the _x posiition of a movie clip but whats the colour one?

Anyone, please help?

Rhyso



Ultrashock Forums > Flash > Flash Professional
Posted on: 2004-09-12


View Complete Forum Thread with Replies

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

Mc Colour To _x Mouse Position?
Hi everyone!

I want to be able to have a movieclip change colour depending on the _x or _y position of the mouse.

I am having trouble converting the x_position of the mouse into RBG colour numbers.

Any ideas?

Whats The Term For Getting A Frame Position?
I need to run a section of code like this. to perform tasks depending on what frame im on.



IF mc_marker.frame(2) {

do stuff}

IF mc_marker.frame(3) {
do other stuff}

Movieclip With Random Colour And Y Position
i'm creating a screensaver where a line of text containg four words will scroll from right to left. i like to know how to do the following:

1. the text should change its 'y' position randomly for each scroll
2. when the text changes its 'y' position for the next scroll should also apply four different specific colour to the specific word in the text
3. the next scrolling text should appear just before the previous one leaves the screen.....i.e. when the previous one is sticking out a couple of inches....

Creating A Colour Dialogue Box For User To Select A Colour For Background.
Hi,
Any ideas how to create a colour dialogue box so the user can select their own pereference of background colour?
thx
shaf
(I mean inside the SWF as its running......)

16 Bit Colour Mode Problem With Alpha Fades On Colour
Please help me out. I have tried many other forums and people, but no one can give me an answer. Hopefully you can.

Have a look at a site I designed for a school.

http://www.brineleas.co.uk in 32-bit mode this is great, now try 16 bit colour mode and you will see my problem.

Please help if you know how

Trev:

Whats A Good Book For Learning Whats New In MX?
I know flash5 pretty good, but hate the tutorials in MX itself. Whats a good book for learning everything new?

such as the UI and the improved library and dynamic images?

all the rest is the same so I just need to be updated on how to do the new features.

thanks

Flash Colour/ Javascript Colour
Can anyone over here help with the following...

http://www.were-here.com/forums/show...hreadid=148509

Colour Picker / Colour Transform
Hi...

This query has been bugging me for a little while, and it may be easy to answer, I don't know.

I'm using a fairly simple colour transform script to change the tint of a mc...
code:
myColor = new Color(_root.bgdvideo);
if(!ccc){_root.bgdvideo.setRGB(0x990000);
}else{
myColor.setRGB(ccc);
}
MovieClip.prototype.beginFade = function(dstX, durationOfFade) {
this.myColor = new Color(this);
this.srcX = this.myColor.getTransform();
this.dstX = dstX;
this.startOfFade = getTimer();
this.durationOfFade = durationOfFade;
this.onEnterFrame = function() {
var r = (getTimer()-this.startOfFade)/this.durationOfFade;
if (r>1) {
r = 1;
this.onEnterFrame = null;
}
var tX = {ra:this.srcX.ra*(1-r)+this.dstX.ra*r, rb:this.srcX.rb*(1-r)+this.dstX.rb*r, ga:this.srcX.ga*(1-r)+this.dstX.ga*r, gb:this.srcX.gb*(1-r)+this.dstX.gb*r, ba:this.srcX.ba*(1-r)+this.dstX.ba*r, bb:this.srcX.bb*(1-r)+this.dstX.bb*r, aa:this.srcX.aa*(1-r)+this.dstX.aa*r, ab:this.srcX.ab*(1-r)+this.dstX.ab*r};
this.myColor.setTransform(tX);
ccc = this.myColor.getRGB();
};
};

I know you have to change the ra, rb, (etc) values to alter the colour which you get (as in)...
code:
_root.bgdvideo.beginFade({ra:50, rb:204, ga:0, gb:0, ba:50, bb:255, aa:100, ab:100}, 1000);
...but I wondered if anyone knows a trick / way to find out the values you'd put in for (ra, rb, etc) to get a particular colour, rather than just aimlessly playing around with different values until you get the desired colour fade you want (which takes some time for me!)

Cheers
Jeff
*sorry if this is a dumb question...

A Colour Palette For Colour Matching
I'm new to actionscript and trying to creating a pretty simple colour palette which can let users to choose up to 8 different colours. First of all users will be presented with a range of different shades, and each time they choose a colour it can be saved to a movie clip, so finally they will have all 8 movie clips showing all the colours they've chosen.

The way I do is create a movie clip that contain all the colour shades in the palette in different frames. Then make 8 copies of it and give them different instance names. When the user come to select a colour then the movie clip will change to that colour, keep it, then the other colour will go to the second movie clip... and so on... I've tried different ways to simulate the saving function but it still doesn't work (one of them is using if / else statement on the button and declare different Number value on the movie clips)

Pls bare with me if my explaination is not clear... but any help will be greatly appreciated!! Pls tell me if you got idea how to do it or any similar work that you've done. I can also email / msn the file if you wanna have a look. Thanks in advance!! vinkc@hotmail.com

Reset Movie Clip X-position & Y-position Back To Original
Is there a command to reset x-position, y-position and rotation all at once...like reset command?...or would I have to find the original x-positions and y-positions to all elements and hardcode that back....EEEK!!

Many Thanks
Andrea

SoundChannel.position - Trouble Triggering Event Based On .position
I would like to trigger an addChild event when my mp3 reaches a certain point.

My trace statements will only fire if I use <= but not ==

The goal is to add text to the stage when the MP3 has reached one second, what am I missing?

Ultimately there will be several trigger marks I need to hit along the MP3.


ActionScript Code:
var buffer:SoundLoaderContext = new SoundLoaderContext(10000);var welcome:Sound = new Sound(new URLRequest("Intro.mp3"), buffer);var welcomesc:SoundChannel = welcome.play();addEventListener(Event.ENTER_FRAME, playMessage);function playMessage(event:Event):void{trace(Math.floor(welcomesc.position));if (welcomesc.position == 1000)    {        trace("NOW!!!!!!!");    }    else    {        trace("WAIT-------------");    }welcomesc.addEventListener(Event.SOUND_COMPLETE, soundComplete);}

How To Position Mc_example Depending On Position Of Empty Movieclip?
I have a series of movieclips (graphics) which I want to position in a row.
I know that I can define the position of each movieclip individually by _x and _y. But can I place an empty MC on the stage and define the position of every single MC with _x and _y IN RESPECT TO THE POSITION OF THE EMPTY MC - so that ALL movieclips will change their position when I move the empty mc?

Thanks for helping
Aribert

[F8] Control Position Of Playhead In Movieclip By Position Of A Button
I am fairly new to actionscripting and just need a little help.

I have a bar which has a slideable block on it. When this block is dragged, to the left/right i want it to control the playhead inside another movieclip.

For example, when the block is to the far left, the playhead (of my movieclip) will be at the first frame. When the block is dragged to the right it will play the movieclip at the speed that the block is being moved and when it is at the far right it will be on the last frame of the movieclip. And when the block is dragged to the left it will play the movie backwards at the same speed etc...

It is just like the scrubber bars that are in media players, but instead of playing an actual video, i want to play the movieclip which is of an animation.

How would I do this?

Thanks

Flash Y Position Converted To Browser Scroll Position
I have a Flash movie that makes an fscommand call to the HTML page, and via Javascript, it moves the browser window scroll position down. I need to be able to scroll down to a position that coincides with a Y position on my Flash page, but I can't seem to figure out how to convert coordinates from a Flash Y position to a browser-window vertical scroll position. I hope this makes sense. Does anyone know how to do this? (I have all the code working to do this, except for this coordinate issue. That's the only part I need.)

Example:

Code:
myMC.onRelease = function() {
//Command to Javascript function in html doc
//Scroll down in browser to Y pos specified
//This scrolls down to 1000 position within browser window but
//but does NOT equate to a Y position of 1000 in .swf movie
//even if .swf movie is at 0,0 left & top margins within browser
fscommand("scrollToAnchor",1000);
};
Ultimately, what I am trying to do is simulate anchor points from HTML (not anchor points in Flash to go 'Back'), whereby you have a link at the top of the page, and you click it and it takes you somewhere else lower on the same page. Then you have a link there that says "Back to top", and it takes you back to the top of the page, etc.

Any ideas?

X Position? Y Position? Differs In MovieClips From _root?
Hey!

I'm confused:

I want to move a movieClip that is embedded in another movieClip:

firstMovieClip >> floatingMovieClip

Now, X = 0 IS NOT the upper left corner when I try to direct floatingMovieClip.

When I investigate the movieClip sets it's X = 0 in the middle. But on _root lever, X = 0 is the upper left corner.

Is it supposed to be this silly way?

THanks!
Regards

Help With Tweening From Current Position To Clicked Position
Hi
I have a motion tweening question-
I have a large rotary dial with an arrow on it, around that are 5 buttons. I want to set it up so that when the user clicks any button, the rotary dial will rotate until the arrow is pointing to that particular button. I can't figure out how to make it so that the dial tweens from one position to the other, which is of course dicated by where the user clicks. I also want that dial to stay pointed to that specific button until another one is clicked.

How can I do this?

Thanks!!!

-Steve

Mouse X Position To Control Movie Position?
Hi, my understanding of actionscript is very basic and I'd like some help with writing a very simple script. Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).

Reported X Position Doesn't = Actual X Position?
I can't figure this out. I'm loading a serious of pages of images in the same flash document, but all pages after the first one have a lower y position of about the height of one of the images. When I trace their y position they all say 30, when it's clearly more like 150. What's going on here?

I ?guess? It Is About _x.position And _y.position
My Flash 5 file attached !

When you hit button 2 and 4, you will see the word "Congratulations"
Now I would like the word just appear in the yellow area.

"You nerd - just drag the Congrats Clip in the yellow area, that's it" Hehe I know that but in my real program I have more than 110 clips which almost fill up my screen. Therefore I do not want to overlap tons of clips.

Position Of Mouse = Position Of MC
How would I tell a movie clip to move along with the mouse without dragging. Also how would I define the area to which the movie clip can move?

Why Won't MC Chang X Position According To Another MC's Position?
Trying to make it so this movie clip moves it's x position when the "hero" mc is 10 or more ahead of it. But it only reacts if it's x position is at ahead of it at all. I want it to stop moving when it's closer than 10 pixels, but it only stops if it's x position is exactly past it. Is there anyway to change that?

I tried

code: onClipEvent (enterFrame) {
if (this._x <= (_root.hero._x + 10)) {
this._x += speed;
}
}


but that just moves the hero movieclip. It seems as though any variation of that coding doesn't help.

Thanks in advance if anyone can help.

Not Sure Whats Up
I have a movie that is 32000 frames at 18 fps and i preload all graphics... the movie plays fine until it is loaded and then as soon as that happens the world stops turning and the movie stops... I thought maybe it would be the fps so i went down to 12 and that didn't help. The sound continues to play most of the times i have tested but even that has stopped before. the movie started out 10mb and i pulled a lot from it bringing it down to 6 and it didn't help... anyone with any wise words is greatly appreciated.

Whats The BEST Way To Do This? ANyone
hello,
I am trying to load 5 text files at once into a movie called A which is loaded INTO a parent flash movie B...currently I am doing:
Load file 1;
Load file 2;
Load file 3;
Load file 4;
Load file 5;

sometimes all of these files donot get loaded....whats the best way to do this??????

thanks

Only GOD Can Help Me Now. Whats On TV?
Guys,

I'm working on launching my site as soon as possible. My problem is the damn thing is happening too slow. I know there MUST be a way to eliminate that. My Problem is I just don't know exactly how.

I know that I have quite a few animations going on, and I was instructed that it is best to break them up into different SWF movie clips. Thats what I did. Currently I have it into 4 different ones in this example. I have the index.swf, which is the inital SWF mc that shows the background then loads the grid on level 6. Second I have the grid.swf, which shows the (moving) grid, then loads the menu onto level 7. Third I have menu.swf which brings in the menu buttons, then loads my first content SWF which is welcome. Last but not least is welcome.swf which loads the content for my welcome page on level 10. All other content pages will be loaded into level 10 as well. I intend to have 5 different background music loaded into levels 1 - 5 which the user can select/change, but thats another issue.

Here is the link to see it in action, or no-action as the case may be. http://www.vmvisions.com/new/index.html If anyone can help me with this one they really rock!

Thanks,
Marc

Whats Up Doc?
Hi people,

I have been creating a scrollable form (well I downloaded the scroll actions as a guide to getting this to work) but I am have a few teething problems.

The problem is when you click on a radio button, the form jumps all over the place...


Each set of buttons are a MC, which refer to a frame label in its own MC.

Take a look and see what I mean: http://www.loadabollocks.com/neil/Scroll-form.html

Its been a pain, as I spent a good few hours getting this to look and work... well almost.

Any ideas would be great. I can post the .fla if needed.


Many thanks for looking at this thread!!! :-)


Regards

Neil

Whats The Best Way.......
Hi guys

whats the best way to approach building a complete site in flash? I assume that if i build each page (there will be about 6) as a separate movie and connect them after so they will only load on request? if this is the correct approach how do i go about linking the pages or movies?

thanks for any help

Whats The Best Way To ?
Move a movie clip using actionscript. Is there another way to move it apart from using SetProperty ??
Also i want to put the code in an onClipEvent since i want to duplicte the mc, what is the best event to use ??

thanks for any help

Whats The Best Way To.....
I have a button on the 50th frame on the main timeline.
when pushed I want it to activate an mc on the 20th frame of the same timeline but I want the movie to start on the 10th frame inside the mc.

HOW?

Whats The Best Way?
Hello everyone!
what would be the easiest way to update a web sites content with out too much effort for either myself or the client. As far as text is concern. What are the best tools to use for this?

Thank you ,
Mikro

* Whats Going On Here Then..? *
Hey guys,

Just a quick question.. something I've always just ignored but I wonder if you can clear something up for me...

I'm creating a small movie that fades in one jpg and fades out to the next through a series of jpgs... when I publish it (at highest quality) the images seem to fade in, shift 1 pixel to the left then shift back just before fading out...

Any ideas how to avoid this??

Thanks in advance..
A$H

Whats The Best Way I Can Do This?
http://home.attbi.com/~stevenhoanginc/1/index.html

If you havent already click on the link above, please do so.

when you click on the buttons below a new box slides out from the right. but it covers the box that was there before. what i want to do is to make it so that when you click on a button the last box slides out, then the new box that you just clicked on will slide out from the right.

i converted each box(total of 5) to a movie symbol. and used the telltarget command to make them interact.

if you have no idea what the heck im saying..dont worry your not alone cause im not even sure i made sense.

anyways..any help or tutorials would be greatly appreciated!
_______________
Steven k. Hoang

Whats An Swf?
it said there were no stupid questions!!!! hah

so... im new, but quick. i made a sweet audio player.
Im following a tutorial that says to save the files as an swf.

what is it? how do it do it? the only option i have is .fla

thanks

jason

Not Sure Whats Going On
ok

ive got this little movie that is inside another movie...

its loaded alright and the preloader works and all that.

(it is basically an audio controller with play, stop, pause, skip tracks, etc...)

but whenever I clikc buttons on it, they dont work...

the code for the buttons tells the _root of the movie to go to different frames and such (which works wheh the movie is alone) but when the movie is in another one, (loadMovie) they dont work...

i'm thinking it is because it is telling the _root of the movei it's in to do that stuff but im not sure...

any help?

Whats An MC
Yes I'm stupid!

Whats An Sqf?
I just got a template and it doesn't have any FLAs it only has swf and sqf.

What is an sqf and can I edit it in Flash?

Thanks

NO NO Whats Going On
Just recently, My Flash program has been acting strange. Ive been working ona a project for over 2 months and now when i export, the program quits. i tried exporting a preview and it crashed, than i tried makeing a application version. and that crashed ,, than i exported my movie so it can be viewed from a html document and it safarri crashed....!! what hell is going one. None of this was happening before i came to this site. Now my whole project is trash.. is there any info one this kind of behavior ?

Whats Going On?
Please take a look at the attached file. It is a menu system for a website. Everything seems fine when it is first viewed. the MC of the butterfly attaches to the mouse and the trails MC works when you move your mouse is it. If you leave the file sitting for a while (about 2 minutes) Then something FREAKY happens. I get a HUGE version of one of the MC rotating, which disappears when I move the mouse again. What is going on? Anyone got an idea?

Most appreciated.

Thanks

LEE

Whats 766 Mean ?
Change CHMOD levels to 766.

what does that mean ?
im tryin to set up a guestbook

Whats Going On?
hey guys.

just created another flash movie.

im having some issues with it however.

I have 3 frames in total of the main movie. TItled MAIN

I have a movie on frame 2 of the main movie (lets call this movie1)


Now at the end of movie1 i tell it to go to MAIN Frame label Frame_3 (which is what ive called frame 3 in the mian movie)

for some reason the Main movie gets stuck on Frame 2 (ie infinate loop)

I dont have any actions on the main ,ovie or within movie 2 to make it do so..

suggestions / ideas?

cheers
Vamps

Attached is the file in question

Whats Next?
i just finished making a flash website for our snowboarding team, its just under 2 mb and i dont know how to host it and get it to work on the net, i tried it through geocities but that didn't seem to work...

Whats Up Here.?
ok then....

basically i have a collection of 16 movie clips (not different instances of the same clip) named tile1-tile16. Each tile has a differnt amount of coins on it and the tiles shuffle position randomly every time the application loads up.

Ok...... each tile movieclip has two frames inside it - one tile with a black border and one with a green border. Every time i click the square the tile which has been clicked goes green to show that it has been highlighted. The game basically is meant to be that when a user clicks on a tile with 1 dollar coin on it - that tile highlights and then if the user then clicks on another tile which has 2 fifty cent coins on it - then both tiles dissappear ( as they are both equivalent money values etc..) otherwise if the user clicks on two tiles which dont have equivalent money values on them the the first tile (which was highlighted) reverts back to its original state and the user carries on etc....

now the problem im having is that when the user clicks on the same tile twice the tile dissappears on its own

and the other problem im having is that if the secon tile is not the righ tile the original tile is not going back to its original state...

here is the code on the invisible button on each tile ....

on (press) {
if (_root.test) {
if (_root.test == value) {
_root.clip._visible = 0;
this._visible = 0;
} else {
_root[_root.clip].gotoAndStop(1);
}
_root.test = 0;
_root.clip = 0;
} else {
gotoAndStop(2);
_root.test = value;
_root.clip = this;
}
}

also on another layer of each tile the 'value' variable is defined
i.e. the 1 dollar coin has a value of 100 assigned to it...etc....

so the 1 dollar invisible button has :-

value = 100;

and the tile with 2 fifty cent coins on it has

value = 100; too..

because they are both equivalent to a dollar etc. etc...

so each tile has the 'value' property set to the value of the coins which are actually on it...


this is how thee application works out whether the two tiles which have been clicked are equivalent vaues or not....

im nearly there but these two little problems are bugging me...

email me at

viktajatt@hotmail.com if you want to see the fla....

help...........!!!!

Whats Going On?
trying to isolate an empty slot in an an array and fill it, but it doesnt work.

heres the script

Code:
onRelease = function () {
if (_root.empty_slots >= 1) {
for (i=0; i<=_root.strikers.length; i++) {
if (isNaN(parseInt(_root.strikers[i].substring(_root.strikers[i].indexOf("_")+1))-1) == true) {
striker_name = "striker_"+(i+1);
array = i;
found_slot = 1;
var newClip:MovieClip = _root.attachMovie("striker", striker_name, i);
i = _root.strikers.length+1;
_root.empty_slots = _root.empty_slots - 1
}
}
} else {
if ((found_slot == 0) or (_root.empty_slots == 0)) {
striker_name = "striker_"+(_root.striker_count+1);
array = _root.striker_count;
var newClip:MovieClip = _root.attachMovie("striker", striker_name, _root.striker_count);
}
}
_root.strikers[array] = newClip;
_root.current_depth = newClip;
newClip._x = 108;
newClip._y = 396;
_root.striker_count = _root.striker_count+
1;
found_slot = 0;
};

Whats The Best Way To Do It?
Hi all,

i have a question.

I need to create a website for someone, (some workers social club) or something. I want to use flash to do it. i.e flash menus banners) In theory the main layout will never need to be changed but the client wants the pictures and text updated regularly. i need to create a website that can be updated by themselves rather than me having to do it.

The people who are having the website arent amazing computer savvy, so anything complex for them is a no go. What do you all reckon is the best way to go about this?

Hope you can help!!

Coxyladuk2001

Whats The Best Way To Do This?
Hey everyone. I have a mc with about 30 dynamic text boxes in it each labled differently, eg, text1, text2, text3, tex4, text5 etc....

I want to update these text boxes using a external txt editor.

I can get this to work using 30 seperate txt files, but there must be a simple xml way to do it in one txt document? I had a good hunt on here for examples but they seem to include images and hyper links etc. I also tried changing the coded but flash spazed out on my poor actionscript skills

Has anyone got an example of something similar to what I am trying to make?

Cheerio and thankshttp://board.flashkit.com/board/newreply.php?do=newreply&noquote=1&p=4032119
Reply

Whats The Best Way To Do This?
I am reading in variables from a text file into flash. There are five sets of variables. Now I have been able to add the information for at least one of the variables in the code below, but I am not sure how to step thru all the info in the text file and display it properly. I attemped a method but this doesn't work. Would I use a for while loop conditional statement? Whats the best way do this?


Code:
function info(myVar) {
trace("myVar = "+myVar);
MyLoadVars = new LoadVars();
MyLoadVars.load("CdTypes/"+myVar+"TEAM MEMBER.txt", "BioInfo");
MyLoadVars.onLoad = function(success) {
if (success) {
//trace("done loading");
// Load data into text fields
BioInfo.name.text = this.name0;
BioInfo.title.text = this.title0;
BioInfo.city.text = this.city0;
BioInfo.BioPic.loadMovie("images/"+this.image0+" ", "BioPic");
///////
BioInfo.name.text = this.name1;
BioInfo.title.text = this.title1;
BioInfo.city.text = this.city1;
BioInfo.BioPic.loadMovie("images/"+this.image1+" ", "BioPic");
} else {
trace("not loaded");
}
};
}

Hmm, Whats Going On Here Then..?
ok then....

basically i have a collection of 16 movie clips (not different instances of the same clip) named tile1-tile16. Each tile has a differnt amount of coins on it and the tiles shuffle position randomly every time the application loads up.

Ok...... each tile movieclip has two frames inside it - one tile with a black border and one with a green border. Every time i click the square the tile which has been clicked goes green to show that it has been highlighted. The game basically is meant to be that when a user clicks on a tile with 1 dollar coin on it - that tile highlights and then if the user then clicks on another tile which has 2 fifty cent coins on it - then both tiles dissappear ( as they are both equivalent money values etc..) otherwise if the user clicks on two tiles which dont have equivalent money values on them the the first tile (which was highlighted) reverts back to its original state and the user carries on etc....

now the problem im having is that when the user clicks on the same tile twice the tile dissappears on its own

and the other problem im having is that if the secon tile is not the righ tile the original tile is not going back to its original state...

here is the code on the invisible button on each tile ....


ActionScript Code:
on (press) {
if (_root.test) {
if (_root.test == value) {
_root.clip._visible = 0;
this._visible = 0;
} else {
_root[_root.clip].gotoAndStop(1);
}
_root.test = 0;
_root.clip = 0;
} else {
gotoAndStop(2);
_root.test = value;
_root.clip = this;
}
}
also on another layer of each tile the 'value' variable is defined
i.e. the 1 dollar coin has a value of 100 assigned to it...etc....

so the 1 dollar invisible button has :-

ActionScript Code:
value = 100;
and the tile with 2 fifty cent coins on it has

ActionScript Code:
value = 100;
too..
because they are both equivalent to a dollar etc. etc...

so each tile has the 'value' property set to the value of the coins which are actually on it...


this is how thee application works out whether the two tiles which have been clicked are equivalent vaues or not....

im nearly there but these two little problems are bugging me...

email me at

viktajatt@hotmail.com if you want to see the fla....

help...........!!!!

Whats The Better Way?
if I create buttons should I apply the action scripting to the button itself.
or should I put all my actionscripting in the main timeline and call the buttons using instance names?

Ok, Whats Going On, Help
[CODE]onClipEvent(load){
speed=3;
gravity=-1.5;
base = true;
}
onClipEvent(enterFrame){
@@if (Key.isDown(Key.UP)&&this._x<725&&this._x>0){
this._y-=speed;
base = false;
@@_root["flame"].gotoAndPlay(2);
}
if (Key.isDown(Key.RIGHT)&&this._x<725&&this._x>0){
this._x+=speed;
}
if (Key.isDown(Key.LEFT)&&this._x<725&&this._x>0){
this._x-=speed;
}
if (this.hitTest(_root["base"])){
base = true;
}
if (Key.isDown(Key.UP)&&this._y>0){
this._y-=speed;
base = false;

}
if(base == false){
this._y-=gravity;
}
if (this._x<0){
this._x+= speed;
}
if (this._x>724){
this._x-= speed;
}
if (this._y<0){
this._y+= speed;
}
@@if (this.hitTest(_root["level1bg"])){
@@gotoAndStop(20);
}
}[/CODE]
ok look at the parts with @@ "flame" is my flame animation i wanna happen on key up is down... but it wont until i hit level1bg which is my ground, and once i hit it, it wont stop.. and also when i hit my ground, it wnt go to frame 20, it does nothing.... lol help!





























Edited: 02/21/2008 at 06:06:53 PM by spyboy1o1

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