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




Help LoadImages Into Mc Suddenly Doesn't Work Any More



I've never been so desparate in my life!

The last couple of day We've been making a photoPlayer.

This consists of a bunch of thumbnails in a scroller. When you click on a thumbnail it loads an image into a movieclip. The whole time it was working just fine. Untill tonight!

Suddenly it simply gave up working...for no apparent reason. The only significant thing I can think of that we changed, was that we were using flash 7.0 2004 pro and we decided to install the 7.01 update. Since then it just doesn't work anymore. Afterwards we of course re-installed flash 7.0, but it was of no avail, it still doesn't work!!!

We've ben racking our brains for hours and we can't seem to figure out why it doesn't work...perhaps it's something to do with the update...perhaps its something in the AS....we don't know!

Now it's 4:30 in the morning and we still haven't figured it out...and we've got a deadline....

Please Help!



Greetings,

Leoni



FlashKit > Flash Help > Flash MX
Posted on: 05-17-2004, 11:25 PM


View Complete Forum Thread with Replies

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

JPG Loading Progress Suddenly Doesn't Work
Hey guys.

When using the loadMovie(); command to load jpg images into my flash movie I've always used the getBytesLoaded method to display the loading progress and it has always worked...until now.

For some reason unknown to me, the getBytes method works perfectly in the Flash testing environment AND in the flash standalone player but when I embed my movie in an html page there are no signs of this method working.

Does this method no longer work with the latest flash player and if not, how can we do this with images?

I know I could make individual SWFs for each image but this is a little bit of a pain, pardon my laziness.

Anyone had this problem?

Online Flash Player Doesn't Like My XML Suddenly
I have a swf that calls a xml file. I uploaded these to my server and everything was working fine for some weeks. Now for some reason the swf does not show up on my site. The whole page is white and if you right click the flash context menu appears and says the movie is not loaded yet. I have narrowed down the problem by commenting out certain parts of my code. If I take out this line things appear correctly(minus what this line does of course)

xmlLoader.load(new URLRequest("images.xml"));

I have looked at the xml and it's fine, flash does not throw any errors when I run the swf and xml from my hard drive(everything works fine from my hard drive). I even uploaded a previous version of the xml file which worked previously and that does not fix the problem, so I know that it's not an issue of the xml being formatted incorrectly.

Thanks

Suddenly Buttons Won't Work
i'm so confused...i've made many m any buttons in the first 160 frames of my falsh file that all link to other frames and work perfectly...suddenly i'm trying to make new buttons and i keep getting this error Error #1009: Cannot access a property or method of a null object reference.
at lampshadetemp_fla::MainTimeline/lampshadetemp_fla::frame180()

even though i'm doing it the exact same way i made the other buttons....this is the code i use for a button..

goldbtn.addEventListener (MouseEvent.CLICK, buttonClickHandler100);
function buttonClickHandler100 (event:MouseEvent):void {
gotoAndStop(215);
};


what the hell?? HELP I'M DESPERATE

Tab Key Suddenly Doesnot Work
Anybody go any ideas what I might ve done:

I'm working on a project that has been growing and gaining buttons as it goes along - I'd looked at the tab order - which wasnt very 'ordered' but thought it was pointless setting it until the shape of the project was fixed - with a view to setting the tab order at the very end.

I'm now at the very end and suddenly the tab key doesnt trigger any of the buttons - never mind doing the tab in the wrong order - it just doesnt feature/register at all....

does anyone know what I might have done that has "switched" this off - I've done nothing tha I can think of that could ve caused this - is there any thing that can have this effect???

I'm really weirded out on this one...

Things Suddenly Won't Work When Loading SWF In Another SWF.
Hi,

I made a Flash File (init.swf), in wich someone can type the numbers 0-12 in 12 different textboxes, to define an order, where a 0 means that it won't be used.

The number is used to put a variable on a certain position in an array:

_root.presentatie = new Array();

_root.presentatie[0] = "geen";

_root.presentatie[_root.voorpagina] = "voorpagina";

(the script is partly in Dutch)

The next frame in the SWF, I use this array, to display the correct order in a list (with Textfields)..

Later in the Project, This array (and most variables in the SWF) should be passed to anoter SWF..

This example works just FINE when I run the SWF file alone.. But I want to use 1 base SWF, in which I load different other movies:

loadMovie("slides/init.swf", "video_mc");

When I start init.swf from start.swf, It suddenly won't work anymore. I tried _global. but it still won't work.

Other strange fact, is that when i load init.swf in start.swf, suddenly the border around most textboxex isn't visable anymore, also the tekst next to the Checkboxes dissappears too.

Does anybody know how I can fix this. Please keep it Simple, I am a total n00b when it comes to Flash.

Thanx in advance

FLA And AS File Suddenly Refuse To Work
Ignore me, I'll just start again.

Buttons Suddenly Don´t Work
Buttons suddenly don´t work . I have a navigation clip with flash buttons, - referencer and husbyggeri expands when you push the button. it worked fine - but now many vistors have to push twiche if they shal see the site, this means many are leaving because it dont work - does anyone know what´s happening???
my clip is here: http://www.fjerring.dk/menu/

Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.

What's wrong with this??? I think it's something simple.
I've already tried:

Code:
this._lockroot = true;
I also tried writing the AS as:

Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...

I hope someone can help!

Download the: Source File


(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)

This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).

I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.

I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.

Preview: www.blaak.nl/flash/

This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).

I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.

I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.

Preview: www.blaak.nl/flash/

Smoothing Doesn't Work It Oughta Work
Hello!

I am trying to develope this website:

http://anarchy.primalinsanity.com/~villain/nma.rar

Its smoothing effect, however, has mysteriously disappeared. It is only enabled in authoring mode, not if I export the movie. I've tried everything to re-enable it:

1) Changed formats from JPG to PNG
2) Library > Bitmap Properties > Allow smoothing
3) File > Publish Settings > Smooth

But nothing seems to work

Thanks everyone,
Johann

New Instance Button Doesn't Work, No Apps Listed, But Apps Work
In my admin panel if I click on the New Instance button it doesn't do anything. I've seen other posts about this and they all end up being caused by people having no applications to load, but that's not the case here. My apps are installed and they work fine, but the new instance button doesn't list them and they don't show up in the applications list of the admin panel, even when they're running.

This has to be something pretty simple, but I'm not having any luck figuring it out. Any ideas?

Loader.close Doesn't Work In Flash But Does Work In Flash Player
When testing a movie in flash with simulate download the Loader.close() function doesn't seem to work when trying to cancel a load but it does work in a browser! You'll need to try to load a movie that has sound. The loader looks as if it stops but then the sound that's in the loaded movie will play, proving it hasn't stopped loading

add a button with instance name btnCancel









Attach Code

function onClickbtnCancel(e) {
// damn thing doesn't work in Flash but works online
ldr.close();
/* this stuff isn't even needed
ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, onCompleteHandler);

for (var i:uint=0; i < container.numChildren; i++) {
if (container.getChildAt(i) is DisplayObjectContainer && container.getChildAt(i).name == "movieclip loader") {
container.removeChildAt(i);
}
}
*/
}
btnCancel.addEventListener(MouseEvent.CLICK, onClickbtnCancel);

var container = new Sprite();
var ldr = new Loader();
ldr.name = "movieclip loader";
container.addChild(ldr);
var urlReq = new URLRequest("file.swf");

function onCompleteHandler(e) {
addChild(e.currentTarget.content);
}
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);

ldr.load(urlReq);

stop();

//--------------------On another note. Anyone know why I can't add text format styles to List components?

import fl.managers.StyleManager;

// set style for all components such as the List
var tf = new TextFormat();
tf.color = 0x000000;
tf.font = "Verdana";
tf.size = 14;
//StyleManager.setStyle("textFormat", tf); // <- this works but that's not the point
StyleManager.setComponentStyle(List, "textFormat", tf); // this works fine for a TextArea, just not a List??

























Edited: 07/11/2008 at 10:08:19 AM by Cine-Med

I Know This Should Work, But It Doesn't
in a game i'm making i've put this scrip in a movie clip:

