View Full Version : combobox help
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
mz241508
08-13-2007, 07:23 AM
Try this 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
mz241508
08-13-2007, 07:32 AM
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
mz241508
08-13-2007, 08:00 AM
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
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.