NEED HELP remove Video Gallery
I am importing the video gallery dynamically via Flash professional and in need of help how to remove the sound and where to put the code so the sound stops playing while viewing the otehr pages.
package
import flash.events.*;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.ui.Keyboard;
import flash.filters.DropShadowFilter;
import flash.net.URLLoader;
import flash.text.*;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.Font;
import flash.net.*;
import flash.events.MouseEvent;
import flash.display.Loader;
import flash.display.BitmapData;
import flash.events.ProgressEvent;
import flash.display.Graphics;
import flash.net.URLRequest;
import fl.video.*;
//import gs.*;
// import gs.easing.*;
//Classes for guesture support for mobile devices
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
import flash.events.TransformGestureEvent;
//Custom classes
import com.other.TextHandle;
import com.other.Mp3Player;
//Greensock tween class for better tweens
import com.greensock.*;
import com.greensock.TweenMax;
import com.greensock.TweenLite;
import com.greensock.easing.*;
import flash.media.Sound;
import flash.media.SoundChannel;
import com.greensock.events.LoaderEvent;
import com.greensock.plugins.*;
TweenPlugin.activate([VolumePlugin]);
public class Portfolio extends MovieClip
//Declare movieclips for backgrounds
var myBg1:MovieClip;
var myBg2:MovieClip;
var myBg3:MovieClip;
var myBg4:MovieClip;
var myBg5:MovieClip;
var myBgHome:MovieClip;
//Declare movieclips for nav buttons
var myBtn01:MovieClip;
var myBtn02:MovieClip;
var myBtn03:MovieClip;
var myBtn04:MovieClip;
var myBtn05:MovieClip;
var mybackBtn:MovieClip;
var player:Mp3Player
//var slideItem:SlideItem;
var tempContainer:Sprite;
var hiddenOptions:Boolean;
var optionsMenu:MovieClip;
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
var myThumb:Loader;
var myTextField:TextField;
var myTxt:TextField;
// Video Classes
var thumbWidth:Number;
var thumbHeight:Number;
var thumbX:Number;
var thumbY:Number;
var videoX:Number;
var videoY:Number;
var myVideos:XMLList;
var totalVideos:int;
var videoContainer:MovieClip;
var thumbs:MovieClip;
var titles:MovieClip;
var videoPlayer:FLVPlayback;
// ImageGallery Classes
public function Portfolio()
myLoader.load(new URLRequest("myFirstXML.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);
// constructor code
firstPage();
makeMenu();
homePage();
/* EXAMPLE OF USING GESTURE SUPPORT ON A MOBILE DEVICE */
Multitouch.inputMode = MultitouchInputMode.GESTURE;
//slideItem = new SlideItem();
/* Center the image */
//slideItem.x = stage.stageWidth * 0.5;
//slideItem.y = stage.stageHeight * 0.5;
//addChild(slideItem);
//listeners('add', slideItem); //see function for more detail
// TextHandle Class for TextFields
var Intro:TextHandle = new TextHandle("My Portfolio","Arial");
//OR with more optional details e.g. var a:TextHandle = new TextHandle("some text","Cooper Black",150);
addChild(Intro);
//Mp3Player Class for loading in sounds
player = new Mp3Player();
player.play('DwightQ3.mp3');
/*Blur filter API*/
var dropShadow:DropShadowFilter = new DropShadowFilter();
dropShadow.color = 0x000000;
dropShadow.blurX = 3;
dropShadow.blurY = 3;
dropShadow.angle = 45;
dropShadow.alpha = 0.5;
dropShadow.distance = 5;
var filtersArray:Array = new Array(dropShadow);
Intro.filters = filtersArray;
// VIDEO GALLERY
public function VideoGallery()
// constructor code
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load (new URLRequest("myVideoXML.xml"));
myXMLLoader.addEventListener (Event.COMPLETE, processXML);
function processXML (e:Event):void
myXML = new XML(e.target.data);
//Get attributes from XML document
thumbWidth = myXML.@THUMB_WIDTH;
thumbHeight = myXML.@THUMB_HEIGHT;
thumbX = myXML.@THUMB_X;
thumbY = myXML.@THUMB_Y;
thumbX = myXML.@VIDEO_X;
thumbY = myXML.@VIDEO_Y;
//Get Element information from VIDEO tags
myVideos = myXML.VIDEO;
//Count the number of Elements with VIDEO tags
totalVideos = myVideos.length();
makeContainers();
callThumbs();
makePlayer();
function makeContainers():void
videoContainer = new MovieClip();
addChild (videoContainer);
thumbs = new MovieClip();
thumbs.x = 20;
thumbs.y = 400;
thumbs.buttonMode = true;
videoContainer.addChild(thumbs);
thumbs.addEventListener(MouseEvent.CLICK,playVideo);
thumbs.addEventListener(MouseEvent.MOUSE_OVER,onOverThumb);
thumbs.addEventListener(MouseEvent.MOUSE_OUT,onOutThumb);
titles = new MovieClip();
titles.x = 20;
titles.y = 330;
videoContainer.addChild(titles);
function callThumbs ():void
for (var i:Number = 0; i <totalVideos; i++)
trace(myVideos[i].THUMB);
var thumbURL = myVideos[i].THUMB;
var thumbLoader = new Loader();
thumbLoader.name = i;
thumbLoader.load(new URLRequest(thumbURL));
thumbLoader.contentLoaderInfo.addEventListener (Event.COMPLETE,thumbLoaded);
//Change spaces for thumnails vertically
thumbLoader.x = (thumbHeight+90)*i;
var thumbTitle = myVideos[i].TITLE;
var titleTXT:TextField = new TextField();
titleTXT.text = thumbTitle;
titleTXT.y = thumbTitle;
//Change spaces for thumbnails horizontally
titleTXT.x = (thumbWidth + 1)*i;
titleTXT.width = thumbWidth;
titleTXT.height = thumbHeight;
titleTXT.wordWrap = true;
titles.addChild (titleTXT);
function thumbLoaded (e:Event):void
var myThumb:Loader = Loader (e.target.loader);
thumbs.addChild(myThumb);
function makePlayer():void
videoPlayer = new FLVPlayback();
videoPlayer.skin ="SkinUnderPlaySeekStop.swf";trace("noerror");
videoPlayer.skinBackgroundColor = 0x0099FF;
videoPlayer.skinBackgroundAlpha = 0.85;
videoPlayer.x = 100;
videoPlayer.y = 30;
//240p settings for 16:9 resolution
//width would = 320 on 4:3 resoloution
videoPlayer.width = 432;
videoPlayer.height=240;
//480p settings for 16:9 resolution
//.width would = 640 on 4:3 resoloution
//videoPlayer.width = 854;
//videoPlayer.height = 480;
//1280x720p or 1920x1080p are unliely on most current mobile devices
videoContainer.addChild(videoPlayer);
videoPlayer.source = myXML.VIDEO.URL[0];
//Skip some time in the video (Do not need this if you want to start at the beginning of video)
videoPlayer.playheadTime = Math.random()*0;
smoothVideo()
videoPlayer.addEventListener(fl.video.VideoEvent.COMPLETE,completePlay);
//Once recieved metadata then do something
videoPlayer.addEventListener(MetadataEvent.METADATA_RECEIVED,onVideoDataRecived);
//videoPlayer.addEventListener(VideoEvent.STATE_CHANGE,videoHandler);
function smoothVideo()
var myVideo = videoPlayer.getVideoPlayer(0);
myVideo.smoothing = true;
function onVideoDataRecived(e:MetadataEvent)
trace(videoPlayer.totalTime);
//trace(videoPlayer.bytesLoaded);
//trace(videoPlayer.bytesTotal);
//videoPlayer.playheadTime = 50;
function playVideo (e:MouseEvent):void
var videoURL = myVideos[e.target.name].URL;
trace (videoURL);
videoPlayer.source = videoURL;
//videoPlayer.autoPlay = false;
function onOverThumb (e:MouseEvent):void
var myThumb:Loader = Loader(e.target);
myThumb.alpha = 0.5;
function onOutThumb (e:MouseEvent):void
var myThumb:Loader = Loader (e.target);
myThumb.alpha = 1;
function completePlay (e:fl.video.VideoEvent):void
videoPlayer.alpha = 0.2;
function stopVideo(evt:MouseEvent): void {
FUNCTIONS THAT:
RECEIVE THE MOUSE EVENTS FROM THE MENU
CLEAR THE MENU EVENT LISTENERS
CLEAR THE SCREEN
GOTO THE REQUIRED PAGE FUNCTION
function gotoPage1(e:MouseEvent)
clearMenuListeners()
clearScreen();
firstPage();
loadImage(0);
loadImage2(1);
maketext()
function gotoPage2(e:MouseEvent)
clearMenuListeners()
clearScreen();
secondPage();
function gotoPage3(e:MouseEvent)
clearMenuListeners()
clearScreen();
thirdPage();
function gotoPage4(e:MouseEvent)
clearMenuListeners()
clearScreen();
fourthPage();
function gotoPage5(e:MouseEvent)
clearMenuListeners()
clearScreen();
fifthPage();
makeContainers(); trace ("moo");
callThumbs(); trace ("boo");
VideoGallery(); trace ("weee");
function gotoHomePage(e:MouseEvent)
clearMenuListeners()
clearScreen();
homePage();
//player.play("DwightQ3.mp3");
FUNCTIONS THAT:
MAKE THE PAGES
function homePage()
myBgHome = new BgStripes();
addChild(myBgHome);
makeMenu();
trace("Homepage");
function firstPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("firstpage");
function secondPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("secondpage");
myBtn04 = new btnDesign();
myBtn04.x = 100;
myBtn04.y = 100;
addChild(myBtn04);
myBtn04.addEventListener(MouseEvent.CLICK, gotoPage4);
myBtn05 = new btnMedia();
myBtn05.x = 400;
myBtn05.y = 100;
addChild(myBtn05);
myBtn05.addEventListener(MouseEvent.CLICK, gotoPage5);
function thirdPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("thirdpage");
function fourthPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("fourthpage");
videoContainer = new MovieClip();
addChild (videoContainer);
thumbs = new MovieClip();
thumbs.x = thumbX;
thumbs.y = thumbY;
thumbs.buttonMode = true;
videoContainer.addChild(thumbs);
thumbs.addEventListener(MouseEvent.CLICK,playVideo);
thumbs.addEventListener(MouseEvent.MOUSE_OVER,onOverThumb);
thumbs.addEventListener(MouseEvent.MOUSE_OUT,onOutThumb);
function fifthPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("fifthpage");
function clearScreen()
//Clear all movieclips from the display list
while (numChildren > 0){ removeChildAt(0); }
function clearMenuListeners()
//Remove event listeners to prevent double ups when menu is added again
myBtn01.removeEventListener(MouseEvent.CLICK, gotoPage1);
myBtn02.removeEventListener(MouseEvent.CLICK, gotoPage2);
myBtn03.removeEventListener(MouseEvent.CLICK, gotoPage3);
mybackBtn.removeEventListener(MouseEvent.CLICK, gotoHomePage);
function makeMenu()
//Place buttons and add event listeners to receive mouse clicks
myBtn01 = new mcAbout();
myBtn01.x = 260;
myBtn01.y = 500;
addChild(myBtn01);
myBtn01.addEventListener(MouseEvent.CLICK, gotoPage1);
TweenMax.to(myBtn01, 0.5, {x:260, y:450});
myBtn02 = new mcPortfolio();
myBtn02.x = 400;
myBtn02.y = 500;
addChild(myBtn02);
myBtn02.addEventListener(MouseEvent.CLICK, gotoPage2);
TweenMax.to(myBtn02, 0.5, {x:400, y:450});
myBtn03 = new mcContact();
myBtn03.x = 540;
myBtn03.y = 500;
addChild(myBtn03);
myBtn03.addEventListener(MouseEvent.CLICK, gotoPage3);
TweenMax.to(myBtn03, 0.5, {x:540, y:450});
use:
package
import flash.events.*;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.ui.Keyboard;
import flash.filters.DropShadowFilter;
import flash.net.URLLoader;
import flash.text.*;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.Font;
import flash.net.*;
import flash.events.MouseEvent;
import flash.display.Loader;
import flash.display.BitmapData;
import flash.events.ProgressEvent;
import flash.display.Graphics;
import flash.net.URLRequest;
import fl.video.*;
//import gs.*;
// import gs.easing.*;
//Classes for guesture support for mobile devices
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
import flash.events.TransformGestureEvent;
//Custom classes
import com.other.TextHandle;
import com.other.Mp3Player;
//Greensock tween class for better tweens
import com.greensock.*;
import com.greensock.TweenMax;
import com.greensock.TweenLite;
import com.greensock.easing.*;
import flash.media.Sound;
import flash.media.SoundChannel;
import com.greensock.events.LoaderEvent;
import com.greensock.plugins.*;
TweenPlugin.activate([VolumePlugin]);
public class Portfolio extends MovieClip
//Declare movieclips for backgrounds
var myBg1:MovieClip;
var myBg2:MovieClip;
var myBg3:MovieClip;
var myBg4:MovieClip;
var myBg5:MovieClip;
var myBgHome:MovieClip;
//Declare movieclips for nav buttons
var myBtn01:MovieClip;
var myBtn02:MovieClip;
var myBtn03:MovieClip;
var myBtn04:MovieClip;
var myBtn05:MovieClip;
var mybackBtn:MovieClip;
var player:Mp3Player
//var slideItem:SlideItem;
var tempContainer:Sprite;
var hiddenOptions:Boolean;
var optionsMenu:MovieClip;
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
var myThumb:Loader;
var myTextField:TextField;
var myTxt:TextField;
// Video Classes
var thumbWidth:Number;
var thumbHeight:Number;
var thumbX:Number;
var thumbY:Number;
var videoX:Number;
var videoY:Number;
var myVideos:XMLList;
var totalVideos:int;
var videoContainer:MovieClip;
var thumbs:MovieClip;
var titles:MovieClip;
var videoPlayer:FLVPlayback;
// ImageGallery Classes
public function Portfolio()
myLoader.load(new URLRequest("myFirstXML.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);
// constructor code
firstPage();
makeMenu();
homePage();
/* EXAMPLE OF USING GESTURE SUPPORT ON A MOBILE DEVICE */
Multitouch.inputMode = MultitouchInputMode.GESTURE;
//slideItem = new SlideItem();
/* Center the image */
//slideItem.x = stage.stageWidth * 0.5;
//slideItem.y = stage.stageHeight * 0.5;
//addChild(slideItem);
//listeners('add', slideItem); //see function for more detail
// TextHandle Class for TextFields
var Intro:TextHandle = new TextHandle("My Portfolio","Arial");
//OR with more optional details e.g. var a:TextHandle = new TextHandle("some text","Cooper Black",150);
addChild(Intro);
//Mp3Player Class for loading in sounds
player = new Mp3Player();
player.play('DwightQ3.mp3');
/*Blur filter API*/
var dropShadow:DropShadowFilter = new DropShadowFilter();
dropShadow.color = 0x000000;
dropShadow.blurX = 3;
dropShadow.blurY = 3;
dropShadow.angle = 45;
dropShadow.alpha = 0.5;
dropShadow.distance = 5;
var filtersArray:Array = new Array(dropShadow);
Intro.filters = filtersArray;
// VIDEO GALLERY
public function VideoGallery()
// constructor code
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load (new URLRequest("myVideoXML.xml"));
myXMLLoader.addEventListener (Event.COMPLETE, processXML);
function processXML (e:Event):void
myXML = new XML(e.target.data);
//Get attributes from XML document
thumbWidth = myXML.@THUMB_WIDTH;
thumbHeight = myXML.@THUMB_HEIGHT;
thumbX = myXML.@THUMB_X;
thumbY = myXML.@THUMB_Y;
thumbX = myXML.@VIDEO_X;
thumbY = myXML.@VIDEO_Y;
//Get Element information from VIDEO tags
myVideos = myXML.VIDEO;
//Count the number of Elements with VIDEO tags
totalVideos = myVideos.length();
makeContainers();
callThumbs();
makePlayer();
function makeContainers():void
videoContainer = new MovieClip();
addChild (videoContainer);
thumbs = new MovieClip();
thumbs.x = 20;
thumbs.y = 400;
thumbs.buttonMode = true;
videoContainer.addChild(thumbs);
thumbs.addEventListener(MouseEvent.CLICK,playVideo);
thumbs.addEventListener(MouseEvent.MOUSE_OVER,onOverThumb);
thumbs.addEventListener(MouseEvent.MOUSE_OUT,onOutThumb);
titles = new MovieClip();
titles.x = 20;
titles.y = 330;
videoContainer.addChild(titles);
function callThumbs ():void
for (var i:Number = 0; i <totalVideos; i++)
trace(myVideos[i].THUMB);
var thumbURL = myVideos[i].THUMB;
var thumbLoader = new Loader();
thumbLoader.name = i;
thumbLoader.load(new URLRequest(thumbURL));
thumbLoader.contentLoaderInfo.addEventListener (Event.COMPLETE,thumbLoaded);
//Change spaces for thumnails vertically
thumbLoader.x = (thumbHeight+90)*i;
var thumbTitle = myVideos[i].TITLE;
var titleTXT:TextField = new TextField();
titleTXT.text = thumbTitle;
titleTXT.y = thumbTitle;
//Change spaces for thumbnails horizontally
titleTXT.x = (thumbWidth + 1)*i;
titleTXT.width = thumbWidth;
titleTXT.height = thumbHeight;
titleTXT.wordWrap = true;
titles.addChild (titleTXT);
function thumbLoaded (e:Event):void
var myThumb:Loader = Loader (e.target.loader);
thumbs.addChild(myThumb);
function makePlayer():void
videoPlayer = new FLVPlayback();
videoPlayer.skin ="SkinUnderPlaySeekStop.swf";trace("noerror");
videoPlayer.skinBackgroundColor = 0x0099FF;
videoPlayer.skinBackgroundAlpha = 0.85;
videoPlayer.x = 100;
videoPlayer.y = 30;
//240p settings for 16:9 resolution
//width would = 320 on 4:3 resoloution
videoPlayer.width = 432;
videoPlayer.height=240;
//480p settings for 16:9 resolution
//.width would = 640 on 4:3 resoloution
//videoPlayer.width = 854;
//videoPlayer.height = 480;
//1280x720p or 1920x1080p are unliely on most current mobile devices
videoContainer.addChild(videoPlayer);
videoPlayer.source = myXML.VIDEO.URL[0];
//Skip some time in the video (Do not need this if you want to start at the beginning of video)
videoPlayer.playheadTime = Math.random()*0;
smoothVideo()
videoPlayer.addEventListener(fl.video.VideoEvent.COMPLETE,completePla y);
//Once recieved metadata then do something
videoPlayer.addEventListener(MetadataEvent.METADATA_RECEIVED,onVideoD ataRecived);
//videoPlayer.addEventListener(VideoEvent.STATE_CHANGE,videoHandler);
function smoothVideo()
var myVideo = videoPlayer.getVideoPlayer(0);
myVideo.smoothing = true;
function onVideoDataRecived(e:MetadataEvent)
trace(videoPlayer.totalTime);
//trace(videoPlayer.bytesLoaded);
//trace(videoPlayer.bytesTotal);
//videoPlayer.playheadTime = 50;
function playVideo (e:MouseEvent):void
var videoURL = myVideos[e.target.name].URL;
trace (videoURL);
videoPlayer.source = videoURL;
//videoPlayer.autoPlay = false;
function onOverThumb (e:MouseEvent):void
var myThumb:Loader = Loader(e.target);
myThumb.alpha = 0.5;
function onOutThumb (e:MouseEvent):void
var myThumb:Loader = Loader (e.target);
myThumb.alpha = 1;
function completePlay (e:fl.video.VideoEvent):void
videoPlayer.alpha = 0.2;
function stopVideo(evt:MouseEvent): void {
FUNCTIONS THAT:
RECEIVE THE MOUSE EVENTS FROM THE MENU
CLEAR THE MENU EVENT LISTENERS
CLEAR THE SCREEN
GOTO THE REQUIRED PAGE FUNCTION
function gotoPage1(e:MouseEvent)
clearMenuListeners()
clearScreen();
firstPage();
loadImage(0);
loadImage2(1);
maketext()
function gotoPage2(e:MouseEvent)
clearMenuListeners()
clearScreen();
secondPage();
function gotoPage3(e:MouseEvent)
clearMenuListeners()
clearScreen();
thirdPage();
function gotoPage4(e:MouseEvent)
clearMenuListeners()
clearScreen();
fourthPage();
function gotoPage5(e:MouseEvent)
clearMenuListeners()
clearScreen();
fifthPage();
makeContainers(); trace ("moo");
callThumbs(); trace ("boo");
VideoGallery(); trace ("weee");
function gotoHomePage(e:MouseEvent)
clearMenuListeners()
clearScreen();
homePage();
videoPlayer.stop();
//player.play("DwightQ3.mp3");
FUNCTIONS THAT:
MAKE THE PAGES
function homePage()
myBgHome = new BgStripes();
addChild(myBgHome);
makeMenu();
trace("Homepage");
function firstPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("firstpage");
function secondPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("secondpage");
myBtn04 = new btnDesign();
myBtn04.x = 100;
myBtn04.y = 100;
addChild(myBtn04);
myBtn04.addEventListener(MouseEvent.CLICK, gotoPage4);
myBtn05 = new btnMedia();
myBtn05.x = 400;
myBtn05.y = 100;
addChild(myBtn05);
myBtn05.addEventListener(MouseEvent.CLICK, gotoPage5);
function thirdPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("thirdpage");
function fourthPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("fourthpage");
videoContainer = new MovieClip();
addChild (videoContainer);
thumbs = new MovieClip();
thumbs.x = thumbX;
thumbs.y = thumbY;
thumbs.buttonMode = true;
videoContainer.addChild(thumbs);
thumbs.addEventListener(MouseEvent.CLICK,playVideo);
thumbs.addEventListener(MouseEvent.MOUSE_OVER,onOverThumb);
thumbs.addEventListener(MouseEvent.MOUSE_OUT,onOutThumb);
function fifthPage()
myBgHome = new bgAll();
addChild(myBgHome);
mybackBtn = new backBtn();
mybackBtn.x = 720;
mybackBtn.y = 40;
addChild(mybackBtn);
mybackBtn.addEventListener(MouseEvent.CLICK, gotoHomePage); trace("fifthpage");
function clearScreen()
//Clear all movieclips from the display list
while (numChildren > 0){ removeChildAt(0); }
function clearMenuListeners()
//Remove event listeners to prevent double ups when menu is added again
myBtn01.removeEventListener(MouseEvent.CLICK, gotoPage1);
myBtn02.removeEventListener(MouseEvent.CLICK, gotoPage2);
myBtn03.removeEventListener(MouseEvent.CLICK, gotoPage3);
mybackBtn.removeEventListener(MouseEvent.CLICK, gotoHomePage);
function makeMenu()
//Place buttons and add event listeners to receive mouse clicks
myBtn01 = new mcAbout();
myBtn01.x = 260;
myBtn01.y = 500;
addChild(myBtn01);
myBtn01.addEventListener(MouseEvent.CLICK, gotoPage1);
TweenMax.to(myBtn01, 0.5, {x:260, y:450});
myBtn02 = new mcPortfolio();
myBtn02.x = 400;
myBtn02.y = 500;
addChild(myBtn02);
myBtn02.addEventListener(MouseEvent.CLICK, gotoPage2);
TweenMax.to(myBtn02, 0.5, {x:400, y:450});
myBtn03 = new mcContact();
myBtn03.x = 540;
myBtn03.y = 500;
addChild(myBtn03);
myBtn03.addEventListener(MouseEvent.CLICK, gotoPage3);
TweenMax.to(myBtn03, 0.5, {x:540, y:450});
Similar Messages
-
I need help removing a background from a picture. My boss wants some t-shirts made but the only image I have is one with a tie-dye background and I need it to just be the black and white that is on the image. I have been trying for 2 weeks to do this and I can get real close but it leaves the colors around the edges and I need this gone. Any ideas? Anyone that can help me out? I have the original photo and the one with almost everything removed if someone can help me fine tune the rest that would be great.
You've done all the hard work and are almost there!
Starting with your b/w rendition, duplicate the background layer, and shut off the visibility of the background layer. Work on background copy layer
Go to Enhance menu>convert to black and white>vivid landscape style
Open a blank layer between the background and background copy layers and fill this layer with white
Make the background copy layer active and use the eraser tool to clean up a few smudges on the background copy layer
Open a blank layer at the top of the stack, and press CTRL+SHIFT+ALT+E to create a stamp visible layer
With the rectangular marquee tool, make a rectangular block selection of "DRIVE-IN THEATRE" and place this on its own layer (CTRL+J). Make the blending mode multiply, then duplicate this layer 3-4 times.
For the text on the bottom, suggest that you erase this and replace the information with the type tool. -
I need help with XML Gallery Fade in out transition. somebody please help me :(
I need help with XML Gallery Fade in out transition. somebody please help me
I have my post dont want to duplicate itThe problem doesn't lie with your feed, although it does contain an error - you have given a non-existent sub-category. You need to stick to the categories and sub-categories listed here:
http://www.apple.com/itunes/podcasts/specs.html#categories
Subscribing to your feed from the iTunes Store page work as such, but the episodes throw up an error message. The problem lies with your episode media files: you are trying to stream them. Pasting the URL into a browser produces a download (where it should play the file) of a small file which does not play and in fact is a text file containing (in the case of ep.2) this:
[Reference]
Ref1=http://stream.riverratdoc.com/RiverratDoc/episode2.mp3?MSWMExt=.asf
Ref2=http://70.33.177.247:80/RiverratDoc/episode2.mp3?MSWMExt=.asf
You must provide a direct link to the actual mp3 file. Streaming won't work. The test is that if you paste the URL of the media file (as given in the feed) into the address bar of a browser it should play the file. -
TS1389 I need help removing UAC from itunes..
I need help removing UAC from itunes so it will not allow me to open itunes. Everything I have read from other comments that you shouldn't turn off your user account control. I just to be able to open itunes. Can anyone help me with this problem?? Greg, ogrady612@yahoo,com
I had this problem too but you do not need UAC to be turned on.
Click on start and search for 'uac' in the search box at the bottom and click on 'Change User Account Control Settings' when it comes up. Move the slider to the bottom when the window appears and save the changes and your done!
It's worked for me and my uac has been off for months without causing me any problems!
Hope this helped -
I need help removing a malicious program form my mac!
Hello, I am 99% sure I accidentally acquired/downloaded a malicious program on my mac and I am new to macs and need help removing it!
I have growl and the other day it notified me that screen sharing, file sharing and web sharing were all turned on at once. As soon as I saw this I quickly got off of the internet and found out how to disable them.
Also, three programs kept requesting to access the internet and I denied them of course. Their names were: nmbd, netsessionmac1225fd0, and krb5kdc.
Like I said I am new to macs and need some help fixing this problem. So, if anyone has any ideas that would help a lot.
I already have screen sharing, file sharing, and web sharing turned off and now it requires a password to access (which i changed after i disabled them) but I want to ask some mac people if I need to do anything else, thanks!By the way, a big thank you to everyone who has helped so far..
Here is the list of my running programs and keep in mind that I do have my firewall turned on as well as file sharing, screen sharing, and web sharing turned off so the suspect program may not be running?
1905 Activity Monitor MattBurke 2.5 2 28.8 MB Intel (64 bit)
1915 activitymonitord root 0.7 1 1.2 MB Intel (64 bit)
1890 AirPort Base Station Agent MattBurke 0.0 4 3.8 MB Intel (64 bit)
2038 AppleSpell.service MattBurke 0.0 2 6.1 MB Intel (64 bit)
59 autofsd root 0.0 2 664 KB Intel (64 bit)
64 avgconfigd root 0.0 4 2.7 MB Intel (64 bit)
65 avgd root 0.0 8 4.5 MB Intel (64 bit)
136 avglnsd root 0.0 7 14.6 MB Intel (64 bit)
63 avgnotifyd root 0.0 7 4.3 MB Intel (64 bit)
181 avgsched root 0.0 6 4.0 MB Intel (64 bit)
16 blued root 0.0 2 2.7 MB Intel (64 bit)
15 configd root 0.0 7 3.1 MB Intel (64 bit)
137 coreaudiod _coreaudiod 0.0 3 5.2 MB Intel (64 bit)
21 coreservicesd root 0.0 4 50.7 MB Intel (64 bit)
3787 cupsd root 0.0 3 2.8 MB Intel (64 bit)
148 cvmsServ root 0.0 1 692 KB Intel (64 bit)
11 DirectoryService root 0.0 5 7.0 MB Intel (64 bit)
14 diskarbitrationd root 0.0 2 1.6 MB Intel (64 bit)
3726 diskimages-helper MattBurke 0.0 3 12.3 MB Intel (64 bit)
17 distnoted daemon 0.0 2 1.4 MB Intel (64 bit)
1872 Dock MattBurke 0.1 3 32.4 MB Intel (64 bit)
53 dynamic_pager root 0.0 1 444 KB Intel (64 bit)
3705 FanControlDaemon root 0.0 2 1.5 MB Intel
1874 Finder MattBurke 0.0 6 134.2 MB Intel (64 bit)
3332 Firefox MattBurke 3.1 27 247.6 MB Intel
1878 fontd MattBurke 0.0 2 3.9 MB Intel (64 bit)
51 fseventsd root 0.0 13 2.6 MB Intel (64 bit)
1904 gfxCardStatus MattBurke 0.0 2 5.6 MB Intel (64 bit)
1955 Growl Menu MattBurke 0.0 2 7.7 MB Intel (64 bit)
1924 GrowlHelperApp MattBurke 0.0 5 13.8 MB Intel (64 bit)
3732 hdiejectd root 0.0 2 1.6 MB Intel (64 bit)
50 hidd root 0.7 4 1.8 MB Intel (64 bit)
1901 HP Event Handler MattBurke 0.0 4 7.3 MB Intel (64 bit)
0 kernel_task root 1.6 79 172.1 MB Intel
48 KernelEventAgent root 0.0 3 712 KB Intel (64 bit)
10 kextd root 0.0 2 3.8 MB Intel (64 bit)
37 krb5kdc root 0.0 2 1,020 KB Intel (64 bit)
1 launchd root 0.0 3 1.4 MB Intel (64 bit)
193 launchd MattBurke 0.0 2 1.0 MB Intel (64 bit)
1894 LinkScanner Agent MattBurke 0.0 8 9.3 MB Intel (64 bit)
1893 Loader Agent MattBurke 0.0 2 3.8 MB Intel (64 bit)
1853 loginwindow MattBurke 0.0 2 12.7 MB Intel (64 bit)
1909 Logitech Control Center Daemon MattBurke 0.0 4 6.9 MB Intel
18 mDNSResponder _mdnsresponder 0.0 3 2.3 MB Intel (64 bit)
46 mds root 0.1 5 99.4 MB Intel (64 bit)
3712 mdworker MattBurke 0.0 3 11.6 MB Intel (64 bit)
3717 mdworker _spotlight 0.0 3 21.4 MB Intel (64 bit)
1897 netsessionmac1225fd0 MattBurke 0.3 8 3.7 MB Intel
12 notifyd root 0.0 2 556 KB Intel (64 bit)
35 ntpd root 0.0 1 760 KB Intel (64 bit)
1875 pboard MattBurke 0.0 1 504 KB Intel (64 bit)
175 prldispservice root 0.1 15 8.0 MB Intel
147 prl_naptd root 0.0 3 3.0 MB Intel
1908 RescueTime MattBurke 0.3 7 11.6 MB Intel
24 securityd root 0.0 2 3.6 MB Intel (64 bit)
62 sh root 0.0 1 304 KB Intel (64 bit)
66 socketfilterfw root 0.0 3 7.2 MB Intel (64 bit)
13 syslogd root 0.0 4 752 KB Intel (64 bit)
40 SystemStarter root 0.0 2 656 KB Intel (64 bit)
1873 SystemUIServer MattBurke 0.0 4 22.9 MB Intel (64 bit)
1907 Temperature Monitor Lite MattBurke 0.9 4 6.0 MB Intel
1949 usbmuxd _usbmuxd 0.0 3 1.2 MB Intel (64 bit)
1883 UserEventAgent MattBurke 0.0 3 5.3 MB Intel (64 bit)
1854 WindowServer _windowserver 1.3 7 76.0 MB Intel (64 bit) -
Need Help With Videos on Zen V P
I need help putting videos on my Creative Zen V Plus. I convert them to avi using Super Converter and I drag and drop them into the folder for the videos on my zen. When I turn on my Zen and go to the videos the video is there however when I try to play it it says video format not supported.
Original?Creative software after internet upgrades easy convert any video to Zen format and automaticaly transfere it to player.
-
Need help moving videos/photos from Galaxy S4 to iMac
need help moving videos/photos from Galaxy S4 to iMac
Samsung's utility Kies is awful
Hlpe pleasedid this
import photos from android to mac
got this, try it
http://www.phototransferapp.com/help/android/transfer_photos_from_your_android_t o_your_mac/
or use the first link to try some of the google hits for ways to get photos from android devices into osx -
I need help removing CS3 from Windows 7 so I can reinstall
I need help removing CS3 from Windows 7 so I can reinstall
Before trying to remove try re-installing CS3 right on top of the current install. Often re-installing Photoshop on top of itself fixes the install. If it does be sure to apply the cs3 updates.
Download Adobe CS4 and CS3 Free Trials Here (incl. After Effects) | ProDesignTools
your product key can be retrieved from here https://www.adobe.com/account/my-products-services.html
use these links for the updates.
Adobe - Photoshop : For Macintosh
Adobe - Photoshop : For Windows -
Need Help Removing XML Photo Gallery on Button Click
Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help. I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery. this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you Code: Select all var imageX:XML; var imageList:XMLList; var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160; var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req); function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); } function imageLoaded(e:Event):void { canvas.addChild(picLoader); } Code for the buttons in different keyframe. Code: Select all stop(); kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick); function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); } function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); } function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); } function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }
Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help. I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery. this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you Code: Select all var imageX:XML; var imageList:XMLList; var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160; var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req); function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); } function imageLoaded(e:Event):void { canvas.addChild(picLoader); } Code for the buttons in different keyframe. Code: Select all stop(); kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick); function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); } function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); } function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); } function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }
-
Need help installing pic gallery
I need help on installing something please. I downloaded this
flash things from this link
http://www.flasheezy.com/flash_file/4-XML-gallery-3
but I have to make a few changes to the background. How do I
save it so that i can export it to dreamweaver? I don't know how to
save a .swf flash document. It keeps saving it as a .swf
movie...Also it says that I need the mc_tween but I dont know how
to use it...when I go to download it, it has a different name so I
am not sure if I am using the correct mc_tween2.as that I need. How
do I make this work? Anyones help will be greatly appreciated!!
Thank you,
ElenisNever mind I figured it out...now I also made the document
smaller but the pics still run off of the document when I put it on
the site...can someone help me figure this out please? I looked
through the ActionScript but I can't find anything. Check this
sample out that I did...
http://www.levelgraphics.biz/4colorfoil/gallery.html
I want all the pics to stay on the page, atleast a piece of
them so that the clients can click on them.
Thanks in advance! -
Need help with videos!!! Please
i need help! i have a 30G ipod video and my videos are being weird. They used to play on my ipod but now there is no picture or sound. it plays on itunes too so i dont understand. Also, my purchased music plays on itunes but skips past them on my ipod-they used to play on my ipod. PLEASE help me!
Welcome to Apple Discussions!
For Videos:
So what are they doing? Are the videos showing up under "Videos" on the iPod? What happens when you try to play them? Have you tried these?
Resetting iPod
Restore the iPod
For Purchased Music Skipping:
Have you played the songs in iTunes for a few seconds? This will authorize them. Now sync your iPod. Do they play?
If not, make sure everything is up to date on your computer and iPod..
iTunes
iPod Updater
Updating iPod's Software
If that doesn't work, in iTunes, go to advanced-->deauthorize computer. Now play the songs in iTunes. It will ask for your account information (from the iTunes Music Store). Enter that. Now play a few purchased songs for a few seconds. Sync your iPod. Do the songs work now?
If they don't, try this...
Deauthorize the computer. (Go to advanced-->deauthorize computer in iTunes)
Create a new user in the system. (Start-->control panel-->user accounts-->create a new account)
Download the free song of the week in the new user account. (First, log out of the current user and log in to the new user account. Then open iTunes and download the free song)
Play the song in that username to authorize it.
Restore the iPod in the New User account, sync just the Free song of the Week and see if it plays on the iPod.
If it plays fine on the iPod when syncing with this user name (after you followed the above instructions), it would indicate a bad iTunes Library File. Post back for instructions on how to fix that.
Now, if it still won't work (you followed the above instructions with the new user account) and the iPod still won't play the songs, then post back.
btabz -
Hi, i need help removing a program
in my thinkpad x40.......The problem is my belkin wireless router keeps going off line because there is a program i was told i needed to remove by a tech support......The the program he said to remove was think vantage access connection.....There is no program called that in there.......I dont know alot about computers and i dont want to pay for this so info i thought maybe someone here could help me.......The bio says this think pad is a 2004.......I would be so grateful if someone could help me!Thank you!....Debbie
start, control panel, add or remove programs. if you have access connections, it should be listed in there and you can uninstall it from there. after it's gone, reboot, then windows "should" detect your wireless networks. if it doesn't, post back.
T430u, x301, x200T, x61T, x61, x32, x41T, x40, U160, ThinkPad Tablet 1838-22R, Z500 touch, Yoga Tab 2 Windows 8.1, Yoga Tablet 3 Pro
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
If someone helped you today, pay it forward. Help Someone Else!
English Community Deutsche Community Comunidad en Español Русскоязычное Сообщество -
Need help fixing video playback on iTunes and worried it will affect iphone
First of all, the black levels when playing videos on iTunes looked terrible.
I looked all over on how to fix this..
So then I installed the lastest nvidia graphics drivers to help with video playback
After install my videos black level was definatly better, I think.
But now all videos play wierdly in the corner of the itunes program..
http://img36.imageshack.us/img36/8170/ituneshelp.png
I need help to fix this and I hope this dont affect playback on iphone 4If exporting to i4 results in the same, there could be a problem with the movie itself. Try exporting to the i4 and replay the video. However if exporting to i4 plays okay on the phone, it's your Nvidia drivers. You can download the prior Nvidia drivers and downgrade.
There have been dozens of cases where Nvidia drivers even the newest ones have made a mess of games, movie playbacks, even viewing Windows programs. -
I need help with videos?
I need help. I have a video in my library AND iPod. The problem is - the video PLAYS when I click it on iTunes, but when I try to play it on my video iPod, all it does is let me hear what they're saying, it doesn't show the video. Can somebody help me?
Hey, what is the link to downloading Videora? Ivé tried downloading it but it doesn't work. The program does not open after installing it. I get some sort of error message. I clicked on the Full Install one when downloading it.
-
HT1920 I need help removing my old email address
I have a new email address and need to remove the old one can you help me with that?
Assuming that this is for your iTunes account, then on your iPad you can tap on your id in Settings > iTunes & App Store and log into the account and you should be able to update your account's primary email address - or you can do it via the Store > View Account menu option on your computer's iTunes or via http://appleid.apple.com
Maybe you are looking for
-
Suddenly My iphone 4s does not find my wireless printer and sometimes can't find the server.
All of a sudden My iPhone 4s cannot find my wireless printer and cannot connect to the internet all of t he time.
-
I have been having problems intermittently with my wireless connection stopping and dropping while I am working on the internet. I have gone around with AT&T for over a year and now they are telling me it is my computer that is looking for other netw
-
Itunes cannot run....
I installed the updates that came the other day. They installed just fine, but when I went to open iTunes again, I got the error message, "iTunes cannot run because some of its required files are missing. Please reinstall iTunes" Has anyone seen this
-
Agent reserved state set to Not Ready
HI I get this error very randomly on CAD with one agent . "your agent state has been set to not ready by the pim because some calls were routed to you and haven't been received.Please ask your administrator for help." no issue with agent desk setting
-
Hi, I have two data columns in my BPS layout called price and margin with one lead column material, the layout looks like this when it initially display: Material Price margin 1 1.25 2 3 4 The requirments i