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




Whats Wrong With My Script? For Someone Advanced



I have an mc symbol and a button with code..

on the button:

on (press) {
start=25;
end=400;
active=1;
}

on the symbol:

onClipEvent (enterFrame) {
if (_root.active == 1) {
// Travel Script
speed=10;
this._x += (_root.end-this._x)/speed;
}
if ( symbol_mc._x = 400 ){ loadMovie("wash.swf", "wash_mc")
}
}

result: My symbol travels as it should, but the if statement is never activiated! But surely as the symbol ends on x=400 it should trigger at that moment? ..I did place the IF statement on the button, the result was the movie loaded from the IF but the symbol didnt travel



FlashKit > Flash Help > Flash MX
Posted on: 04-19-2003, 10:58 AM


View Complete Forum Thread with Replies

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

Whats Wrong
what wrong with this
onClipEvent (load) {
this._x = 0;
}
onClipEvent (enterFrame) {
if (this._x=0) {
r = 1;
}
if (this._x=700) {
r = 2;
}
if (r == 1) {
this._x = this._x+50;
}
if (r == 2) {
this._x = 0;
}
}

Whats Gone Wrong?
when rolling over a button i make the word (roll over) disapper and (the name of the button) appear. There are a few buttons beside each other but if i roll over the buttons too quickly the word (roll over) eventually disappears and appears when i roll over the button which is the complete opposite of what it should do....

heres the code im using :

on (rollOver) {
tellTarget ("/nyc") {
play ();
}
}
on (rollOut) {
tellTarget ("/nyc") {
gotoAndStop (1);
}
}
on (rollOver) {
tellTarget ("/roll") {
gotoAndPlay ("start");
}
}
on (rollOut) {
tellTarget ("/roll") {
gotoAndPlay ("middle");
}
}

Whats Gone Wrong?
Ok.....On screen i have several buttons. I also have text on screen which says "roll over one" which is a movie clp, when i roll over one of the buttons the text(roll over one)dissapears and (the name of the button) appears.
All the buttons are very close to each and if i roll over the buttons too quickly the word (roll over one) eventually disappears and appears when i roll over the button which is the complete opposite of what it should do....

heres the code im using :

on (rollOver) {
tellTarget ("/name of button") {
play ();
}
}
on (rollOut) {
tellTarget ("/name of button") {
gotoAndStop (1);
}
}
on (rollOver) {
tellTarget ("/roll over one") {
gotoAndPlay ("fade");
}
}
on (rollOut) {
tellTarget ("/roll over one") {
gotoAndPlay ("comeback");
}
}

Whats Wrong?
I want to get two variables from Ms access database through ASP i put 2 dynamic text fields in my flash movie (field1:name, field2:score)and i put a button on the same layer having action ---------

on (release) {
loadVariablesNum ("get_can.asp", 0, "GET");
}
--------
my asp page is working fine as when i run it separately it gives me both the variables (name ,score) .
So what is wrong?
ASP:------------------
<%
set con = Server.createObject("ADODB.Connection")
Con.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("can.mdb")
set RS=Server.CreateObject("ADODB.Recordset")
name=Trim(Request.QueryString("name"))
testa1=Trim(Request.QueryString("testa1"))
sql="SELECT * FROM table1"
RS.ActiveConnection = Con
rs.open sql
%>
------------------------------
Help me out!

Whats Wrong With This (MX)
trying to import an external .swf into an MC in MX and i keep getting this error am i doing it wrong? I read the tutorials and this is what it said to do.

Heres the error:

Symbol=Symbol 133, Layer=Layer 2, Frame=1: Line 1: ';' expected
Load Movie ("vcomp.swf", 1)

heres the code its so simple i cant see whats wrong with it unless the tutorial was wrong.

Load Movie ("vcomp.swf", 1)

Any help appreciated thanks.

IF Whats Wrong Here?
hi there.
i'm trying to check to see if item2 has moved down the distance of _height.item1items +30 else move down _Y +3
but its not working any suggestions?




if(_root.window.item2._y == _root.window.item2._y + _root.window.item1items._height + 30) {
_root.window.item2._y = _root.window.item2._y +3
gotoAndPlay(2);
}
else {
gotoAndStop(1)
}

thanks

danny

