|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Seeking Assistance understanding variables, and levels. [solved]
Hello.
I am attempting to create some audio controls, that slide out with a menu pane graphic that I created in Flash 5. The audio controls have volume, mute, play and stop. There are 2 dynamic text fields, which reports the player's status, volume (0-100). Originally this was part of a tutorial located HERE. I have only created one volume slider as opposed to the four in this tutorial, and there is only one sound file. My current problem is with the variables, I believe. I have attempted to create this audio controller within a movie, instead of putting it directly on the main timeline. I want to be able to motion tween the whole thing and simulate a extractable panel from the side, similar to a drop down menu. After carefully recreating the entire thing into a movie, I have lost the ability to change the volume and mute the sound. I suspect it has to do with some of the variables and being "nested?" in a movie now. Can someone please explain to me, how I determine when to use such things as _root, _level0, _level1, _parent etc...? Can someone possibly have a look at my .fla and help direct me on making this work? FLA's REMOVED/ PROBLEM SOLVED edit: I posted both the timeline working version, and in broken nested in movie version. Thanks in advance Last edited by I'm Jayman : February 9th, 2004 at 03:34 PM. |
|
#2
|
|||
|
|||
|
Using the following commands, and trying it in different locations in the scripts, I was able to determine my problem.
trace(_root.mixerstate); trace(_root.globalVolume); trace(_root.globalpan); Since I packaged everything into a movie, I needed to change the dynamic text variables to include the _root path. I also had to change global=new sound(); to _root.global=new sound(); Now it appears everything is working normally except one item... after muting the sound, attempting to un-mute doesnt return the sound back to the original state. Only after re-adjusting the volume slider does the volume return to it proper state. I will have to hunt this down, but it was a relief to find this problem. It was also rewarding to find it myself. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Seeking Assistance understanding variables, and levels. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|