Darn Milosav I can't answer your question. I'm going to try out the script you sent me..I'll let you know my results. It looks like it will work....Thanks again and sorry I can't help this time.
Printable View
Darn Milosav I can't answer your question. I'm going to try out the script you sent me..I'll let you know my results. It looks like it will work....Thanks again and sorry I can't help this time.
Hi milosav,
Wow, thanks for looking into that again, your solution was very elegant! The only thing I didn't understand was how you increased the "loadcount" text with each image load. Is it just as simple as using "count++"?
About your question, yeah I was thinking that too. Your current script is perfect except for the fact that if the user leaves the art images (to say, go look at commercial), then comes back, the images will have to preload again. Maybe we could get around that by loading different containers for every image? Let me know what you think about this.
The last thing is the back button on an image after it has been clicked on. As it is (after your brilliant modifications :)), it goes back to the "Buttons" framelabel, but ideally I'd like it to fade out the image, since it fades in at the start. As I'm sure you already saw, there's some code in there already that's supposed to do this, but it doesn't work. I really have no idea how to make it work either. What do you think?
I think that about covers it. Thanks again for looking into this milo!Code:if (art == "sheart"){
while (_root.neon.container1._alpha > 0) {
_root.neon.container1._alpha -= 5;
}
_parent.gotoAndStop("Buttons");
Hi tgfx,
Glad you think that it is heading in the right direction.
Yes you are correct count++ increments the count variable,
and on Frame 54 this variable is used to set your text
counter with the line: loadcount.text=count;
Yes as you have only one set of containers each new set must
be loaded into the same containers.
Yes you could have a set of containers for each image set and
there would be no need for any re-loading.
And I am sorry I cut your fade out ... I must have forgotten.
I will work on this and get back to you ... I don't think
that any of the above will be a problem.
Milosav
Milosav!
Hey again. Been working on the site on and off and ive run into a problem. I've got my nav bar.swf loaded into a movie clip and im trying to unload a movie and load a different one into the clip with a clikc of a button but it doesnt seem to be working. Any idea?
http://aaronfrancis.home.mindspring.com/problem.zip
Thanks!
Aaron
Hi Aaron,
I have attached a slightly different navbar.swf.
You just had the wrong target path to your MC's.
Also you will see that all the button calls are on
Frame 1 of navbar.swf.
You were using to different button events at the same time.
A: home.onRelease=function(){)
and
B: on(press){ }
They both achieve the same thing but you only need to use
one of them. I prefer to use A: because it keeps all the
actionscript in one place ... easier to see. But a lot of
people prefer style B:. And of course there are sometimes
where one is better to use than the other.
Anyway I only made changes to navbar as everything else
works OK.
You will see though when you test it out that when you load
something it stays visible. If you want I can make up a
simple script that will take care of this for you.
Let me know if you want ....
Milosav
where is the attachment?
Thanks
Aaron
Hi Aaron,
Hmmmmm..
I am losing it.......
Here it is
Milosav
Milosav,
I would like to see the code to get it to hide like you said.
Thanks!
Aaron
Hi Aaron,
Here is the next version of things.
You will see that GeneticSite1.fla now has an empty_MC
instance for all your content. This way once it is loaded
the user will not have to download it again into new containers.
Everything is named with a numeric index. Including your
external .swf files. This the best way to handle external .swf's
if you are controlling their loading etc.
In this example they are called:
container0 //this container holds your home content
container1 //this container holds your funny content
container2 //this holds your links content
container3 //this holds your picture content
container4 //this holds your music content
You external .swf files are renamed to:
content0.swf //your home swf
content1.swf //your funny swf
content2.swf //your links swf
content3.swf //your pictures swf
content4.swf //your music swf
You will see that all your buttons now call the same
showNewContent() checks to see if the requested content
is loaded if it is then it makes it visible
if its not then it loads it.
Have a look if you think this suits your project let me
know. Or any ????????????
Script to check if the .swf files are loaded should go into
this script ... so if you think it's OK ... I shall add that
in.
At the moment the script is really straight forward so
you should be able to get a picture of what is going on.
You can download the files from here:
http://www.trump.net.au/~Milosav/aaron/navigationA.zip
Milosav
Hi aaron,
I found an error .
This should be the actionscript of Frame 1
GeneticSite1.fla.
Just the file name needed to be changed to "content0.swf".
stop();
Cursor1._visible = false;
Cursor2._visible = false;
Cursor3._visible = false;
Cursor4._visible = false;
loadMovie("matrix.swf", "mc_hold1");
loadMovie("navbar.swf", "mc_hold2");
loadMovie("content0.swf", "container0");
Milosav
heya milosav,
did you come up with anything on the fadeout issue? that one's bugging me.
Hi tgfx,
Hey I was waiting to hear from you. I sent you a private
message. ?? Maybe it did not get to you.
Anyway I had asked you some questions before I was going to
move on. So I will just ask again here.
There are a lot of empty squares in the grid that holds
your thumb images .... will these be filled with more
images later??
At the moment you have a lot of hard coded names in your
script ie "sheart" "skull" etc. This will work for a small
database of images like it is now. But if you do make the
database larger it will become more and more difficult to deal
with. I suggest that if you are planning to expand
your image set that your code be tweaked to use a numeric
index system. This is not difficult to do and simplifies things
a lot. Let me know what you think about this???
I know I asked you this some time back but I do not
remember your answer ... what version of Flash do you
have??
Please get back to me on these ?? And I will continue on
with the file. The fadeout should not be a problem but
what version of flash you have makes a difference to how
it would be done best.
Awaiting your reply.
Milosav
hey milosav,
oh sorry about that, I didn't even think to check my private messages. but yeah, those squares will not all fill up, but some more might possibly in the future. also, for each other section - commercial, funky, etc - there are different thumbs, meaning different variables, and I agree that it gets hard to keep track of. especially considering that once clicked, the mask that fades the image in has to look through each variable to figure out which container to increase the _alpha on. it's kinda ugly.
anyway I'm using flash mx, and I'll be more observant of the private messages now!
thanks,
forrest
Hi Forrest,
Glad to hear that you have MX, it has a lot more to
offer than previous versions of Flash.
I will do some work on your project.
The way it works will be a lot tighter and easier
for you to improve on. Of course the design will remain
the same. Just the engine that runs it may be different.
Will post back soon with something for you to look
over.
Milosav
Milosav,
Sorry to jump back into my prior post on you, but I was wondering if you could post a sample of the random movie script you had posted for me. If not, not prob.
:smoov:
Milosav,
Random question..
Can you have different fps rates for swf's loaded into your main movie?
Thanks!
Aaron
this preloader thread will blow all other preloader threads.....:D
plenty of interesting stuff here:mrpimp:
Hi foochuck , Forrest, adnank21,
Foochuck,
I will put together a random movie loader sample
and post it back here soon.
Forrest/tgfx,
Have done a bit of work on your file.
I have also uploaded it to my web space ... the .zip
file includes the new .fla and also a .txt file with
some explanation of what is going on. I think you will
have a few questions ... The preloader bar could be
designed to suit your project ... maybe a neon style.
Also I think you will need a preloader for your main Movie as
it increases in size (ie. if you add lots more images to
your database).
You can view it at:
http://www.trump.net.au/~Milosav/tgfx
and download the .zip at:
http://www.trump.net.au/~Milosav/tgfx/Neon_C.zip
adnank21,
Glad to hear you think the is some interesting stuff
in this thread. It is getting a bit big for those just
joining in. Feel free to join in ... the more brain
power the better !!!
Milosav
Hi foochuck,
Here is the .zip file for the random movie thing.
Look over it, I think you will see what is going on.
First the mainMovie loads in a random Movie. There is
also a button which calls the same function to load
other movies randomly.
I add in the preloader script. But did not add the
_level4. stuff if your progress bar is loaded into
a Level like we have been doing. I think you can most
probably add this in by looking over our other stuff.
If you have any questions post back.
Milosav
hey milosav,
I've looked at your file and have responded via email, so I guess I'm through with this thread. thanks for helping!!!
forrest