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




Wierd Things Happen After Importing AS2 Component



Hello!I am forced to use a fairly large amount of code that heavily relies on hard-coded depth. (Just about every line of code begins with _level0, _level1, or _level2.)I would like to use AS2 components with this code. Components mainly interfere with a pop-up type movieclip (with a button) that is dynamically attached to either _level0, _level1, or _level2.So far I have changed every getNextHighestDepth() to an specific number. This enabled the pop-up to be removed dynamically.The problems (occurring only after adding a component to the file):- The "over" state for the button on the pop-up only appears when the mouse is moving. It is possible to click the button, but take a few tries. "Spastic" would be the best way to describe it.- After the pop-up has been removed, several other buttons will only execute the "press" event, completely ignoring the "release" event.Somehow, the component is interfering... I suspect depth is involved, but I can't figure it out.Any help (or theory) on what's going on would be greatly appreciated!



Adobe > ActionScript 1 and 2
Posted on: 11/11/2007 08:07:40 PM


View Complete Forum Thread with Replies

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

How Do I Make Things Only Happen Once?
ok it i say this

if (mmx.falling.hitTester.hitTest(_root.ground)) {
mmx.gotoAndPlay(stance+" Landing");
}

how do i make it that it only plays the landing animation once instead of millions of times ovr and ovr?

How To Make Things Happen Every So Often?
How can I make it so that a movie clip plays every 30 seconds?

Strange Things Happen With My Images
i have a colored and black and white picture of a face, i put them on separate layers, and made the top colored on tween to 0% opacity, so it gives the effect of fading in and out of color. but for some reason the image starts kinda twitchin n stuff, heres a link so you can see what im talking about http://www.handle-my.biz/jizzypop/fade_test.htm

Getting Multiple Things To Happen In One Function?
I'm trying to make this script work in which two things should happen onRlease of a movie clip. In the script below, the "transition" plays but frame 18 doesn't..even though the path is right. I even tried frame label even that doesn't work.

I must be doing something wrong, maybe you can detect from this script. The script is on the clip itself.

_root.navbtns_mc.webnav.onRelease = function() {
_root.transMC.gotoAndPlay("transition");
_root.navbtns_mc.webnav.gotoAndStop(18);
}

Using Cue Point To Make Things Happen?
Hi

I am having the following problem:

I have set up a movie with a video display component which imports an flv. I have set several cue points in the properties, the first one being "tvStatic". Which when encountered I want to hide, move, alpha=0, (any thing will do) a movie clip called tvStatic.

Alas nothing happens, the cue point is found and the if statement is satisfied, but my tvStatic refuses to budge. I am using the following code. Can anybody help?

myObj=new Object();

myObj.cuePoint=function(p){
trace("received sync cue point named: "+ p.target.name);
if(p.target.name=="tvStatic") {
tvStatic.gotoAndStop("end");

trace("it works!!")
}

}

myMedia.addEventListener("cuePoint", myObj);

Wierd Instance Things.........
Right, ive got a whole bunch of movie clips on a scene, each given instance names pic1, pic2, pic3 etc. Above each one is a button, thats supposed to make a rollover affect on each pic (it shoukd play frame 2 on rollover, using telltarget). However, even though i named the instances pic1, pic2 and stuff, it says target not found when i test it. when i list the objects, it seems that the instances of these MCs are now "instance3, instance4" etc. why is it doing this? when i replace my telltarget commands with these instance names, it works fine, but why is it replaceing my instance names?

thanks in advance.

Wierd Things Are Happening
when u enter our site at www.sixofour.org ull see the logo wich brings u to http://www.rituals-of-life.com/604/index2.html (the site)
when u click it (but www.sixofour.org stays in url bar). if ull go to party section and try to open a flyer in a pop up it wont work. BUT when u go directly to http://www.rituals-of-life.com/604/index2.html in ur browser, it will work :s

