Results 1 to 6 of 6

Thread: How can I play flash file using a loop and an array?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    246

    How can I play flash file using a loop and an array?

    I'd tried to use this code but it only plays the last one, it didn't play the first one.

    for example:
    flashArray(0) is C:\Documents and Settings\John-no\Desktop\flash1.swf
    flashArray(1) is C:\Documents and Settings\John-no\Desktop\flash2.swf
    flashArray(2) is C:\Documents and Settings\John-no\Desktop\flash3.swf

    vb Code:
    1. For x = LBound(flashArray) To UBound(flashArray)
    2.         swfCE.Movie = flashArray(x)
    3.         swfCE.Play
    4.     Next x

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How can I play flash file using a loop and an array?

    Try
    Code:
    For x = 0 To UBound(flashArray)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    246

    Re: How can I play flash file using a loop and an array?

    I've tried it, but, it returned the same output like mine. =(

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How can I play flash file using a loop and an array?

    Have you put a break in the code and stepped through it?

    Could it actually be playing them but so fast that it only appears to be playing the last one?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    246

    Re: How can I play flash file using a loop and an array?

    Yes, I've already tried it also, but according to my observation, the program finishes first the loop before playing the swf file which is the last one. =(

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    246

    Re: How can I play flash file using a loop and an array?

    Is there any other way to play swf movie files simultaneously by only using one shockwave flash control?

    Help. Thanks!

Posting Permissions

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



Click Here to Expand Forum to Full Width