Skip to main content
Known Participant
February 20, 2011
Question

Virtual Cable Interface System

  • February 20, 2011
  • 1 reply
  • 1355 views

I need to  simulate ( in flash AS3) cables and connecting port on which student can connect cables and it  gives whether the connection is wrong or right. I have find an  example(but not the code)  see the link below.........I need similer like this. I am able to make a cable class witch need two input ( new cable(object1,object2)  ) and it draws similer cable like the below example. How to use it for my problem.  Please help me..............

http://lab.andre-michelle.com/cable-interface

This topic has been closed for replies.

1 reply

somascope
Inspiring
February 20, 2011

This is pretty neat to see.

You may not get many code examples from peopl ehere, but you do want to be sure you get familiar with the basic concepts that are being used:

The biggest" unknown" in this example is the realistic "flutter" effect of the cable when it waves back & forth. I'm not sure what is done for that. But, you don't "need" this to achieve the same basic results - I'd focus on this last in your attempt to replicate things.

dhruba.omAuthor
Known Participant
February 20, 2011

                   Thanks for the reply... I have done the complex part (the cable class)  see the pictures. But i am not able to find the logic how i connect and disconnect the cables.

somascope
Inspiring
February 20, 2011

Yopu should practice, in a separate file without the distraction of your cables, simple drag and drop principles. Search for "drag and drop as3" in google and you'll find tutprials and such that will help you get your foundation.