Whats Wrong?
Obviously this code isnt working, whats wrong, it seems perfect to me?
onClipEvent (keyUp) {
if (Key.onKeyUp( key.LEFT)) {
stop();
}
}
onClipEvent (keyUp) {
if (Key.onKeyUp( key.RIGHT)) {
stop();
}
}

Can You See Whats Wrong Here
Variables - anyone with a spare second?
I am triying to send variables to asp and then return some variables.
The variables that are returned are to be collected in AS and not a text box.

I tried this and it didn't work.

My asp is fine because if no variables get passed from flash it still writes a default value.ie. OrgName=Nothing+there

Can you see whats wrong here

Orgdata = new LoadVars();
Orgdata.srcTopicCombo = _root.c1.getValue();
Orgdata.srcAreaCombo = _root.c2.getValue();

ReceiveData = new LoadVars();
ReceiveData.onLoad = fOnLoad;

SendData.sendAndLoad("combosearchresults.asp", ReceiveData);


function fOnLoad(success) {
if (success) {
OrgName = ReceiveData.OrgName;
} else {
myAlertFunction("error");
}
}

Whats WRONG
Can someone please tell me what is wrong with this:

on (release) {
loadVariablesNum("addtime.php? starttimehr="+starttimehr.getSelectedItem().label+
"&starttimemins="+starttimemins.getSelectedItem(). label, 0, "POST");
gotoAndPlay(20);
}

Its just selecting the item out of the combo box and POSTing the value to a php script.

No values are returned

Thanks

Whats Wrong ?
if ya look at my .swf on http://frent.topcities.com/belgium8819.swf
my preloader doesn't do a thing how come ? ( to see the fla ==>> http://frent.topcities.com/belgium8819.fla )
if it's all wrong can ya fix it please then , i would really appreciade it

Whats Wrong Here
cant get this to work right ?????
useing flash 5

Whats Wrong, Fps Or Something Else?
http://bluefrost.intraweb.net


The thing is that Ive recieved comments about the loader being skippy. The white thing covering the main content. The one that comes in from the left and out.

I have FPS at 36 so that shouldnt be the problem.

Its a white square that have a mask over it. Is there a way to make this run more smooth???

Click the home button over and over again and youll see what Im talking about.

Edit:
Oh, and its not just the white that comes in covering the content but also when its loaded and the main/home image appears. I use a mask on that one. The mask has a tween and comes in from the left.

Suggestions on how to make it smooth?

Whats Wrong With This?
onClipEvent (enterFrame) {
if (_root.player.hitTest(_root.trashcan) && trashhit == 0) {
_root.trashcan.gotoAndPlay("hit");
trashhit = 1;
}
}


It doesnt go to the frame.

How Can I Know Whats Going Wrong?
Hello.
My swf shows a message saying:" A script i this mvie is making flash playre run slow. If it keeps playing, it may stop the computer. Do you want to abort the script?"
I answer "YES", but i dont know what, in my code, is making the flash player to run slow.
Is there a way to see what line is making it? When it stoped?

Whats Wrong?
<?
$dbHost = "localhost";
$dbUser = "root";
$dbPass = "";
$dbName = "nnn";
$table = "alumnos";

$link = @mysql_connect($dbHost, $dbUser, $dbPass);

if (!$link)
{
$bien=false;
echo "&bien=$bien&";
exit;
}

if (!@mysql_select_db($dbName))
{
$bien=false;
echo "&bien=$bien&";
exit;
}

$query2 = "SELECT MAX(COUNT(d1)) from alumnos";
$result2 = mysql_query($query2);
$ide=$result2;

echo (mysql_error());
mysql_close($link);
echo $ide;
?>

Whats Wrong Here? Please Help...
Please take a look at my .fla.... and can someone tell me why the first button works but non of the others do?? I scaled down the file a lot so it should be very readable... all actions are located in the actions layer... oh at its was build using 2004...

link to .fla
http://www.carlosrapa.com/TESTER.fla

Thanks a Bunch,
Carlos

Does Anyone Know Whats Wrong With This
Ive got an image that is converted in to a movie clip.
The movie clip is on my main timeline with this action on the clip:

onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._alpha>1) {
this._alpha -= 10;
}
}

It doesn't work if anyone has any suggestions please let me know.
thanks

Whats Wrong?
Can someone take a look at my site and tell me what I'm doing wrong... I'm new to this actionscripting thing and am getting more confused, the more I look at it!!

