Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
action script interacts with QM.
#1
Hello everyone,

I designed a flash interface that contains a button, I want to implement a function.

When I click the button, I can run the subfunction sub.flashmes in the QM code. I need to write some action script code. I don't know how AS interacts with QM.

If I can achieve the above functions, it will be very good, because the interface designed by flash is quite beautiful. Exclamation

I hope that experienced developers can guide me, thank you in advance.


Macro Macro1
Trigger SF9     Help - how to add the trigger to the macro
Code:
Copy      Help
typelib ShockwaveFlashObjects {D27CDB6B-AE6D-11CF-96B8-444553540000} 1.0

str dd=
;BEGIN DIALOG
;0 "" 0x90CF0AC8 0x0 0 0 436 228 "Dialog"
;3 ActiveX 0x54030000 0x0 0 0 436 228 "ShockwaveFlashObjects.ShockwaveFlash {D27CDB6E-AE6D-11CF-96B8-444553540000}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040701 "*" "" "" ""

if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,ShockwaveFlashObjects.ShockwaveFlash sh3
,sh3._getcontrol(id(3 hDlg))
,sh3.LoadMovie(0 _s.expandpath("$desktop$\movie.swf"))
,sh3.Play
,DT_SetAutoSizeControls(hDlg "3s")
,max hDlg
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1

#sub flashmes

mes "hello"


Attached Files Image(s)
   

.zip   movie.swf.zip (Size: 646 bytes / Downloads: 332)
#2
this is way beyond your level of programming better to stick with this

http://www.quickmacros.com/forum/showthr...p?tid=6538

you already have working examples in the other topic using html.Why try and reinvent the wheel? 
Flash is a dying program language will be obsolete soon.
#3
Well, flash is really going to die, but some of the courseware I usually make is made using flash.  Smile

Some software makes flash very simple, for example http://www.selteco.com/flashdesigner/


My idea is: use flash to create the interface, then QM to make the script, AS and QM to interact Exclamation


Forum Jump:


Users browsing this thread: 3 Guest(s)