Pages: [1]
  Print  
Author Topic: SoundAsset.fadeTo not working  (Read 116 times)
jmcintyre
Gaia User
**
Posts: 46


« on: August 05, 2008, 01:06:53 PM »

I just updated a site to Gaia version 2.3.8 and the fadeTo method of SoundAsset is no longer working. The problem seems to be related to TweenLite 7.0, but I'm not sure what's going on.

Replacing TweenLite with version 6.2.2 (and recompiling main.swf) fixes the sound problem... however, I'm afraid other problems may result.

I also noticed that the "gs" folder that comes with Gaia 2.3.8 doesn't include an "easing" subfolder, while GreenSock's distro of TweenLite 7.01 does. (That's not relevant to my problem, though.) Should that folder be present?

Thanks,
Jim
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 1643



WWW
« Reply #1 on: August 05, 2008, 01:18:00 PM »

I updated the version of TweenLite family because of this issue awhile ago.  If you're saying you opened TweenLite.as for AS3 and it said version 7.0.0, I'm confused about that because it's definitely the newer version (though he did just release a new version yesterday or something).  I tested this and it worked.

I don't include the easing folder in my distro because all of those classes are available in flash.motion, and if you want them you can grab them from the TweenLite site yourself.  TweenLite doesn't use them natively, they're primarily there for developers using Flex Builder which doesn't have access to flash.motion natively.
Logged

Steven Sacks | Gaia Author
If you like Gaia, please donate to the project!  Smiley
jmcintyre
Gaia User
**
Posts: 46


« Reply #2 on: August 05, 2008, 01:45:13 PM »

When I created a new Gaia 2.3.8 AS2 site, the version of TweenLite that showed up there was 7.0 (AS2).

To update my real site to the latest Gaia version, I copied all the Gaia files from that new site into my real site and republished. (I do that after using the "update" command in the panel because I'm not always confident the panel updates everything properly.) After the update, my sounds no longer faded properly. Reverting to TweenLite 6.2.2 fixes the sound issue.

I also tested SoundAsset.fadeTo in a brand new Gaia 2.3.8 site (using TweenLite 7.0), and it didn't work.

If it's working for you, I must be doing something else wrong.
Logged
jmcintyre
Gaia User
**
Posts: 46


« Reply #3 on: August 06, 2008, 07:32:10 AM »

Thanks for posting the Gaia 2.3.9 update, including TweenLite 7.0.1 for AS2. Unfortunately, I'm still having problems with SoundAsset.fadeTo.

I've posted (too big to attach) a small test site built with Gaia 2.3.9 that demonstrates the problem:

http://clients2.jdgcommunications.com/gaiatest/gaia_2.3.9_test_site.zip

The page at index/nav/main has a SoundClipAsset that is supposed to play and fade to volume=10 when transitionIn is called. It plays but never fades. If you replace TweenLite.as with TweenLite_6.2.2.as (I've included it in the "gs" folder), delete ASO files, and recompile everything, the sound fades as expected. (The same thing happens with a SoundAsset in MP3 format.)

I've also included a small test of TweenLite (7.0.1) on a MovieClip's volume independent of Gaia: see "tweenlite_test.fla" and "tweenlite_test.swf" (these are in the project "src" and "deploy" folders, respectively). This seems to work OK.
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0.5 beta 1© Bloc