A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: PHP & Flash

  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    62

    PHP & Flash

    Hello.
    I have problem wiht flash movie while I use it with php.
    The point is that the movie is restarting every time I press the menu button.
    I want to do the sound in loop. http://www.jetset.pl/v3/
    Have a look when You dont press the button of the menu it will play again. when you press it hole movie start to play from the begining, exept the pipe (under menu button) - it use pid var to check the position.
    I hope you understand me
    Thanks in advance.
    P.S.
    I should mention that once I got this effect that the music was independent from the movie. but it was on other computer. I still do not know how I did it
    Maybe it depends on flash version of exported swf file. I do not feel this yet
    What is the diferent between ver 6, 7 or 8
    Last edited by maxxxo; 08-03-2006 at 10:48 AM. Reason: just like that

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    depends on how you are playing the sound. Best bet is to make child movie to handle the playing of the sound so that it's seprate from the rest of the movie. It shouldn't have anything to do with the PHP you are using.

  3. #3
    Member
    Join Date
    Feb 2005
    Posts
    62
    I found out, that the problem is conneced with IE. I do not use <embed> to put the swf file but JS
    Code:
     <script type="text/javascript">
       var fo = new FlashObject("swf/main.swf", "menu", "800", "143", "7", "#000000");
       fo.addParam("quality", "hi");
       fo.addParam("wmode", "normal");
       fo.addParam("loop", "false");
       
         fo.addVariable("pid", "");
       fo.write("contentflash");
    </script>
    Try to start my webpage and then f.e. the www.3dfa.com
    I You have luck You will see the problem. Now i'm working on othe computer and it is still visible. When I press menu button the sound starded as first, plays and at the same time sound is beeing started second time.
    Using java script I want to prevent the Microsoft allert - "Click to activate and use this formant"
    but ok I will try the child movie and I will write about the results.
    thx.

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

HTML5 Development Center