Flash actionscript probleempje

[i:5fa7698d9c]excuses voor de engelse vraag[/i:5fa7698d9c]


I have a movie with a bunch of MC-buttons in it.
In the MC, which is placed on the main stage, there is button.
Both the MC and the button have a couple of functions.

The actions on the MC are:

onClipEvent (load) {
movement = false;
my_x_scale = 100;
my_y_scale = 100;
proportion = .7;
base_x_value = 0;
base_y_value = 0;
size_aspect = .7;
onClipEvent (enterFrame) {
if (!movement) {
base_x_value = Number(base_x_value*size_aspect)+Number((my_x_scale-_xscale)proportion);
base_y_value = Number(base_y_value
_xscale += base_x_value;
_yscale += base_y_value/2;

The actions on the button are:

on (rollOver) {
movement = false;
my_x_scale *= 2;
my_y_scale *= 2;
on (rollOut) {
my_x_scale = 100;
my_y_scale = 100;
on (release) {
on (release) {
loadMovieNum("1.swf", 1);

The first list with buttons is being displayed just fine.
There are about eleven of them.

When I click on a “switch cd” button, a new list with track names (the button / mc’s display track names) should appear on the same place.

The problem is as follows:
For some reason all the buttons that have bounced or are still bouncing at the time I click on the “switch cd” button do not go away.

The newer buttons are then loaded underneath the older buttons, which causes an overlap of text.

Basically, what I need to do is somehow kill that movement in the buttons, in the hope that the transition between cd’s works properly.

Therefore my questions are:

  1. (How) Can I kill that movement function
  2. Do you know what could be causing this problem
  3. Do you have any other solutions in mind, besides not using the movement at all

Thanks for the help!

hi koekie,

Tis me wel een puzzel als voortschrijdende middelmatige semi gevorderde. maar wat me wel opvalt is dat :

onClipEvent (enterFrame) {

dit commando is nergens beeindigd dus gaat het gewoon door. Er staat nergens:

delete this.onEnterFrame

Er moet wel aangegeven worden WANNEER het Event(enterFrame) NIET meer geldt.

So far ff voor nu maar we zoekn verder… (Al op flashfreaks.nl geweest?)


Flashfreaks vind ik een k*t site, wordt je echt slecht "geholpen"...

Probleem is inmiddels opgelost, niet op een nette manier, maar ik heb het hele zooitje gewoon verbouwd.

I.e.g. bedankt voor je moeite :slight_smile: