Fixing+Older+Activities+with+Audio+and+Timeline+Issues


 * Resolving Audio and Navigation issues in older activities**

If it is an option, it is likely safer to perform the following steps using **Flash CS3**. If CS4 is used, more attention will have to be paid during testing to make sure that textfields have not disappeared.

1. 1. Download and save the current version of the fla and rename it with today’s date appended, e.g., CL002_C03_A02_A_GeneratingSineFunction2011-03-19.fla. 2. 2. Go to File | Publish Settings and provide a valid path/name. 3. 3. Fix Compiler Errors. Test the Movie and look at the Compiler Errors Window.

(or wrapperCommon.as or miniclips_01.as) || Replace all occurrences of lib/actions/ with ../classes/edu/clips/actions/ || CLIPSubShape with ubShape and all occurrences of edu.clips.ubShape with edu.clips.draw.ubShape || CLIPSubLine with ubLine and all occurrences of edu.clips.ubLine with edu.clips.draw.ubLine || TextPicker with ubTextPicker Replace all occurrences of edu.clips.ubTextPicker with edu.clips.ui.ubTextPicker || lib.actions.clipsgrapher with edu.clips.graph || CLIPSubPattern with ubPattern and all occurrences of edu.clips.ubPattern with edu.clips.draw.ubPattern ||
 * Compiler Error || Fix ||
 * Error opening include file lib/actions/activities_01.as
 * The class or interface edu.clips.CLIPSubShape could not be loaded || Replace all occurrences of
 * The class or interface edu.clips.CLIPSubLine could not be loaded || Replace all occurrences of
 * The class or interface edu.clips.TextPicker (or ColourPicker or LinePicker or ShapePicker...) || Replace all occurrences of
 * The class or interface GraphingBoard or MathParser or RangeParser or CompiledObject could not be loaded || Replace all occurrences of
 * The class or interface edu.clips.CLIPSubPattern could not be loaded || Replace all occurrences of

4. 4. On global:1 change Release Date to something like “Updated March 2011” 5. 5. For the scenes in which audio is not playing, cut the audio code from the scene’s globals&sound frame 1 to frame 2. You may need to click on the timeline and press F6 to get a new keyframe at frame 2.

For example the code from frame 1 might look like: //code for playing a sound// set the frame label with row number e.g. r01 stopAllSounds; this._parent.mySound = new Sound(this); this._parent.mySound.attachSound("sound1"); this._parent.mySound.start(0, 0); this._parent.mySound.playing = true;

onEnterFrame = function { //Pause Button settings - uncomment at most one of the functions below// timelineandsoundpause; **soundonlypause;** //timelineonlypause;// nocontinuedisablepause; //disables the pause button and hides the continue button// showcontinue; //shows the continue button and disables the pause button//

Sound Finishing settings - choose the action you wish to occur when sound is finished playing. //Uncomment at most one of the functions below.// soundfinishedplay; //soundfinishedstop;// soundfinishednextframe; //soundfinishedshowcontinue;// soundfinishedignore; **soundfinisheddisableppause;** delete onEnterFrame; };

Which when moved can have the onEnterFrame removed and the commented lines removed. //code for playing a sound// set the frame label with row number e.g. r01 stopAllSounds; this._parent.mySound = new Sound(this); this._parent.mySound.attachSound("sound1"); this._parent.mySound.start(0,0); this._parent.mySound.playing = true;

**soundonlypause;** **soundfinisheddisableppause;**

AG: Should there be a stopAllSounds; left on globals frame1? RI: I have been moving it to frame 2 thinking that an extra 1/24 of a second won't make a difference. Activities_02 and 01 have a stopAllSounds, so it will happen on #include which is on frame 1.

6. 6. Test the .swf carefully to make sure that no other sound/interactions are broken. Test the graphing calculator. You will probably want to have the old version opened from mathclips.ca for comparison purposes. If ;you have updated to CS4 be very careful that all text appears with the correct formatting (colour, bold, italic). 7. 7. Get the .swf uploaded to isenegger.ca (renaming the old swf with the suffix “B4AudioFix”) and test in the wrapper. 8. 8. Record the status to your contact and on the Google Doc.