Remove startupAlert….....



  • Hi ,
    I would like to remove startupAlert…

    Your code

    private var camera : Camera;
    		private function onStart():void 
    		{	
    			CONFIG::DEBUGGING {
    				connect();
    			}
    
    			if(firstStart) {
    			CONFIG::RELEASE {
    				var startup : StartupAlert;
    
    				var func : Function = function(ev : ValidationResultEvent = null) : void {
    					if(loginScreenEnabled) {
    						startup.removeEventListener(ValidationResultEvent.VALID, arguments.callee);
    						PopUpManager.removePopUp(startup);
    
    						myUsername.text = startup.username.text;
    					} else {
    						myUsername.editable = true;
    						ccLabel.visible = ccConnect.visible = ccUsername.visible = false;
    						ccLabel.includeInLayout = ccConnect.includeInLayout = ccUsername.includeInLayout = false;
    					}
    
    					if(cameraRequired && Camera.getCamera().muted) {
    						StartupAlert.showSettingsPanel();
    						btnStart.enabled = true;
    
    						status(lang.getSimpleProperty('waitingForCameraMessage')+"\n");
    						status(lang.getSimpleProperty('openSettingsMessageLink')+"\n");
    						taChat.addEventListener(TextEvent.LINK, function(ev : TextEvent) : void {
    							Security.showSettings(SecurityPanel.PRIVACY);
    						});
    
    						curCamera = Camera.getCamera();
    						curCamera.addEventListener(StatusEvent.STATUS, function(ev : StatusEvent) : void {
    							if(!curCamera.muted) {
    								curCamera.removeEventListener(StatusEvent.STATUS, arguments.callee);
    
    								connect();
    								btnStart.enabled = false;
    								btnStart.visible = false;
    							}
    						});
    					} else {
    						connect();
    					}
    				};
    
    				if(loginScreenEnabled) {
    					startup = new StartupAlert();
    					startup.addEventListener(ValidationResultEvent.VALID, func);
    
    					PopUpManager.addPopUp(startup, this, true);
    					PopUpManager.centerPopUp(startup);
    				} else {
    					func();
    				}
    			}
    
    			var snd : Sound = new Sound(new URLRequest("jabbercam/sounds/welcome.mp3"));
    			snd.play(0, 0, new SoundTransform(0.8));
    
    			ccState = CCConnecting;
    			btnStart.enabled = false;
    			} else {
    				if(Camera.getCamera().muted)
    				Security.showSettings(SecurityPanel.PRIVACY);
    				else {
    					connect();
    					btnStart.enabled = false;
    					btnStart.visible = false;
    				}
    			}
    
    			firstStart = false;
    		}
    
    

    I'm blocked…..

    Thanks you

    Best regards ,
    Kantin Bena



  • To remove the login box, simply change this setting in config.php to false:

    LOGIN_SCREEN_ENABLE = true;



  • @'JabberCam':

    To remove the login box, simply change this setting in config.php to false:

    LOGIN_SCREEN_ENABLE = true;

    Excellent thank you

    Best regards…


Log in to reply