I need help with timeline!

I know how to get timeline but it allways opens up as an frame animation timeline and i dont know how to change it to the video type, need help urgent, thanks for reading ( i need this so i can make my animations )

Please post back if you have any questions.

Similar Messages

  • Need Help with Timeline Setup, Text won't show up in SWF

    I am creating a site for one of my company's restaurants, and I have all of my pages created in flash. I have not done any Actionscript on any of the pages yet. I thought that I would just be able to create each page and take the swf files and import them into a main index page on the timeline and code from there. However, when I imported my .swf files to the library of the main flash file, none of my text showed up at all. I have added the fonts to my library and I tried breaking apart the text, but nothing has worked.
    Also, I don't know how exactly to set up the timeline to link all of my pages, and I have looked in other forums and have seen people reference the online help, but I do not know where to find that!
    I am a mess right now, the site needs to be up by Friday!! PLEASE HELP!

    So I have created all new movie clips in my index.fla file by copying all of my files from another file and pasting them into the movie clip  timeline. I have placed all of my new movie clips in different layers on the index timeline, and have created keyframes 10 frames apart. I have my actions layer with frame labels for each page every ten frames (i.e. tbLabel is at frame 1 in my actions layer and the movie clip is on a different layer at frame one, restaurantLabel is at frame 10 in my actions layer and the movie clip for that page is on a different layer at frame ten, all the way up to frame 120). I haven't put any actionscript in my movieclips except for stop(); at the end of each file. My current actionscript, placed in frame 1 for my first page when the viewer goes to the site is as follows:
    thunderBayBtn.addEventListener(MouseEvent.CLICK, goIndex);
    restaurantBtn.addEventListener(MouseEvent.CLICK, goRestaurant);
    birchBtn.addEventListener(MouseEvent.CLICK, goBirch);
    menuBtn.addEventListener(MouseEvent.CLICK, goMenu);
    eventBtn.addEventListener(MouseEvent.CLICK, goEventLand);
    davEventBtn.addEventListener(MouseEvent.CLICK, goDavEvent);
    rockEventBtn.addEventListener(MouseEvent.CLICK, goRockEvent);
    pewEventBtn.addEventListener(MouseEvent.CLICK, goPewEvent);
    pewEventBtn.addEventListener(MouseEvent.CLICK, goPewEvent);
    giftBtn.addEventListener(MouseEvent.CLICK, goGiftCert);
    downloadBtn.addEventListener(MouseEvent.CLICK, goDownload);
    contestBtn.addEventListener(MouseEvent.CLICK, goContestLand);
    davContestBtn.addEventListener(MouseEvent.CLICK, goDavContest);
    rockPewContestBtn.addEventListener(MouseEvent.CLICK, goRockPewContest);
    function goIndex(event:MouseEvent):void
                gotoAndPlay(1);
    function goRestaurant(event:MouseEvent):void
                gotoAndPlay(10);
    function goBirch(event:MouseEvent):void
                gotoAndPlay(20);
    function goMenu(event:MouseEvent):void
                gotoAndPlay(30);
    function goEventLand(event:MouseEvent):void
                gotoAndPlay(40);
    function goDavEvent(event:MouseEvent):void
                gotoAndPlay(50);
    function goRockEvent(event:MouseEvent):void
                gotoAndPlay(50);
    function goPewEvent(event:MouseEvent):void
                gotoAndPlay(50);
    function goGiftCert(event:MouseEvent):void
                gotoAndPlay(90);
    function goDownload(event:MouseEvent):void
                gotoAndPlay(100);
    function goContestLand(event:MouseEvent):void
                gotoAndPlay(110);
    function goDavContest(event:MouseEvent):void
                gotoAndPlay(120);
    function goRockPewContest(event:MouseEvent):void
                gotoAndPlay(120);
    However, when I go to test the movie, I get "1120 access" errors even though the buttons are named in the properties pane, however, I cannot view that in the file that conatins all of my movie clips because they are movie clips.
    Also, When I go to view the movie with all of my movie clips, all of them play one on top of the other, none of them stop, and the buttons do not work.
    I'm having a hard time figuring out what actionscript I need to use and where!

  • Need help with timeline

    I have this photo gallery code that i found online. I have various frames in my timeline, when the photo gallery loads in frame x and i try to go to frame y. the photo gallery doesnt close out.  I want to include a button that says CLOSE and remove the photo gallery from the timeline.
    The code involves xml files and is pretty complicated. Here it is...  Some Help would be great!!! thank in advance
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.geom.Matrix;
    import flash.display.Sprite;
    import com.flashandmath.objects.Tile;
    import com.flashandmath.loaders.GalleryLoader;
    import com.flashandmath.preloaders.LoadSpinner2;
    import flash.display.Loader;
    import flash.display.Shape;
    import flash.events.MouseEvent;
    import flash.text.TextFormat;
    import flash.events.Event;
    var sw:Number = 780;
    var sh:Number = 740;
    var galLoader:GalleryLoader;
    var numPics:int;
    var thumbsData:Vector.<BitmapData>
    var largePicURLs:Vector.<String>;
    var captions:Vector.<String>;
    var spinner:LoadSpinner2;
    var picWidth:Number;
    var picHeight:Number;
    var divisions:Number;
    var gap:Number;
    var tiles:Vector.<Tile>;
    var tileWidth:Number;
    var tileHeight:Number;
    var galleryHolder:Sprite;
    var parameterTween:Tween;
    var variationX:Vector.<Number>;
    var variationY:Vector.<Number>;
    var variationMax:Number;
    var collapsed:Boolean;
    var currentPicIndex:int;
    var captionBox:TextField;
    var collapseTweenDuration:Number;
    var separateTweenDuration:Number;
    var closedPositionOffsetY:Number;
    var thumbnails:Vector.<Bitmap>;
    var pics:Vector.<Bitmap>;
    var angles:Vector.<Number>;
    var loader:Loader;
    var isLoading:Boolean;
    var scrollTweenDuration:Number;
    var pageShift:int;
    var numTiles:int;
    var numPages:int;
    var backSkip:int;
    var navigationPanel:Sprite;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    //this paramObject will be used for our tweened motion:
    var paramObject:Object = {t:0};
    //we create some instances of MovieClips from the library:
    var btnNextImage:BtnNextImage = new BtnNextImage();
    var btncloseGallery:btncloseGallery = new btncloseGallery();
    var btnPrevImage:BtnPrevImage = new BtnPrevImage();
    var btnNextPage:BtnNextPage = new BtnNextPage();
    var btnPrevPage:BtnPrevPage = new BtnPrevPage();
    var btnReturn:BtnReturn = new BtnReturn();
    var mcViewInstructions:McViewInstructions = new McViewInstructions();
    init();
    function init():void {
        thumbsData = new Vector.<BitmapData>();
        largePicURLs = new Vector.<String>();
        captions = new Vector.<String>();
        loader = new Loader();
        isLoading = false; //boolean flag for image loading after thumbnail click
        infoBox.text = "Loading thumbnails, please wait...";
        galleryHolder = new Sprite();
        galleryHolder.x = sw/2 - 3;
        galleryHolder.y = sh/2 + 10;
        this.addChild(galleryHolder);
        btnPrevImage.mouseEnabled = false;
        btnNextImage.mouseEnabled = false;
        btnReturn.mouseEnabled = false;
        btncloseGallery.mouseEnabled = false;
        spinner = new LoadSpinner2(100,100);
        spinner.setColors(0x000762C5, 0xFF0762C5);
        spinner.bgAlpha = 0.5;
        spinner.x = galleryHolder.x;
        spinner.y = galleryHolder.y;
        this.addChild(spinner);
        spinner.startSpinner();
        galLoader = new GalleryLoader("gallery.xml");
        galLoader.addEventListener(GalleryLoader.XMLLOAD_ERROR, xmlError);
        galLoader.addEventListener(GalleryLoader.IMGSLOAD_ERROR, imgsError);
        galLoader.addEventListener(GalleryLoader.ALL_LOADED, loadEnded);
        galLoader.loadXML();
    function xmlError(e:Event):void {
        galLoader.removeEventListener(GalleryLoader.XMLLOAD_ERROR, xmlError);
        galLoader.removeEventListener(GalleryLoader.ALL_LOADED, loadEnded);
        galLoader.removeEventListener(GalleryLoader.IMGSLOAD_ERROR, imgsError);
        infoBox.text="There has been an error loading the XML file. The server may be busy. Try refreshing the page.";
        spinner.stopSpinner();
        spinner.visible=false;
    function imgsError(e:Event):void {
        galLoader.removeEventListener(GalleryLoader.XMLLOAD_ERROR, xmlError);
        galLoader.removeEventListener(GalleryLoader.ALL_LOADED, loadEnded);
        galLoader.removeEventListener(GalleryLoader.IMGSLOAD_ERROR, imgsError);
        infoBox.text="There has been an error loading thumbnails. The server may be busy. Try refreshing the page.";
        spinner.stopSpinner();
        spinner.visible=false;
    function loadEnded(e:Event):void {
        galLoader.removeEventListener(GalleryLoader.XMLLOAD_ERROR, xmlError);
        galLoader.removeEventListener(GalleryLoader.ALL_LOADED, loadEnded);
        galLoader.removeEventListener(GalleryLoader.IMGSLOAD_ERROR, imgsError);
        infoBox.text="";
        spinner.stopSpinner();
        spinner.visible=false;
        initApp();        
    function populateVecs():void {
        var j:int;
        for(j=0;j<numPics;j++){
            thumbsData[j]=galLoader.bmpDataVec[j];
            largePicURLs[j]=galLoader.picsVec[j];
            captions[j]=galLoader.capsVec[j];
    function initApp():void {
        numPics = galLoader.numPics;
        populateVecs();
        thumbnails = new Vector.<Bitmap>();
        createThumbnailBitmaps();
        picWidth = 300;
        picHeight = 200;
        gap = 50;   
        divisions = 3;
        numTiles = divisions*divisions;
        variationMax = 12;
        numPages = Math.ceil(Number(numPics)/Number(numTiles));
        backSkip = numPages*numTiles - numPics;
        collapseTweenDuration = 36;
        separateTweenDuration = 30;
        scrollTweenDuration = 40;
        closedPositionOffsetY = 0;
        pageShift = 0;
        navigationPanel = new Sprite();
        this.addChild(navigationPanel);
        navigationPanel.mouseEnabled = false;
        navigationPanel.y = galleryHolder.y + closedPositionOffsetY - picHeight/2 - 40;
        navigationPanel.x = galleryHolder.x + 2;
        navigationPanel.addChild(btnNextImage);
        btnNextImage.y = 0;
        btnNextImage.x = btnReturn.width/2 + 20;
        navigationPanel.addChild(btnPrevImage);
        btnPrevImage.y = 0;
        btnPrevImage.x = -btnReturn.width/2 - 20;
        navigationPanel.addChild(btnReturn);
        btnReturn.y = 0;
        btnReturn.x = 0;
        navigationPanel.addChild(btncloseGallery);
        btncloseGallery.y = 0;
        btncloseGallery.x = 0;
        this.addChild(mcViewInstructions);
        mcViewInstructions.y = galleryHolder.y - (picHeight + gap*(divisions-1))/2 - 30;
        mcViewInstructions.x = galleryHolder.x + 3;
        mcViewInstructions.mouseEnabled = false;
        this.addChild(btnPrevPage);
        btnPrevPage.x = galleryHolder.x + (picWidth + gap*(divisions-1))/2 + 30;
        btnPrevPage.y = galleryHolder.y - 8;
        this.addChild(btnNextPage);
        btnNextPage.x = galleryHolder.x + (picWidth + gap*(divisions-1))/2 + 30;
        btnNextPage.y = galleryHolder.y + 12;
        this.addChild(btncloseGallery);
        btncloseGallery.x = galleryHolder.x + (picWidth + gap*(divisions-1))/2 + 30;
        btncloseGallery.y = galleryHolder.y + 12;
        btnPrevImage.addEventListener(MouseEvent.CLICK,prevImage);
        btnNextImage.addEventListener(MouseEvent.CLICK, nextImage);
        btnReturn.addEventListener(MouseEvent.CLICK, returnToThumbs);
        btncloseGallery.addEventListener(MouseEvent.CLICK,closeGallery);
        btnNextPage.addEventListener(MouseEvent.CLICK, btnNextPageHandler);
        btnPrevPage.addEventListener(MouseEvent.CLICK, btnPrevPageHandler);
        setPagingVisibility();
        navigationPanel.alpha = 0;
        tiles = new Vector.<Tile>();
        variationX = new Vector.<Number>();
        variationY = new Vector.<Number>();
        angles = new Vector.<Number>();
        tileWidth = picWidth/divisions;
        tileHeight = picHeight/divisions;
        var dsf:DropShadowFilter = new DropShadowFilter(6,45,0,0.7,6,6,1);
        galleryHolder.filters = [dsf];
        var format:TextFormat = new TextFormat("arial",12,0x000000,false,true);
        format.align = TextFormatAlign.CENTER;
        captionBox = new TextField();
        captionBox.defaultTextFormat = format;
        captionBox.autoSize = TextFieldAutoSize.CENTER;
        captionBox.text = "";
        captionBox.x = galleryHolder.x - captionBox.width/2;
        captionBox.y = 20+galleryHolder.y + 0.5*picHeight + closedPositionOffsetY;
        this.addChildAt(captionBox,0);
        captionBox.mouseEnabled = false;
        setUpThumbnails();
        setUpTiles();
        collapsed = false;
    function createThumbnailBitmaps():void {
        var i:int;
        for (i = 0; i < galLoader.numPics; i++) {
            thumbnails.push(new Bitmap(galLoader.bmpDataVec[i]));
    function setUpThumbnails():void {
        var k:int;
        var scaleFactor:Number;
        for (k = 0; k < numPics; k++) {
            scaleFactor = tileWidth/thumbnails[k].width;
            thumbnails[k].x = -scaleFactor*thumbnails[k].width/2;
            thumbnails[k].y = -scaleFactor*thumbnails[k].height/2;
            thumbnails[k].scaleX = thumbnails[k].scaleY = scaleFactor;
    function setUpTiles():void {
        for (var i=0; i<= divisions-1; i++) {
            for (var j=0; j<= divisions-1; j++) {
                var thisTile:Tile = new Tile();
                thisTile.thumbnailHolder.addChild(thumbnails[i*divisions + j]);
                galleryHolder.addChild(thisTile);
                thisTile.openPosition.x = -(picWidth + gap*(divisions-1))/2 + tileWidth/2+(tileWidth+gap)*j;// + (2*Math.random()-1)*gap*0.5;
                thisTile.openPosition.y = -(picHeight + gap*(divisions-1))/2 + tileHeight/2+(tileHeight+gap)*i;// + (2*Math.random()-1)*gap*0.5;
                thisTile.closedPosition.x = -picWidth/2 + tileWidth/2 + tileWidth*j;
                thisTile.closedPosition.y = closedPositionOffsetY - picHeight/2 + tileHeight/2 + tileHeight*i;
                thisTile.x = thisTile.openPosition.x;
                thisTile.y = thisTile.openPosition.y;
                thisTile.which = i*divisions+j;
                thisTile.buttonMode = true;
                tiles.push(thisTile);
                variationX.push(4*variationMax*(2*Math.random()-1));
                variationY.push(4*variationMax*(2*Math.random()-1));
                angles.push(0);
                thisTile.addEventListener(MouseEvent.CLICK, onTileClick);
    function onTileClick(evt:MouseEvent):void {
        if(isLoading||collapsed){
            return;
        isLoading=true;
        currentPicIndex = evt.target.which;
        setFlipVisibility();
        spinner.visible = true;
        spinner.startSpinner();
        //set up listeners for load complete or error, go to changeTilesBeforeCollapse on complete
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadComplete);
        loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,loadingError);
        //load image
        loader.load(new URLRequest(largePicURLs[currentPicIndex + pageShift]));
    function setFlipVisibility():void {
        btnPrevImage.visible = btnPrevImage.mouseEnabled = (currentPicIndex + pageShift > 0);
        btnNextImage.visible = btnNextImage.mouseEnabled = (currentPicIndex + pageShift < (numPics - 1));
    function loadingError(e:IOErrorEvent):void {
        infoBox.text="There has been an error loading the image. The server may be busy. Refresh the page and try again.";
        loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,loadComplete);
        loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,loadingError);
        isLoading=false;
        spinner.stopSpinner();
        spinner.visible=false;
    function onPicClick(evt:MouseEvent):void {
        btnReturn.removeEventListener(MouseEvent.CLICK, returnToThumbs);
        galleryHolder.removeEventListener(MouseEvent.CLICK, onPicClick);
        separate();
    function returnToThumbs(evt:MouseEvent):void {
        galleryHolder.removeEventListener(MouseEvent.CLICK, onPicClick);
        btnReturn.removeEventListener(MouseEvent.CLICK, returnToThumbs);
        btnReturn.mouseEnabled = false;
        separate();
    function loadComplete(evt:Event):void {
        loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,loadComplete);
        loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,loadingError);
        spinner.stopSpinner();
        spinner.visible=false;
        isLoading=false;
        //paint tiles with pic:
        var matrix:Matrix = new Matrix(1,0,0,1);
        var index:int;
        var bd:BitmapData = Bitmap(loader.content).bitmapData;
        for (var i=0; i<= divisions-1; i++) {
            for (var j=0; j<= divisions-1; j++) {
                index = i*divisions + j;
                matrix.tx = (-j-0.5)*picWidth/divisions;
                matrix.ty = (-i-0.5)*picHeight/divisions;
                tiles[index].graphics.clear();
                tiles[index].graphics.beginBitmapFill(bd,matrix,false,false);
                tiles[index].graphics.drawRect(-tileWidth/2, -tileHeight/2, tileWidth, tileHeight);
                tiles[index].graphics.endFill();
        //change caption:
        captionBox.text = "  "+captions[currentPicIndex + pageShift]+"  "; //adding a little extra space to avoid cutoff
        if (!collapsed) {
            collapse();
    function collapse():void {   
        collapsed = true;
        //reset the randomization variables so it won't look the same every time:
        for (var i:int = 0; i < divisions*divisions; i++) {
            variationX[i] = (4*variationMax*(2*Math.random()-1));
            variationY[i] = (4*variationMax*(2*Math.random()-1));
            angles[i] = 60-Math.random()*120;
        parameterTween = new Tween(paramObject,"t",Elastic.easeInOut,0,1,collapseTweenDuration);
        parameterTween.addEventListener(TweenEvent.MOTION_FINISH, collapseComplete);
        this.addEventListener(Event.ENTER_FRAME, onEnterCollapse);
    function separate():void {
        collapsed = false;
        //reset the randomization variables so it won't look the same every time:
        for (var i:int = 0; i < divisions*divisions; i++) {
            variationX[i] = (4*variationMax*(2*Math.random()-1));
            variationY[i] = (4*variationMax*(2*Math.random()-1));
            angles[i] = 60-Math.random()*120;
        parameterTween = new Tween(paramObject,"t",Elastic.easeInOut,0,1,separateTweenDuration);
        parameterTween.addEventListener(TweenEvent.MOTION_FINISH, separateComplete);
        this.addEventListener(Event.ENTER_FRAME, onEnterSeparate);
        btnPrevImage.mouseEnabled = false;
        btnNextImage.mouseEnabled = false;
    function onEnterCollapse(evt:Event):void {
        captionBox.alpha = paramObject.t;
        navigationPanel.alpha = paramObject.t;
        mcViewInstructions.alpha = 1 - paramObject.t;
        btnPrevPage.alpha = 1 - paramObject.t;
        btnNextPage.alpha = 1 - paramObject.t;
        var quad:Number;
        for (var i:int = 0; i< divisions*divisions; i++) {
            quad = paramObject.t*(1-paramObject.t);
            tiles[i].x = tiles[i].openPosition.x + paramObject.t*(tiles[i].closedPosition.x-tiles[i].openPosition.x)+variationX[i]*quad;
            tiles[i].y = tiles[i].openPosition.y + paramObject.t*(tiles[i].closedPosition.y-tiles[i].openPosition.y)+variationY[i]*quad;
            tiles[i].thumbnailHolder.alpha = 1-paramObject.t;
            tiles[i].rotation = quad*angles[i];
    function onEnterSeparate(evt:Event):void {
        captionBox.alpha = 1-paramObject.t;
        navigationPanel.alpha = 1-paramObject.t;
        mcViewInstructions.alpha = paramObject.t;
        btnPrevPage.alpha = paramObject.t;
        btnNextPage.alpha = paramObject.t;
        var quad:Number;
        for (var i:int = 0; i< divisions*divisions; i++) {
            quad = paramObject.t*(1-paramObject.t);
            tiles[i].x = tiles[i].closedPosition.x + paramObject.t*(tiles[i].openPosition.x-tiles[i].closedPosition.x)+variationX[i]*quad;
            tiles[i].y = tiles[i].closedPosition.y + paramObject.t*(tiles[i].openPosition.y-tiles[i].closedPosition.y)+variationY[i]*quad;
            tiles[i].thumbnailHolder.alpha = paramObject.t;
            tiles[i].rotation = quad*angles[i];
    function collapseComplete(evt:Event):void {   
        captionBox.x = galleryHolder.x - captionBox.width/2;
        this.removeEventListener(Event.ENTER_FRAME, onEnterCollapse);
        galleryHolder.addEventListener(MouseEvent.CLICK, onPicClick);
        btnReturn.addEventListener(MouseEvent.CLICK, returnToThumbs);
        btnReturn.mouseEnabled = true;
    function separateComplete(evt:Event):void {
        this.removeEventListener(Event.ENTER_FRAME, onEnterSeparate);
    function prevImage(evt:MouseEvent):void {
        if(isLoading){
            return;
        isLoading=true;
        currentPicIndex -= 1;
        if (currentPicIndex < 0) {
            //pageShift -= numTiles;
            currentPicIndex = numTiles - 1
            //have to do something special if we're on the last page
            if (Math.ceil(Number(pageShift)/Number(numTiles)) == numPages - 1) {
                currentPicIndex -= backSkip;
            prevPage();
        setFlipVisibility();
        spinner.visible = true;
        spinner.startSpinner();
        //set up listeners for load complete or error, go to changeTilesBeforeCollapse on complete
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadComplete);
        loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,loadingError);
        //load image
        loader.load(new URLRequest(largePicURLs[currentPicIndex + pageShift]));
    function nextImage(evt:MouseEvent):void {
        if(isLoading){
            return;
        isLoading=true;
        currentPicIndex += 1;
        if (currentPicIndex > numTiles - 1) {
            //pageShift -= numTiles;
            currentPicIndex = 0;
            //have to do something special if we're on the last page
            if (Math.ceil(Number(pageShift + numTiles)/Number(numTiles)) == numPages - 1) {
                currentPicIndex += backSkip;
            nextPage();
        setFlipVisibility();
        spinner.visible = true;
        spinner.startSpinner();
        //set up listeners for load complete or error, go to changeTilesBeforeCollapse on complete
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadComplete);
        loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,loadingError);
        //load image
        loader.load(new URLRequest(largePicURLs[currentPicIndex + pageShift]));
    function setPagingVisibility():void {
        btnPrevPage.visible = false;
        btnPrevPage.mouseEnabled = false;
        btnNextPage.visible = false;
        btnNextPage.mouseEnabled = false;
        if (pageShift + numTiles < numPics - 1) {
            btnNextPage.visible = true;
            btnNextPage.mouseEnabled = true;
        if (pageShift > 0) {
            btnPrevPage.visible = true;
            btnPrevPage.mouseEnabled = true;
    function btnNextPageHandler(evt:MouseEvent):void {
        nextPage();
    function btnPrevPageHandler(evt:MouseEvent):void {
        prevPage();
    function nextPage():void {
        var k:int;
        pageShift += numTiles;
        if (pageShift + numTiles > numPics) {
            pageShift = numPics - numTiles;
        for (k = 0; k < numTiles; k++) {
            if (tiles[k].thumbnailHolder.numChildren > 0) {
                tiles[k].thumbnailHolder.removeChildAt(0);
            tiles[k].thumbnailHolder.addChild(thumbnails[k + pageShift]);
        setPagingVisibility();
    function prevPage():void {
        var k:int;
        pageShift -= numTiles;
        if (pageShift < 0) {
            pageShift = 0;
        for (k = 0; k < numTiles; k++) {
            if (tiles[k].thumbnailHolder.numChildren > 0) {
                tiles[k].thumbnailHolder.removeChildAt(0);
            tiles[k].thumbnailHolder.addChild(thumbnails[k + pageShift]);
        setPagingVisibility();

    Thank you! you actually gave me an idea which worked. All i did was put an emtpy movie clip on stage and put my actionscript nested within that empty movie clip and it worked. Thanks!

  • Need Help with Inserting Timeline Markers

    Friends,
    I have not use my premiere element 3.2 since 2008 and forgot some of the procedures. now, I need help with the insertion of Timeline Markers. I did what the Help Page showed me. But the markers were not effective in the resulting DVD, or, even when viewing the video in the editing page as if thye were not there! Here is what I did:.
    1)  Click the Timeline button.
    2)  Click in an empty space in a video or audio track in the Timeline to make the Timeline active and deselect any clips.
    3)  Move the current-time indicator in the Timeline to the frame where I need the marker.
    4)  Click the Add Marker icon in the Timeline to place the Marker 5 times where I want them.
    5)  Verified that each Timeline Marker is present at the intended place.
    6)  Burned DVD
    7)  Can NOT jump to any of the intended Marker in the Resulting DVD during playback.
    The question is "What did I do wrong or didn't do?" It seems that I did the same before and worked! Please advise!
    Also, what are the significance of the Red line just below the Timeline and the yellow bars inside the video and audio frames. But after preforming Timeline/Render Work Area, they were all gone? What purposes do they serve and what is the significance of Rendering? Thank you for your help!
    I repeat the process and did a Rendering before making the DVD also. It did not help!
    Andy Lim

    Steve,
    Long time no talk! You used to help me out many times when the PE-1 through PE-3 came out. I was HOPING you would still be around and you are! You came through again this time! Many thanks to you.
    I use the Add DVD Scene button to insert the Markers. They are Green. Made a DVD and the markers work OK although ythey are "effective" during play back using the editing window.
    While that problem was solved, will you come back and answer the other two questions concerning Rendering and the Red/Yellow lines? I would appreciate it very much!
    Andy Lim
    ~~~~~~~~~~~~~~~~

  • Need Help with a Flash Web Project

    Hello, everyone. I am trying to use Flash to make a two-step
    system. I want the flash document to, first, allow a person to
    upload multiple image files and then, second, for the flash
    document be able to create a slideshow with the uploaded images and
    fade in and out from each image until the slideshow is over. I want
    it to be where the flash document creates its own slideshow with
    the images that are uploaded in the first step that I mentioned. I
    want it to do it completely on its own so I need to know how to
    give it the proper AI so that it can do this task.
    So, are there any tips that anyone has on how to do this? Can
    anyone tell me exactly how to do this? I really need help with this
    for my new website project. Thanks in advance, everyone!

    The problem with the text not appearing at all has to do with you setting the alpha of the movieclip to 0%.  Not within the movieclip, but the movieclip itself.  The same for the xray graphic, except you have that as a graphic symbol rather than a movieclip.  To have that play while inhabiting one frame you'll need to change it to a movieclip symbol.
    To get the text to play after the blinds (just a minor critique, I'd speed up the blinds), you will want to add some code in the frame where you added the stop in the blinds animation.  You will also need to assign instance names for the text movieclips in the properties panel, as well as place a stop(); in their first frames (inside).
    Let's say you name them upperText and lowerText.  Then the code you'd add at the end of the blinds animation (in the stop frame) would be...
    _parent.upperText.play();
    _parent.lowerText.play();
    The "_parent" portion of that is used to target the timeline that is containing the item making the command, basically meaning it's the guy inside the blinds telling the guy outside the blinds to do something.
    You'll probably want to add stops to the ends of the text animations as well.
    If you want to have the first text trigger the second text, then you'd take that second line above and place it in the last frame of the first text animation instead of the blinds animation.
    Note, on occasion, undeterminably, that code above doesn't work for some odd reason... the animation plays to the next frame and stops... so if you run into that, just put a play(); in the second frame to help push it along.
    PS GotoandPlay would actually be gotoAndPlay, and for the code above you could substitute play(); with gotoAndPlay(2);

  • Need help with Adobe Premiere Elements 2

    I can drag a large high rez jpeg into timeline. Then when I click to playback....it gets more pixelated. That's a bad beginning. Then, when I go to export it, I've tried several extensions. All look bad during playback on YouTube. This should be pretty simple. High quality jpeg, but is fuzzy in movie. What's going wrong?

    hi Bill -
    ok fine. I have PSDs too. I tried what you said.
    I put a PSD right beside a JPEG in the timeline. I rendered it (which I
    didn't know to do because the instructions don't even mention it. The
    instructions are terrible. Seems it leaves out a lot of info.)
    So, then I click PLAY on my monitor. I see no difference between the PSD
    and the JPEG yet. So, if I want to put this on YouTube, what's the best way
    exactly, without gettting too technical?  It looks like I have the choice
    between Exporting in Mpeg or Quicktime or Windows Media. I think youtube
    likes wmv.
    From: Bill Hunt <[email protected]>
    To: Tommy Midyette <[email protected]>
    Date: 6/3/2010 10:01:24 AM
    Subject: need help with Adobe Premiere Elements 2
    >
    When you drag the stills to the Timeline, there should be a red line
    above them. Press Enter to Render the Timeline.
     
    Do not know the particulars of PrE 2, but in later versions, you can
    Rt-click on the Program Monitor, and choose Magnification = 100%, rather
    than Fit. You might have to resize your Program Monitor, but check at 100%.
     
    Also remember a few points:
     
    1.) You are looking at a DVD-quality image now, and that was designed
    with low-rez CRT TV's in mind, and NOT hi-rez computer monitors. DVD vs
    hi-rez sources and displays is probably less than what VHS vs DVD was, not
    that long ago.
    2.) You are looking at an emulation, a preview
    3.) Your images have already been compressed to JPEG once, loosing
    quality. That is why I always work in PSD, especially if there has already
    been one JPEG compression, whether in camera, or in the image processing
    stage. I keep JPEG either out of my workflow, or as limited, as is
    possible. Some do not see the quality loss with JPEG compression, but I do,
    and if I can create images that are as good as it gets, I know that my
    clients will be happy.
     
    Good luck,
     
    Hunt
    >

  • Need help with CS4 transitions

    Hi,
    I am trying to use a cross dissolve transition. To make it simple, I have two clips. I'm obviously doing something wrong here. I've watched the Adobe TV tutorial and all the guy does is to select cross dissolve from the effects box, and drags it over to the clip on the timeline. I think I am doing the exact same thing, but when I play my clip back, I can see no transition effect played back.
    Maybe I'm putting it in the wrong place I thought, so I tried putting it in front of the split between the two clips. Then again at the beginning of the second clip. Neither of them worked, so I shut CS4 down, and booted it up again. I started a new project, and put two new clips in it. I put the dissolve transition at the beginning of the second clip, and it worked like a charm. Then to see if that was a fluke, went to a point about 3 minutes earlier in the timeline. So now I am on clip one. I go and make a cut in the timeline, and try to place another Cross dissolve at this spot. It appears to place the transition there because it creates the rectangular box, and it has the name cross dissolve in that rectangular box,but when I try to play it to see the transition, it isn't working. Go back to the beginning of the second clip, and that one still works perfectly.
    I noticed that there is a difference in the appearance of the two cross dissolve rectangular boxes. The one that works has a single diagonal line that goes from lower left to upper right in the cross dissolve box, and then there are a whole series of diagonal lines that go from upper left to lower right all across the cross dissolve box . It looks like a whole bunch of dark gray and white backslashes. In the one that doesn't work, there is just that single diagonal line that goes from lower left to upper right. No backslashes on this one. What am I doing right in the first one, but not in the second?
    I find that it will work perfectly if I put in a new clip. If I put in the Cross Dissolve at the beginning of a new clip that I add to the timelime,  it will work perfectly. It is only when I try to split a clip that is already on the timeline, and then put the cross dissolve in at that point.
    Perhaps it is not possible to do what I am attempting to do. Maybe you can't split a clip and place the transition at that point?

    When I am shooting video, it is not unusual for me to be taping a scene of a mountain, for example, and then put the camera on pause, while I briefly position myself to take video of the river that is flowing at my feet. That is what is happened on this clip that I am attempting to put the transition in between. Rather than having the scene just instantly change at this point, from the mountain to the river, it would be nice to have a smoother transition then that.
    My mind was working on the problem while sleeping last night, and I think I might understand how to handle it. It might have been too simple for me to think about yesterday. I haven't tried it yet, but would it not work, to insert the mountain scene from my source monitor into the timeline, and then go back and insert the river scene into the time line instead of inserting both of them at the same time. Would these not now be two separate clips on the timeline, and the transition could now be applied?
    Your analogy with the DJ is very good, but it isn't quite the same. You are correct in that he would be only fading from one song to the same spot on the same song. In my case I am going from an image of a mountain to an image of a river. Same clip, but different images. I appreciate the help, and your thoughts.
    Terry Lee Martin
    Date: Sat, 22 Aug 2009 23:15:55 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with CS4 transitions
    From a creative standpoiint, I don't understand the desire to transition from one clip to the exact same spot on that same clip.  That's like a DJ at a night club fading from one song to the exact same spot on that same song being played on a second CD player.  What's the point?
    >

  • Hi, I need help with scrolling

    Hello I am Kevin Jin, I am working a huge project acually not that big, but I need help with five things, i mihgt have more things in my mind but here it is
    1. I need help with scrolling like where you have buttons for example or press on a navigation bar tab, then it goes to that specific pace of the page, for a one page website, for example some sites you press on contacts and gose down to the bottom of the page where the contacts place is located, not opening a new link.
    2.Second also I need help with navigation bar, where it fallows the scroll as it gose down, like for example when it is html the object is fixed to the top, and when you scroll down it will fallow it it,
    3.I need Parallex scrolling where you can have the timeline or animations run while you scroll in the meantime and have animation running all the time, for example the infographic site where the bees are fluying but still have seperate animations while you scroll
    4.I am so sorry i have two more to go, i appreciate your help, I would also like to ask if like looping each animations sperately, not looping the whole timeline, can it be possible to loop an animation while you have all the interactivity witht he site like looping seperately all the time, without interfeering with all the other animation
    5.I also are wondering if you can create multiple pages on one animate project, like multiple pages with html
    I just moved on to edge animate from html, and html was also beirf learn for me and mostly i was doing design work, and i thought getting out of graphic river and moving on the theme forest would be a better idea for me, thank you guys so much of the help and add me on skype : kevin2019170 or add me on facebook ; [email protected] or graphicriver, www.graphicriver.net/user/phantomore I would appriciate if you just would like contact me through SNS since I have that in hany 24 hours long, but the thred will also do, thank you doo much foryour help,
    P.S, I want also all the five things to work on one aimate project not interfeering with other ideas liek all five questions i had should run on one site,
    THANK YOU SO MUCH FOR YOUR HELP AND I APPRICIATE YOUR HELP!

    1.
    write this code in your button Click
    $('html,body').animate({scrollTop: sym.$("Your Symbole Name Here").offset().top}, "slow"); // scroll to the top of that symbol name
    Or :
    $('html,body').animate({"scrollTop":"600px"}, 750); // Higher value means slower , scroll to top page
    1 and 2 see this post http://forums.adobe.com/message/5531344#5531344
    3 use edge commons plugin http://www.edgedocks.com/edgecommons
    4.just put the animations behind eachother so when 1 is done, start with the animating the other symbol/div
    5. i thin its best just to make for every page a new project or make the site in muse.

  • Need help with a currently "in-use" form we want to switch to Adobes hosting service

    Hi, I am in desperate need of help with some issues concerning several forms which we currently use a paid third party (not Adobe) to host and "re-distribute through email"...Somehow I got charged $14.95 for YOUR service, (signed up for a trial, but never used it)..and now I am paying for a year of use of the similar service which Adobe is in control of.  I might want to port my form distribution through Adobe in the hopes of reducing the errors, problems and hassles my customers are experiencing when some of them push our  "submit button". (and I guess I am familiar with these somewhat from reading what IS available in here, and I also know that, Adobe is working to alleviate some of these " submit"  issues, so let's don't start by going backwards, here) I need solutions now for my issues or I can leave it as is, If Adobe's solution will be no better for my end users...
    We used FormsCentral to code these forms and it works for the most part (if the end-user can co-operate, and thats iffy, sometimes), but I need help with how to make it go through your servers (and not the third party folks we use now), Not being cruel or racist here, but your over the phone "support techs" are about horrible & I cannot understand them or work with any of them, so I would definitely need someone who speaks English and can understand the nuances of programming these forms, to please contact me back. (Sorry, but both those attributes will be required to be able to help me, so, no "newbie-interns" or first week trainees are gonna cut it).... If you have anyone who fits the bill on those items and would be willing to help us, please contact me back at your earliest convenience. If we have to communicate here, I will do that & I can submit whatever we need to & to whoever we need to.
    I need to get this right and working for the majority of my users and on any platform and OS.
    You may certainly call me to talk about this, and I have given my number numerous times to your (expletive deleted) time wasting - recording message thingy. So, If it's not available look it up under [email protected]
    (and you will probably get right to me, unlike my and I'm sure most other folks',  "Adobe phone-in experiences")
    Thank You,
    Michael Corman
    VinylCouture
    Phenix City, Alabama  36869

    Well, thanks for writing back...just so you know...I started using Adobe products in 1987, ...yeah...back then...like Illustrator 1 & 9" B&W Macs ...John Warnock's Helvetica's....stuff like that...8.5 x 11 LaserWriters...all that good stuff...I still have some of it working on a mac...much of it was stuff I bought. some stuff I did not...I'm not a big fan of this "cloud" thing Adobe has foisted upon the creatives of the world...which I'm sure you can tell...but the functionality and usefulness of your software can not be disputed, so feel free to do whatever we will continue to pay for, ...I am very impressed with CC PS on the 64 bit PC and perhaps I will end up paying you the stipend that you demand for the other services.
    So  I guess that brings us to our problem.. a few years back and at the height of the recession and near bankruptcy myself,  I was damn lucky and hit on something and began a small arts and crafts supply service to sell my products online to a very "niche market" ...I had a unique product and still sell that product (plus others) online...My website is www.vinylcouture.com...Strange? Yes...but there is a market it seems, for everything now, and this is the market I service...Catagorically, these are 99%+ women that use these "adhesive, sticky backed vinyl products"  to make different "craft items" that are just way too various and numerous to go into... generally older women, women who are computer illiterate for the most part...and all this is irrelevant to my problem, but I want you to have every bit of background on this and especially the demographic we are dealing with, so we can get right to the meat of the problem.
    OK...So about two years ago, I decided to offer a "plain sheet" product of a plain colored "stick back" vinyl... it is available in multiple quantities of packs ( like 5 pieces, 10 pieces, 15 pieces, in a packi  & so on)...and if you are still on my site.. go to any  "GO RIGHT TO OUR ORDER PAGE"  button, scroll down a little...and then to the "PLAIN VINYL" section...you will see the Weebly website order process.) You can back out from here, I think,..but, anyway this product is available in 63 colors + or - a few. So then the problem is,  how do they select their individual colors within that (whatever) pack?... .
    So my initial idea was to enable a "selection form" for these "colors" that would be transmitted to me via email as 'part" of the "order process".. We tried getting our customers to submit a  " a list" ( something my competitiors still do, lol, poor bastards)......but that..is just unbelievable..I can't even begin to tell you what a freakin' nightmare that was...these people cannot even count to 10, much less any higher... figuring out what colors to list and send me... well, lets just say, it wasn't working......I had to figure out a better way...Something had to be done.
    So after thinking this all out,  and yeah...due to my total ignorance, i figured that we could make a form with Live Cycle Designer (Now Forms Central)...(back then something that was bundled with Adobe Acrobat Pro), I believe, and thats what this thing was authored in... and it would be all good...LOL!
    Well not so simple...as you well know, Adobe Acrobat would NOT LET YOU EMAIL anything from itself.....it just wouldn't work (and I know why, and all that hooey), but not being one to take NO for answer,.I started looking for a way to make my little gizmo work.. So I found this company that said they can "hijack" (re-direct actually) the request to email, bypass the wah-wah, and re-transmit it to the proper parties.....for less than $100 a year,  I think...its called http://pdf-fillableforms.com/.
    A nice gentleman named Joseph Silva helped us program the thing to go to his servers and back out. Please dont hassle them...I need them...for now..it basically does work...try it...you should get back a copy of the form that you filled out...good luck however,  if you're on MAC OSX or similar...
    I have included a copy of both of our forms (and feel free to fill it out and play with it)...just put test somewhere on it...(and you must include YOUR email or it will balk)..they are supposed to be mostly identical, except one seems to be twice as large....generating a 1.7 meg file upon submission, while the other one only generates a 600K file or so...thats another issue for another day or maybe you can advise on that also...
    OK so far so good......In our shop, once Grandma buys a 10 pack (or whatever), Only then she gets to the link on her receipt page ro the relevant "selection form" ,(this prevents "Filling and Sending"  with "no order" and "no payment", another early problem we had)... which they can click on and it will usually download and open up on their device if all goes well...Then our little form is supposed to be fillable and is supposed to ADD UP all the quantities, so grandma knows how many she is buying and so forth right on the fly,  and even while she changes her mind..., and IT'S LARGE so grandma can see it, and then it TOTALS it all up for them, ( cause remember, they can NOT add)..,  except there is a programming bug (mouse-click should be a mouse-up probably or something..) which makes you click in the blank spaces to get to a correct TOTAL...about 70-80% of our customers can enable all these features and usually the process completes without problems for them especially on PC's running Windows OS and Acrobat Reader X or XI...at least for most... Unfortunately it is still not the "seamless process" I would like or had envisioned for the other folks out there that do have trouble using our form....  Many folks report to us the following issues that we know of.  First of all it takes too much time to load up...We know its HUGE...is there anyway that you can see, to streamline this thing? I would love for it to be more compact...this really helps on the phones and pads as I'm sure you well know.
    Some just tell us,"it WON'T work"....I believe this is because they are totally out of it and dont even have Adobe Reader on their machine, & don't know how to get it ( yes, we provide the links).....or it's some ancient version....no one can stop this one...
    It almost always generates some kind ( at least one time)  of "error message" which we do warn them about..., telling one,  basically that "Acrobat doesnt even like this happening at all, and it could be detrimental to ones computer files", blah-blah...(this freaks grandma out really bad)...& usually they end up not even trying to send it...  and then I get calls that even you wouldn't believe...& If they DO nut up and push the Red "Submit Form" button, it will usually send the thing to us (and also back to them at the "required email address" they furnished on the form, thats what the folks at the "fillable forms place" do) so, if it's performing it's functions, why it is having to complain?. What are we doing wrong?....and how can I fix it?...Will re-compiling it or saving it as a newer version of "FormsCentral" correct any of these problems ?
    Ok, so that should keep you busy for a minute and we can start out with those problems...but the next thing is, how can I take advantage of YOUR re-direct & hosting services?, And will it get rid of the error messages, and the slowness, and the iOS incompatibilities ? (amazingly,  the last iOS Reader version worked almost OK.. but the newest version doesnt seem to work with my form on my iphone4)  If it will enable any version of the iOS to send my form correctly and more transparently, then it might be worth the money...$14.95 a MONTH you say. hmmmmm...Better be good.
    Another problem is, that I really don't need 5000 forms a month submitted. I think its like 70-100 or less....Got any plans for that?  Maybe I'm just not BIG ENOUGH to use Adobe's services, however in this case, I really don't care whose I do use as long as the product works most correctly for my customers as well as us. Like I said, If I'm doing the best I can, I won't change anything, and still use the other third party, If Adobe has a better solution, then i'm all for that as well. In the meantime, Thanks for any help you can provide on this...
    Michael Corman
    VinylCouture.com
    (706) 326-7911

  • Need help with JTextArea and Scrolling

    import java.awt.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    import javax.swing.*;
    public class MORT_RETRY extends JFrame implements ActionListener
    private JPanel keypad;
    private JPanel buttons;
    private JTextField lcdLoanAmt;
    private JTextField lcdInterestRate;
    private JTextField lcdTerm;
    private JTextField lcdMonthlyPmt;
    private JTextArea displayArea;
    private JButton CalculateBtn;
    private JButton ClrBtn;
    private JButton CloseBtn;
    private JButton Amortize;
    private JScrollPane scroll;
    private DecimalFormat calcPattern = new DecimalFormat("$###,###.00");
    private String[] rateTerm = {"", "7years @ 5.35%", "15years @ 5.5%", "30years @ 5.75%"};
    private JComboBox rateTermList;
    double interest[] = {5.35, 5.5, 5.75};
    int term[] = {7, 15, 30};
    double balance, interestAmt, monthlyInterest, monthlyPayment, monPmtInt, monPmtPrin;
    int termInMonths, month, termLoop, monthLoop;
    public MORT_RETRY()
    Container pane = getContentPane();
    lcdLoanAmt = new JTextField();
    lcdMonthlyPmt = new JTextField();
    displayArea = new JTextArea();//DEFINE COMBOBOX AND SCROLL
    rateTermList = new JComboBox(rateTerm);
    scroll = new JScrollPane(displayArea);
    scroll.setSize(600,170);
    scroll.setLocation(150,270);//DEFINE BUTTONS
    CalculateBtn = new JButton("Calculate");
    ClrBtn = new JButton("Clear Fields");
    CloseBtn = new JButton("Close");
    Amortize = new JButton("Amortize");//DEFINE PANEL(S)
    keypad = new JPanel();
    buttons = new JPanel();//DEFINE KEYPAD PANEL LAYOUT
    keypad.setLayout(new GridLayout( 4, 2, 5, 5));//SET CONTROLS ON KEYPAD PANEL
    keypad.add(new JLabel("Loan Amount$ : "));
    keypad.add(lcdLoanAmt);
    keypad.add(new JLabel("Term of loan and Interest Rate: "));
    keypad.add(rateTermList);
    keypad.add(new JLabel("Monthly Payment : "));
    keypad.add(lcdMonthlyPmt);
    lcdMonthlyPmt.setEditable(false);
    keypad.add(new JLabel("Amortize Table:"));
    keypad.add(displayArea);
    displayArea.setEditable(false);//DEFINE BUTTONS PANEL LAYOUT
    buttons.setLayout(new GridLayout( 1, 3, 5, 5));//SET CONTROLS ON BUTTONS PANEL
    buttons.add(CalculateBtn);
    buttons.add(Amortize);
    buttons.add(ClrBtn);
    buttons.add(CloseBtn);//ADD ACTION LISTENER
    CalculateBtn.addActionListener(this);
    ClrBtn.addActionListener(this);
    CloseBtn.addActionListener(this);
    Amortize.addActionListener(this);
    rateTermList.addActionListener(this);//ADD PANELS
    pane.add(keypad, BorderLayout.NORTH);
    pane.add(buttons, BorderLayout.SOUTH);
    pane.add(scroll, BorderLayout.CENTER);
    addWindowListener( new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void actionPerformed(ActionEvent e)
    String arg = lcdLoanAmt.getText();
    int combined = Integer.parseInt(arg);
    if (e.getSource() == CalculateBtn)
    try
    JOptionPane.showMessageDialog(null, "Got try here", "Error", JOptionPane.ERROR_MESSAGE);
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Got here", "Error", JOptionPane.ERROR_MESSAGE);
    if ((e.getSource() == CalculateBtn) && (arg != null))
    try{
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 1))
    monthlyInterest = interest[0] / (12 * 100);
    termInMonths = term[0] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 2))
    monthlyInterest = interest[1] / (12 * 100);
    termInMonths = term[1] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 3))
    monthlyInterest = interest[2] / (12 * 100);
    termInMonths = term[2] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Invalid Entry!\nPlease Try Again", "Error", JOptionPane.ERROR_MESSAGE);
    }                    //IF STATEMENTS FOR AMORTIZATION
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 1))
    loopy(7, 5.35);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 2))
    loopy(15, 5.5);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 3))
    loopy(30, 5.75);
    if (e.getSource() == ClrBtn)
    rateTermList.setSelectedIndex(0);
    lcdLoanAmt.setText(null);
    lcdMonthlyPmt.setText(null);
    displayArea.setText(null);
    if (e.getSource() == CloseBtn)
    System.exit(0);
    private void loopy(int lTerm,double lInterest)
    double total, monthly, monthlyrate, monthint, monthprin, balance, lastint, paid;
    int amount, months, termloop, monthloop;
    String lcd2 = lcdLoanAmt.getText();
    amount = Integer.parseInt(lcd2);
    termloop = 1;
    paid = 0.00;
    monthlyrate = lInterest / (12 * 100);
    months = lTerm * 12;
    monthly = amount *(monthlyrate/(1-Math.pow(1+monthlyrate,-months)));
    total = months * monthly;
    balance = amount;
    while (termloop <= lTerm)
    displayArea.setCaretPosition(0);
    displayArea.append("\n");
    displayArea.append("Year " + termloop + " of " + lTerm + ": payments\n");
    displayArea.append("\n");
    displayArea.append("Month\tMonthly\tPrinciple\tInterest\tBalance\n");
    monthloop = 1;
    while (monthloop <= 12)
    monthint = balance * monthlyrate;
    monthprin = monthly - monthint;
    balance -= monthprin;
    paid += monthly;
    displayArea.setCaretPosition(0);
    displayArea.append(monthloop + "\t" + calcPattern.format(monthly) + "\t" + calcPattern.format(monthprin) + "\t");
    displayArea.append(calcPattern.format(monthint) + "\t" + calcPattern.format(balance) + "\n");
    monthloop ++;
    termloop ++;
    public static void main(String args[])
    MORT_RETRY f = new MORT_RETRY();
    f.setTitle("MORTGAGE PAYMENT CALCULATOR");
    f.setBounds(600, 600, 500, 500);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    }need help with displaying the textarea correctly and the scroll bar please.
    Message was edited by:
    new2this2020

    What's the problem you're having ???
    PS.

  • Need help with trim and null function

    Hi all,
    I need help with a query. I use the trim function to get the first three characters of a string. How do I write my query so if a null value occurs in combination with my trim to say 'Null' in my results?
    Thanks

    Hi,
    Thanks for the reply. What am I doing wrong?
    SELECT trim(SUBSTR(AL1.user_data_text,1,3)),NVL
    (AL1.user_data_text,'XX')
    FROM Table
    I want the XX to appear in the same column as the
    trim.The main thing you're doing wrong is not formatting your code. The solution may become obvious if you do.
    What you're saying is:
    SELECT  trim ( SUBSTR (AL1.user_data_text, 1, 3))
    ,       NVL ( AL1.user_data_text, 'XX' )
    FROM    Tablewhich makes it clear that you're SELECTing two columns, when you only want to have one.
    If you want that column to be exactly like the first column you're currently SELECTing, except that when that column is NULL you want it to be 'XX', then you have to apply NVL to that column, like this:
    SELECT  NVL ( trim ( SUBSTR (AL1.user_data_text, 1, 3))
                , 'XX'
    FROM    Table

  • I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in?

    I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in? When I try to press online the same thing pops up and I have no way of logging in or asking for help.

    Hi,
    iChat (it would help to know which version) can accept Apple IDs as valid AIM Screen Names.
    However if you have iChat 5 or earlier you cannot use ones ending in @me.com or @icloud.com issued by iCloud. (they can be used in iChat 6 or Messages as these versions make a double login to AIM and Apple to allow the use of the password).
    In addition if you are using an Apple ID for an AIM Screen Name the password still needs to keep to the 16 character limit that AIM has.
    AN @mac.com name can be used on any version of iChat  (Until the 30th June 2014)
    As it does not need a double check with Apple you can use it to log in to the AIM Web pages
    Login here with an AIM Name registered at AIM or and @mac.com name and see if you get any suspended account messages.
    Sometimes account can be suspended. Usually because something has triggered the "Unusual Activity" item.
    About a year ago many @mac.com users that travelled out of their own country found themselves suspended when they got home.
    If the Name checks out of if an Apple ID the password in known to be 16 characters or Less then do this:-
    In Lion upwards open a Finder Window and use the Go Menu whilst holding down the ALT key.
    Select the Library that appears in the menu list.
    Navigate to Preferences.
    (If you have version earlier than Lion the just navigate to ~/Library/Preferences (that's the Library in you Home - Little House icon - folder)
    Fnd com.apple.ichat.aim.plist (even if you are using Messages)
    Drag the file to the Trash and Restart the app.
    7:39 pm      Thursday; May 29, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Need help with Airport Express and so on.

    Ok so my main problem before getting into what I need help with here is that our MacBooks and now my iPhone 6 plus isn't staying online. Keep getting booted off and then I either have to select the network again or it will eventually go back on. If anyone has a solution or so please feel free to answer that as well. I'm running on Roadrunner with a Netgear 600 wireless router and a motorola modem. Both of which I'll leave the link to below for a better look.
    My Main Question: So I'm looking at a new wireless router mainly and possibly a new modem. I know Apple products are trustworthy but how good is the Airport Express and other Airport products. Also what is the Maximum speed and Maximum data speed for the cheapest express station and if anyone knows the speeds of the other devices it would be greatly appreciated.

    DSL Router to Netgear 5-port Switch and I used the switch to connect to Airport Extreme, TV, Blue-Ray DVD player and DirecTV Receiver.
    The AirPort Extreme base station (AEBS) is a router so it will do what you need.
    You need to reconfigure your setup. Connect the WAN port of the AEBS to the DSL router. Then connect the Netgear switch to one of the LAN ports on the AEBS. The AEBS will properly share the connection.

  • I need help with shooting in my flash game for University

    Hi there
    Ive tried to make my tank in my game shoot, all the code that is there works but when i push space to shoot which is my shooting key it does not shoot I really need help with this and I would appriciate anyone that could help
    listed below should be the correct code
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    listed below is my entire code
    import flash.display.MovieClip;
        //declare varibles to create mines
    //how much time before allowed to shoot again
    var cTime:int = 0;
    //the time it has to reach in order to be allowed to shoot (in frames)
    var cLimit:int = 12;
    //whether or not the user is allowed to shoot
    var shootAllow:Boolean = true;
    var minesInGame:uint;
    var mineMaker:Timer;
    var cursor:MovieClip;
    var index:int=0;
    var tankMine_mc:MovieClip;
    var antiTankmine_mc:MovieClip;
    var maxHP:int = 100;
    var currentHP:int = maxHP;
    var percentHP:Number = currentHP / maxHP;
    function initialiseMine():void
        minesInGame = 15;
        //create a timer fires every second
        mineMaker = new Timer(6000, minesInGame);
        //tell timer to listen for Timer event
        mineMaker.addEventListener(TimerEvent.TIMER, createMine);
        //start the timer
        mineMaker.start();
    function createMine(event:TimerEvent):void
    //var tankMine_mc:MovieClip;
    //create a new instance of tankMine
    tankMine_mc = new Mine();
    //set the x and y axis
    tankMine_mc.y = 513;
    tankMine_mc.x = 1080;
    // adds mines to stage
    addChild(tankMine_mc);
    tankMine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal(evt:Event):void{
        evt.target.x -= Math.random()*5;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseMine();
        //declare varibles to create mines
    var atmInGame:uint;
    var atmMaker:Timer;
    function initialiseAtm():void
        atmInGame = 15;
        //create a timer fires every second
        atmMaker = new Timer(8000, minesInGame);
        //tell timer to listen for Timer event
        atmMaker.addEventListener(TimerEvent.TIMER, createAtm);
        //start the timer
        atmMaker.start();
    function createAtm(event:TimerEvent):void
    //var antiTankmine_mc
    //create a new instance of tankMine
    antiTankmine_mc = new Atm();
    //set the x and y axis
    antiTankmine_mc.y = 473;
    antiTankmine_mc.x = 1080;
    // adds mines to stage
    addChild(antiTankmine_mc);
    antiTankmine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal_2(evt:Event):void{
        evt.target.x -= Math.random()*10;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseAtm();
    function moveForward():void{
        bg_mc.x -=10;
    function moveBackward():void{
        bg_mc.x +=10;
    var tank_mc:Tank;
    // create a new Tank and put it into the variable
    // tank_mc
    tank_mc= new Tank;
    // set the location ( x and y) of tank_mc
    tank_mc.x=0;
    tank_mc.y=375;
    // show the tank_mc on the stage.
    addChild(tank_mc);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onMovementKeys);
    //creates the movement
    function onMovementKeys(evt:KeyboardEvent):void
        //makes the tank move by 10 pixels right
        if (evt.keyCode==Keyboard.D)
        tank_mc.x+=5;
    //makes the tank move by 10 pixels left
    if (evt.keyCode==Keyboard.A)
    tank_mc.x-=5
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    if (tank_mc.hitTestObject(antiTankmine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(antiTankmine_mc);
    if (tank_mc.hitTestObject(tankMine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(tankMine_mc);
        //var maxHP:int = 100;
    //var currentHP:int = maxHP;
    //var percentHP:Number = currentHP / maxHP;
        //Incrementing the cTime
    //checking if cTime has reached the limit yet
    if(cTime < cLimit){
        cTime ++;
    } else {
        //if it has, then allow the user to shoot
        shootAllow = true;
        //and reset cTime
        cTime = 0;
    function updateHealthBar():void
        percentHP = currentHP / maxHP;
        healthBar.barColor.scaleX = percentHP;
        if(currentHP <= 0)
            currentHP = 0;
            trace("Game Over");
        updateHealthBar();

    USe the trace function to analyze what happens and what fails to happen in the code you showed.  trace the conditional values to see if they are set up to allow a shot when you press the key

  • Need help with conditional query

    guys this is just an extension of this post that Frank was helping me with. im reposting because my requirements have changes slightly and im having a hell of a time trying to modify the query.
    here is the previous post.
    need help with query that can look data back please help.
    CREATE TABLE "FGL"
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )data
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');
    I need to find the greatest grant year for the grant by a period parameter.
    once i find the greatest year i need to check the value of period 14 for that grant for the previous year and add it to the budget amount for that grant. however if their is an entry in the greatest year for period 00 then i need to ignore the period 14 of previous year and do this calculation current period +(current period - greatest year 00)
    hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
    because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
    period 2 amount $ 600
    period 0 amount $ 400 - period 2 amount of $600 = 200
    600+200 = $800
    if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
    i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
    can you please help me out.
    here is the query supplied by frank kulash who gracefully put this together for me.
    WITH     got_greatest_year     AS
         SELECT     fgl.*     -- or whatever columns are needed
         ,     MAX ( CASE
                     WHEN  fgl_period = :given_period
                     THEN  fgl_grnt_year
                    END
                  ) OVER ()     AS greatest_year
         FROM     fgl
    SELECT     SUM (fgl_budget)     AS total_budget     -- or SELECT *
    FROM     got_greatest_year
    WHERE     (     fgl_grnt_year     = greatest_year
         AND     fgl_period     = :given_period
    OR     (     fgl_grnt_year     = greatest_year - 1
         AND     fgl_period     = 14
    ;Miguel

    Hi, Miguel,
    Are you waying that, when the greatest year that has :given_period also has period='00' (or '0', or whatever you want to use), then you want to double the budget from the given_period (as well as subtract the budget from the '00', and not count the pevious year's '14')? If so, add another condition to the CASE statement which decides what you're SUMming:
    WITH     got_greatest_year     AS
         SELECT       TO_NUMBER (fgl_grnt_year)     AS grnt_year
         ,       fgl_period
         ,       TO_NUMBER (fgl_budget)     AS budget
         ,       MAX ( CASE
                       WHEN  fgl_period = :given_period
                       THEN  TO_NUMBER (fgl_grnt_year)
                      END
                    ) OVER ()     AS greatest_year
         FROM       fgl
    ,     got_cnt_00     AS
         SELECT     grnt_year
         ,     fgl_period
         ,     budget
         ,     greatest_year
         ,     COUNT ( CASE
                       WHEN  grnt_year     = greatest_year
                       AND       fgl_period     = '00'
                       THEN  1
                         END
                    ) OVER ()          AS cnt_00
         FROM    got_greatest_year
    SELECT       SUM ( CASE
                        WHEN  grnt_year     = greatest_year                    -- New
                  AND       fgl_period     = :given_period                    -- New
                  AND       cnt_00     > 0            THEN  budget * 2     -- New
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = :given_period       THEN  budget
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = '00'            THEN -budget
                        WHEN  grnt_year     = greatest_year - 1
                  AND       fgl_period     = '14'     
                  AND       cnt_00     = 0            THEN  budget
                    END
               )          AS total_budget
    FROM       got_cnt_00
    ;You'll notice this is the same as the previous query I posted, except for 3 lines maked "New".

Maybe you are looking for

  • Import Declaration after goods receipt - Inward Processing Help

    Looking for some advice on setting up Inward Processing as I am running into issues.  Our system makeup is this: ECC - 617 GTS - 10.1 One of our facilities is setup so that they have duty deferment for imported components that are used in manufacturi

  • IPod shuffle wont play but shows up on PC/iTunes....

    Hey Guys, Recently my iPod Shuffle decided to die and stop working. The battery check button doesnt work (no LED lights up) and it simply wont turn on and play any music. The most ironic thing is that, when plugged in my PC, Windows XP recognises it.

  • Adobe reader not open the file immediately after saving it  with Microsoft Office

    I have an older version Adobe Reader 9, and worked fine until today. I did the upgrade to Adobe Reader XI (11.0.06). I have Window´s Office 2010 on my computer. When I save a document on *pdf file, Adobe starts automatically and open the document (Op

  • Memory Card Transfer

    How do I transfer a photo already downloaded on Iphoto onto a memory card which will be inserted into a photo frame?

  • Not Displaying Canvas/Viewer

    I cannot see the video/graphics in the viewer!! I've tried multiple options, from changing it to RGB only, Color, etc....but there is nothing displaying. I've even opened up a premade Motion template to make sure, and still nothing!? It may be someth