Is a very simple website, at this stage all of the pages are the same apart from the heading..... they will be changed later!! I just want to get the navigation working!!

I have all the buttons in a mc called "buttons" funnily enough!! and all the pages in a movieclip called "pages", each frame where the content is, is labeled and has a stop action it!!

The buttons have the action

on (release) {
tellTarget ("main") {
gotoAndStop("home");
}
}


But the buttons don't work.....!! What am I doing wrong...... cause its driving me nuts, my computer is about to have a meeting with the pavement!!

cheers!!

Whats Wrong About This.....?
on (release) {
temp = mask.menu;
mask.menu = 2;
}
on (release) {
if (mask.menu < temp); {
tellTarget ("knipper") play();
}
if (mask.menu > temp); {
tellTarget ("knipperlinks") play();
}
}

-------------------------------------------------------------

in this script the buttons (7 of them) are named "mask.menu = 1 (untill 7)"

if the mask.menu of the the button you click on is lower than the one you clicked on before "knipper" has to play....if it's higher than the one you clicked on before "knipperlinks" has to play


thnx

Could Some One Tell Me Whats Wrong?PLS
I have a problem with my gallery photos.
The problem is: I was updating my pitures and for the gallery #1 there are 2 picts that does,t show there.I've tryed everything and still not there.
I have the original files on CD, than what i did was erase everything from the ftp thing and upload it again.Also it did't work.
The funny thing is on my computer it does work but when i transfer
it to the ftp there 2 pics missing.

www.tjdesigners.com/foto

Could you kindly help me on this?
Many many thanks!

Whats Wrong With My If?
im making an online gallery for my friends and family, but something is going wrong with the if command:

on (press) {
if ph1.text = "Belle in Poolroom" {
gotoAndPlay(7);
}
if ph1.text = "st. Pauls from Millenium Bridge" {
gotoAndPlay(10);
}
}

the actionscript error report says i need to put in some (, but i dont know where?

thanks,
jellyrools

Whats Wrong With My Jpg's?
can someone tell me why when i load the swf directly, the jpg's look fine, and when you load the html page they look pixelated & jagged?

html
swf

if you look at some of the prom & wedding pictures, and at the edge of their clothing, the edges seem ragged, not as smooth & clear as in viewing the swf file directly. The last picture, with the dogs, the mans face seems unclear & the neck line of the womans shirt is ragged looking.

No scaling, the images are imported exactly the size I want them to be. 80% quality, tried 100% -doesn't make a difference. Match movie, no borders.

Perhaps it is a problem with being embeded in html?
I have seen many photography flash sites, & the pictures look great, so I know this can be worked out, just don't know how.

would there be a better method of having flash display jpg's?
what about using loadmovie with non-progressive jpg's, would that work better?

heres the fla file zipped:
ace fla file

thanks

Whats Wrong With This
whats wrong with this script , i want to change back and forth from frame 1 to frame 2 on a movieclip instance i made
i put this code on the instances action
and the clip has exactly to frames

onClipEvent(load){
stop();
_root.frame_num=this._currentFrame
}
on(Release){
if(this._currentframe==(2))
{this.gotoAndStop(1);
_root.frame_num=this._currentframe}
if(this._currentframe==(1))
{this.gotoAndStop(2);
_root.frame_num=this._currentframe}
}
thanxs

Whats Going Wrong Here ?
on my flash site im loading in a few other swf files onto the page with this code

stop();
newscontainer.loadMovie("news.swf");
photoboothcontainer.loadMovie("photobooth.swf");


the files are loading in ok but the timeline DOESNT STOP???

WHY IS THIS ????????

Whats Wrong
here is what i have.

code:

onClipEvent (load) {
mpoint = new object();
}
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
mpoint.x = this._xmouse;
mpoint.y = this._ymouse;
localToGlobal(mpoint);
_parent.dragger.loc = mpoint.y;
} else {
}
}


can someone tell me what wrong with it?

i will include the .fla
so someone can take a look at it.

Tell Me Whats Wrong With This
im having some trouble with my frogger game again. this time every time i jump onto a car the animation freezes. if im just sitting there and a car hits me it works fine. it only freezes if i jump directly into a car.

another problem i have is that there is soposed to be a fly that pops up randomly at the top.if i jump into the frogs home while the fly is there its soposed to show an animation that says 200, to show that i got points. that doesnt work either.

so if one of you people that are way smarter than i am can tell me whats wrong that would be great.

here is my fla: http://esgaroth.servebeer.com/frogger.fla

here is the swf: http://esgaroth.servebeer.com/frogger.swf

Whats Wrong?
im trying to link to another scene:

my code is...

on (release) {
gotoAndPlay("Scene 7", 1);
}


and i get this error....



**Error** Scene=Scene 4, layer=Layer 1, frame=1:Line 1: '{' expected
on (release), {gotoAndPlay(Scene 7,1);}

Total ActionScript Errors: 1 Reported Errors: 1

Whats Wrong With My I
Hi All, Could someone else please look at this and see if you can tell me why my i wont work

Set up:
Loading info from a xml file
PicObject = new RSXML2b();
var xml_file:String = "pics.xml";
PicObject.Open(xml_file);
PicObject.onLoad = function() {
var nr = this.GetNumRows();
Pic = {};
Pic.titles = [];
Pic.thumb = [];
Pic.description = [];
//populate array
for (i=0; i<nr; i++) {
//fill the arrays
Pic.titles[i] = this.GetResult("title");
Pic.thumb[i] = this.GetResult("thumb");
Pic.description[i] = this.GetResult("description");
this.MoveNext();
}
};

Pic.titles[i], Picthumb[i] and Pic.description[i] trace out fine.

Now if I put in

clip3MC.dig01_mc.loadMovie("images/"+Pic.thumb[i]+".jpg");
clip3MC.dig02_mc.loadMovie("images/"+Pic.thumb[i]+".jpg");
clip3MC.dig03_mc.loadMovie("images/"+Pic.thumb[i]+".jpg");
clip3MC.dig04_mc.loadMovie("images/"+Pic.thumb[i]+".jpg"); above the MoveNext(); function.

I get the same image, My i is not incromenting (or I am just having a brain fart) If I hard code the Pic.thumb[1] it works great but I don't want to code 80+ lines.

Thanks
Bobby
Let me know if you need ALL the code

Whats Wrong?
Code:
onClipEvent (enterFrame) {
if (Key.isDown(Control)) {
this.gotoAndStop(2);
}}
I'm not getting an error message but it wont work.

Please Help Not Sure Whats Wrong
Hello all,

I am having a major issue. I have main movie with two spots in it that have smaller movies loaded into them when you click a "web" or "logo" button.



this all works fine until you click the web or logo buttons more than once,
when you do this my main flash movie seems to reload and loop over and over (check the source files and you will see).

I use hittest and setInterval in my movies, would this have anything to do with it? Or could it be my preloaders? I have checked everything to the best of my knowledge and I can't pin-point it so any help would be great!

SOURCE FILE

Thanks Again

Whats Wrong With This
this script doesnt work, trying to define an array of object locations


PHP Code:




var buttons:Array = Array(_root.choice.1.centre, _root.choice.2.centre, _root.choice.3.centre, _root.choice.4.centre)







it just wont have it and i cant fault it

need to use it to cuminatively change the background colour of 4 different objects, unless anyone knows a better way than cycling though them in a for loop

cheers

Whats Wrong
Hey i´m relatively new to action scripting and i´m trying to make a simple object to follow the mouse when it moves into a certain area --> like a menu bar.

The first already works but now i´m trying to tell it to only follow the mouse when its above the top 60 pixels of the document.

Here is my code

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 1;
}

onClipEvent (mouseMove) {
endX = _root._xmouse;
endY = _root._ymouse;
}
onClipEvent (enterFrame) {
If(_root._ymouse <= 60) { <---- does not work
_x += (endX-_x)/(20);
_y += (endY-_y)/(20);
};
}

thx a lot
Alex

Can Anybody See Whats Wrong Here...?
Ok can anybody see where im going wrong here? All I want it to do is to go to a certain frame depending which 'braket' the random number falls between.


Code:
stop;
//this is the function that gets called by the setInterval function
function pause() {
//tell it what to do
clearInterval(pause_int);
//this clears the interval
if (this.wait<=60000) {
_root.gotoAndPlay(2);
} else if ((wait<=120000) && (wait>=60001)) {
_root.gotoAndPlay(33);
} else if ((wait<=180000) && (wait>=120001)) {
_root.gotoAndPlay(57);
} else if ((wait<=240000) && (wait>=180001)) {
_root.gotoAndPlay(74);
}
}
//set a variable to contain how long to pause
//the set interval takes milliseconds as its parameter
//so to pause 1- 5 seconds, the number needs to be between 1000 and 5000
var wait = Math.ceil(Math.random()*15)*30000;
//call the setInterval function
//we also need to set an object to contain the setInterval so we can clear it
//that is what pause_int is
pause_int = setInterval(pause, wait);
Any thoughts???

