MovieClip(scrollpane.content).gotoAndStop(2);

I need to get my main swf A to tell the swf B (swfB is my scrollpane content or source) to gotoAndStop at frame 2 but it doesn't communicate. 
Here is my code on my main swfA:
function xbutton (e:MouseEvent):void {gotoAndStop("p1");MovieClip(sp.content).gotoAndStop(2);}
button.addEventListener (MouseEvent.CLICK, xbutton);
Here is my code on frame 2 in swfB:
stop();
SoundMixer.stopAll();
to better visualise what i am doing; swfA is my website with lots of pages, swfA has one page* that holds my scrollpane, inside my scrollpane is swfB with a flPlayback (*this page is the tv page). when I exit the tv page to another page on my website the tv must stop. swfB has my flPlayBack on frame 1, frame 2 is blank (no tv). Ps: The code in swfB works fine independently! I know this because tested it by adding a button (when pressed it goes to frame 2 and the code does stop the tv).

Hi Ned,
sp is on the same frame as the code on the main time frame and as I have mentioned I have tested the code internally within swfB and it works! but controlling swfB from swfA does not work. my identifying mark is SoundMixer.stopAll(); which stops all sound. As my post says sp is only on one frame of my site so seen as MovieClip(sp.content).gotoAndStop(2); happens when I click a button to switch pages a visual identifying mark would not be appropriate.
still, why does this not work?

Similar Messages

  • Scrollpane contents disappear

    I've got a AS3 scrollpane with a content source of an empty clip called holder.
    I've got a search function that returns an xmllist and then attaches a movieclip for each node in the list and adds some details from the xml node, then each movieclip gets added to the scrollpane. All this works well.
    The contents originally come in "relevance" order, but there are buttons for title and date orders as well. When the user clicks to change the order the xmllist is sorted and the code then figures out where each of the clips should be and TweenLite tweens them from their current location in the scrollpane to their new location. And most of the time this has worked well.
    Because of word stemming the words management and managers return the same results (the initial relevance rankings are most likely different). Oddly enough management results "lose" several of the clips when sorting to date or title. Oddly they come back/reappear when putting them back into relevance order. Even stranger, none of this happens with the managers results–the same results, but in a slightly different initial relevance order.
    The movieclips are arranged (for those specific results) in 25 rows and are probably about 4500 pixels high. Could that be the source of the problem?
    I just noticed the problem at the end of the day, so I haven't had much chance to try and figure it out. Anybody experienced this before? Any ideas?

    That seems to have fixed it. I'm using the killTweensOf() instead, but it seems that given how many rows of this there were some at the bottom hadn't faded in and still had a low alpha.

  • Scrollpane content

    Just to note, this is a completly different question to my last one, which I managed to resolve and posted a solution.
    I was noticing that the last row of content added to my scrollpane was being cut off.  Apparantly, on researching the problem, it is quite common and something to do with the scrollpane calculates the size from a different point.  So I managed to find a way to push my items up so they are not cut off.  After my items are added, I create a movieclip, and add it to the very bottom.  Then if anything gets cut off, it should be this.  So the code is basically
    function fileLoaded(event:Event):void {
        myXML = XML(event.target.data);
        xmlList = myXML.children();
        for (var i:int=0; i<xmlList.length(); i++) {
            var picURL:String = xmlList[ i ].url;
            var picName:String = xmlList[ i ].big_url;
            arrayURL.push(picURL);
            arrayName.push(picName);
            holderArray[ i ] = new Thumbnail(arrayURL[ i ],i,arrayName[ i ]);
            holderArray[ i ].addEventListener(MouseEvent.CLICK,onClick);
            holderArray[ i ].name = arrayName[ i ];
            holderArray[ i ].buttonMode = true;
            if (i<nrColumns) {
                holderArray[ i ].y = 15;
                holderArray[ i ].x = i*103+15;
            } else {
                holderArray[ i ].y = holderArray[ i-nrColumns].y+103;
                holderArray[ i ].x = holderArray[ i-nrColumns].x;
            thumbsHolder.addChild(holderArray[ i ]);
        var box:MovieClip = new MovieClip();
        box.graphics.beginFill(0xFF0000, 1);
        box.graphics.drawRect(thumbsHolder.width+20, thumbsHolder.height+20, 20, 20);
        box.graphics.endFill();
        thumbsHolder.addChild(box);
        updateScroller();
    I was just wondering whether it is ok to do this, or if there is a better fix for this problem?
    cheers

    sorry using flash 8

  • Scrollpane content issue

    I am using flash pro 8.
    The scrollpane is on the stage and the content path is set to
    songButtons_mc, the name of the movie clip that loads into it.
    In the first frame of the songButtons movie clip, I have
    placed the following code in an actions layer:
    function playSong (mc:String,sLabel) {
    eval(mc+'_btn').onRelease = function() {
    _root.gotoAndStop(sLabel);
    the scrollpane component with this code works perfectly until
    the movie is loaded into another .swf movie, then nothing works.
    How do I get this to work? I am new to using components.
    Thanks in advance for your help.
    Mark

    I figured it out... it was as simple as adding this._lockroot
    = true; to the main timeline. Maybe there is some other way to do
    it as well, but as long as it works this way, this is what I will
    use.
    thanks everyone. Hope someone else can use this sometime in
    the future.

  • Accessing Button inside Movieclip/ScrollPane

    Hello all,
    I'm trying to understand how to build a button inside a movieclip.  I have a template that has movieclips within movieclips, and when I create a button (all using AS2) the button will work if I test the scene, but in the whole flash movie it does not work.  I also have some buttons located inside a ScrollPane that also do not call correctly.
    For my button I am using this code:
    facebookbtn.on (release) {
    getURL("http://www.facebook.com/","_blank","GET");
    ^ This is placed on the button "facebookbtn". I also tried using: _root.bgPages.pg1.facebookbtn.on (release), to no avail.
    For the one inside a ScrollPane I am attempting to call a javascript function:
    on(release){
         import flash.external.ExternalInterface;
         ExternalInterface.call("GroupDelegate","dayone1");
    ^ This also does not work, with or without the button name before on(release).
    I'm putting the FLA file here so that if anyone has the time, could help me with this quick problem. Thanks!
    FLA: Download FLA

    Do not place code inside objects with code on(blah2x). It will lead to unpredictable behaviors and besides it is bad practice. Centralize all your code on one frame in the timeline. Use this format on the main timeline:
    import mx.utils.Delegate; //declare at top only ONCE
    YourButton.onRelease = Delegate.create(this, YourFunctionCall);
    or
    YourButton.onRelease = function()
       //do your stuff here
    Do the same thing with the ExternalInterface. You can put the import at the top along with Delegate.

  • Can i use loadMovie to set scrollPane content?

    i'm trying to load external swf files into a scrollpane. i'm
    using the loadMovie command, but when i do , the content extends
    outside the scrollPane (no scrolling happens). how can i get around
    this in the simplest manner?
    thanks.
    morgan

    as i found out, the answer is no, instead, one must use:
    contentPane.contentPath = "web/web_HED.swf"
    where contentPane is the name of the scrollPane. this can be
    applied to buttons triggerend to load fresh content into the pane,
    or onLoad content.

  • Resizing a MovieClip's contents

    I'm loading an external swf into a movieclip (the external
    sfw plays a
    slideshow of JPEGs). When the slideshow plays, the JPEGs
    extend way beyond the
    bounds of the movieclip. How would one go about constraining
    the JPEGs to
    their original size and centering them on the stage? And
    where would one
    place the actionscript using AS2, on the movieclip itself?

    OK - for anyone that may need it - I played a bit and got it to work:
    var mediaDirList:File = File.documentsDirectory;
    mediaDirList = mediaDirList.resolvePath("tester/");
    mediaDirList.getDirectoryListingAsync();
    mediaDirList.addEventListener(FileListEvent.DIRECTORY_LISTING, directoryListingHandler);
    function directoryListingHandler(event:FileListEvent):void {
        var list:Array = event.files;
        for (var i:uint = 0; i < list.length; i++) {
            trace(list[i].nativePath);
    This seems WAYYY simpler than some of the solutions I looked at, so I'm wondering if it's best practice - it would work cross platform, right?
    Thanks (forgot my manners in the last post).
    Shaun

  • Load AS2 swf into AS3 swf problem

    I have a flash with AS3 and inside this swf i load in a AS2 swf.
    to load swf works just fine, but the problem is when i load this i want to go to
    a specific part of it, for example i want to go to frame 3 in the loaded swf.
    i must control this from the AS3 swf, does someone know if this is possible?
    thanks in advance

    so can i do like this then to go to frame 3 in my loaded swf?
    MovieClip(ldr.content).gotoAndStop(3); ?
    sorry for being such an airhead
    thanks for helping me out =)
    Date: Sun, 7 Jun 2009 10:25:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: load AS2 swf into AS3 swf problem
    no.
    if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
    MovieClip(ldr.content).f1();   // to call f1() in the loaded swf
    >

  • Simple swf movie control

    I am still getting used to scripting from within Flex. I have
    a very simple flash movie that indicates a value from 0 to 100% -
    one frame for each percent. I want to embed that movie into a Flex
    application and control the swf's position in the timeline from
    within the Flex application.
    I know that I cannot just use:
    "SWF.gotoAndStop(currentFrame)" or
    "MovieClip(SWF.content).gotoAndStop(currentFrame)" ...
    but I would like to find a simple solution - if one exists. I
    do not want to create 101 separate swf files and change the source
    every time I need to change the frame.

    You can communicate with a loaded SWF through the
    SWFLoader.content property. This gives you access to any public
    members of the swf.
    If you implement a public method, like setPos(iPercent:int),
    you should be able to call that method thropugh the content
    property.
    Note that there are timing issues wotking with content in a
    loaded SWF. SWFLoader has to be complete, and you need to listen
    for the Application.complete event before interacting with the swf.
    If you have difficulty with this, I have an example on
    www.cflex.net. Search for swfloader.
    Tracy

  • How can I stop timeline sounds in external swf files from playing during loading?

    I am having a problem with timeline sounds in external swf files playing during loading in a main swf. Can anyone help me?
    Here is some of the code from the main swf. I hope I have included enough.
    Thanks.
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.net.URLRequest;
    import fl.events.SliderEvent;
    import flash.media.SoundTransform;
    preloader_mc.fill_mc.scaleX = 0;
    var swfA:Array = ["part1.swf","part2.swf"];
    var frameA:Array = [];
    var currentLoader:Loader;
    var swfTotalFrames:int;
    var tl:MovieClip = this;
    var st:SoundTransform = new SoundTransform()
    var index:int = 0;
    loadNextF();
    play_slider.enabled = false;
    function loadNextF():void{
                    tl["loader_"+index] = new Loader();
                    tl["loader_"+index].name = index.toString();
                    tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
                    tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
                    tl["loader_"+index].load(new URLRequest(swfA[index]));
    function progressF(e:ProgressEvent):void{
                    var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
                    preloader_mc.fill_mc.scaleX = fractionLoaded;
                    preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
    function completeF(e:Event):void{
                    tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
                    tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
                    SoundMixer.stopAll();
                    var mc:MovieClip = MovieClip(tl["loader_"+index].content);
                    mc.gotoAndStop(1);
                    frameA.push(mc.totalFrames);
                    index++;
                    if(index<swfA.length){
                                    loadNextF();
                    } else {
                                    // all loads complete.  start play.
                                    restart_mc.buttonMode = true;
                                    restart_mc.alpha = 1;
                                    tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
                                    tl.removeChild(preloader_mc);
                                    preloader_mc = null;
                                    play_slider.enabled = true;
                                    playpause_mc.alpha = 1;
                                    currentLoader = tl["loader_0"];
                                    tl.addChild(currentLoader);
                                    MovieClip(currentLoader.content).play();
                                    sliderParamsF();

    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.net.URLRequest;
    import fl.events.SliderEvent;
    import flash.media.SoundTransform;
    preloader_mc.fill_mc.scaleX = 0;
    var swfA:Array = ["part1.swf","part2.swf"];
    var frameA:Array = [];
    var currentLoader:Loader;
    var swfTotalFrames:int;
    var tl:MovieClip = this;
    var st:SoundTransform = new SoundTransform()
    var index:int = 0;
    loadNextF();
    play_slider.enabled = false;
    function loadNextF():void{
        tl["loader_"+index] = new Loader();
        tl["loader_"+index].name = index.toString();
        tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
        tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
        tl["loader_"+index].load(new URLRequest(swfA[index]));
    function progressF(e:ProgressEvent):void{
        var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
        preloader_mc.fill_mc.scaleX = fractionLoaded;
        preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
    function completeF(e:Event):void{
        tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
        tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
        SoundMixer.stopAll();
        var mc:MovieClip = MovieClip(tl["loader_"+index].content);
        mc.gotoAndStop(1);
        frameA.push(mc.totalFrames);
        index++;
        if(index<swfA.length){
            loadNextF();
        } else {
            // all loads complete.  start play.
            restart_mc.buttonMode = true;
            restart_mc.alpha = 1;
            tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
            tl.removeChild(preloader_mc);
            preloader_mc = null;
            play_slider.enabled = true;
            playpause_mc.alpha = 1;
            currentLoader = tl["loader_0"];
            tl.addChild(currentLoader);
            MovieClip(currentLoader.content).play();
            sliderParamsF();
    ///////////////// start sliders /////////////////////////////////
    sound_slider.addEventListener(SliderEvent.CHANGE,soundSliderF);
    function soundSliderF(e:SliderEvent):void{
        st.volume = e.value/100;
        tl.soundTransform = st;
    play_slider.addEventListener(SliderEvent.CHANGE,playSliderF);
    play_slider.addEventListener(MouseEvent.MOUSE_DOWN,playSliderDownF);
    //play_slider.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
    function playSliderDownF(e:MouseEvent):void{
        tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
        stage.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
    function playSliderUpF(e:MouseEvent):void{
        tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
    function playSliderF(e:SliderEvent):void{
        SoundMixer.stopAll();
        var frameNum:int = Math.ceil(swfTotalFrames*e.value/100);
        var partialTotalFrames:int = 0;
        for(var i:int=0;i<frameA.length;i++){
            partialTotalFrames += frameA[i];
            if(partialTotalFrames>=frameNum){
                break;
        partialTotalFrames -= frameA[i];
        //trace(i,frameNum,frameNum-partialTotalFrames);
        if(currentLoader!=tl["loader_"+(i)]){
            tl.removeChild(currentLoader);
            MovieClip(currentLoader.content).stop();
            currentLoader = tl["loader_"+(i)];
            tl.addChild(currentLoader);
        if(playpause_mc.currentFrame==1){
            MovieClip(currentLoader.content).gotoAndPlay(frameNum-partialTotalFrames);
        } else {
            MovieClip(currentLoader.content).gotoAndStop(frameNum-partialTotalFrames);
    function sliderUpdateF(e:Event):void{
        var playedFrames:int = 0;
        for(var i:int=0;i<Number(currentLoader.name);i++){
            playedFrames += frameA[i];
        playedFrames += MovieClip(currentLoader.content).currentFrame;
        play_slider.value = Math.round(100*playedFrames/swfTotalFrames);
    function sliderParamsF():void{
        swfTotalFrames = 0;
        for(var i:int=0;i<swfA.length;i++){
            swfTotalFrames += MovieClip(tl["loader_"+i].content).totalFrames;
    ///////////////// end  sliders //////////////////////////////////
    ///////////////// start playpause restart ///////////////////////
    playpause_mc.addEventListener(MouseEvent.CLICK,playpauseF);
    playpause_mc.alpha = .2;
    restart_mc.addEventListener(MouseEvent.CLICK,restartF);
    restart_mc.buttonMode = false;
    restart_mc.alpha = .2;
    function playpauseF(e:MouseEvent):void{
        if(!e.currentTarget.toggle){
            MovieClip(currentLoader.content).stop();
            tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
            e.currentTarget.gotoAndStop(2);
        } else {
            MovieClip(currentLoader.content).play();
            tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
            e.currentTarget.gotoAndStop(1);
        e.currentTarget.toggle = !e.currentTarget.toggle;
    ///////////////// end playpause //////////////////////////////
    function playUpdateF(e:Event):void{
        sliderUpdateF(e);
        var playingFrame:int = MovieClip(currentLoader.content).currentFrame;
        if(playingFrame==frameA[Number(currentLoader.name)]){
            // next loader
            MovieClip(currentLoader.content).stop();
            SoundMixer.stopAll();
            MovieClip(currentLoader.content).mute();
            var nextIndex:int = Number(currentLoader.name)+1;
            if(nextIndex<swfA.length){
                tl.removeChild(currentLoader);
                currentLoader = tl["loader_"+nextIndex];
                tl.addChild(currentLoader);
                MovieClip(currentLoader.content).gotoAndPlay(1);
            } else {
                tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
                playpause_mc.gotoAndStop(2);
                playpause_mc.toggle = !playpause_mc.toggle;
                //playpause_mc.alpha = .2;
                // all swfs have completed play
    function restartF(e:MouseEvent):void{
        MovieClip(currentLoader.content).stop();
        tl.removeChild(currentLoader);
        SoundMixer.stopAll();
        MovieClip(currentLoader.content).mute();
        currentLoader = tl["loader_"+0];
        tl.addChild(currentLoader);
        if(playpause_mc.currentFrame==1){
            MovieClip(currentLoader.content).gotoAndPlay(1);
        } else {
            MovieClip(currentLoader.content).gotoAndStop(1);

  • How to access a button inside a MovieClip which is the source of a scrollpane?

    Hi Everyone,
    I have created a crollpane in my flash file and the source of the scrollpane is a movieclip which contains a buttons.
    Now I want to add a gotoAndStop function to that button to link to a frame on the main timeline.
    Could anyone tell me what is the right as3 code to access this button?
    Thank you!

    Hi Ned,
    I'm still getting a error message. This is my code:
    MovieClip(spane8.content).AppsOptimizerBtn.addEventListener(MouseEvent.CLICK, gotoApp1);
    function gotoApp1(event:MouseEvent):void
              gotoAndStop(21);
    This is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MyAssests_Scene2_fla::MainTimeline/frame11()
              at flash.display::MovieClip/gotoAndStop()
              at MyAssests_Scene2_fla::MainTimeline/gotoAppStore()
    Frame 11 is where my scrollpane is.
    "gotoAppStore" is a function that I used at frame 1 to link to frame 11.
    Any idea what is wrong?

  • Accessing MovieClip function of a MC inside a ScrollPane

    I have a MC that is too tall for my stage and want to place it inside a ScrollPane. The probelm is accessing functions inside the MC. I have tried scrollpane.content.mc.function but that doesn't work. How do you access a mc inside tghe scrollpane?

    >
    >
    No virus found in this incoming message.
    Checked by AVG - www.avg.com
    Version: 8.5.375 / Virus Database: 270.13.19/2245 - Release Date: 07/18/09 05:57:00
    >
    This code sits on the first frame of the swf being loaded into the
    ScrollPane:
    function setStepComplete(ss:Number,fs:Number):void{
        if(ss == fs){
            setCheckMark(ss);
        }else {
            for(var i=ss;i<=fs;i++){
                setCheckMark(i);
    function setCheckMark(chknum:Number):void{
        with (pdiform) {
            switch(chknum){
                case 0:
                    step0.gotoAndStop(2);
                    break;
                case 1:
                    step1.gotoAndStop(2);
                    break;
                case 2:
                    step2.gotoAndStop(2);
                    break;
    This is the code you suggested, sitting on the second frame; the
    ScrollPane is on the first frame (no stops()).
    MovieClip(sp_pdiform.content).setStepComplete(0,0);

  • ScrollPane doesn't display its content

    I created a scrollpane in as3 and set its source to another object, which contains several rows of icons.
    The scrollbar in the scrollpane is getting the right length, which means the object was loaded as expected, but the contant is not showing correctly.
    I created a Thumbnail class for this file to load and make each individual thumbnail.
    Here is my code, the red text is where each thumbnail is loaded:
    import fl.containers.UILoader;
    import caurina.transitions.*;
    import flash.events.Event;
    import fl.containers.ScrollPane;
    var urlRequest:URLRequest = new URLRequest("pics.xml");
    var urlLoader:URLLoader = new URLLoader();
    var myXML:XML = new XML();
    var xmlList:XMLList;
    myXML.ignoreWhitespace = true;
    urlLoader.addEventListener(Event.COMPLETE,fileLoaded);
    urlLoader.load(urlRequest);
    var arrayURL:Array = new Array();
    var arrayName:Array = new Array();
    var holderArray:Array = new Array();
    var nrColumns:uint = 3;
    var sprite:Sprite = new Sprite();
    addChild(sprite);
    var thumb:Thumbnail;
    var thumbsHolder:Sprite = new Sprite();
    sprite.addChild(thumbsHolder);
    var loaderHolder:Sprite = new Sprite();
    loaderHolder.graphics.beginFill(0x666666,1);
    loaderHolder.graphics.drawRoundRect(0,0,450,340, 20,20);
    loaderHolder.graphics.endFill();
    loaderHolder.x = 280;
    loaderHolder.y = 240;
    sprite.addChild(loaderHolder);
    var photoLoader:UILoader = new UILoader();
    photoLoader.width = 450;
    photoLoader.height = 340;
    photoLoader.y = 5;
    photoLoader.x = 5;
    photoLoader.buttonMode = true;
    photoLoader.addEventListener(MouseEvent.CLICK,onClickBack);
    loaderHolder.addChild(photoLoader);
    var scrollPane:ScrollPane=new ScrollPane();
    var skin:MovieClip = new MovieClip();
    scrollPane.x = 805;
    scrollPane.y = 405;
    scrollPane.width = 215;
    scrollPane.height = 280;
    scrollPane.setStyle( "skin", skin );
    scrollPane.setStyle( "upSkin", skin );
    scrollPane.source = thumbsHolder;
    sprite.addChild(scrollPane);
    function fileLoaded(event:Event):void
    myXML = XML(event.target.data);
    xmlList = myXML.children();
    for (var i:int=0; i<xmlList.length(); i++)
      var picURL:String = xmlList[i].url;
      var picName:String = xmlList[i].big_url;
      arrayURL.push(picURL);
      arrayName.push(picName);
      holderArray[i] = new Thumbnail(arrayURL[i],i,arrayName[i]);
      holderArray[i].addEventListener(MouseEvent.CLICK,onClick);
      holderArray[i].name = arrayName[i];
      holderArray[i].buttonMode = true;
      if (i<nrColumns)
       holderArray[i].y = 440;
       holderArray[i].x = i * 65 + 840;
      else
       holderArray[i].y = holderArray[i - nrColumns].y + 65;
       holderArray[i].x = holderArray[i - nrColumns].x;
      thumbsHolder.addChild(holderArray[i]);
      scrollPane.update();
    function onClick(event:MouseEvent):void
    photoLoader.alpha = 0.1;
    photoLoader.source = event.currentTarget.name;
    photoLoader.addEventListener(Event.COMPLETE, fadeOut);
    function fadeOut(event:Event):void
      Tweener.addTween(photoLoader, {alpha:1, time:0.5, transition:"linear"});
    function onClickBack(event:MouseEvent):void
      Tweener.addTween(loaderHolder, {alpha:.5, time:2, transition:"linear"});

    Bold is about the only text editing feature that works in the current editor panel.  The rest were disabled due to spam-related abuse (addng white text, etc)
    I cannot really follow what is going into where and where it is being put (just too lazy to track it down at this time of night), but it sounds like it might be possible that your content is being planted at a location that it is not visible in the scrollpane panel.  The scrollpane is only 215 pixels wide but you have something called a loaderHolder that is being placed at x = 280.  And then elsewhere you have holderArray[i].x = i * 65 + 840;, which is placing it well beyond the 215 width.

  • Is there a way to unload content from a scrollpane componant?

    Hello,
    There's is probably an easy answer to this but i'm new to web design and probably took the hard road with using Flash CS4.
    My problem is that i have text imported from Photoshop as a movieclip loading into a scrollpane which works the way i want it. However when i click another button which loads content into a UIlLoader componant the text in the scrollpane stays onscreen. How do i get the scrollpane content to unload? The content needs to display in the same space so scrollpane and UILoader are basically ontop of eachother.
    Could someone provide a solution?
    Many thanks

    I can't find anything that unloads, though maybe you could load in an empty movieclip instead trying to unload the current one.
    Or you could make the scrollpane invisible by setting its visible property to false if that's an option.
    Another option would be to use the removeChildAt() method and target the numChildren-1 value of the scrollpane (otherwise you start removing pieces of the scrollpane).

  • Timeline Buttons Inside of ScrollPane

    Hey Adobe-ers.
    I created a scrollpane which contains several different buttons.  Each button does a simple timeline navigation, but won't function inside of the scrollpane.  I just need each button to 'gotoframeandstop'.  How can I make these buttons work in a scrollpane?
    Thanks!

    You can assign the code to the buttons from the main timeline so that targeting the main timeline for the gotoAndStop() commands is direct (sp is the scrollpane instance name in this example)....
    MovieClip(sp.content).wesley.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_93);
    function fl_ClickToGoToAndStopAtFrame_93(event:MouseEvent):void
         gotoAndStop(17);
    Or you could try targeting the main timeline from where the code is now...
    wesley.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_93);
    function fl_ClickToGoToAndStopAtFrame_93(event:MouseEvent):void
         MovieClip(root).gotoAndStop(17);

Maybe you are looking for

  • IPod Nano manually manage songs - please help

    I've set iPod to manually manage as I have music on home computer and have purchased music on the office computer since we have DSL. I have tried to drag each purchased song from Library to my iPod in the source list but they never show up once I dis

  • Summary Printout from SAP.

    Dear Gurus, While giving printout from any SAP report, last page is printed with the summary of records which is not needed. How do stop this page being printed. Please guide. Shailesh Panchal

  • Oracle Database 11g Administrator

    Hello all, Is the Oracle DBA certificate enough to land a job? If not, what other courses/certificates does one need? Thanks in advance

  • ITunes 11 (there's one thing i don't like)

    I like how the new iTunes looks (Version 11) but there's no thing i don't like? In the -Tv Shows- i don't like when my Tv Show SEASONS/EPISODES are in ONE ALBUM, i only like when the Tv Show Seasons are in there own Album. with there own Season art c

  • Why can't i email attachments on hotmail?

    I am unable to attach documents through my hotmail email account when using my macbook air.  My apple desktop however has no issue with the task and therefore i have to switch to that computer to send emails with attachments.  all my software is supp