Aide DropTarget !!! svp !!!

cs_scareface Messages postés 4 Date d'inscription lundi 23 décembre 2002 Statut Membre Dernière intervention 6 mai 2005 - 24 mai 2004 à 23:22
cs_scareface Messages postés 4 Date d'inscription lundi 23 décembre 2002 Statut Membre Dernière intervention 6 mai 2005 - 29 mai 2004 à 01:43
oici mon code :

stop();
glass.onPress = function() {
Mouse.hide();
this.startDrag(true, 10, 10, 740, 340);
this.swapDepths(100);
};
glass.onRelease = function() {
this.stopDrag();
Mouse.show();
trace(this._droptarget);
eval(this._droptarget).lancerSection();
};
page1.onPress = function() {
this.startDrag(true, 125, 30, 620, 250);
this.swapDepths(100);
};
page1.onRelease = function() {
this.stopDrag();
trace(this.boutoncv.consult_btn);
};
page2.onPress = function() {
this.startDrag(true, 125, 30, 620, 250);
this.swapDepths(100);
};
page2.onRelease = function() {
this.stopDrag();
trace(this.boutonport.consult_btn);
};
page3.onPress = function() {
this.startDrag(true, 125, 30, 620, 250);
this.swapDepths(100);
};
page3.onRelease = function() {
this.stopDrag();
trace(this.boutoncontact.consult_btn);
};
page4.onPress = function() {
this.startDrag(true, 125, 30, 620, 250);
this.swapDepths(100);
};
page4.onRelease = function() {
this.stopDrag();
trace(this.boutonliens.consult_btn);
};
page1.boutoncv.consult_btn.lancerSection = function() {
trace("lancerSection!");
// MovieClip.prototype.centerPopup = function(theUrl, title, w, h, features) {
// var sysW = System.capabilities.screenResolutionX;
// var sysH = System.capabilities.screenResolutionY;
// var centerx = Math.round((sysW/2)-(w/2));
// var centery = Math.round((sysH/2)-(h/2));
// getURL("javascript:void(window.open('http://aubry7.free.fr/heaj/loupe2.swf','"Mon Curiculum Vitae"','width="351", height="264", left="+centerx+", top="+centery+",screenX="+centerx+", screenY="+centery+","+features+"'));");
};

voici l'anim : http://aubry7.free.fr/heaj/marchepa.swf
donc ce que je voudrais c'est que lorsque la loupe est droppée sur le mot consulter la ouvre ma page ... pour la page cv ouvrir mon cv.swf par exemple ...

comment faire ???
merci d'avance pour votre aide !!!

2 réponses

SuperDevy Messages postés 842 Date d'inscription dimanche 24 novembre 2002 Statut Membre Dernière intervention 2 juillet 2007
28 mai 2004 à 17:35
Pour ça, il suffit d'utiliser la fonction hitTest :
Crée un clip à l'intérieur de tes fiches/boutons nommé "consulter" et place ce code :

if( glass.hitTest( boutoncv.consulter ) ) {
getURL("cv.swf")
}

J'espère que ça va marcher...
0
cs_scareface Messages postés 4 Date d'inscription lundi 23 décembre 2002 Statut Membre Dernière intervention 6 mai 2005
29 mai 2004 à 01:43
euh g pas fait de hit test ...
mais voila le résultat final
http://aubry7.free.fr
0
Rejoignez-nous