its this script i use
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.rituals-of-life.com/604/parties/2003/digital/large/flyer-front. jpg','newWin','width=876,height=630,left=0,top=0,t
oolbar=No,location=No,scrollbars=No,status=No,resi
zable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

does anyone has any idea whats causing this?

grtz&thx

Importing A .mov Into Flash Audio Is Wierd
ok I'ma newbie to importing .mov files into flash... I can get it to import it into flash and exporting it as a .swf. The prob is that the audio doesnt work :- .. So i took the file in quiktime pro 5.2 and republished it and now flash does not recognize the file as a .mov?

Problems Importing SWF's . . . Things Disappear.
Hello all. I am having some trouble with a flash movie I am making. Actually its a site and I have never had this trouble before. For simplicity, I am making various features of the site in seperate movies that Id like to import into the main movie layout.

I have made a gallery movie that has thumbnail pictures and when you click on them they beome a larger picture over to the side. This is all one movie with multiple layers, actionscript, etc.

When I import this movie into my main flash movie, buttons are missing, and everything is turned into one layer, there is no actionscript, and it just runs the sequence of photographs. I have tried importing in various ways with no luck whatsoever.

Any ideas or help is greatly appreciated.

Let me know if you need any more information from me.

Regards,

Dylan Long

Function For Importing Things From The Internet
Hi, I've made a little flash and AS photo gallery, but want it to import images from the internet, say the image is at "http://www.example.com/image.jpeg"

What function should I use to import it? Because I think I have heard of a way.

Wierd MX Ui Component Problem
Can't get a scrollbar to "snap to" a text field in one of my fla's. It works in other fla's and new fla's however not in this particular fla.Ever experience this problem? Is there a solution?
Thanks.

uncleLou

Wierd Problem... Component.
Summed up version...
Pretend theres a movieclip[1] being loaded into a scrollpane. And i have a simple line of code on the movieclip[2] that tells movieclip[2] (contains pics) this.

onclipevent(enterframe){
_parent.pic.gotoAndStop(2) (where the picture is).
//_parent.name = "text" works just fine but not ^^
}

//also tried
onclipevent(load/enterframe) {//tried for both load and enterframe
this.gotoandstop(2)
//also doesnt work.
}

Problem: When i just put the regular movieclip[1] off to the side outside of the component it shows the picture and text.

I've spent about 2 hours yes 2 hours on this and im far past frustrated....
Thanks to anyone that can help me.

Combo Box Component Acts Wierd In Loaded Movie
I'm using a combo box in a movie loaded into a scrollpane using

scrollPane.loadScrollContent(fileName)

trouble is the combo box acts wierd in that I can see the default row but not the box or the arrow icon and when I dropdown the list there are no other entries showing although the row count is correct... This movie behaves on it's own but not when it's loaded.

What's up?

Cheers.

GP

[CS3] [AS2] Help Loader Component Doing Strange Things?
Hi, I am trying to produce a flash portfolio for a university module but I am having major problems. I have the one flash file with the navigation and the gallery with is used in a Loader component. Strange thing is that they both work separately but when together the gallery stops on when loading a image from a thumbnail.

I couldn't get the gallery file uploaded as it is too big but the code for it is:


PHP Code:




import mx.transitions.Tween;
import mx.transitions.easing.*;

this.createEmptyMovieClip("container",1);
var imagesNumber:Number = 6;
var scrolling:Boolean = true;

