View Full Version : Can't load .jpg into movieClip "Main
Osiyo
01-07-2006, 10:01 PM
//Main Image Clip
_root.createEmptyMovieClip("Main", this.getNextHighestDepth());
loadMovie("media/image1.jpg", "Main");
Main._yscale = 25;
Main._xscale = 25;
//Linckage to Button in Library
this.attachMovie("yourMovie", "yourMovie", this.getNextHighestDepth());
_root.yourMovie._x = 200;
_root.yourMovie._y = 200;
//Button functions(This is the problem)
_root.yourMovie.onEnterFrame = function() {
_root.yourMovie.rollOver = function() {
loadMovie("media/image2.jpg", "Main");
// do this
};
_root.yourMovie.release = function() {
loadMovie("media/image1.jpg", "Main");
// do this
};
};
try chaning
loadMovie("media/image1.jpg", "Main");
to
_root.main.loadMovie("media/image1.jpg");
Billy T
01-07-2006, 10:08 PM
try
loadMovie("media/image1.jpg", Main);
or
Main.loadMovie("media/image1.jpg");
also, your button actions are getting applied every frame and onRelease is written release
try
_root.yourMovie.onRollOver = function() {
loadMovie("media/image2.jpg", Main);
// do this
};
_root.yourMovie.onRelease = function() {
loadMovie("media/image1.jpg",Main);
// do this
};
Osiyo
01-07-2006, 10:11 PM
Thanks
-T
Billy T
01-07-2006, 10:21 PM
tried what and what happened? Sorry but I leave my mind reader hat at work on the weekends...
Osiyo
01-07-2006, 10:31 PM
I tried scripting some thing simple and Nothing works.
Script:
_root.createEmptyMovieClip("Main", this.getNextHighestDepth());
loadMovie("media/image1.jpg", "Main");
Main._yscale = 25;
Main._xscale = 25;
this.attachMovie("yourMovie", "yourMovie", this.getNextHighestDepth());
_root.yourMovie._x = 200;
_root.yourMovie._y = 200;
_root.yourMovie.onEnterFrame = function() {
_root.yourMovie.onRollOver = function() {
// do this
};
_root.yourMovie.onRelease = function() {
// do this
gotoAndPlay(2);
};
};
stop()
Billy T
01-07-2006, 10:33 PM
lol
so basically you ignored the replies to your post and tested your movie again?
strange that it didnt work...try testing 3 times very quickly
Osiyo
01-07-2006, 10:37 PM
they did not work.
So I tried somthing simple like onRelease play frame 2
But even that did not work.
-T
Billy T
01-07-2006, 10:43 PM
is your image loading?
Osiyo
01-07-2006, 11:12 PM
Just no mouse functions work
Billy T
01-07-2006, 11:17 PM
upload your file
Osiyo
01-08-2006, 02:17 AM
Let me know how it goes
-T
Billy T
01-08-2006, 05:26 AM
you still had your onRelease etc inside an enterFrame script and had a typo on the event (rollOver instead on onRollOver)
yourMovie.onRollOver = function() {
trace('WHATEVER');
};
when people take the time to help you you should take the time to read their posts carefully
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.