what are the lines of code from frame 1 line ~150 to ~160?
Hello. I send you all the updated information. I am not able to locate the point you are telling me. I don't quite understand the output panel errors. Remember that the symbol that gives the error is a slider created by me to put volume to the music: an MC with two MC child symbols (knob_mc and line_mc). Curiously, in the first scene the error does not appear and when I put it in other scenes it does.
But it always works well, although with the error in scenes other than the first one.
Error code:
ReferenceError: Error # 1069: Property containertype not found on components.Volume and there is no default value.
at baroqueimprovisation_fla :: MainTimeline / ___ onAdded ___ () [baroqueimprovisation_fla.MainTimeline :: frame1: 156]
at flash.display :: Sprite / constructChildren ()
at flash.display :: Sprite ()
at flash.display :: MovieClip ()
at components :: Volume () [C: \ Users \ josqu \ Desktop \ BI \ app BI \ components \ Volume.as: 19]
at flash.display :: Sprite / constructChildren ()
at flash.display :: Sprite ()
at flash.display :: MovieClip ()
at baroqueimprovisation_fla :: panelmenu_17 ()
at flash.display :: MovieClip / gotoAndPlay ()
at baroqueimprovisation_fla :: MainTimeline / fl_ClickToGoToScene_10 () [baroqueimprovisation_fla.MainTimeline :: frame84: 13
class Classmenu: (although this class works fine without error when I don't put the volume instance in the third scene): is a class to open a menu.
package componentes{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class ClaseMenu {
public function ClaseMenu(btn:MovieClip, panel:MovieClip, tapa:MovieClip) {
btn.addEventListener (MouseEvent.CLICK, playPanel);
tapa.addEventListener (MouseEvent.CLICK, removePanel);
function playPanel (e:MouseEvent): void{
if (panel.currentLabel == "uno"){
panel.play();
tapa.play();
}
}
function removePanel (e:MouseEvent): void{
if (panel.currentLabel == "diez"){
panel.play();
tapa.play();
}
}
}
}
}
volume class (the class of the symbol that gives the error). the error starts when I create the class, even though it is empty. I think the class is well done because the symbol works well, although it still gives the error.
package componentes
{
import flash.display.MovieClip;
import flash.media.SoundTransform;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.media.SoundChannel;
import flash.geom.Rectangle;
import flash.media.Sound;
public class Volumen extends MovieClip
{
//private var myChannel:SoundChannel = new SoundChannel ();
//public var snd:Sound;
public function Volumen()
{
//snd = new SoundViola;
//myChannel = snd.play(0, int.MAX_VALUE);
//knob_mc.addEventListener (Event.ENTER_FRAME, volume_set);
knob_mc.addEventListener (MouseEvent.MOUSE_DOWN, volume_drag);
knob_mc.addEventListener (MouseEvent.MOUSE_UP, volume_dragStop);
knob_mc.addEventListener (MouseEvent.MOUSE_OUT, volume_dragStop);
knob_mc.x = 40
}
function volume_drag(evt:MouseEvent):void
{
knob_mc.startDrag(false, new Rectangle(0,0,line_mc.width-knob_mc.width,0));//se atrastra en esos valores
}
function volume_dragStop(evt:MouseEvent):void
{
knob_mc.stopDrag();
}
/*function volume_set(evt:Event):void
{
var vol:Number = knob_mc.x /100;
var st:SoundTransform = new SoundTransform(vol);
myChannel.soundTransform = st;//identifica el sonido
}*/
}
}
class main does not exist
screenshots of the action panel (there is very little code):
thanks!!