-
1. Re: Need Help with Timeline Setup, Text won't show up in SWF
Ned Murphy Oct 20, 2009 5:38 AM (in response to mariahleigh33)Importing your swf's into the library is not a good approach. If you do plan to add any actionscript at some point, theat will be lost when you import them into the library. It is better to either incorporate them as movieclips in the main file or load them dynamically when the main file runs.
As far as the text goes, if you do not need to have the text as dynamic text, then only use static text. Static text does not require fonts to be embedded. I'll make an exception in that some fonts simply don't play with Flash very well and the only option is to use break apart to to get them to appear as desired.
-
2. Re: Need Help with Timeline Setup, Text won't show up in SWF
mariahleigh33 Oct 20, 2009 4:56 PM (in response to Ned Murphy)Thanks!
I will check on the dynamic text, if the text is used as a button, is it better to just break them apart?
Also, where is the best place to learn about how to do movie clips? I have searched and searched, and cannot find any reliable information that applies to what I am trying to do. I am lost on how to upload the movieclips, if I need some type of template within my flash file for the movie clip to upload to, and what Actionscript I need to know to have them upload correctly.
Basically, I have created each page to look the same, everything moves except the navigation, and I have created each page as a separate flash file. I did it this way because I figured I would just figure out how to link at the end! Was this the wrong thing to do?
This is my first actual site for a client in Flash, and the last site I created was using scenes, which was not a good idea, I just want to figure out a correct architechture so that I can use this in the future.
I have attached a few of my pages below.
-
3. Re: Need Help with Timeline Setup, Text won't show up in SWF
mariahleigh33 Oct 20, 2009 4:57 PM (in response to mariahleigh33)Here are two .swf files
-
thunderBay.swf 412.3 K
-
birchPage.swf 187.0 K
-
-
4. Re: Need Help with Timeline Setup, Text won't show up in SWF
Ned Murphy Oct 20, 2009 5:06 PM (in response to mariahleigh33)If you plan to maintain the pages as separate swf files, then the proper approach for incorporating them is to load them dynamically. If you want to make them part of the main file rather than loading them dynamically, then your best bet is to create them as movieclips in the main file.
Creating movieclips is as easy as creating any file... you just select Insert -> New Symbol -> select Movieclip and you are presented with an empty work area and timeline to build the movieclip in. If you wanted to copy one of your pages into a movieclip, what you do is open the page's fla file, select all of the frames/layers in the main timeline, right click the selection and choose Copy Frames. In the other file, in the newly created movieclip, you just select the one empty keyframe in the timeline, right click on it and select Paste Frames... all of the frames/layers that you copied will be pasted into the movieclip.
-
5. Re: Need Help with Timeline Setup, Text won't show up in SWF
mariahleigh33 Oct 20, 2009 5:33 PM (in response to Ned Murphy)Thanks for all of your help. Do I need to have the Actionscript created in my movie clip code, or so I divide out the actions in my main file?
Sorry for all of the questions!
-
6. Re: Need Help with Timeline Setup, Text won't show up in SWF
Ned Murphy Oct 20, 2009 6:02 PM (in response to mariahleigh33)There are different preferences for different people... some like to keep code all in one place (like a separate .actionscript/class file) and some like to keep it local to where it works, like a movieclip's own internal controls remaining in the movieclip. I say... do whatever you are most comfortable doing. The only truly wrong way is a way that doesn't work as planned.
-
7. Re: Need Help with Timeline Setup, Text won't show up in SWF
mariahleigh33 Oct 21, 2009 12:37 PM (in response to Ned Murphy)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!


