Java->Flash Engine Simulation Helllp!

Discussion in 'Programming' started by reimeus, Dec 3, 2009.

  1. #1
    Hello,

    I am completely new to Flash but have been using Java for years. I'm trying to convert this old engine simulation into Flash and hopefully make it a bit more 'realistic' in the process. The button starts/stops the engine shown and the graph draws itself in real-time. The original program was done using drawLine/drawOval etc.

    I can post or mail the original code.

    I was thinking ActionScript but not sure how to acheive this...

    [​IMG]

    Thanks in advance,
    Reimeus
     
    reimeus, Dec 3, 2009 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can this be in any help?
     
    NeoCambell, Dec 5, 2009 IP
  3. reimeus

    reimeus Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I've not seen this before.

    However for this excersise I have to use Flash unfortunately. I'm using CS3.

    There are 2 sections to the problem:
    The first is the engine motion itself. I can use ActionScript to rotate the flywheel which I've done but having a bit of a problem with the attached 'arms'. Another thing is that the color used to change in the bottom chamber (went from blue to red & back again) as the temp changed.

    The 2nd part is the graph on right hand side draws a line graph as the engine runs. I think this is done with 4 separate tweens.

    Thanks again,
    R.
     
    reimeus, Dec 6, 2009 IP