How to create fullscreen Flash [renamed]

No prob!

Next time use more descriptive titles and keep your question to 1 thread ie don’t crosspost :cool:
Threads are merged

scotty(-:

The code generated two errors, I’m trying to work through it but don’t know what it is, I put the code inside the background movieclip and this is what I got in my output when I tried to test it.

Error Symbol=background, layer=Layer 1, frame=1:Line 2: Clip events are permitted only for movie clip instances
onClipEvent (load) {

Error Symbol=background, layer=Layer 1, frame=1:Line 8: Clip events are permitted only for movie clip instances
onClipEvent (enterFrame) {

Total ActionScript Errors: 2 Reported Errors: 2

Hei,

Make sure you paste the code inside the “background mc” not in the frame, that’s what caused the errors.

And can I have look at your .fla please.

rom

ok, I got it so theres no errors but when I click on the buttons the screen does not move. I cant upload the file it says its failed.

Edit

***figured it out, thanks romka, that code helped alot!!!

romka is it possible the code you gave me can be used in the scene on a seperate layer called Actions where I put all my actionscript instead of on the movieclip, because I’m going to hand this in as an assignment because we just got an assignment to create a web-data application with xml and I figure I’ll hand this in for it but our teacher would like to see all actionscript it the scene on a layer called Actions.

Thanks

does anyone know?

try this code and see if it work. it is put on the timeline’s frame instead on the mc itself

BACKGROUND._x = 0;
BACKGROUND._y = 0;
div = 5;

BACKGROUND.onEnterFrame = function{
this._x += (endX-_x)/div;
this._y += (endY-_y)/div;
//set the coordinates of background mc for each button//
_root.b1.onRelease = function() {
endX = 0;
endY = 0;
};
_root.b2.onRelease = function() {
endX = -250;
endY = 0;
};
_root.b3.onRelease = function() {
endX = -250;
endY = -200;
};
_root.b4.onRelease = function() {
endX = 0;
endY = -200;
};
}

this moves it but doesnt stop it where I would like it to like the other way did it just keeps going