PDA

View Full Version : combobox help


hmza
08-13-2007, 06:37 AM
hi to all,

I need help to load *.swf in flash1

the place of swf files in the combobox

thanx

hmza
08-13-2007, 07:10 AM
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

hmza
08-13-2007, 07:29 AM
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. :)

hmza
08-13-2007, 07:48 AM
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!

hmza
08-13-2007, 08:46 AM
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