Subscribe: Webmaster Forum
http://www.ozzu.com/rss8.xml
Added By: Feedage Forager Feedage Grade A rated
Language: English
Tags:
addchild  addeventlistener  btn  chat chat  chat  flash  import  main chat  main  removechild  var  visible chat  visible 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Webmaster Forum

Ozzu Webmaster Forum



Webmaster forums, headlines, tutorials, and information and resources for a professional webmaster, designer, programmer, and developer.



Last Build Date: Fri, 02 Sep 2016 13:06:01 -0700

 



Flash component has wrong accessibility role

Mon, 21 Mar 2016 09:04:57 -0700

I put a checkbox component on the stage and it is showing up as a push button. This fails the 508 accessibility testing procedure for my company. What can I do about it?checkbox.jpg

Topic Replies: 0



o better meet the speed

Mon, 08 Dec 2014 03:18:30 -0800

The NBA superstar Kevin Durant, the growing strength of its strong progress. The Fan its well-known sports brand NIKE recently has officially announced its seventh generationNike Kevin Durant 7shoes. The Fan by designer Leo Chang co-authored with Kevin Durant made this section KD 7. The Fan shoes forefoot technology into a seamless mesh, Dynamic Flywire and Nike Zoom three technologies, to better meet the speed requirements, the support and stability, while its color is very bright
Nike Kevin Durant 7 KD 7 Shoes White Red Navy Blue

Nike Free 5.0 Plus, Nike Free 5.0+,Cheap Nike Free 5.0, Womens Nike Free 5.0, Mens Nike Free 5.0, Nike Free 3.0, Nike Free 4.0, Nike Free Run, Nike Free Run 2, Nike Free Run 3, Nike Free 3.0 v5, Nike Free 4.0 V3, Nike Air Max 95, Nike Air Max 2014, Nike Kevin Durant 7, Air Jordan Kids Shoes,


nikefree5plus,com

Topic Replies: 0



Fading Chat Messages [Text Fade AS3]

Sun, 31 Aug 2014 09:06:25 -0700

Hello can someone show me how to make it so when someone types text in game it will fade out? thanks here is the actionscript code.code:package project.hud { import flash.display.MovieClip; import caurina.transitions.Tweener; import flash.geom.Rectangle; import flash.events.Event; import flash.events.MouseEvent; import flash.display.Bitmap; import project.utils.ImageLoader; import project.utils.Layout; import flash.utils.setTimeout; import project.events.HUDEvents; import project.events.SoundEvents; import flash.events.KeyboardEvent; import flash.geom.ColorTransform; import scaleform.gfx.*; import flash.geom.Point; import scaleform.gfx.MouseEventEx; public class HUD extends MovieClip { public var isDebug:Boolean = false; public var Main:MovieClip = null; static public var api:HUD = null; public var activeChatTab:int = 0; public var showchat:Boolean = true; public var showInput:Boolean = true; /** * Chat **/ public function showChat (showChat:Boolean, showInput:Boolean = true, inputText:String = ""):void { this.showchat = showChat; this.showInput = showInput; if (!showChat && !showInput) {// if (Main.Chat.currentLabel != "out")// Main.Chat.gotoAndPlay ("out"); Main.Chat.Chat.InputText.removeEventListener(KeyboardEvent.KEY_DOWN, keyboardInput); Main.Chat.Chat.InputText.removeEventListener(Event.ENTER_FRAME, chatInputEnterFrame); Main.stage.focus = null; } else { var chat = Main.Chat; var me = this; if (showChat) chat.Chat.Plate.visible = true; else chat.Chat.Plate.visible = false; // if (Main.Chat.currentLabel != "start")// Main.Chat.gotoAndPlay ("start"); if (showInput) { chat.Chat.TabPlates.visible = true; if (chat.Chat.Tab1.Active) chat.Chat.Tab1.visible = true; if (chat.Chat.Tab2.Active) chat.Chat.Tab2.visible = true; if (chat.Chat.Tab3.Active) chat.Chat.Tab3.visible = true; if (chat.Chat.Tab4.Active) chat.Chat.Tab4.visible = true; chat.Chat.InputText.visible = true; chat.Chat.InputTextBack.visible = true; Main.Chat.Chat.InputText.addEventListener(KeyboardEvent.KEY_DOWN, keyboardInput) } else { chat.Chat.TabPlates.visible = false; chat.Chat.Tab1.visible = false; chat.Chat.Tab2.visible = false; chat.Chat.Tab3.visible = false; chat.Chat.Tab4.visible = false; chat.Chat.InputText.visible = false; chat.Chat.InputTextBack.visible = false; Main.Chat.Chat.InputText.removeEventListener(KeyboardEvent.KEY_DOWN, keyboardInput) Main.Chat.Chat.InputText.removeEventListener(Event.ENTER_FRAME, chatInputEnterFrame); Main.stage.focus = null; } Main.Chat.Chat.InputText.text = inputText; } } /** * setChatTab * * id * name * active - true / false * visible - true / false **/ public function setChatTab (id:int, name:String, active:Boolean, visible:Boolean):void { var tabName = "Tab" + String (id + 1); var tabPlateName = "TabPlates" + String (id + 1); var me = this; Main.Chat.Chat[tabName].Text.Text.text = name; Main.Chat.Chat[tabName].Text.TextShad.text = name; Main.Chat.Chat[tabName].Tab = id; Main.Chat.Chat[tabName].visible = visible; Main.Chat.Chat[tabName].Active = visible; if (Main.Chat.Chat.TabPlates.currentLabel != tabName) Main.Chat.Chat.TabPlates.gotoAndPlay (tabName); Main.Chat.Chat[tabName].Active = active; if (active) { if (Main.Chat.Chat[tabName].currentLabel != "over") Main.Chat.Chat[tabName].gotoAndPlay ("over"); activeChatTab = id; } else { if (Main.Chat.Chat[tabName].currentLabel != "out") Main.Chat.Chat[tabName].gotoAndPlay ("out"); } } /** * setChatTabActive * * id **/ public function setChatTabActive (id:int):void { if (this.showInput) { for (var a:int = 0[...]



Chandigarh Taxi Service

Fri, 04 Apr 2014 02:40:31 -0700

Sidhu Tour and Travels provides chandigarh Taxi Service covering all parts of chandigarh and other areas . Provides best taxi service at very affordable price.

Topic Replies: 0



How to control a photo gallery mc from within another mc as2

Sun, 12 Jan 2014 07:59:16 -0800

0 down vote favorite


I found AS for my photo galley and its working fine on the main frameline. Problem is that I want to put it inside of the other mc (sliding out menu) and there it stops working, without errors.

Sliding menu is: menu_mc and inside of that should be my gallery. And like I said script working fine on the main scene. Any help would be appreciated.

code:

var numOfPix:Number = 6;
var pos:Array = [0, 190, 380, 570, 860, 1050];
var theInfo:Array = ["The First Car", "The Second Car", "The Third Car", "The Fourth Car", "The Fifth Car", "The Sixth Car"];
var w:Number = _level0.the1_btn._width;
var h:Number = _level0.the1_btn._height;
//~~~ The text Format ~~~
var theFmt:TextFormat = new TextFormat();
theFmt.align = "center";
theFmt.color = 0xFF6600;
theFmt.font = "theFont";
theFmt.size = 20;
theFmt.bold = true;
//
for (i=1; i<=numOfPix; i++) {
_level0["the"+i+"_btn"].createTextField("theNum_txt", 1, 0, 0, w, h);
_level0["the"+i+"_btn"].theNum_txt.text = i;
_level0["the"+i+"_btn"].theNum_txt.setTextFormat(theFmt);
}
//
_level0.info_txt.selectable = false;
_level0.info_txt.setNewTextFormat(theFmt);
//
for (i=1; i<=pos.length; i++) {
_level0["the"+i+"_btn"].n = i;
_level0.info_txt.text = _level0.theInfo[0];
_level0["the"+i+"_btn"].onRelease = function() {
_level0.thePix_mc.panorama_mc._x = _level0.pos[this.n-1]*-1;
_level0.info_txt.text = _level0.theInfo[this.n-1];
};
}



Topic Replies: 1



Looking for Kiosk prototyping software

Wed, 30 Oct 2013 12:45:50 -0700

I need a Kiosk software application to help me with UI layout for a touch screen Kiosk development.

Thank you in advance,

cgfX

Topic Replies: 0



Actionscript 3 photobooth upload photo with PHP

Tue, 15 Oct 2013 21:42:17 -0700

Morning everyone, in this few days I search for a lot references online and tried to make my first photobooth program with actionscript and PHP, finally I had done the actionscript part, but when I tried to upload my photo which took from actionscript to server via php, the problem had come. I follow and modify from the references and tutorials I found online, but the php part never work, so the last choice for me is look for professional help here, and below is my source code, any professional please tell me wheres the problem is, thanks!------------------------------------------------------------------------------------------------ACTIONSCRIPT 3 SIDE:------------------------------------------------------------------------------------------------actionscript:stop();//START CAMERA FUNCTIONimport com.adobe.images.JPGEncoder;var cam:Camera = Camera.getCamera();cam.setMode(1890,940,15);var video:Video = new Video(1900,940);video.attachCamera(cam);video.x = 20;video.y = 20;addChild(video);import flash.display.Bitmap;import flash.display.BitmapData;var bitmapData:BitmapData = new BitmapData(video.width,video.height);var imgBD:BitmapData;var imgBitmap:Bitmap; //Frame choosingimport flash.events.Event;import flash.events.MouseEvent;var addGreen1:Green1 = new Green1();var addRed2:Red2 = new Red2();var addYellow3:Yellow3 = new Yellow3();var addBlue4:Blue4 = new Blue4();var addOrange5:Orange5 = new Orange5();btn_cframe.buttonMode=true;btn1.buttonMode=true;btn2.buttonMode=true;btn3.buttonMode=true;btn4.buttonMode=true;btn5.buttonMode=true;btn1.addEventListener(MouseEvent.CLICK, btnone);function btnone(event:MouseEvent):void {addGreen1.x= 0addGreen1.y= 0addChild(addGreen1);addChild(addRed2);addChild(addYellow3);addChild(addBlue4);addChild(addOrange5);removeChild(addRed2);removeChild(addYellow3);removeChild(addBlue4);removeChild(addOrange5);}btn2.addEventListener(MouseEvent.CLICK, btntwo);function btntwo(event:MouseEvent):void {addRed2.x= 0addRed2.y= 0addChild(addGreen1);addChild(addRed2);addChild(addYellow3);addChild(addBlue4);addChild(addOrange5);removeChild(addGreen1);removeChild(addYellow3);removeChild(addBlue4);removeChild(addOrange5);}btn3.addEventListener(MouseEvent.CLICK, btnthree);function btnthree(event:MouseEvent):void {addYellow3.x= 0addYellow3.y= 0addChild(addGreen1);addChild(addRed2);addChild(addYellow3);addChild(addBlue4);addChild(addOrange5);removeChild(addGreen1);removeChild(addRed2);removeChild(addBlue4);removeChild(addOrange5);}btn4.addEventListener(MouseEvent.CLICK, btnfour);function btnfour(event:MouseEvent):void {addBlue4.x= 0addBlue4.y= 0addChild(addGreen1);addChild(addRed2);addChild(addYellow3);addChild(addBlue4);addChild(addOrange5);removeChild(addGreen1);removeChild(addRed2);removeChild(addYellow3);removeChild(addOrange5);}btn5.addEventListener(MouseEvent.CLICK, btnfive);function btnfive(event:MouseEvent):void {addOrange5.x= 0addOrange5.y= 0addChild(addGreen1);addChild(addRed2);addChild(addYellow3);addChild(addBlue4);addChild(addOrange5);removeChild(addGreen1);removeChild(addRed2);removeChild(addYellow3);removeChild(addBlue4);}//button for user confirm the framebtn_cframe.addEventListener(MouseEvent.CLICK, btn_cf)function btn_cf(event:MouseEvent):void { btn_cframe.gotoAndStop(2); btn1.visible = false; btn2.visible = false; btn3.visible = false; btn4.visible = false; btn5.visible = false; shotBtn.visible=true; removeBtn.visible=true; sendBtn.visible=true; shotBtn.addEventListener(MouseEvent.CLICK, startCountdown); }//shot or remove buttonshotBtn.visible=false;removeBtn.visible=false;sendBtn.visible=false;shotBtn.buttonMode=true;removeBtn.buttonMode=true;sendBtn.buttonMode=true;var timer1:Timer = new Timer(6000);timer1.addEventListener(TimerEvent.TIMER, countdowntimer);var addcd_number:Cd_number = new Cd_number();shotBtn.addEventListener(MouseEvent.CLICK, startCountdown);function startCountdown(event:Mouse[...]



How to integrate talking english dictionary to an app

Fri, 13 Sep 2013 04:11:59 -0700

Hello,

I am a beginner with Actionscript language and Starling framework. I want to use a talking english dictionary (to select words from dictionary and pronounce them) in my game project. Is there any way to add it? Kindly suggest if anybody has its solution.

Regards,
Asit

Topic Replies: 0



AS3 External Interface and IE

Wed, 21 Aug 2013 14:32:51 -0700

This is completely frustrating ..... IE you need to take a long walk off a short pier.

OK so this is an issue and Im going not where with at the current moment.

Here is the issue I have a flash up loader that I made it communicates back and forth between flash and java script to give the desired effect. There is a function i call to setup the uploader I can set it up then right after make as many calls as I want however if i try to call the same function down the line I get

SCRIPT16389: script block (283), line 49 character 5

which is

javascript:


function __flash__addCallback(instance, name) {
instance[name] = function () {
return eval(instance.CallFunction("" + __flash__argumentsToXML(arguments,0) + ""));
}
}


Topic Replies: 1



AS3 Uploader Hell

Wed, 07 Aug 2013 13:59:03 -0700

lol so lets kick this off by saying I have my reasons for using flash for my uploader and a lot of it stems from consistency and, well (image) IE. I have used several types of uploders and flash seems to work the best for my needs and is consistent across browsers including android.

So the uploader I made has the ability to upload single and multiple files It is a derivative of my AS2 uploader. I decided to upgrade the code awhile back and all worked fine. But I never fully tested out the multiple upload feature (image) (image) so thats my bad. I didnt need to use multiple file uploads since I upgraded the code. several of my other projects did however and they work fine with the AS2 version, So I do have a plan B.

Issue(s) are currently it is not setting up the complete handler event.

Here is the setup

actionscript:


// This function will trigger the uploader to upload only one file ---- This works perfectly
function upload_single(e:MouseEvent) {

// Open browse pane
file.browse(file_types_array);

// Set the file listeners
configure_listeners(file);

}

// This function will trigger the uploader to upload multiple files -- this dose not
function upload_multiple(e:MouseEvent) {

// Open browse pane
file_list.browse(file_types_array);

// Set the file listeners
configure_listeners(file_list);

}

// This function will set the listeners for the upload processes
function configure_listeners(dispatcher:IEventDispatcher):void {

// Setup the listeners
dispatcher.addEventListener(Event.CANCEL, cancelHandler);
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
dispatcher.addEventListener(Event.OPEN, openHandler);
dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
dispatcher.addEventListener(Event.SELECT, selectHandler);
dispatcher.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,uploadCompleteDataHandler);

}


Im going to search a bit now that Ive put this out here maybe Ill find my answer. If you have any questions or suggestions I have a quick reply time.

Im a few lines of code short of ripping my uploaders guts out and redoing it.

Topic Replies: 1