# Preloader Transition Tutorial: conflicting scripts?

**URL:** <https://forum.kirupa.com/t/preloader-transition-tutorial-conflicting-scripts/136611>\
**Category:** Uncategorized\
**Created:** [February 6, 2005, 9:32pm UTC](https://forum.kirupa.com/t/preloader-transition-tutorial-conflicting-scripts/136611 "2005-02-06T21:32:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CF\_Perez](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@CF\_Perez](https://forum.kirupa.com/u/CF_Perez)\
**Post date:** [February 6, 2005, 9:32pm UTC](https://forum.kirupa.com/t/preloader-transition-tutorial-conflicting-scripts/136611/1 "2005-02-06T21:32:10Z")

</div>

[http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)

I have used the tutorial thoroughly, even copied the frames faithfully, but my project returns with these error messages:

Symbol=content, Layer=Layer 1, Frame=1: Line 1: Clip events are permitted only for movie clip instances  
onClipEvent (enterFrame) {

Scene=Scene 1, Layer=transition, Frame=1: Line 1: Statement must appear within on/onClipEvent handler  
\_root.section = “profile.swf”;

In the Sec. i of the tutorial, the author asks to paste the button actions into the action layer of the .fla, but because I am already using another tutorial

[http://www.layoutgalaxy.com/html/htmnewletter44-page1.htm](http://www.layoutgalaxy.com/html/htmnewletter44-page1.htm)

Which has an action layer, and requires the code to go there, so the sum total looks like this:

```auto
_root.targetx=-10;

but1.onRelease = function(){
	_root.box.gotoAndPlay(2);
	_root.targetx = _root.but1._x;
}
but2.onRelease = function(){
	_root.box.gotoAndPlay(2);
	_root.targetx = _root.but2._x;
}
but3.onRelease = function(){
	_root.box.gotoAndPlay(2);
	_root.targetx = _root.but3._x;
}
but4.onRelease = function(){
	_root.box.gotoAndPlay(2);
	_root.targetx = _root.but4._x;
}
but5.onRelease = function(){
	_root.box.gotoAndPlay(2);
	_root.targetx = _root.but5._x;
}
b5.onRelease = function() {
	if (_root.section != "profile.swf") {
		_root.section = "profile.swf";
		_root.transition.gotoAndPlay("closing");
	}
};
b6.onRelease = function() {
	if (_root.section != "gallery.swf") {
		_root.section = "gallery.swf";
		_root.transition.gotoAndPlay("closing");
	}
};
b7.onRelease = function() {
	if (_root.section != "photos.swf") {
		_root.section = "photos.swf";
		_root.transition.gotoAndPlay("closing");
	}
};

```

These may be just fine!

Symbol 1 error is with the layer ‘content’ in which the preloader code has been written to the first frame (and only one) of the MC ‘content.’

Scene=Scene 1, Layer=transition, is exactly copied from the tutorial.

The errors are from the tutorials?

I think not, but I have checked and rechecked. Does anything stand out as obvious?

Mostly, I want btn5 to be used for opening this movie, and it seems the two different commands should be integrated for it. Any suggestions?

I have uploaded a 245k zipped file of the .fla for anyone who has the inclination. It is a stripped down version, so don’t take too much in about the design.

Thanks in advance for anyone’s insights!

cf
