Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2004, 12:07 AM
I'm Jayman I'm Jayman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 I'm Jayman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old February 9th, 2004, 07:28 AM
I'm Jayman I'm Jayman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 I'm Jayman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Seeking Assistance understanding variables, and levels.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT