Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8

Thread: combobox help

  1. #1
    Join Date
    Feb 2006
    Location
    syria
    Posts
    44

    combobox help

    hi to all,

    I need help to load *.swf in flash1

    the place of swf files in the combobox

    thanx

  2. #2
    Join Date
    Feb 2006
    Location
    syria
    Posts
    44

    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

  3. #3
    Join Date
    Oct 2006
    Location
    London, UK
    Posts
    351
    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

  4. #4
    Join Date
    Feb 2006
    Location
    syria
    Posts
    44

    thanx

    I got this message

    on click, line 5 : attemt to index global 'flas' (anil value)

    thanks

  5. #5
    Join Date
    Oct 2006
    Location
    London, UK
    Posts
    351
    Hi, could you post the .apz file here so its easier and quicker to help you.

  6. #6
    Join Date
    Feb 2006
    Location
    syria
    Posts
    44

    thanx for the help


  7. #7
    Join Date
    Oct 2006
    Location
    London, UK
    Posts
    351
    Your problem is that the other flash files dont exist in the Flash directory!

  8. #8
    Join Date
    Feb 2006
    Location
    syria
    Posts
    44

    thanks

    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

Similar Threads

  1. Combobox question
    By Frank in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 05-08-2007, 02:17 PM
  2. Not understanding ComboBox very well
    By RodB in forum AutoPlay Media Studio 6.0
    Replies: 28
    Last Post: 04-16-2007, 09:00 AM
  3. Need ComboBox To Update Image Object
    By octane6228 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 09-21-2006, 12:10 AM
  4. ComboBox Reset
    By azmanar in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 12-29-2005, 12:46 PM
  5. ComboBox display current
    By pjhiggins in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 05-21-2004, 12:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts