FORUMS: list search recent posts

function working arbitrarily

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Edu Iglesias
function working arbitrarily
on Feb 6, 2009 at 12:26:24 pm

hi everyone

i've created a function that stops several flv movies and then use it when a press different buttons. the fact is that it works but not for all the buttons, although i'm using the same code.

this is the function:

function close() {
_root.contenido_home.bobina_flv.stop();
_root.contenido_composicion.flv_composicion.stop();
_root.contenido_edicion.flv_edicion.stop();
_root.contenido_rdsi.flv_rdsi.stop();
_root.contenido_hacemos.flv_hacemos.stop();
_root.contenido_3d.flv_3d.stop();
_root.contenido_versiones.flv_versiones.stop();
_root.contenido_spots.flv_spots.stop();
_root.contenido_haudio.flv_haudio.stop();
_root.contenido_hvideo.flv_hvideo.stop();
_root.contenido_cunas.flv_cunas_01.stop();
_root.contenido_cunas.flv_cunas_02.stop();
_root.contenido_jingles.flv_jingles_01.stop();
_root.contenido_jingles.flv_jingles_02.stop();
};


and this is the way i call the function (just 1 example):

_root.hacemos_tl.sub_hacemos.hvideo.edicion.onRelease = function() {
if (_root.contenido_edicion._visible == false) {
for (var i in contenidoArr)
if (contenidoArr[i]._visible == true) {
TransitionManager.start(contenidoArr[i], {type:Wipe, direction:Transition.OUT, duration:1, easing:Regular.easeOut, startPoint:9});
}
_root.contenido_edicion._visible = true;
_root.contenido_edicion.flv_edicion.load("flv/flv_edicion.flv");
TransitionManager.start(contenido_edicion, {type:Wipe, direction:Transition.IN, duration:1, easing:Regular.easeOut, startPoint:1});
if (_root.contenido_home._visible == true) {
TransitionManager.start(contenido_home, {type:Wipe, direction:Transition.OUT, duration:1, easing:Regular.easeOut, startPoint:9});
}
<b>close();</b>
}
}


any mistake?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]