Please Can Someone Tell Me Whats Wrong Here
I have 3 movieclips and a button on the stage.

I have this in frame 1 of an actions layer and when you click the button the 3 movieclips are supposed to play. The trace outputs the correct instance name (box1, box2, box3)




stop();
but1.onRelease = function() {

for (y=1; y<=3; y++) {

mc = "box"+y;
mc.play();

trace(mc);
}
}


thanks for any help.

Whats Wrong With This AS?
I'm doing a log in page for an admin back end my code is as follows for my submit button...


Code:
loginbutton_mc.onRelease = function(){
if (user="admin", pass="password") {
gotoAndStop("right");
} else {
gotoAndStop("wrong");
}
}
i have a box for user and a box for password (which have the vars user and pass), i have 2 other frames labled right and wrong, i can get to the right frame every time (even without filling anything in, which defeats the point).

What am i doing wrong?

I used to have a nice little log in script that was attached to the button, but i can no longer find it...

Can anyone help?

Christopher Mitchell

Whats Wrong
I'm going crazy trying to load an external swf into a scrollpane, i can do it
but to stop and play it i use onEnterFrame() and after getBytesLoaded() functions but it never recognize the bytes loaded and so i cannot stop the internal swf execution
here i attach a piece of code where the scrollpane instance is called with eval("movies_mc.scrollpaneist"+tt) where movies_mc is a movieclip ( a box) where the scrollpane is created at runtime and tt a simple counter.

please help me understand why it doesn't work ...


Code:
function loadswf(scrollpane,cfile:String)
{

var clipper:MovieClip = scrollpane.content.pane_mc.createEmptyMovieClip("clipper_mc", getNextHighestDepth());
clipper.createEmptyMovieClip("holder2", getNextHighestDepth());
scrollpane.setScrollContent(clipper.holder2);
clipper.holder2.loadMovie(cfile); //it' loaded

//clipper.holder2.lineStyle(3, 0x0000FF, 100);
//clipper.lineStyle(3,0x000000,100);
//clipper.moveTo(0,0);
//clipper.lineTo(0,100);
//var ext:String=cfile.substring(cfile.lastIndexOf("."),cfile.length);
clipper.onEnterFrame = function()
{
writeln(_root.clipper.getBytesLoaded())
writeln(_root.clipper.holder2.getBytesLoaded())
writeln(_this.getBytesLoaded())
writeln(_root.clipper.holder2.getBytesLoaded())

//always 0 !!!!!!!!!!!!!!!!!!!

if (_root.clipper.holder2.getBytesLoaded()>0)
{ //it never enters hererere !!!!!!!!!!!
writeln("gogogogo")
if (this.holder2.getBytesLoaded()<this.holder.getBytesTotal())
{

} else
{

Whats Wrong With This
i need help with a game I'm making
so where did I go wrong


onClipEvent (load) {
moveSpeed=10;
}

onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed; }
if (Key.isDown(Key.LEFT)) {
this._x-=moveSpeed; }
running.gotoAndPlay(running)
}

Whats Wrong With This?
I am trying to develop a drag and drop basket type thing.
I have a small animation before the user can drag and drop where i don't want the movie clip to be draggable, once the animation has stopped I want to trigger the start drag action.

The follwing code is inside a movieClip in scene 1. I have set up a variable so when the animation is playing the variable is false, then true once the animation is over. The


ActionScript Code:
on (press) {
    if (_root.var_clothes=true) {
        startDrag("");
    } else if (_root.var_clothes=false) {
        stopDrag();
    }
}
on (release) {
    if (_droptarget eq "/cart") {
        ipod.gotoAndStop(2);
}
I thought this would be simple but I have either done something slightly wrong or have the completely wrong idea on this
Any suggestion would be greatly appreciated.

Thanks
P

Whats Wrong
IVe now managed to find out the level the movie clip is on by putting this onto the clip

Code:
onClipEvent(load){
trace(targetPath(this));
}
now im still having trouble as i need to set each of the levesl on the code:


Code:
while(eval('_level0.personname'+i)!=null)
{
_level1.linktxt._y = _level1.linktxt._y + 20;
_level1.linktxt.duplicateMovieClip("_level1.linktxt"+i,j);
eval('_level1.linktxt'+i).linkloc = eval('_level0.personname'+i);
i++;
j++;
}
does that code look right? have i out the level stuff in the right place inside the eval bits? should the level bit go outside the eval?

im so close to getting this to work <_<

Whats Wrong With This Please?
Below is the code which is used to trigger the transitions. For reference 'home' is movieclip and 'homestate' is a button in the movieclip.

home.homestate.onRelease=function(){
if(_root.section!="home.swf"){
_root.section="home.swf";
_root.transition.gotoAndPlay("closing");
}
};

I'm happy with the code because I understand it. However my problem is that I want to include to more actions to this script

on(rollOver){
gotoAndPlay("rollover);
}

and

on (rollOut){
gotoAndPlay("rollout");
}

I try incorporating these actions into the first script but I get an error.

home.homestate.onRelease=function(){
if(_root.section!="home.swf"){
_root.section="home.swf";
_root.transition.gotoAndPlay("closing");
}
};
home.homestate.on(rollOver){
_root.home.gotoAndPlay("rollover");
}
home.homestate.on(rollOut){
_root.home.gotoAndPlay("rollout");
}

whats wrong with the code some please help me its driving me nuts.

Whats Wrong?
//gotoAndPlay(1);
//{
//function loop(){
//(_currentframe-1);
//}
//start.onPress = function() {
//}
//}

iknow i have // so thats not it..
have just 1 frame so how mdo i complete the comand?+

Whats Going Wrong?
Hello!
I am having trouble with making this site.
I made the main swf that will contain links to load all the other external swf's. That part works fine, it loads the other swf's and stuff. The external swf i am making has the following code on a bar on the bottom:

Code:
onClipEvent (enterFrame) {
if((_root._xmouse<= 920) && (_root._ymouse<=450))
{
_root.bar._x -= 3
}
else
{
_root.bar._x -= 0
}
}
this works fine when i test the movie by itself. But when i load this movie as a external swf it doesn't work. it loads but the bar at the bottom doesn't move.
I think it is doing this because the _xmouse and _ymouse are now looking at the main movie clip and not the external movie. Is there any way to redirect the _xmouse and _ymouse properties to the external movie clip? I.e. something like _root.details._xmouse ( where details is the name of the external movie clip)?
Thankyou!
P.S.
if you need the fla's tell me.

Whats Wrong? Please Help
Hi!

I need some help can some one tell my why this code don't work:


Code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.DOWN)) {
_y += 1;
}
if (Key.isDown(Key.UP)) {
_y -= 1;
}
if (Key.isDown(Key.LEFT)) {
_x -= 1;
}
if (Key.isDown(Key.RIGHT)) {
_x += 1;
}
if (walls.hitTest(getBounds(_root).xMax, _y, true)) {
_x -= 1;
}
if (walls.hitTest(getBounds(_root).xMin, _y, true)) {
_x += 1;
}
if (walls.hitTest(_x, getBounds(_root).yMax, true)) {
_y -= 1;
}
if (walls.hitTest(_x, getBounds(_root).yMin, true)) {
_y += 1;
}
}
I got one object caled walls and one caled ball(there is there I put the code).

Thanks
Albert

Whats Wrong?
can someone please tell me whats wrong with this script

// from paddle.fla
player.onEnterFrame=function(){
//player paddle follows mouse's y value
}//end enterFrame

Whats Wrong
Whats wrong?

Code:
onClipEvent (enterFrame) {
_height+=_root.getBytesLoaded()/_root.getBytesTotal()*79;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded()==_root.getBytesTotal()) {
gotoAndPlay(2);
}
}
Thanks Albert!

Whats Wrong With This?
I've just changed the tween method in this code. I commented out the old stuff and this just don't work. Someone who can spot the problem?


