very helpful tutorial . I wondered if you can tell the code for giving other responses to the users action like a sound clip and a message that explains why it snapped back along with snapping back. Your help will be much appreciated
@TheZmerchant It would go in the 'returnToOriginalPosition()' function. Best to google how to play a sound (it's not difficult). For the message, it's easiest to create a separate MovieClip with your message inside + any related graphics / buttons. You then export this from the library with a custom AS3 class, just like you did with each T-Shirt. Use the 'new' keyword to create a new instance and 'addChild' to display it. "clip = new MessageClip(); parent.addChild( clip )". Hope that helps!
I have a Question.. I have made a Trace to track the dropTarget. The Problem is, Even if i dropped it on an Image. It says null, even on the blank space. it still says null.
@VinSignusKlein The droptarget depends on the mouse position, not just the graphics themselves. I can't be sure of course but what might be happening is that the mouse really isn't over anything when you release the button. Hope that helps!
@DNDigital I managed to complete it by using Dynamic text instead of Rectangle tool converted into a Movie.
I have another question, hmm here's the scenario: 1 frame = 1 problem. After answering the first question, next button will appear to the next frame and next problem. After series of problems, THe last frame will display the Result of the Correct and mistakes. how can I actually do that? thanks ^^
Great tutorial - helped me a lot. There is just one problem i have. My flash project has a number of frames and when i go to drag my images to its target, it stays there when i move onto the next frame - its always in the same position on the screen. Is there a way to fix that? I cant have it appear on other frames. Thanks for the great video!
@elguapo101012 Thanks, glad you enjoyed it. It can be difficult to mix frames with code. What you need is a couple of lines that remove the T-Shirts again. If your instance names are 'black' and 'white', simply say: 'removeChild(black)' and 'removeChild(white)' on the next frame. Hope that helps!
very helpful tutorial . I wondered if you can tell the code for giving other responses to the users action like a sound clip and a message that explains why it snapped back along with snapping back. Your help will be much appreciated
TheZmerchant 1 month ago
@TheZmerchant It would go in the 'returnToOriginalPosition()' function. Best to google how to play a sound (it's not difficult). For the message, it's easiest to create a separate MovieClip with your message inside + any related graphics / buttons. You then export this from the library with a custom AS3 class, just like you did with each T-Shirt. Use the 'new' keyword to create a new instance and 'addChild' to display it. "clip = new MessageClip(); parent.addChild( clip )". Hope that helps!
DNDigital 1 month ago
I have a Question.. I have made a Trace to track the dropTarget. The Problem is, Even if i dropped it on an Image. It says null, even on the blank space. it still says null.
VinSignusKlein 1 month ago
@VinSignusKlein The droptarget depends on the mouse position, not just the graphics themselves. I can't be sure of course but what might be happening is that the mouse really isn't over anything when you release the button. Hope that helps!
DNDigital 1 month ago
Comment removed
VinSignusKlein 1 month ago
Comment removed
VinSignusKlein 1 month ago
Comment removed
VinSignusKlein 1 month ago
This has been flagged as spam show
@DNDigital I managed to complete it by using Dynamic text instead of Rectangle tool converted into a Movie.
I have another question, hmm here's the scenario: 1 frame = 1 problem. After answering the first question, next button will appear to the next frame and next problem. After series of problems, THe last frame will display the Result of the Correct and mistakes. how can I actually do that? thanks ^^
VinSignusKlein 1 month ago
Comment removed
elguapo101012 8 months ago
Great tutorial - helped me a lot. There is just one problem i have. My flash project has a number of frames and when i go to drag my images to its target, it stays there when i move onto the next frame - its always in the same position on the screen. Is there a way to fix that? I cant have it appear on other frames. Thanks for the great video!
elguapo101012 8 months ago
@elguapo101012 Thanks, glad you enjoyed it. It can be difficult to mix frames with code. What you need is a couple of lines that remove the T-Shirts again. If your instance names are 'black' and 'white', simply say: 'removeChild(black)' and 'removeChild(white)' on the next frame. Hope that helps!
DNDigital 8 months ago
@DNDigital Thanks, that helped! Keep up the good work!
elguapo101012 8 months ago
Comment removed
VinSignusKlein 1 month ago
This has been flagged as spam show
very good sir!!!
Thet3 10 months ago
See Part 3 for the final episode!
DNDigital 1 year ago