Announcement

Collapse
No announcement yet.

UI SoundThemes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UI SoundThemes

    Hey everyone !

    I have some questions about UI SoundThemes !

    I did what UDN said about UI SoundThemes to activate sounds on differents events in Flash.

    So, finally I have things like that :

    In my GFxMoviePlayer class :

    PHP Code:
    SoundThemes(0)=(ThemeName=default, Theme=UISoundTheme'Bruitages.Flash.FlashSounds'
    And my UI Sound Theme in Content Browser :



    But nothing happens when I play my GFx in game.

    If anyone have some ideas?

    Cu

    #2
    What ActionScript do you have in your flash file?

    I think you need this in your AS function:

    Code:
    		if( _global.gfxProcessSound )
    {
         _global.gfxProcessSound(this, "default", "focusIn");
    }

    The 'default' string in this Actionscript is called from your GfxMoviePlayer class string:


    Code:
    SoundThemes(0)=(ThemeName=default, Theme=UISoundTheme'Bruitages.Flash.FlashSounds')
    I believe this is stated on the UDN page also.
    Tell me how it goes.

    Comment


      #3
      Originally posted by ZeJudge View Post
      I think you need this in your AS function:

      Code:
      		if( _global.gfxProcessSound )
      {
           _global.gfxProcessSound(this, "default", "focusIn");
      }
      Do you know how to do that with AS3 ?

      Comment


        #4
        Have you tried this with AS3?

        I have only used AS2

        Comment


          #5
          _global doesn't works in AS3.

          Comment


            #6
            so , how to deal with these commands, such as "_global.imecommand",if i want to transform as2 to as3 .

            Comment


              #7
              Looks like you are not using CLIK widgets. UISoundThemes works better with CLIK widgets.

              Comment

              Working...
              X