0 Replies Latest reply on Aug 11, 2006 12:37 AM by pg300

    Reading Variables

    pg300
      Hey everyone :)

      I have been trying to solve this problem for the past month :(

      I have loaded a flash file into vb6 and am trying to read variables but am not able to.

      Does anyone know how to read: pet_score, throw_angle, rotation, and degree_to_radian
      From:
      [code]// Action script...

      // [Initial MovieClip Action of sprite 97]
      #initclip
      class classes
      {
      var pirate, origin_y, origin_x, invisible_obj, speedangle, speedbar1, cover, _width, power_bar_width, strength, max_strength, no_strength_diff, strength_diff, prototype, petpet_arr, length, which_petpet, petpet_depth, petpet, _visible, pirate_petpet_depth, cannon, empty, rotation, degree_to_radian, throw_angle, _rotation, petpet_weight_arr, petpet_weight, petpet_ability_arr, petpet_ability, _x, _y, pet_score, throw_petpet, arm_length, petpet_xpos, petpet_ypos, power_bar_state, temp_speed_step_count, wheel, petpet_xmov, petpet_ymov, bucket_set, pole1, pole2, bucket_mov, bucket1, bucket2, barrel1, arrow_depth, arrow, friction, _height, petpet_state, try_left, timer, skull_depth, skull, hoop, htmlText, add_score, dist_increasement, temp_xmov, temp_ymov, temp_ypos, temp_xpos, show_trajectory_count, trajectory_pt_color, temp_points_arr, _l3 / 3, stage, hit_bucket_count, decrease_no_strength_diff, increase_score_by, display_petpet_depth, radian_to_degree
      ;
      } // End of Class
      null;
      if (!_global.classes.Petpet)
      {
      ;
      function create_petpet()
      {
      this;
      var _l2 = random(1000);
      if (_l2 == 0)
      {
      which_petpet = length - 1;
      }
      else
      {
      which_petpet = Math.floor(Math.random() * (length - 1));
      } // end if
      petpet = _root.attachMovie(which_petpet, "petpet", petpet_depth);
      _visible = false;
      empty.attachMovie(which_petpet, "pirate_empty", pirate_petpet_depth);
      throw_angle = (90 - rotation) * degree_to_radian;
      _rotation = rotation - 90;
      petpet_weight = which_petpet;
      petpet_ability = which_petpet;
      _x = 90;
      _y = 280;
      _rotation = -45;
      pet_score = which_petpet;
      if (which_petpet == 6)
      {
      pet_score = 25;
      } // end if
      ;
      _l2 = ;
      } // End of the function[/code]