Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

drag drop AS3

Guest
Jul 19, 2008 Jul 19, 2008
hi i'm Luciano i come from Milano Italy ,i have a problem with drag drop in AS3 and i would like to know if possible to use correct method to realize this project because i have stopped and for this reason i'm not to be able to go on.
I have started a project named Puzzle so i would like to realizate this with drag drop in AS3 but i have some problem with it,and i am very greatly if something can help me.
My project use BitMap Class to create imagine and than use method copypixel to create a grill brik that contains an imagne and than stored in an Array and completly visibility .
1 ° - First problem consist to move all brik to grill to another grill correct.
2° - Second problem i would like to say where i can mix a brik stored in an Array.
for simply understanding i attach my code

thank you for every thing Luciano
TOPICS
ActionScript
518
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Jul 20, 2008 Jul 20, 2008
sorry but your council is not good for this example because it doesn't work properly.
i try to modify a method setPres but doesn't happening nothing when i click in a piece dragging doesn't work.
i thought a lot to try it but i have not find the correct solution ,after my test i stated the problem consist to identify a object into array because there aren't coordinated property in a cell and than the event doesn't identify a specific piece stored in Array and than the method startDrag() return ...
Translate
LEGEND ,
Jul 19, 2008 Jul 19, 2008
Luciano,

What problem do you have? If you describe your problem precisely it will be easier to figure out what you need.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 20, 2008 Jul 20, 2008
i have a lot of problem to explain this question but i try equaly ,my problem consist to realiz two grill that contains a piece of pictures one picture place e piece and than it hides with property visible false and the other grill remove randomly piece with removeChild method.
first step i would like to know if is possible to insert in to array named Arrpce a piece mix placed in a grill because array is dinamic and when i remove it ,a length of array change and than i dont know where i can to insert after removed my piece remained .
second step i would like to know if possible to use drag drop method to change position of piece mixed dragging from grill to other grill by click .
i try it but it doesn't work properly because when i click over piece move all pictures while i want only one piece of picture.

i know is not simple this problem for me that i am beginner flasher , i'am very pleasing if you can help me because i will realizate this project.
if you have still problem i can send to you my file by email address

thanks a lot Luciano
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 20, 2008 Jul 20, 2008
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 20, 2008 Jul 20, 2008
LATEST
sorry but your council is not good for this example because it doesn't work properly.
i try to modify a method setPres but doesn't happening nothing when i click in a piece dragging doesn't work.
i thought a lot to try it but i have not find the correct solution ,after my test i stated the problem consist to identify a object into array because there aren't coordinated property in a cell and than the event doesn't identify a specific piece stored in Array and than the method startDrag() return false statement otherwise i can't know to resolve it by use this modification.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines