کمک در مورد راست کلیک

Learn65

Member
این کدی رو که گفتین توی اکشن 3 اجرا نیمیشه
میتونین عوضش کنین
 

kiarash.M

Active Member
من شخصه به علت مشغله اي که دارم هنوز نسخه adobe فلش رو نديدم و ندارم
حالا اونيي که کار کردند بگين:)
 

Learn65

Member
در هر صورت ممنون
دوستانی که تونستن کمک کنن
چون من فلش رو با اکشن 3 شروع کردم
 

mshgames

Well-Known Member
همچین کاری تو فلش امکان نداره.
در ضمن کیارش جان روی فایل exe با هیچ نرم افزار هکی نمیشه کاری کرد که با راست کلیک بدون اینکه منویی ظاهر بشه به فریمه بعدی رفت
(یعنی نمیتونی تو الگوریتم کار تغییر ایجاد کنی) اگه اینکارو بخوای بکنی باید توسط خود نرم افزارش انجامش بدی که فلش هم همچین قابلیتی نداره. با این نرم افزارای هک فقط میشه منو حذف کردو آیکن تغییر دادو یا دکمه های پنجره رو برداشت.
تمام
 
آخرین ویرایش:

UnknownUser

Well-Known Member
معلوم هست چه خبره!!
امکانش هست !
من جواب ایشون رو خیلی وقته دادم اما ایشون متوجه نمی شن !!
 

Learn65

Member
کسی سوال من رو واضح توضیح نداد
شایدم من خیلی مبتدیم
UnknownUser جان من که متوجه نمیشم
اگه میشه سوال رو دوباره بخونین
 

UnknownUser

Well-Known Member
اول از همه باید یه کد بنویسی برای اینکه وقتی rightclick کرد تو هر کاری رو که می خوای انجام بدی !!
که راه ساختش رو هم گفتم کی کد راست کلیک 2 تو باید با کلاس key کار کنی
بعد می ری exe میگیری بد contextmenu و حذف کنی !
از این واضح تر بگم ؟!
 

Learn65

Member
کسی از این کدها سر در میاره
واسه ما هم توضیح بدین
  1. [FONT='Courier New',Courier,monospace]var RightClick = {[/FONT]
  2. [FONT='Courier New',Courier,monospace] /**[/FONT]
  3. [FONT='Courier New',Courier,monospace] * Constructor[/FONT]
  4. [FONT='Courier New',Courier,monospace] */ [/FONT]
  5. [FONT='Courier New',Courier,monospace] init: function () {[/FONT]
  6. [FONT='Courier New',Courier,monospace] this.FlashObjectID = "customRightClick";[/FONT]
  7. [FONT='Courier New',Courier,monospace] this.FlashContainerID = "flashcontent";[/FONT]
  8. [FONT='Courier New',Courier,monospace] this.Cache = this.FlashObjectID;[/FONT]
  9. [FONT='Courier New',Courier,monospace] if(window.addEventListener){[/FONT]
  10. [FONT='Courier New',Courier,monospace] window.addEventListener("mousedown", this.onGeckoMouse(), true);[/FONT]
  11. [FONT='Courier New',Courier,monospace] } else {[/FONT]
  12. [FONT='Courier New',Courier,monospace] document.getElementById(this.FlashContainerID).onmouseup = function() { document.getElementById(RightClick.FlashContainerID).releaseCapture(); }[/FONT]
  13. [FONT='Courier New',Courier,monospace] document.oncontextmenu = function(){ if(window.event.srcElement.id == RightClick.FlashObjectID) { return false; } else { RightClick.Cache = "nan"; }}[/FONT]
  14. [FONT='Courier New',Courier,monospace] document.getElementById(this.FlashContainerID).onmousedown = RightClick.onIEMouse;[/FONT]
  15. [FONT='Courier New',Courier,monospace] }[/FONT]
  16. [FONT='Courier New',Courier,monospace] },[/FONT]
  17. [FONT='Courier New',Courier,monospace] /**[/FONT]
  18. [FONT='Courier New',Courier,monospace] * GECKO / WEBKIT event overkill[/FONT]
  19. [FONT='Courier New',Courier,monospace] * @param {Object} eventObject[/FONT]
  20. [FONT='Courier New',Courier,monospace] */[/FONT]
  21. [FONT='Courier New',Courier,monospace] killEvents: function(eventObject) {[/FONT]
  22. [FONT='Courier New',Courier,monospace] if(eventObject) {[/FONT]
  23. [FONT='Courier New',Courier,monospace] if (eventObject.stopPropagation) eventObject.stopPropagation();[/FONT]
  24. [FONT='Courier New',Courier,monospace] if (eventObject.preventDefault) eventObject.preventDefault();[/FONT]
  25. [FONT='Courier New',Courier,monospace] if (eventObject.preventCapture) eventObject.preventCapture();[/FONT]
  26. [FONT='Courier New',Courier,monospace] if (eventObject.preventBubble) eventObject.preventBubble();[/FONT]
  27. [FONT='Courier New',Courier,monospace] }[/FONT]
  28. [FONT='Courier New',Courier,monospace] },[/FONT]
  29. [FONT='Courier New',Courier,monospace] /**[/FONT]
  30. [FONT='Courier New',Courier,monospace] * GECKO / WEBKIT call right click[/FONT]
  31. [FONT='Courier New',Courier,monospace] * @param {Object} ev[/FONT]
  32. [FONT='Courier New',Courier,monospace] */[/FONT]
  33. [FONT='Courier New',Courier,monospace] onGeckoMouse: function(ev) {[/FONT]
  34. [FONT='Courier New',Courier,monospace] return function(ev) {[/FONT]
  35. [FONT='Courier New',Courier,monospace] if (ev.button != 0) {[/FONT]
  36. [FONT='Courier New',Courier,monospace] RightClick.killEvents(ev);[/FONT]
  37. [FONT='Courier New',Courier,monospace] if(ev.target.id == RightClick.FlashObjectID && RightClick.Cache == RightClick.FlashObjectID) {[/FONT]
  38. [FONT='Courier New',Courier,monospace] RightClick.call();[/FONT]
  39. [FONT='Courier New',Courier,monospace] }[/FONT]
  40. [FONT='Courier New',Courier,monospace] RightClick.Cache = ev.target.id;[/FONT]
  41. [FONT='Courier New',Courier,monospace] }[/FONT]
  42. [FONT='Courier New',Courier,monospace] }[/FONT]
  43. [FONT='Courier New',Courier,monospace] },[/FONT]
  44. [FONT='Courier New',Courier,monospace] /**[/FONT]
  45. [FONT='Courier New',Courier,monospace] * IE call right click[/FONT]
  46. [FONT='Courier New',Courier,monospace] * @param {Object} ev[/FONT]
  47. [FONT='Courier New',Courier,monospace] */[/FONT]
  48. [FONT='Courier New',Courier,monospace] onIEMouse: function() {[/FONT]
  49. [FONT='Courier New',Courier,monospace] if (event.button> 1) {[/FONT]
  50. [FONT='Courier New',Courier,monospace] if(window.event.srcElement.id == RightClick.FlashObjectID && RightClick.Cache == RightClick.FlashObjectID) {[/FONT]
  51. [FONT='Courier New',Courier,monospace] RightClick.call(); [/FONT]
  52. [FONT='Courier New',Courier,monospace] }[/FONT]
  53. [FONT='Courier New',Courier,monospace] document.getElementById(RightClick.FlashContainerID).setCapture();[/FONT]
  54. [FONT='Courier New',Courier,monospace] if(window.event.srcElement.id)[/FONT]
  55. [FONT='Courier New',Courier,monospace] RightClick.Cache = window.event.srcElement.id;[/FONT]
  56. [FONT='Courier New',Courier,monospace] }[/FONT]
  57. [FONT='Courier New',Courier,monospace] },[/FONT]
  58. [FONT='Courier New',Courier,monospace] /**[/FONT]
  59. [FONT='Courier New',Courier,monospace] * Main call to Flash External Interface[/FONT]
  60. [FONT='Courier New',Courier,monospace] */[/FONT]
  61. [FONT='Courier New',Courier,monospace] call: function() {[/FONT]
  62. [FONT='Courier New',Courier,monospace] document.getElementById(this.FlashObjectID).rightClick();[/FONT]
  63. [FONT='Courier New',Courier,monospace] }[/FONT]
  64. [FONT='Courier New',Courier,monospace]}[/FONT]
 

Learn65

Member
var RightClick = {
/**
* Constructor
*/
init: function () {
this.FlashObjectID = "customRightClick";
this.FlashContainerID = "flashcontent";
this.Cache = this.FlashObjectID;
if(window.addEventListener){
window.addEventListener("mousedown", this.onGeckoMouse(), true);
} else {
document.getElementById(this.FlashContainerID).onmouseup = function() { document.getElementById(RightClick.FlashContainerID).releaseCapture(); }
document.oncontextmenu = function(){ if(window.event.srcElement.id == RightClick.FlashObjectID) { return false; } else { RightClick.Cache = "nan"; }}
document.getElementById(this.FlashContainerID).onmousedown = RightClick.onIEMouse;
}
},
/**
* GECKO / WEBKIT event overkill
* @param {Object} eventObject
*/
killEvents: function(eventObject) {
if(eventObject) {
if (eventObject.stopPropagation) eventObject.stopPropagation();
if (eventObject.preventDefault) eventObject.preventDefault();
if (eventObject.preventCapture) eventObject.preventCapture();
if (eventObject.preventBubble) eventObject.preventBubble();
}
},
/**
* GECKO / WEBKIT call right click
* @param {Object} ev
*/
onGeckoMouse: function(ev) {
return function(ev) {
if (ev.button != 0) {
RightClick.killEvents(ev);
if(ev.target.id == RightClick.FlashObjectID && RightClick.Cache == RightClick.FlashObjectID) {
RightClick.call();
}
RightClick.Cache = ev.target.id;
}
}
},
/**
* IE call right click
* @param {Object} ev
*/
onIEMouse: function() {
if (event.button> 1) {
if(window.event.srcElement.id == RightClick.FlashObjectID && RightClick.Cache == RightClick.FlashObjectID) {
RightClick.call();
}
document.getElementById(RightClick.FlashContainerID).setCapture();
if(window.event.srcElement.id)
RightClick.Cache = window.event.srcElement.id;
}
},
/**
* Main call to Flash External Interface
*/
call: function() {
document.getElementById(this.FlashObjectID).rightClick();
}
}
 

kiarash.M

Active Member
دوست جا
مرتضي که جوابتو صريح داد !!!
از کد rightclick استفاده کن !!!
 

Learn65

Member
مدير انجمن اگه امکان داره کد rightclick رو تو همین تایپیک بیارین
ممنون
 

Learn65

Member
نتونستم پیدا کنم
کاش کی می شد یه خورده واضح تر توضیح می دادید
ممنون میشم
 

UnknownUser

Well-Known Member
سلام ببینید شما که دارید as رو یاد می گیرید خیلی خوبه اما اشتباهتون اینه که دارین از as3 شروع می کنین کسی که می خواد as3 کار کنه باید یه پیش زمینه هایی داشته باشه مثله آشنایی کامل به OOP شما براتون سخته که از as3 شروع کنین این نظر منه
 

Learn65

Member
ممنون از راهنمایی شما دوستان عزیز
امیدوارم ناراحت نشده باشین
هدف من از انتخاب این انجمن هم به دلیل راهنمایی خوب دوستان بوده
موفق باشین
 

جدیدترین ارسال ها

بالا