Code:
// FUNCTIONS
_global.$tweenManager.broadcastEvents = true;
// Main menu
function createMainMenu() {
var a = 1;
var total = mm_array.length;
while (a<=total) {
ypos = ((a-1)*homm)+1;
attachMovie("mainnav_mc", "mainnav"+a+"_mc", this.getNextHighestDepth()+100, {_x:0, _y:ypos});// attach the movieClip
var nc = this["mainnav"+a+"_mc"];
nc.menutext = mm_array[(a-1)];// set the title text for each button
nc.itemnum = a;// set the menu #
a++;
}
}
function moveMenu(num) {
if ((_root.collapsed == true) || (_root.selectedmenu != num)) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var totalmm = mm_array.length;
var a = 1;
while (a<=totalmm) {
mc = this["mainnav"+a+"_mc"];
if (a>num) {
var ypos:Number = (((a-1)*homm)+1)+totalsm*(hosm+1);
//mc.tween("_y", ypos, speed, ease);
mc.slideTo("", ypos, speed, ease);
} else {
var ypos = ((a-1)*homm)+1;
if (a == num) {
var nypos:Number = ypos;
//mc.tween("_y", ypos, speed, ease, 0, onEnd(num, nypos));
mc.slideTo("", ypos, speed, ease, 0, onEnd(num, nypos));
} else {
//mc.tween("_y", ypos, speed, ease);
mc.slideTo("", ypos, speed, ease);
}
}
a++;
}
_root.collapsed = false;
} else {
contractMenu()
_root.collapsed = true;
}
}
function onEnd(num, nypos) {
_root.num = num;
createSubMenu(num, nypos);
}
function contractMenu() {
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
c++;
}
var g = 1;
while (g<=mm_array.length) {
var ypos:Number = ((g-1)*homm)+1;
//this["mainnav"+g+"_mc"].tween("_y", ypos, speed, ease);
this["mainnav"+g+"_mc"].slideTo("", ypos, speed, ease);
g++;
}
}
function createSubMenu(num, nypos) {
var array = "sm"+num+"_array";
var totalsm = eval(array).length;
var ypos = nypos+4;
var c = 1;
while (c<=submenu_array.length) {
removeMovieClip("subnav"+c+"_mc");
c++;
}
submenu_array = [];
var a = 1;
while (a<=totalsm) {
var ypos:Number = ypos+hosm+1;
attachMovie("subnav_mc", "subnav"+a+"_mc", a+30, {_x:0, _y:ypos});
nc = this["subnav"+a+"_mc"];
nc._alpha = 0;
nc.itemnum = a;
nc.menutext = eval(array)[(a-1)];
nc.alphaTo(100, 2);
submenu_array.push("subnav"+a+"_mc");
a++;
}
}

// BUILD MENU
_root.collapsed = true;
createMainMenu();

Whats Wrong With This?
this has been driving me nuts for the past hour and i just can't find the problem with it.

Code:
import mx.transitions.*;
import mx.transitions.easing.*;


earth._alpha = 0;
wind._alpha = 0;
fire._alpha = 0;


btn_earth.onRollOver = function():Void {
earth._alpha = 100;
var twMoveMc1:Tween = new Tween(earth, "_height", Elastic.easeOut, 0, 120, 1, true);

}

btn_earth.onRollOut = function():Void {
var twMoveMc2:Tween = new Tween(earth, "_height", Strong.easeOut, 120, 0, 1, true);

}




btn_wind.onRollOver = function():Void {
wind._alpha = 100;
var twMoveMc3:Tween = new Tween(wind, "_height", Elastic.easeOut, 0, 120, 1, true);
}

btn_wind.onRollOut = function():Void {
var twMoveMc4:Tween = new Tween(wind, "_height", Strong.easeOut, 120, 0, .8, true);

}




btn_fire.onRollOver = function():Void {
fire._alpha = 100;
var twMoveMc5:Tween = new Tween(fire, "_height", Elastic.easeOut, 0, 120, 1, true);
}

btn_fire.onRollOut = function():Void {
var twMoveMc6:Tween = new Tween(fire, "_height", Strong.easeOut, 120, 0, .8, true);

}
when i test the movie, after a while the square stops animating smoothly and some just stay on stage.

PLEASE HELP.

Whats Wrong W/ This Gif
ok check this out..these buttons are gifs...and for some reason the text on the ElenA DIAZ button is screwing up!

i Up'd the quality of the .jpg (publish settings) --but wait the button is not even a jpg!


is there anything for Gif's??
u may not see it here but the other buttons don't look hott either.

Help ..y muchas gracias!

Whats Wrong HERE?
this.button_btn.onRelease = function () {
function = chart_mc.gotoAndPlay(2);
}

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