hi to all,
I need help to load *.swf in flash1
the place of swf files in the combobox
thanx
Professional Software Development Tools
hi to all,
I need help to load *.swf in flash1
the place of swf files in the combobox
thanx
where is the problem
-- :: Get the selected item ::
nSelected = ComboBox.GetSelected("ComboBox1");
if nSelected then
-- i.e. nSelected == true (boolean)
File = ComboBox.GetItemData("ComboBox1", nSelected);
Flash.Load("Flash1", "File", false, false);
StatusDlg.SetMessage("Loaded!");
StatusDlg.Hide();
-- When loading is finished:
Flash.Play("Flash1");
-- Note that the loading time depends on your connection speed.
else
-- If nSelected == false, then there is nothing selected
Dialog.Message("Failed", "There is no item selected.");
end
Try this code:
Code:nSelected = ComboBox.GetSelected("ComboBox1"); if (nSelected) then File = ComboBox.GetItemData("ComboBox1", nSelected); Flash.Load("Flash1", File, false, false); StatusDlg.Show(MB_ICONINFORMATION, false); StatusDlg.SetMessage("Loaded!"); StatusDlg.Hide(); Flash.Play("Flash1"); else Dialog.Message("Failed", "There is no item selected."); end
I got this message
on click, line 5 : attemt to index global 'flas' (anil value)
thanks
Hi, could you post the .apz file here so its easier and quicker to help you.![]()
this is the link
http://rapidshare.com/files/48720137/flash1.apz.html
Your problem is that the other flash files dont exist in the Flash directory!
but i put them in flash directory and i protected the files of the program
other way i cant because the flash files will be compressed