for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
myThumb_mc = container["thumb"+i+"_mc"];
myThumb_mc._x = (i-1)*myThumb_mc._width;
myThumb_mc._y = (Stage.height-myThumb_mc._height)/2;
myThumb_mc._alpha = 50;
myThumb_mc.largerImage = i;
myThumb_mc.onRollOver = function() {this._alpha = 100;};
myThumb_mc.onRollOut = function() {this._alpha = 50;};
myThumb_mc.onRelease = function() {
this._alpha=50;
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = false;
}
scrolling = false;
_root.attachMovie("image"+this.largerImage,"large_mc",2);
large_mc._x = (Stage.width-large_mc._width)/2;
large_mc._y = (Stage.height-large_mc._height)/2;
new Tween(large_mc, "_alpha", Strong.easeOut, 0, 100, 0.5, true);
new Tween(container,"_alpha",Strong.easeOut,100,50,0.5,true);
large_mc.onRelease = function() {
scrolling = true;
var myFadeOut = new Tween(large_mc, "_alpha", Strong.easeOut, 100, 0, 0.5, true);
new Tween(container,"_alpha",Strong.easeOut,50,100,0.5,true);
myFadeOut.onMotionFinished = function() {
for (i=1; i<=imagesNumber; i++) {
var myClip = container["thumb"+i+"_mc"];
myClip.enabled = true;}
large_mc.removeMovieClip();
};
};
};
}

container.onEnterFrame = function() {
if (scrolling){
this._x += Math.cos((-_root._xmouse/Stage.width)*Math.PI)*15;
if (this._x>0) {
this._x = 0;}
if (-this._x>(this._width-Stage.width)) {
this._x = -(this._width-Stage.width);
}
}
};








Any help would be greatly appreciated!!

Weird Things Happening With Text Box Component
I have in place the generic text area component in my movie. Which displays text via an externally loaded txt file. I have two problems happening...

1) When you click anywhere inside the text box, or use the built in scroll bar on the side of the component, upon releasing the mouse - all of the text will highlight automatically, and stay until you click off again.

2) No matter what I type into the external CSS style sheet (which provided formatting for the external txt files) the font will not display white - only black, red etc. but not white.

... Not sure if these two issues are related or not, but I am stumped.

Thanks in advance,
Nick

Stop All Child MCs Function Doing Funny Things To Media Component
Hi all - Old Newbie had given me this function to stop all child MCs and it works great - here it is


ActionScript Code:
function stopAllClips(clip) {
     clip.stop();
     for (var i in clip) {
          if(typeof clip[i]=="movieclip") {
               if(clip[i]!=clip) {
                    stopAllClips(clip[i]);
               }
          }
     }
};

function startAllClips(clip) {
     clip.play();
     for (var i in clip) {
          if(typeof clip[i]=="movieclip") {
               if(clip[i]!=clip) {
                    startAllClips(clip[i]);
               }
          }
     }
};

ActionScript Code:
on (release) {
     if(!_root.stopped){
          _root.stopAllClips(_root.box_mc);
          _root.stopped = true;
     } else {
          _root.startAllClips(_root.box_mc);
          _root.stopped = false;
     }
}

problem is - I also have a media component playing an FLV
burried within an MC cause it scoots around the stage at a few points. The startAllClips function is doing some odd things to the FLV -

question - is there a way to single out one MC from this array
so that i'd be stopping and starting everything except the MC with the video?

Thanks for any help - and thanks again oldnewb for getting me started!
Regards-
Andy

Does It Make Things Easier To Plan Things Out Before Programming?
I know this may seem like a stupid question, but as a Actionscript beginner i'd like to know if its easier to plan things out before hand. Basically i've got to make a Class that does the following:

- Creates a shape with a size and colour defined by values passed through the constructor
- the initial position of the shape should be passed to the constructor
- the horizontal vertical speed should be passed to the constructor
- the initial direction (up or down) should be passed through to the constructor
- the shape should reverse direction on "impact" with the stage top and bottom.


Now i want to make the thing itself, but i think im going to struggle. unless i make a really decent plan of the class. so can anybody recommend what the best way to plan out this is?

if anyone can help, i'd appreciate it - if not, no worries.

Importing Text Into TextArea Component
How do you import an external text file using the TextArea component? thanks

Importing Txt As HTML AND Using The Scroller Component
OK... I've been beating myself silly trying to get a .txt file to import as HTML (need to use links) AND use the scroller component. I've tried the LoadVar, and a script from a friend that consists of:

loadVarsText = new loadVars();
loadVarsText.load("copy.txt");

loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");

scroller.text = this.textField;
} else {
trace("not loaded");
}
};

I can get the scroller component to work with this script, but it will not load the txt file as HTML.

I also tried to use the hyperField.html=true; at the beginning, and that doesn't import the .txt file as HTML.

Merely clicking on the HTML activation property button doesn't solve the issue either... Any ideas??? THANKS!!!

Importing Component Doesnt Work.
I downloaded a calendar component example from the net, and I am trying to use it in my movie.
The example is made of a single frame that contains this complicated component. I tried to copy this component and paste it in a single frame in a new movie, and test it.

Pasting the component in my movie tranfered all the library items from the first movie, my component has all the properties of the one in the example, and they're both in the same directory and use the same 'events.xml' file needed for it to run.

Still, the original file runs, and mine doesnt..

What could it be ?  How do I import components to use without having to analize all the code behind them?

If anyone would like to take a lot at the files, both the original one , and my try, are zipped and can be found at

http://www.djtochner.com/roi2/components.zip


Thanks,
Y.


Importing .fla Component Directly Onto An Open Stage
Let's say you have a character designed in a .fla file. You start working on another file of backgrounds and want to use that character in the new file. Is there a way to open the character file up right on the background stage without opening the character file and pasting it into the background file?

Trouble With The Scroll On The Textarea Component When Importing Html
I have an annoying problem. I'm importing an ASP-file into a textarea and the ASP collects data from a mySQL database.
It works great to display text and images but the textarea scroll doesnt want to reckognize the images.
When I put a picture on the bottom of the info I'm importing the textarea wont scroll down to show it all. If i out a lot of <p>& n b s p;</p> below the <img> tag it works, but I cant have it like that.

I would really appreaciate if somone could help me, thanks in advance!

[F8] How Do I Get Things To Follow Things?
I'm trying to get the enemy follow what you control in an overhead game and my current actionscirpt is...

onClipEvent(enterFrame){
function locate(uuuxe) { //function name is locate()
xd=this._x-_root.uuuxe._x //the difference in-between this symbol's x and the other symbol's
yd=this._y-_root.uuuxe._y
npx=(xd+yd)/Math.pow(2,1/2)
npy=(yd-xd)/Math.pow(2,1/2)
if(npx>=0 && npy>=0) {
this._rotation=0
this._y-=2.5
return 1
} else if(npx>=0 && npy<=0) {
this._rotation=270
this._x-=2.5
return 2
} else if(npx<=0 && npy>=0) {
this._rotation=90
this._x+=2.5
return 4
} else {
this._y+=2.5
this._rotation=180
return 3
}
}
}

What am I doing wrong? Thanks!!

FlashNoobXanthus

Have You Ever Seen This Happen?
Hi All!,
I am working with a file that loads a new .swf ontop of itself ( level1). And once this happens. The goto commands on buttons on level0 stop working. Has anyone ever seen this happen?

on frame one of level0:

logoover = "false";
gotoAndStop (4);
loadMovieNum ("slider.swf", 1);

on the buttons in level0:

on (release) {
gotoAndStop (3);
}
getURL ("sections/news.html", "info");
}
Thanks in advance!!!!!!!!!!!!>>>>-VineZ®øçk
[Edited by VineZ on 08-07-2001 at 03:48 PM]

Why Does This Only Happen In 5? HELP
Hey everyone. I'm having a big friggin' problem with Flash 5's "tell target" and "with" action. In Flash 4, it always just works, but something about 5 glitches and it sucks it.

Here's the deal...
4 scenes. Preload and 1, 2, and three. Inside 1, 2, and 3 is the exact same movie clip with a sub menu that allows a user to jump from scene to scene.

I try this:

on (release) {
play ();
tellTarget ("_root") {
gotoAndPlay ("1", 17);
}
}


No dice. What happens is the movie just resets at frame 1 in the preload. I don't get it. Then I try it with root, and alter the absolute and relative options in the targeting just to see if makes any diffference.

I also used stuff like this:


on (release) {
play ();
tellTarget ("/") {
gotoAndPlay ("2", 1);
}
}

Still, restarts the movie at scene 1, frame 1.

Has anyone else encountered this? Is there perhaps a stronger code for jumping from scene to scene? Does my code need modified?

Thanks.

Why Does This Happen?
When i load a swf file on level 1 or any level the audo seems to be disabled. Whats the problem.
thanks in advance.

What Happen With This ? I'm Getting Ill
I use a loadMovie to load a movie call "Items2.swf".
"Items2" was made in two parts, in its main scene the timeline stops till certain mouse event occurs, when it occurs, the timeline goes to run in _root.blow, "blow" is a 'sub-movie' of the main (Scene1). Of course, I tested the entire movie "Items.swf" alone and it worked cool !!!.
The Problem: I am making a new movie in which I want to load "Items2.swf", I write
loadMovie ("Items2.swf", "spin");
well
I test the movie and you guess what?, all is cool till the mouse event required happen, "spin" don't continue playing!.
What am I doing wrong ??, please HELP!.
Thanks.

Why Would This Happen?
I've created a movie. When I "Play" the movie while in MX, it works fine, all the buttons functions perfectly and everything appears.

When I "Test" the movie, or when I publish the movie, one button doesnt appear and another appears, but doesn't function...even though it does when I "Play" the movie in MX.

Any idea whats going on?

Why Does This Happen?
Quick question here:

I moved to XP pro and now I can't seem to view .swf movies by themselves. I use to be able to just click on a .swf file and it would just open. now I get the dialog box that reads that it can't open the file.

this is the box: http://www.kirupaforum.com/attachmen...=&postid=36058


any help would be apprciated!

Bug? Anyone Have This Happen?
Ok, first, Flash MX rules! Plain and simple. So the section that follows in no way implies that I'm not happy with the interface. That couldn't be further from the truth.

I've been having a buggy problem in MX since I started using it about a month ago. The scrollbar for the "timeline" area sometimes is inoperable and takes on a look of an image I had been working on in Flash, rather then the soft blue "XP" scrollbar look. Once it does that, I have to click on any layer item, hold down CTRL, and use the scroll button on my mouse to navigate my layer items. I have fixed this by saving and closing, but then it does it again a few minutes after I reopen the file (or Flash MX by itself). If this happens again tonight, I'll see if I can get a screenshot of it to post here so you can see what I mean. Until then, does anybody have any idea what I'm talking about? Is something similar happening to you? I'm running MX at the required resolution, so it can't be that. Any advice appreciated!

Does This Only Happen To Me?
Hey, I made an ASP to work with flash and database, it worked just fine. I decided to make one more variable..BOOM it doesn't work, so I delete it...OMG my old code doesn't work anymore.

So, all I did was type about 10 characters, then deleted it and ASP doesn't work. Can anyone give me an idea why or has it happened to YOU?

How Does This Happen?
http://www.taigkhris.com/

I am trying to figure out how his pictures stay in the center of the screen when I change my resolutions. Would anyone be so kind as to take the time to explain this to me. Keep it easy but thourough

Why This Happen ?
Hi all!

i've got an mc that load external php text and when loaded the text is display ... it work well but sometime, the text doesn't appear ... guess sometime that flash haven't time to get external text.

But can someone help me to make a script so i'll be sure that text will always be show.

frame 1
code:
Get External Source
poll = new LoadVars();
poll.load("php/poll.php?nocache=" + random(65000));
poll.onLoad = function (success){
if (success){
_root.modHolder.primary.contentLoad.gotoAndPlay("l oadExit");
}
}



frame 10
code:
//Title Month
with(scrollmc){
createTextField("xMonth", 101, 0, 340, 25);
xMonth.autoSize = "left";
xMonth.multiline = true;
xMonth.wordWrap = true;
xMonth.html = true;
xMonth.htmlText = poll["xMonth"];
xMonth.setTextFormat(txtStyle);
}


