(no subject)
<[email protected]> Fri, 3 Oct 2003 16:05:27 -0000
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
Sorry, my mail was wrong...
Well, I have three level for on each for I put a button,
for($k2=0; $k2 < $files3; $k2++)
{
$b3 = new SWFButton();
if ($k2 == $k)
{
$b3->addShape(rect(0, 0, 0,$k2*15,40), SWFBUTTON_UP);
$b3->addShape(rect(0, 0, 0,$k2*15,40), SWFBUTTON_HIT);
$b3->addShape(rect(0, 0, 0,$k2*15,40),
SWFBUTTON_OVER);
$b3->addShape(rect(0, 0, 0,$k2*15,40),
SWFBUTTON_DOWN);
}
$frame = $i.$j.$k2;
$b3->addAction(new SWFAction("gotoFrame
('$frame');"),SWFBUTTON_MOUSEDOWN);
$ib3 = $p->add($b3);
$ib3->moveTo(150,0);
}
I tried to delete all buttons instances in the next frame, but it only
deletes the last button instance.
Then I tried to do this:
to put the button in the frame:
$i_botons3[$k2] = $p->add($b3);
$i_botons3[$k2]->moveTo(200,0);
and to delete in the next frame:
$count = count($i_botons3);
for($$b=0; $b < $count; $b++)
{
if ($i_botons3[$b])
{
$p->remove($i_botons3[$b]);
}
}
But, it doesn't function....can somebody helps me? Thanks in
advance!
Albert!