onClipEvent (enterFrame) {
for (i=1; i<6; i += 1) {
if (this.hitTest(_root["shot"+i])) {
removeMovieClip (_root["shot"+i]);
this.play();
}
}
}

its just a for loop see if a shot hit the movie clip the shot is removed and the movie clip plays, the clip plays fine but the shot isn't removed (the shot is a duplicated movie clip)

i also tryed to remove the movie clip the shot hit (it was also duplicated) by after the explosion takes place it is removed with this script:

removeMovieClip (this);

but that doesn't work either. can any one help? or has my copy of flash lost the ability to use the "removeMovieClip" command?

With () -- Doesn't Seem To Work
Here is the structure:

movie Clip _level0.ColorBoxX.Highlight (where X is an integer)

and there is a button on the _level0.ColorBoxX

from the 'on (release)' action of a ColorBoxY I want to modify the _visibility of the Hightlight mc on ColorBoxX

so here is my with statement.
Note: _parent.currentColor = the X of the ColorBoxX

with ("_parent.ColorBox" + _parent.currentColor){
Highlight._visible = false;
}

I know that "_parent.ColorBox" + _parent.currentColor evaluates to the proper mc name via doing a trace but the mc visible doesn't go to false (i.e. the mc still shows up)

what am I doing wrong?

Still Doesn't Work
i want to load extra swf file to a defined location of my flash movie, I made an empty MC with instance name "location" and put it into location i want my extra swf to be at. my swf file outside named "introduction.swf", so i did as a friend told me:
on (release) {
loadMovieNum (introduction.swf, _root.location);
}
i put my main movie file and the extra file in the same folder,but it doesn't work, when i press the button , it just open another IE window with "http://introduction.swf/" in the address blank and get " The page cannot be displayed". So strange, could anybody tell me where is the mistake? Thanks!

Why Doesn't This Work?
I want to launch an .exe file from a flashmovie:


Why doesn't this work:

on (release) {
fscommand ("exec", "start.exe");
}


(I have the .exe application in the same directory as te my swf...I've tried it with an .exe projector (instead of a .swf) too...)

Can anybody help me ..please!!!

It Has To Work, But Doesn't...
hi,
I have a movie with two scenes.First scene has just one frame with lots of layers.And there is a mc on top layer which contains 200 frames in.I have 6 special frames in that 200 framed mc.When playhead goes any of them 6 times totally,I want the main movie go to next scene.
So what did I do:

I put an empty mc in 200 framed mc(call it mc A).and add that script to it;

onClipEvent (enterFrame) {
hit = 0;
}

then I add this a/s to empty mc in those special frames;

onClipEvent (enterFrame) {
_root.hit++;
if (_root.hit == 6) {
_root.gotoAndPlay(2, 1);
}
}


BUT IT DOESN'T WORK,what is wrong ,can anyone help me about it?You can offer some other way also.

Thanks for your time.

#%@&* Why - Doesn't - This - WORK ?
i have a chat room that works using php and flash5

note the "that works" bit of that last statement and replace it with "doesn't work". doesn't work that is if you load it in on a seperate level or target. (hummpph!!!)

i need, need, n-EEED! this to work on a seperate level.

why won't it???

tnx

Why It Doesn't WORK
Ok this script should giveme a progresive resize of the x and y Scales. Instead it resizes the movie instantly to 100 =(

onClipEvent (enterFrame) {
this.onRollOver = function() {
while (this._xscale<100) {
this._xscale += 1;
this._yscale += 1;
}
};

Still Doesn't Work
I NEED THE POPUP WINDOW TO "POPUP" IN THE CENTER OF THE SCREEN AND NOT THE FAR LEFT HAND CORNER.

Why Doesn't This Work?
i have this code in my main movie for a preloader that works just great...

onClipEvent (enterFrame) {
t = _root.getBytesTotal();
l = _root.getBytesLoaded();
percent = int ( (l/t)*100)+"% loaded";
if (percent=="100% loaded") {
tellTarget ("_root") {
gotoAndStop (5);
}
}
}


inside this movieclip is just a textfield that displays the percentage loaded. now, i am loading seperate swfs into this main movie into a movieclip called "loadClip1" using a slightly modified version of this script and the percentage loaded script will not display but the movie loads when it is complete. why can't i see the percentage loaded information???



onClipEvent (enterFrame) {
t = _root.loadClip1.getBytesTotal();
l = _root.loadClip1.getBytesLoaded();
percent = int ( (l/t)*100)+"% loaded";
if (percent=="100% loaded") {
tellTarget (this) {
gotoAndStop (5);
}
}
}

Why Doesn't This Work? Please Help
I have this script attached to a button. On the Main timeline it works fine:

-----------------------------
on (release) {
_root.next = "about";

if (current != "") {
if (next != current) {
this[current].play();
}
} else {
this[_root.next].play();
}
}
-----------------------------

But when I place this button INSIDE a Movieclip, it doesn't work. On the debug, it sets var 'next' equal to 'about' (another MC), but it never is able to get _root.next to play.

Does anyone know if I'm usoing the wrong syntax here?

Still Doesn't Work
If I export the file as a swf I still get it without spinning logo. What I do when I see it spinning is go to the menu under test movie and it spins but when I export as swf or avi it doesn't spin. any more suggestions.

Thanks
Jamie

Why Doesn't This Work ?
Hi, I'm just trying to dynamically generate my menu with an array but it doesn't seem to work:


myMenus = new Array("accessories","view", "print");


for (i=0; i<=myMenus.length; i++) {
_root.myMenus[i].onRollOver = function (){
trace("hello");
}
}

Can anyone tell me why assigning this rollover doesn't work?

My instances are named "accessories","view", "print"

Thanks

Php Doesn't Work
I have a Dynamic text box that is supposed to connect to a php page. It works when I run the Flash page from my computer (locally), but the same Flash page when running at our ISP (live) can't find the php. Does anyone have any ideas about why this would happen?

Doesn't Work
yes i know, but it doesn't

OS X Work But OS9 Doesn't
Please, someone help me!!!

I had a website publised by flash MX then it works perfect on OSX or
Explore5.2 but some script doesn't work at all when you see it by OS9 or Explore 5. I published them as flash 5 but maybe 5 doesn't support script of flash MX?
But then again if I publish it as flash 6, a lot of OS 9 users won't be able to see the site, right?


please take a look
@ www.kistudio.info
by both osx and os9.
portfolio page is the one the script doesn't work...

thanks,

tototo

Why Doesn't This Work? Please Help
I have a banner that will repeatedly flash across the screen in a loop of about 15 frames, and at the beginning of this loop, frame 77, I have this code: (This is the title screen for a corny little RPG thingy)

;
stop();
random = random(3);
if (random=0) {
banner = "Press ENTER to start";
gotoAndPlay(78);
}
if (random=1) {
banner = "Forget the princess, Get the gold!";
gotoAndPlay(78);
}
if (random=2) {
banner = "Level up by killing bad guys!";
gotoAndPlay(78);
}
if (random=3) {
banner = "What are you waiting for? START!!";
gotoAndPlay(78);
}


The problem is, the banner always assumes the value of the last condition, even if I had random=random(2), it would still be the value of "What are you waiting for? START!!"

My goal is to have the value of the banner be a different string every time it goes by the screen, but for it to be random.

And THEN, in frame 78, I have this code:

if (Key.isDown(key.ENTER)) {
gotoAndStop(108);
}


But THAT doesnt work, either.

It just keeps on looping with the same banner text.


And one more question:

How would I ultimately create a graphic that moves around the screen in response to directional key presses??

(I have Flash MX 6.0)

It Doesn't Work (?)
For everyone:
take a look at this and, please, tell me why the clipmovie "Produzione_struttura"
don't execute the action I gave to the 2 buttons inside...Please, tell me how to make it work . By the way, I use Mac.
Thanx in advance
(Big thanx MophoAl, u know why)

Why Doesn't This Work?
Code:
str_button = mainTag.childNodes[i].childNodes[1].firstChild;
_root["navbutton"+i].txt_button = str_button;
this works, but I want to change the text to uppercase - I tried

Code:
str_button = mainTag.childNodes[i].childNodes[1].firstChild;
_root["navbutton"+i].txt_button = str_button.toUpperCase();
but that didn't work - doing a trace on it gives "undefined"
Can anyone tell me what's wrong?

ps - I posted this first in the XML forum, but have found I tend to get quicker answers here - sorry for the crosspost!
Cheers

JennyJ

Why Doesn't It Work? :(
I'm making a scene which is started with stream sound; when the stream is over, I connected it with an 'even' Sound and a stop(); action. It worked properly, but when I tried to connect more another sound (with another stop(); action) it didn't stop the movie at all, it continued to play again (from the begining). I couldn't understand why...??

Explain:
Frame (1): Start sound A, stream mode, loop=0.
Frame (1+n): end stream (the A sound's gone out)
Frame (1+n+m): start B sound with 9999 loops ('Start' mode) + stop(); action.
Last frame: stop B sound (use 'Stop' mode) + start C sound ('Event' mode) with 0 loop + stop(); action.

>> The movie doesn't stop at any frame with stop(); action... (!!??!)

Please help me, I don't get them, why... 8-}

Why Doesn't This Work?
Code:
on (release) {
_root.score = _root.score+10;
}
on (release) {
if (_root.score==100) {
gotoAndStop(2);
}
}
i have a dynamic text box var=score in the same frame as the button with the above script..
before the button is pressed the text box reads _level0.score
after it is clicked it changes to NAN and remains there

also is there a way to change this so it works with a movie clip coming into contact with another mc, to add 10 points to the score box, and remove that mc from the stage?

Still Doesn't Work
I thought that might solve the problem but I have looked at other sites of mine that don't use the wmode transparent parameter and they are still just white empty spaces on NS 6.2. Also some sites I made with Flash 5 are fine. I have exported these movies from flash mx as flash 5 but that doesn't fix the problem. Any advice???

Why Doesn't This Work?
Code:
cursor.onLoad = function() {
Mouse.hide ();
startDrag(cursor,true);
}
???
doesn't hide mouse and doesn't drag Cursor

Why Doesn't This Work?
I took 1 of the tutorials and followed it just like it said and the preloader is suppose to come up right away, but it stays at a white screen until the whole thing is loaded then the preloader come up for like 1 second, please help me with this. http://mp7.zapto.org
click the weekly best song.

Why Doesn't This Work?
hey,


I followed this tutorial...

http://www.kirupa.com/developer/mx/p...transition.htm

I am getting close, but my "doors" don't close when i click a button, they start openning???


thx,
Baljinder

Why Doesn't This Work?
alright, just need a little help with a bit of action script...
making a movieclip play using if... and variables....

var clicks = 0;
click.onPress = function() {
clicks++;
trace(clicks);
};
if (clicks == 20) {
ab.gotoAndPlay("b");
}

any help would be appreciated

Thanks
Maikel

Why Doesn't This Work ?
I've made some little animated buttons - they are movie clips - but i can't make them take me anywhere , tried doing the _root. command in the line but still doesn't work

can someone tell me why
i know its probably just me missing something but its starting to annoy me now

Why Doesn't This Work ?
I have this file that when i try and load the swf into another movie online it just doesn't come in - if i remove the 2 first frames that are the preloaders it works fine - trouble is in the future some big files are going in there so i could do with a preloader.

Is there some piece of code in there that shouldn't be or have i missed something ?

Why Doesn't This Work?
mysiteclip is already on the stage.

a = 1;
newmysitesclip = "mysitesclip"+a;
mysitesclip.duplicateMovieClip(newmysitesclip, a);
newmysitesclip._y += 30;
newmysitesclip._x += 30;

Why Doesn't It Work?
basically my problem is this, i have this picture, and when you click it i need it to assign 2 variables: varX and varY, heres the code:

on (release) {
place = "images/1";
loadMovie(place+".jpg", "size");
varY = getProperty("/size", _height)*.273333;
varX = getProperty("/size", _width)*.16375;
gotoAndPlay(4);
}

-this code is on the thumbnail-

What's happening, is you click on a thumbnail of image 1, an offscreen movie "size" loads the full picture, and i'm trying to get the width and height of movie "size" and multiply it by those numbers, and set them to there according varX or varY. It just doesn't function like it should, and i feel like i'm missing something obvious....

This Doesn't Work
trying to make this work but it doesn't.

1. have the scroll work when .swf movie is loaded in movie clip (loader) on main movie page.

2. when clicking policy button from main movie... the swap depth command needs to only works ONCE. Right now, it swaps depths back and forth...one is the correct one, the second time is not. I need some kind of if command or something.

check it out guys, .fla posted below.

http://www.angelfire.com/games2/gamersglory/MX6.fla
http://www.angelfire.com/games2/gamersglory/POLICY.fla

this is in flash MX format. I have flash mx 2004 pro if needed to switch.

Why Doesn't This Work?
Hey guys, i'm working on a snakes and ladders board game and am struggling with the validation of data, can sum1 explain why this code is not working, it would be greatly appreciated, the frame (6) that the code links to is the error message, wheras the frame (4) is the next frame used in creating the game,. My intention is for the code to check a series of 10 numerical boxes, ensuring that no numbers are the same, and that all boxes are filled out:


on (release) {
if (F1 == F2) {
gotoAndStop(6);

b = 0;
for (i=1; i<=10; i++) {
b = "S"+i;
if (eval(a).value>0) {
b = b+1;
if (b == 10) {
gotoAndStop(4);
}
}
}
}

Anyone Know Why This Doesn't Work?
Hey,

I have this script on an EXIT button to take the user back to the screen they came from. This code worked in other parts of my site, but this one doesn't seem to want to work.

code: on (release) {
switch (ezview) {
case 2: // Tools_EZView_MainMenu
_root.Tools_EZView.gotoAndStop("EZVIEW-MAIN MENU");
break;

case 0: // Null
_root.gotoAndStop("MAIN SCREEN");
break;

}
}

Could it be that I don't have CASE 2 pointing to the correct place? It's a MC on the main timeline.

I also have the following on the frame this is coming from:

code: ezview = 2; // Tools_EZView_MainMenu

Thanks!!

Jeff

Should Work, But Doesn't...
Hey guys, this is very weird.
I have three movies, loaded in the following order:

main.swf (level 0)
curtain.swf (level 2)
home.swf (level 1)

Main is the main movie, like an empty stage with just all the things that always be there while thee use will be in the site.

The curtain.swf have a movie clip called (and instantiated) as mcCurtain. It's like a curtain that will be closed while home.swf is loading. When it is loaded, the curtain should open. To open it, I put in the very first frame of home.swf:

_level2._root.mcCurtain.gotoAndPlay("openit");

But Flash ignores the command.

I could stay making some mistake on my path, then I made the following test, in the same very first frame:

trace(_level2._root.mcCurtain._visible);

Then I received a "true" response, that is, the path is correct. But why it doesnt goes to the frame I want???

Thanks!

Why Doesn't This Work?
I've been staring at this for too long. Take a look at the file, I'm using MX2004 Pro. This is a portfolio website. When you click on the 'design' page, a sub navigation opens. If you click on any of the sub navigation buttons, everything works properly. But, if you go back to the main navigation buttons, you got trouble. If you're on the 'print page, and you click the 'about' page in the main navigation, the page displays properly. This is the only time it works right. If you're on the 'interaction', or 'motion' page and you click the 'about' page, it doesn't work properly (don't bother with the 'music' or contact' page, they're not done yet). I don't see a difference with the code I used for each page, so what's wrong? Any insight would be greatly appreciated. Thanks.

-tommy

Why Doesn't This Work?
Hi, thanks for taking the time,
I attached the .fla to make it easier for you to follow my bizarre train of thoughts...
If you roll over "mc" (see attached .fla) it should actually jump to its frame 2, which doesn't quite happen in practice. Any ideas? Thanks for you help!

Why Doesn't This Work?
I'm trying to move a MC with ActionScript. I can get it to work if I assign a variable to setInterval, and then use the variable name inside of the parenthesis for clearInterval. Does clearInterval have to work with a variable, or can I just refer to the name of a function?

Thanks!


Code:
onClipEvent (enterFrame) {
function move()
{
if (_x<400)
{
_x += 1;
}
else
{
clearInterval(move);
}
}
setInterval(move, 5);
}

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