Groups | Blog | Home
all groups > macromedia flash sitedesign > august 2005 >

macromedia flash sitedesign : Full flash site mystery.....need help



joshluv333
8/4/2005 12:00:00 AM
I've been asking the same question in other parts of the forum and have yet to
find anyone that can solve the issue I am having. When constructing a full
flash website that utilizes an "index.swf" as the background to the entire site
cna ther be more than one tier of pages or .swf's that use that "index.swf" as
the background. For instance, the site I am currently working on plays the
"index.swf" file which has a command in it at a certain frame to load the
initial "home.swf" content or the home page. So when you go to the site the
background loads first and then the content. This is done with no problem.
Also in the "index.swf" resides 4 movie clip links to other pages or .swf's
(links.swf, portfolio.swf, contacts.swf, and about.swf). These all when
released will unloadMovieNum(1) or the "home.swf" content, gotoAndPlay(57) of
the root folder which is the effect of unloading part of the background
contained in the "index.swf"(the normal transition when navigating through
different pages), loadMovieNum("name.swf", 1) to load the new page content
while the background remains seen. The problem occurs when I try to create a
link from one of the 4 sub-pages (links.swf, portfolio.swf, contacts.swf, and
about.swf) to a new page called "customers.swf". I created this new .swf so
that it would be loaded like the 4 sub-pages with the background ("index.swf")
playing. Every script I have attempted is unable to unload in this case the
"links.swf" content so that it can be replaced with the "customers.swf" content
and preserve the same transition effects which then keep the background behind
the content. You can take a look at the website and click on the links button,
go into the online gallery area and click on 'more'. The desired effect is to
have the same transition as when you went into the links page and bring up new
content. As you can see at this point I can't even get it to unload the links
content let alone preserve the background effects and load new content. Here
is the site:
http://www.eternalphotofish.com/HTML/index.htm

I appreciate any help that you may have and if needed I can give access to the
..fla's. Thanks.
Rob Dillon *TMM*
8/4/2005 12:07:08 PM
There could be any number of problems. How are you trying to load in
"customers.swf" now? Are you using loadMovieNum()? or loadMovie()? Do
you want to keep the current movie, "portfolio.swf" loaded? I'm guessing
you do.

I normally use loadMovie() instead of loadMovieNum(). I place empty
movieclips on the stage as targets to load movies into. For instance, I
would have one target clip to hold your four main nav sections. Loading
in a new movie into a clip will remove the old movie.

I would follow the same system for each of these loaded movies. For
instance, the About movie would have one or more empty movieclips as
targets for each new movie that I wanted to bring up. So clicking on the
"more..." button for Photographers, for instance, would load in a new
movie about the Photographers.

Does that help at all?

--
Rob
_______
Rob Dillon
Team Macromedia
http://www.ddg-designs.com
412-243-9119

joshluv333
8/4/2005 8:36:00 PM
I've been using loadMovieNum() and not loadMovie(), but I don't see any reason
that I couldn't just change that. I will try the empty movie clip technique so
I would attach a loadMovie() to the 'more' button. I still think there is an
issue then with the "index.swf" playing in the background even after navigating
off of one of the 4 main pages. How can I refer back to a frame in that .swf
and loadMovie off of the current .swf? Thanks for the help.
joshluv333
8/5/2005 12:00:00 AM
What AS should I attach to the empty movieclip for the "index.swf"? The other
problem I am having is unloading the "links.swf" movie when the 'more' button
is pushed. I just can't seem to get it to go away. I've tried
unloadMovieNum(1) and unloadMovieNum("links.swf", 1) because it is loaded with
loadMovieNum, but this won't do anything.
Rob Dillon *TMM*
8/5/2005 9:19:16 AM
In article <dctu7g$1pl$1@forums.macromedia.com>,
[quoted text, click to view]

If index.swf is loaded into an empty clip, then you can refer to it by
that clip's instance name. If you have an empty movieclip on the stage
with an instance name of "sectionHolder". You can then load a new movie
into that clip. sectionHolder.loadMovie("index.swf") . Now the contents
of index.swf are the contents of sectionHolder.

If, later in the presentation, you load another movie:
sectionHolder.loadMovie("about.swf"), the old content, index.swf, is
unloaded and the new content is loaded in.

If index.swf contains similar empty movieclips, those clips can be used
to load in additional .swf files. Since they belong to index.swf, if it
is unloaded, so are they.

If you want to move to a frame label, or a frame, in a loaded movie,
just reference the movieclip that holds that loaded movie. If you have a
button in the main movie that controls a loaded movie, for instance, you
can control the loaded movie something like this:

myButton.onRelease = function() {
sectionHolder.gotoAndPlay("sectionTwo");
}

Likewise, if you have a control in the loaded movie, you can reach the
main movie by reaching back through the heirarchy:
_parent.someFunction(), or absolutely: _root.someFunction().

--
Rob
_______
Rob Dillon
Team Macromedia
http://www.ddg-designs.com
412-243-9119

Rob Dillon *TMM*
8/5/2005 11:37:22 AM
In article <dcvvda$rt0$1@forums.macromedia.com>,
[quoted text, click to view]

use the instance name of the empty movieclip like this:

instanceName.loadMovie("index.swf")

The other
[quoted text, click to view]

unloadMovieNum(1) should do it. The most common problems are typos or
the object that you are calling is out of scope, but level 1 can't
really be out of scope if you are calling the unloadMovieNum() function
from the same movie that you called loadMovieNum() from.

Each movie, the starting movie and any loaded movies, each have their
own set of levels. So be sure that you are unloading from the same place
that you loaded from.

--
Rob
_______
Rob Dillon
Team Macromedia
http://www.ddg-designs.com
412-243-9119

macron
8/15/2005 12:00:00 AM
hi just a quick note on your site,

the flashing animated graphics on your site could be problematic for people with photosensitive seizure disorder.

ShobhitJi
8/16/2005 9:41:48 AM
dear josh,
i have been new to fash developement and i reay liked the site and hopefully
you can help me a small probem in flash
all i want to know is how do we load a new movieclip into the main site with a
preloader attached to it
like when u click any link on ur site that page get removed and a new pages
gets to starts loads with a perloader
i have been to many forums abt this probem but no satisfactory answers were
there, hopefully u can help me out

thanks in advance
also plz mail me up at shobs123@gmail.com
regards

shobhit saxena :)
AddThis Social Bookmark Button