+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3
Results 21 to 24 of 24

Thread: for Loop help with Navigation and loadMovie

  1. #21
    Experienced Member
    Join Date
    Nov 2008
    Location
    Fort Collins, CO
    Posts
    110
    Money!

    Nice work. loadMovieNum?


  2. #22
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,759
    It loads the movie into a layer instead of a target. They've changed it to stop the ambiguity in the functions. I don't really use Flash much any more so it's hard to keep track of all of the changes.

    Glad it's finally working!

  3. #23
    Experienced Member
    Join Date
    Nov 2008
    Location
    Fort Collins, CO
    Posts
    110
    Hey man,

    Got another one for you.

    I'm trying use the MovieClipLoader class to load up a swf and have it start at a particular frame. Such as:
    Code:
    var myloader:MovieClipLoader = new MovieClipLoader();
    myloader.addListener(this);
     
    myloader.onLoadComplete = function(target:MovieClip) {
    target.gotoAndPlay ("Start")
    };
    
    myButton_mc.onRelease=function(){
    myloader.loadClip("myexternalmovie.swf", this._parent.holder_mc);
    }
    Here is what we got working last night:
    Code:
    var menuArray:Array = [{mc:p1, name:"Hardin & Luckett (Marana)", label:"HardinLuckett" },
                           {mc:l1, name:"Tucson", label:"TucsonAZ" }];
    
    for(var i:Number = 0; i<menuArray.length; i++){
    var btn:MovieClip = menuArray[i].mc;
        btn.btnMC.btnText.text = menuArray[i].name;
        btn.queue = i;
        btn.onRelease = function(){
            toggleButtons(this);
            loadMovieNum(menuArray[this.queue].label.concat('.swf'), 4);
        }
    }
    
    
    var selectedButton:MovieClip;
    
    function toggleButtons(btn:MovieClip):Void{
        if (selectedButton) {
            selectedButton.gotoAndPlay("Out");
            selectedButton.enabled = true;
        }
        btn.enabled = false;
        selectedButton = btn;
    }
    The Bold underline text is where I would imagine most of the magic happens once again. How Would I place the MovieClipLoader into this and have that swf go play that particular frame label?

    Thanks in advance!

    Brian

  4. #24
    likes chips. Scriptage's Avatar
    Join Date
    May 2008
    Location
    Yorkshire
    Posts
    2,759
    Try:

    PHP Code:
    var menuArray:Array = [{mc:p1name:"Hardin & Luckett (Marana)"label:"HardinLuckett" },
                           {
    mc:l1name:"Tucson"label:"TucsonAZ" }];
    for(var 
    i:Number 0i<menuArray.lengthi++){
    var 
    btn:MovieClip menuArray[i].mc;
        
    btn.btnMC.btnText.text menuArray[i].name;
        
    btn.queue i;
        
    btn.onRelease = function(){
            
    toggleButtons(this);
     
            var 
    movieContainer _root.createEmptyMovieClip("movieClip"5); // You could use this.getNextHighestDepth() instead of astatic depth number
            
    var movieLoader = new MovieClipLoader();
            var 
    listenerObject = new Object();
             
              
    listenerObject.onLoadComplete = function () {
              
    movieClip.gotoAndPlay(1);
              };
            
    movieLoader.addListener(listenerObject);
            
    movieLoader.loadClip(menuArray[this.queue].label.concat('.swf'), movieContainer);

        }
    }

    var 
    selectedButton:MovieClip;
    function 
    toggleButtons(btn:MovieClip):Void{
        if (
    selectedButton) {
            
    selectedButton.gotoAndPlay("Out");
            
    selectedButton.enabled true;
        }
        
    btn.enabled false;
        
    selectedButton btn;


+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3

Similar Threads

  1. loadMovie Issues
    By bdavey311 in forum Flash Forum
    Replies: 0
    Last Post: 01-04-2009, 11:22 PM
  2. 4 CSS navigation menus
    By Graphic Design Links in forum Graphic Design Links
    Replies: 0
    Last Post: 23-06-2008, 06:42 PM
  3. navigation problem
    By spnwebdesign in forum Graphic Design and Web Design Help
    Replies: 1
    Last Post: 17-05-2008, 12:23 PM
  4. navigation
    By cre8 in forum General Web Design Forum
    Replies: 12
    Last Post: 09-05-2008, 04:58 PM
  5. css navigation
    By dannynosleeves in forum CSS Forum
    Replies: 11
    Last Post: 09-10-2007, 08:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog | Leaflet Printing

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing | Free Web Hosting Comparison Site