  | |  | MovieClip / Button Events (onPress, onRelease) problem | MovieClip / Button Events (onPress, onRelease) problem
2004-06-16 - By Valentijn Langendorff
Back Hi All
I 've got a problem for ages now sorting out this...
It 's a mclip that 's resizen on the fly when jpges from a xml list has been
loaded....
After loading etc. it 's a button itself, see code beneath...
The strange thing is that it works almost but at the end of the image
selections... So
In hard ascript code when 'nextSlideNode = null '.... So it seams that when
the last picture
Has been loaden finally the functionsluitGordijn(); is been excecuted....
How come? It doesn 't even
Affect when I place sluitGordijn(); in the if /else nests..... Why does it
do ignore !
Please help !
Da subcode :
this.holder.onPress = function() {
_level5._visible = true;
sluitGordijn(); //function that tells to
goandplay(xframe) on a mclip on a higherlevel.....
var nextSlideNode;
nextSlideNode currentSlideNode.nextSibling;
if (nextSlideNode == null) {
if (_level6.description_mc._visible
== true) {
//verklein info venster door
verder te lopen
_level5._visible = true;
_level6.info.gotoAndPlay(8);
}
}
else {
if (_level6.description_mc._visible
== true) {
//verklein info venster door
verder te lopen
_level5._visible = true;
_level6.info.gotoAndPlay(8);
}
//Display current slide number on
Scene
currentIndex++;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
_level5._visible = true;
}
};
-- ---- ---- ---- ---- ---- ---- ---
Valentijn Langendorff
art director
info@(protected)
Bredeweg 21A
1098 BM Amsterdam
the Netherlands
tel: 06-24677438
fax: 084-8843198
www.multimediaconsult.nl
-- ---- ---- ---- ---- ---- ---- ---
-- --Original Message-- --
From: Brian Meehan [mailto:taospin@(protected)]
Sent: Wednesday, June 16, 2004 3:08 AM
To: flashpro@(protected)
Subject: [flashpro] MovieClip / Button Events (onPress, onRelease) problem
Greetings,
Sorry I 've got to post something this similar again, Im having a really hard
time with getting more than one MC event such as onPress, onRelease to work
at once.. Here is the general scenario:
I 've got an emptyMovieClip, named 'myClip ', once its created I open it up
using 'with(myClip) { '
and then I attachMovie some buttons, or straight MC 's within the myClip
object.. now, it doesn 't seem to matter where I place the event functions
onPress or whatever.. The point is, if I define:
myClip.onPress = function() {
trace( "myClip has been pressed. " );
}
then any additional call such as:
myClip.myButton.onPress = function() {
trace( "myClip.myButton has been pressed. " );
}
won 't work. I 've also tried:
myClip.onPress = function() {
trace( "main clip (myClip) has been pressed " );
myClip.myButton.onPress() {
trace( "and also myButton within it.. " );
}
}
Neither of these work... But keep in mind, in later experimentation of these
functions, I will need to have access to an entire array of button
instances, within my main window clips.. And not to mention, multiple
windows also.. Any help would be appreciated...
-Agent
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
MSN Toolbar provides one-click access to Hotmail from any Web page - FREE
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
send message to the list: mailto:flashpro@(protected)
[FlashPro] list info, subscribe, archive: http://flash-list.com/
There 's also a WebPro mailing list: http://webdesign-list.com/
cutting-edge sounds for flash: http://flash-sounds.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
send message to the list: mailto:flashpro@(protected)
[FlashPro] list info, subscribe, archive: http://flash-list.com/
There 's also a WebPro mailing list: http://webdesign-list.com/
cutting-edge sounds for flash: http://flash-sounds.com/
|
|
 |