Help with timeline actions

Hey guys, I'm currently working on my portfolio site and I'm trying to make my flash animation play until say frame 150 and then at 150 load a seperate web page. is this possible? It seems simple enough, I mean just like how a button could open another page I want the timeline/animation to load it automatically. Any help is appreciated.

I'd say your url is the problem based on the results you get.  That url you show appears tainted with questionable symbols, which may just be the forum spitting out nonsense, and that undefined at the end of it indicates something is missing somewhere.  Is there a reason you cannot use a relative path instead of an absolute one?

Similar Messages

  • Help with folder actions

    Automator is still a little confusing to me, I have virtually no experience, but wish to have automated emails sent when the contents of certain folders in my idisk/public folder are updated.
    First thing that confuses me is I thought automator worked with folder actions, it doesn't seem to for me and am left running an applescript to detect the changes and tell automator to send the email. This seems rather long winded and not what I'd expected.
    Second thing I can get what I've done to send emails when items are added to the folder, but not when they are modified/updated which is what I wanted. This is due to my lack of experience with scripting so any help would be appreciated.
    What I've got so far is
    '....on adding folder items to this_folder after receiving added_items
    try
    tell application "Automator".....'
    how do I change this to do what I want ?

    Winston,
    You need to save the Automator workflow as a folder action plug-in with it attached to the folder of interest. You start this process by selecting the "Save as Plug-in..." command under the File menu. You will then have to enter the name you want to use for the plug-in and select the "folder action" from the "Plug in for:" drop-down menu. An "Attached to Folder:" drop-down menu will appear and you can select one of those presented or navigate to something else by selecting the "Other..." choice (which you will have to do to get to your idisk/public folder).
    Once this is done then every time something is added or modified within the watched folder the Automator workflow will be triggered and run. In your case, because the folder is on iDisk, it will only be triggered when you are logged into your iDisk account.

  • Looping animation not working with Timeline Action...

    I've used the Timline Actions Panel a few other times to loop animations by just selecting 'Complete' and then using sym.play(0); to return to the beginning - pretty hard to mess up I thought.  I have a new animation where this is just not working at all.  Could there be any other reason this is not working or perhaps something I'm just not looking at? 

    Hey,
    Sure, no problem.  Here's a link a a demo of it: http://www.damon9.com/dev/publish/web/EndofDays.html
    Not sure how much you can see from just that, but inside the Edge comp there's nothing crazy going on.  4 layers, 2 rotating 6 degrees a second, stops at 60 seconds (when it should start back from the beginning).  I've tried the usual Timeline Action sym.play(0); on complete and also just adding a trigger at 60 seconds of sym.play(0);
    Just can't imagine what else it could be.
    Thanks
    Damon

  • 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!

  • Help with installing actions PSE9 on Mac

    Hi everyone! Thank goodness for support forums! I've been searching all over this afternoon to see if I could just install some simple presets in PSE9--I just got it and installed it on OSX 10.6.
    I just can't figure out how to install actions. I've tried a number of things and it seems pretty simple but for some reason nothing is working (and yes, I've restarted PSE, multiple times in fact).
    At first I was told to go to Library > Application Support > Adobe > Adobe Photoshop Elements 9. The only file in there is "Presets" which I opened and there was a list of different files for different stuff (such as patterns and gradients). I thought it looked relatively easy because there's an empty folder in there called "Actions" into which I dragged my actions files. That didn't work, so I tried including the 64 x 64 png image with it, still no luck. Another place said that you should go to Applications > Adobe Photoshop Elements 9 > Locales > en_US and there would be a file called Mediadatabase.db3 that I'd have to edit the file name--I don't have that file in there and it's nowhere to be found on my computer.
    So long story short, whichever method I try, actions still won't work/show up! I'd really appreciate any help on this. Thanks in advance!

    For the first file path, it sounds like you are in the wrong library. You have three library files:
    Your username>library
    System>library
    and the one at the top level of your hardrive. You want the last one.
    Mediadatabase.db3 is in there too.

  • Help with onclick action

    Can someone help? I am struggling with a working code. I used this code before when I was testing as a gif animation. I didn't like the clarity of the gif and want to do this in edge but am relatively new to it.
    <img src="http://pacificoauto.com/AutoGroupemails/Ford%20Black%20Friday/electrifiedshopnowsmaller.gi f" alt="" onclick='javascript:(this.src=="http://pacificoauto.com/AutoGroupemails/Ford%20Black%20Friday/electrifiedshopnowsmaller.gi f"?this.src="http://pacificoauto.com/AutoGroupemails/sonatathon/savings_burst.gif":"")' />
    What I would like to do is pause a looping animation on mouseover and start a different animation onclick. If this isnt possible maybe just how can I create the onclick action?
    Please please help this is driving me nuts!!! Thanks in advance!

    Sure there must be a way for Automator to look in /Folder/ and it's sub folders and find 1.mpg, 2.mpg and 3.mpg and rename them.
    There is, but with your current setup-other .mpgs in the same folder-there's no real way to specify those three files in a single action.
    An alternative that would probably work out better-put the files into a static folder. That way you can use the Get Specified Finder Items. Then after the Rename-
    1.Get Specified Finder Items on the static Folder-
    Break the action flow by clicking on Files/Folders and selection Ignore Results.
    3. Get Folder Contents
    2. New Folder (under your /Folder/ folder)
    Then, if you want:
    4. Get Specified Finder Items on the static Folder-
    Break the action flow by clicking on Files/Folders and selecting Ignore Results
    5. Get Folder Contents
    6. Move to Trash

  • Help with button actions

    Hi all,
    The last Flash version that I am use to, is 5.5 which was extremely easy to use. I have used CS3  a little, but now I have CS4. You use to be able to set the action right in the button, then just copy the button. Now it's totaly different. I have watched some tutorials in Adobe TV, but find that my property windows do not look like theirs, which is very confusing.
    Can any one point me to some URLs that show me basic buttons tutorials, such as: on release goto and play scene 1 frame 10, etc.
    Thank yoou
    HDsuperglide

    you can use as1 if you want.  cs3, cs4 and cs5 are all backwards compatible with the coding style you've used in the past.
    nevertheless, i'm not an adobe employee/company rep.
    this forum is for people that want help and i'm here to help people that want help.
    if you want to complain/provide suggestions, here's the place for you:  https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Need Help with the Action Wizard...Help please?

    I am using the Adobe Action wizard to split documents into multiple pages.  Once the docs are split, the Action wizard saves them to a new folder exactly how I want them, however it also moves a copy of the original document into the source folder (Which I do not want)  is there a way to stop this from happening?

    Hi lpurollpsmi,
    Could you please provide more details of the action that have you added for the same.
    You might take a look on the KB doc link mentioned below with detailed understanding on Action Wizard:
    Acrobat Help | Action wizard (Acrobat Pro)
    Are you running the latest Acrobat version i.e. 11.0.10?
    Hope to get your response.
    Regards,
    Anubha

  • Please help with data action problems

    Ok, this is driving me nuts, every example I try seems to work half the time...and I can't figure out why.
    I'm using JDeveloper 10g, ADF/UIX/Struts.
    All I want to do is:
    Access the application module for my project in a struts data action.
    a) To manipulate view object where clauses based on request parameters.
    b) Call application module custom methods.
    c) Access request values.
    Sometime the following works after I've been playing around:
    findForward(DataActionContext ctx)
    ViewObject vo = ctx.getBindingContainer().getApplicationModule.findViewObject("myViewObject");
    //whatever with the vo from here
    MOST of the time, I get 500 Server Errors. They state:
    java.lang.NullPointerException
         at mypackage4.DataActi1Action.findForward(DataActi1Action.java:10)
         at oracle.adf.controller.struts.actions.DataAction.findForward(DataAction.java:575)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:152)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:233)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:163)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    I believe this has to do with there not being a binding container for the Data Action. However, I can drag custom methods and view object methods (create/delete...) from the data control palette onto it all I want, and I still get the same errors. I thought I read that it generates one, from the long document:
    Oracle ADF Data Binding Primer and ADF/Struts Overview
    Basically, I read through and am still confused on how I can access the application module reliably. I have some pages that it's work for, but I can't figure out why it doesn't work for others.
    Could someone clear this up for me please?

    I've tried using getBindingContext, get BindingContainer, and a host of others. I can assign iterators to he UI model, the cpx file, but I still can't seem to figure this out.
    I don't see a comparable example in the ones I've downloaded from otn either. Thanks for any help.

  • 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.

  • Help with an action refreshing script

    Hi,
    Ive been compiling a script to remove specific actions and load them up again. I work in a team where the action sets are updated regulary and this will make it easier to refresh. The script works great when run from the extendscript, but when called from a photoshop action it can remove the specified set but then does not load it up again. It throws no errors or anything.
    Below is the script, any help or ideas would be much appreciated!
    var checkstat = false;
    var w = new Window ("dialog", "Action Refresh");
    var stringOptions = [];
    stringOptions[0] = "EFFICIENCY";
    stringOptions[1] = "BANNERS & TEMPLATES";
    var imagename = w.add ("statictext", undefined, "Please select the action set you would like to refresh.");
    w.dropdownlist  = w.add("dropdownlist", undefined,"Baseline");
    var item
    for (var i=0,len=stringOptions.length;i<len;i++)
      {item = w.dropdownlist.add ('item', "" + stringOptions[i]);     
    w.dropdownlist.onChange = function() {
       //Save the selected value in a variable to be used later
       checkstat = stringOptions[parseInt(this.selection)];
    w.dropdownlist.selection = w.dropdownlist.items[0] ;
    w.buttonGrp = w.add ("group");
    var cancelbutton = w.buttonGrp.add ("button", undefined, "Cancel");
    cancelbutton.onClick = function() {   
       w.close(0);
        checkstat = false;
        return checkstat;
    w.buttonGrp.add ("button", undefined, "OK");
    w.show();
    if (checkstat == false){}
    else{
    try{
    delAction(checkstat); //Delete a specific action based on its name
    catch(e){}
    app.load(File("Z:/Editing/Actions & Templates/SITECORE/RETOUCHING ACTIONS/" + checkstat + ".atn")); //Load the action based on it's name from a pre-specified path
    function delAction(aName) {
        var idDlt = charIDToTypeID( "Dlt " );
        var desc1 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        var ref1 = new ActionReference();
        var idASet = charIDToTypeID( "ASet" );
        ref1.putName( idASet, aName );
        desc1.putReference( idnull, ref1 );
        executeAction( idDlt, desc1, DialogModes.NO );

    So can you suggest what I should do to get the following outcome?  I am new to this...
    I need the fields for Listing Agent Commission and Selling Agent Commission.
    If Listing Agent is checked, need $35.00 deducted from Listing Commission Share to make the Listing Agent Commission.
    If Selling Agent is checked, but listing agent is not, I need the $35.00 deducted from Selling Commission Share to make the Selling Agent Commission.
    If Both are checked, I only need the $35.00 deducted from the Listing Commission Share, and the Selling Commission Share should Equal the Selling Agent Commission.
    If neither are checked, both fields should be 0.00.

  • Help with Dynamic Action Construction

    I want to create a dynamic action that will disable a field called P1_TBRN when any of the following conditions in the form are true:
    :P1_TRIAL_STATUS in ('Off-Trial','Unknown') or
    :P1_DIAGNOSIS_MAJOR ='UNKNOWN' or
    :P1_INSTITUTION ='Unknown' or
    :P1_CONSENT_EXISTS <> 'Y';
    I assume I use a "Change" event but I can't work out how to enter the 4 condtions so that they are all checked each time. If I create 4 separate dynamic actions, when I change one of the fields, it does not take into consideration the other field values.
    An alternative I've tried is to set up a Read Only condition on P1_TRIAL with the above condition. The only problem is that I have to submit the page each time there is a change in one of the 4 fields above. It would be better if I didn't have to submit the page each time so I'd like to use a Dynamic Action.
    thanks in advance
    Paul P

    Hi Paul.
    If you want to evaluate 4 variables in 1 dynamic action you have to post the value of these 4 items on each change of one of these items as far as I know.
    I had a form with multiple checks of this kind and ended up having serieus performance issues.
    My way around was to evaluate in javascript. You creat a dynamic action on change of any of these 4 fields and set the condition to a javascript expression. The expression looks something like (quick edit so there might be some typos):
    $v('P1_TRIAL_STATUS')=='Off-Trial'||
    $v('P1_TRIAL_STATUS')=='Unknown')||
    $v('P1_DIAGNOSIS_MAJOR')=='UNKNOWN'||
    $v('P1_INSTITUTION') =='Unknown'||
    $v('P1_CONSENT_EXISTS') == 'Y'
    If this evaluates to true the true action of the dynamic action is executed, otherwise the false action.
    Cheers
    Bas

  • Help with adding action script to an order form

    Hi - Firs time I'm on this board. Searched and didn't see
    anything that fit. Adobe/Macromedia Support told me my form needs
    an action script insert for me to gain access to a previous page.
    I'm revamping an online order form. It's about 2 1/2 pages in
    length. I find that I can't go back to the first page -- I'm locked
    in the second one. On split screen the HTML coding shows there is
    more than one page. Also, when I look at it in a browser the whole
    page is there.
    Does anyone know how and where I can put in action script.
    I'm not an HTML maven so this isn't my thing. Thanks for whatever
    advice you can give.
    Best - ETide

    Visit gotoandlearn.com and find a tutorial there for creating
    a preloader.

  • Help with button/action script

    As part of a class I have to create an aquarium where I have
    pictures of fish on the side and I want to be able to click on the
    fish and have it add the fish to the aquarium. I want to be able to
    have the viewer select the number and types of fish they want in
    the aquarium. I'm using Flash 8 if that matters. Please, any help
    would be wonderful.

    Thank you for your help so far.
    I am just a beginner and that coding went way over my head. I
    have created a movie clip for each fish and I have added the
    buttons to the aquarium. I have created the linkage for the movie
    clips in my library. I am having problems attaching the clip to the
    button. In all of the examples I have seen I have to include the
    instance name. How do I give a clip that is not on the stage an
    instance name?
    Can you please help?
    Thank you
    hgingrich

Maybe you are looking for

  • [SOLVED]Install kernel failed and how can I repair my system.

    In order to get suspend function, I try to compile a new kernel, I used the second method in http://wiki.archlinux.org/index.php/Ker - rom_Source with makepkg and pacman. I download 2.6.31 kernel and makepkg is OK, but pacman tell me /lib/***(lots of

  • Macbook Pro Audio not working

    Hi there! The audio of my Macbook Pro stopped working suddenly (actually after i removed my headsets). I'have tried different solutions including: plugging and unplugging the jack rebooting resetting PRAM installing updates verifying disk permissions

  • White screen not of death...

    I just understood that I could possibly get answers for my problem here aand not on the syncing section... "one day out of no where my screen becomes blue sky-ish on all the white writting or color on my screen... It was kind of annoying so I tried l

  • Posting automatic payment with hedged PO exchange rate

    Dear All, Is there any way to make the payment in f110 with the Hedged PO exchange rate? Regards Shanu

  • AR - Bill of Exchange Payment Request

    Hi Guys, I would like to know if there is any way for this situation. When I recieved the  bank return file some documents were rejected but the Bill of Exchange Payment Request continues fill up. Is there any way that we can configurate to delete th