Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Re: How do I? Flash Website, etc

Cow Forums : Adobe Flash
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: How do I? Flash Website, etc
by Sam Mattern on Nov 26, 2008 at 3:59:41 pm

1. To keep the active button on the on state, you need to put a conditional in the onRollOver/onRollOut statements. Basically, you set a global variable up like this:
var curPg:Number = 0;//current page

When a button is pressed, you set curPg to the new page (Ex. 0 for home, 1 for portfolio, 2 for about me, etc). Then your button code would look like:
portfolio_btn.onRollOver = function():Void{
if( curPg != 2 ){
portfolio_btn.gotoAndPlay("over");
}else portfolio_btn.gotoAndStop("on");
}


You just set up labels at the different keyframes of the button code so that you can refer to them more easily.

2. The best method is the easiest way you can think of to do it. I'd put the buttons on one layer first frame, the content on another, with a different frame for each page. The buttons just control what frame you're on.

3. The best way (not easiest) to load pictures that are external is to use a MovieClipLoader. Looks like this:
var picLoader:MovieClipLoader = new MovieClipLoader();
var picListener:Object = new Object();
picLoader.addListener(picListener);
picLoader.loadClip("pic.jpg", someExistingMovieClip);

That's the basics. It replaces "someExistingMovieClip" with the picture. That only gets you one picture into one holder.

4.Dunno

5.Describing dynamic loading/naming techniques would take me at least the length of this reply. Hint:
You want to use CreateEmptyMovieClip(this, "picHolder"+i, etc) to create multiple pic holders. Try searching for dynamic image gallery. I know www.kirupa.com has an XML based tutorial that will be of some help, though might be confusing getting around the XML stuff.

-Sam


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:
  • How do I? Flash Website, etc by Ryan McGinn on Nov 20, 2008 at 5:49:43 am
    • Re: How do I? Flash Website, etc by Sam Mattern on Nov 26, 2008 at 3:59:41 pm


Related Threads:
Flash website template won't play uploaded video   |   FLV embedded in Flash website won't load up online   |   Loading an external swf in a flash website   |   Flash Website Undestirubed background.   |   Flash website not showing in search engine   |   Flash Movie will not play on my website/intranet   |   Posting a youtube video on a flash website   |   Embedding a Flash multimedia player into a website   |   LEES FLASH MOVIE BASICS - simple flv player with play button for website - any help please!!   |   Publishing Flash Website



Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]