so as i said, all work well but sometime the createTextField is empty

thank alot

Why Does This Happen?
I have two scenes in my movie.....first scene is the intro and the next scene is the main part of the site. I have the following code on the first frame of the "main" scene.


Code:
onLoad = function(){
nextMovie="content1.swf";
cover.gotoAndPlay("close");
};


Before i added the intro scene, it worked fine. The movie loaded up correctly. Now when that i have the intro scene playing before it, it doesnt work. but when i test the main scene on its own, it works....I tried puttin an action to the last frame of the "intro" scene but still no luck?

Any pointers? Thanx in advance..

What Happen About It...
I have try to put few action script into the preloader . Look like it not working, i cannot see the next scene.Could anybody to help me to fix?

Can It Happen?
Can flash action scription call up shock wave files?
My situation is simple. I am about to start showcasing my portfolio of 3d art work from my job and i will be using the new technique of allowing users to load a shock wave file that will present the 3d model in real time 3d. So, my question is simple. Can flash action scription call up shockwave files like it is done with HTML? There is a link below the showes what i am talking about.


http://www.3drt.com

Why Should This Happen
h guys
I've got my button all done in flash nice n all to be embedded in in dreamweaver page I've given the button the getURL action and specified the dreamweaver page to be opened as "page1.html" I've placed the published button.swf (together with its htmlf ile)in the same directory as page1.html and inserted the swf in a dreamweaver page called buttonpage.html now all this works fine and dandy when tested on a browser BUT ONLY ON A MAC! when I test on a pc using latest bowsersIT DOESNT WORK! the buttonpage.html shows the button fine but clicking just opens a blank page (no error message)
I've tried publishing for older flash players, I've tried naming the URL as " ../pages/page1.html" but nothing doing
any ideas will appreciated
thanks

IE On Mac...how Does This Happen?
We've just designed a site for a client that's a dynamicly updated flash site. He's a photographer and there is a picture gallery and for whatever reason, only on internet explorer for mac, the image clip appears in the bottom right-hand of the screen. All other browsers (safari, IE windows, firefox) shows the site correctly.

(if anybody here has IE on the mac, check it out and see what i'm talking about: http://www.smoakstackstudios.com ...then go to the 'gallery' section)

I thought that is long as the clip was nested inside the flash document, that a browser did not control where a clip is placed, and only flash dictated that kinda stuff. Any ideas?

Thanks!

Has Anyone Had This Happen
when i load a text area from another movie into my movie, when you go to scroll down the textarea, all the text is highlighted, does anyone know how to fix this?

What Would Happen?
Hi,

I'm about to program something and i'm not sure how its gonna turn out, so wondered if anyone had any advice, before I start.

Basically, I want to use loadMovie to preload as many .jpgs into the users cache as possible.

What Im unsure about is how exactly that will work. If i use a for loop, and inside that loop i have loadMovie, will the loop stop until each loadMovie has finished? or will it just keep looping and piling up the loadMovies somewhere?

thanks for any help
boombanguk

What Would Happen If...?
I had this code controling a pre-loader and I wanted it to initiate the intro before the MC was fully loaded???


Code:
onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}
The movie clip that is loading has a video embeded in it and it's rather large. I want it to start playing after it has loaded a certain number of bytes. What would it put for a value of bytes if I wanted it to gotoAndPlay("opening") after it had loaded, let's say 250kb or 15% of the video? Thanks!

Why Does This Happen?
okay...so I have this simple script to make a MC "levitate":

angle = 0;
centerY = 215;
speed = .15;
distance = 6;

logo_lev.onEnterFrame = function(){
this._y = (Math.sin(angle) * distance) + centerY;
angle += speed;
}

The problem is, when I add another MC and attach an onEnterFrame to it like this:

angle = 0;
centerY = 215;
speed = .15;
distance = 6;

logo_lev.onEnterFrame = function(){
this._y = (Math.sin(angle) * distance) + centerY;
angle += speed;
}
shadow_lev.onEnterFrame = function(){
this._alpha = (Math.sin(angle) * distance) + centerY;
angle += speed;
}

They both levitate and work, but they go faster...the speed in the code stays the same, but they move faster...any idea why? any help appreciated. Thanks!

Why Does This Happen ?
can anyone tell me WHY menu1 is deleted after this code was run ??
I definetely KNOW i have done this before and it did not deleted the other movie.
I want to create a TEMP movie put at highest depth and just swap it with other movie to put it at the top.


ActionScript Code:
createEmptyMovieClip("container", _parent.getNextHighestDepth());
if ( menu1.getDepth() < container.getDepth() )
container.swapDepths(menu1);
container.removeMovieClip();

thanks

Why Does This Happen?
Hi, I made the player in a game a movieclip and added this code:


Code:
onClipEvent (load){movespeed = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
play();
_rotation = 90;
_x+= movespeed;
}
if (Key.isDown(Key.LEFT)) {
play();
_rotation = 270;
_x-= movespeed;
}
if (Key.isDown(Key.UP)) {
play();
_rotation = 0;
_y-= movespeed;
}
if (Key.isDown(Key.DOWN)) {
play();
_rotation = 180;
_y+= movespeed;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.UP)) {
_rotation = 45;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.UP)) {
_rotation = 315;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.DOWN)) {
_rotation = 135;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.DOWN)) {
_rotation = 225;
}
}
Then I made the background a movieclip and added this:


Code:
onClipEvent (load) {
movespeed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_x-= movespeed;
}
if (Key.isDown(Key.LEFT)) {
_x+= movespeed;
}
if (Key.isDown(Key.UP)) {
_y+= movespeed;
}
if (Key.isDown(Key.DOWN)) {
_y-= movespeed;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.UP)) {
_x-= movespeed;
_y+= movespeed;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.UP)) {
_x+= movespeed;
_y+= movespeed;
}
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.DOWN)) {
_x-= movespeed;
_y-= movespeed;
}
if (Key.isDown(Key.LEFT) && Key.isDown(Key.DOWN)) {
_x+= movespeed;
_y-= movespeed;
}
}
It works but every time I go diagonally it boosts its speed. I've tried many things like putting /2 after every movespeed in the diagonals but it is still fast. Can anyone tell me how to do this with the same speed?

Thanks in advance

Has Anyone Ever Had This Happen?
This has to be the most bizarre thing I've ever seen Flash do. Does anyone know what could be causing it? What's happening is that I'm importing an image, it's coming in the right size and everything but huge chunks of it are missing in the shape of another image in the folder I'm importing from. It makes no sense to me why it would be doing this as I've imported literally thousands of images before in the same format (bmp) and never had an issue. I've attached the image I'm trying to import and the flash file. If anyone has seen this before, let me know so I know I'm not crazy.

How Did This Happen?
my timeline header is not showing any numbers... what should I do??????

Why Does This Happen ?
This is my site Im new at flash so it aint nothing great
http://keiaston.pwp.blueyonder.co.uk/
now the buttons at the top load movies in to the main stage..this works fine on a couple of pcs i checked it on... but on my girlfriends the buttons do nothing..Its a high spec pc..and I cleaned the catches out..any ideas why they wont work on her pc..it seems that her flash plugin wont loadmovies into a main stage????

Does This Happen To Anyone Else?
Hey Peoples,
I have a problem....
when i click on a button it's supposed to go to a frame and it does do everything it's supposed to on release of the handler BUT only if i enable simple frame actions, enable buttons ect on the stage..Now... when i play the .swf file, the button does not take me to the frame i specified for it to go to. Does this make any sense?

So basically everything works when enabled on the stage but not when i play the movie. Is this a MX 2004 glitch? 'Cus it never happened b 4.

Why Does That Happen?
Look how bad the fonts are!! When I am working inside flash it looks awesome crisp and neat, but when I publish it to see the real results any of my fonts look like crap!! Why is this happening??

Thanks

MFR

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