Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Need To Swap From LoadMovie() To LoadClip() - Having Problems And Going Insane



Hey All,Ive been working on an xml photo gallery for a while, and recently i managed to get all the thumbnails displaying correctly in the right places. So i thought i was nearly done, all i really need to do is get a preloader on each of the thumbnails (dynamically created movie clips) and on the main image too.When i got to looking how to do this i found it suggests in the flash help files to use the MovieClipLoader.loadClip() method (because you can monitor download progress etc) instead of the MovieClip.loadMovie(), which i had been using before. Ive tried changing the methods, and it should work because the parameters seem the same, or at least similar, but it just doesnt work at all.Can anyone help, please???Heres a link to the gallery ive got so far:http://lauriedeandrivingschool.co.uk...mlgallery2.swfHeres my code for the frame that loads the xml, and generates the thumbnails:
Code:
_global.thumbRefArray = new Array();this.nxtBtn._visible = false;this.prevBtn._visible = false;this.pgCount.text = "Page 1/2";myPhoto = new XML();myPhoto.ignoreWhite = true;myPhoto.onLoad = function(success) { //portfolioTag = this.firstChild; numimages = this.firstChild.childNodes.length; for (i = 0; i < numimages; i++) { _global.thumbRefArray.push("_level0.thumbLoader.thumbnail" + i); } var maxPerPage:Number = 15; if (numimages <= 15) { maxPerPage = numimages; } else { nxtBtn._visible = true; } var cols:Number = 3; var spacer:Number = 5; var thumbW:Number = 73; var thumbH:Number = 55; for (i=0; i < maxPerPage; i++) { this.picHolder = this.firstChild.childNodes[i]; this.thumbHolder = thumbLoader.createEmptyMovieClip("thumbnail"+i, i); //_global.thumbRefArray.push("_level0.thumbLoader.thumbnail" + i); this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0); this.thumbLoader.loadMovie(this.picHolder.attributes.thmb); // First loadMovie() this.thumbHolder.title = this.picHolder.attributes.title; this.thumbHolder.main = this.picHolder.attributes.main; this.thumbHolder._x = Number(thumbW + spacer) * Number(i % cols); this.thumbHolder._y = Number(thumbH + spacer) * int(i / 3); this.thumbHolder.onRelease = function() { mainLoader.loadMovie(this.main); // Second loadMovie() captionTxt.text = this.title; }; }};myPhoto.load("gallery.xml");
If anyone could help it would be great, its been bothering me for ages, and im not really advanced enough to figure it out. If its real simple ill be annoyed haha!SuperTramp



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-11-2008, 11:41 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] LoadMovie ... Driving Me Insane
hello im trying to load my thumbnails into a movie clip called holder and then into a dynamically created mc called container 1/2/3/etc using the following method. it creates the mc fine but i don't really understand the movieclip prototype function to load the jpeg into it. could someone point me to where im going wrong?... im really really really scratching my head with this

i would really appreciate any help.

Charlie



Code:

function LoadThumbs() {
for (i=0; i<total; i++) {
_root.Holder.createEmptyMovieClip("container"+i, i);
test = "container"+i;
trace("container"+i);

//Problem Here :)
MovieClip.prototype.Holder.test = function() {
this.loadMovie(thumb[i]);
_level0.onEnterFrame = function() {
var total = Math.round(test.getBytesTotal()/1024);
var loaded = Math.round(test.getBytesLoaded()/1024);
if (total != 0 && loaded>=total) {

// Here im going to get the width and height of the loaded picture so i can space them out
var w = test._width+space;
var h = test._height+space;

delete this.onEnterFrame;
}
};
};
}

}






my xml load just in case

Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
//declare image and description as array
image = [];
description = [];
thumb = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
//image[i] will store value from the inner tag <image>XXXX</image>
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
//description[i] will store value from the inner tag <caption>XXXX</caption>
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
//thumb[i] will store value from the inner tag <caption>XXXX</caption>
thumb[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
}
firstImage();
LoadThumbs();
} else {
content.text = "file not loaded!";
}
}
xmlAlbum = new XML();
xmlAlbum.ignoreWhite = true;
xmlAlbum.onLoad = loadXML;
xmlAlbum.load("album.xml");




my old practice code that loads pics in
i had been using this but for what i wan to achieve in the end its not really suitable i.e. preload and space images. (i think?) i couldnt work out to get the width and height so this is why im trying another method

Code:

for (i=0; i<total; i++) {
//trace (thumb[i]);
_root.Spacer += 160;

//previous image
p=i;
p--;
trace ("Current Image = "+ thumb[i] +" | "+"Previous image = "+thumb[p]);

_root.Holder.createEmptyMovieClip("container"+i, i);
eval("_root.Holder.container"+i)._y = 0;
eval("_root.Holder.container"+i)._x = _root.Spacer;
eval("_root.Holder.container"+i).loadMovie(thumb[i]);

trace ("Previous image width= " + eval("_root.Holder.container"+p)._width);

}

LoadMovie Vs LoadClip
i load a movie using mc.loadMovie("name.swf");
one by one.
works fine on my machine but when I try running the mani swf at my machine
from another machine in networke it loads some clip but not all.
While the same works on network also when i use moviclip loader
class.loadClip() method
Does anyone have idea why.

LoadClip / LoadMovie Issues
Im loading an external .swf into an empty movie clip when a button is clicked. This external swf has items that extend off the stage, which are masked and slide into view at certain times. Problem is, after using either loadClip or loadMovie the now full movie clip's stage size is including those items that are off the stage and masked, even though they can't be seen.
After hours of digging i've seen only a couple things on google where others have had similar problems, but no solution has been posted.

Loadmovie And Loadclip Object
Hello

I've got a question about how this should be made, and not how to do it

I usually, when loading external swfs, use a pre-loader on the target swf to load on the first scene with all the coding etc etc.

But it has come to my attention that even the simplest loader sometimes take ages to load, and when it does it just shoots the 85% and so forth bar and that's it.

So i've started searching other types of loading techniques and found the loadclip object ( with the addlistener ) that allows the progress of the loaded clip to be controlled by the swf that calls it.

Is this the best way?

I mean, i want to have something like this on my site ( http://www.anovadesign.com/ - check out for exemple the graphics section ) . See the pictures? They load one after another without replacing the actual one before the new one is read...

Any tips??

THANKS A LOT!!

Ricardo

[F8] Example: Www.anovadesign.com - Loadclip Or Loadmovie?
Hello

I was wonder how the photo system was made...it's better to do it with loadclip so we can control the loading progress without overlaying the new swf or should we use loadmovie with a preloader on first scene?

Help!

Thanks!

Difference LoadClip Vs. LoadMovie?
What is the difference between loadClip and loadMovie?

I noticed when building a slideshow that loadClip wouldn't work.

Know When A LoadMovie Has Been Fully Loaded - But Not LoadClip
Hi,

Keyone.it, another member of the flashkit community created an amazing way to stop your swf files being cached (except a loader file). The technique envolves using the loadMovie command in flash on a php file; this php file loads in the swf file.

I now need to find out when the file has been fully loaded (and how much has been loaded preferably). I tried using the loadClip method but to no avail - unfortunatly this fails to load the movie via the php file.

So what can I do, thanks for any help !

Target Not Found With LoadMovie Or LoadClip
Oh man, this is the worst. I can't fix it for my life:

So I'm dynamically loading a movieclip and then trying to load a sequence of images into it. I've done it a million times before, but I keep getting the error:


Code:
Target not Found: Target="/mcContentHolder/mcContent/mcLoader" Base="_level0.mcContentHolder.mcContent.mcLoader"
My code looks like this:


PHP Code:



for(i=0, i<=aImages.length, i++){
  var mcImage:MovieClip = this.createEmptyMovieClip("mcImage"+i, this.getNextHighestDepth());
  mcImage.loadMovie(imagePath);




I have tried using a moviecliploader, taking it out of the loop, putting an empty movieclip on the stage...nothing works. I can load something directly into "this" and attach movies to it, but can't load into an empty MC.

Any ideas on this one?

Duplicate Image That Was Loaded Via LoadClip Or LoadMovie
Is there a way to duplicate a movieClip that was loaded using the loadMovie or loadClip function?
What I'm trying to do is make a bunch of images that I've loaded draggable, without having the original image leave its place. So like when somebody click on one of the images a 30% alpha duplicate of that image would be what is dragged instead of the original and of course be able to drop that somewhere too. Something along these lines:


ActionScript Code:
_root.createEmptyMovieClip("image_mc", 999);
loadMovie("image.jpg", _root.image_mc);

_root.image_mc.onPress = function() {
duplicateMovieClip("_root.image_mc", "dragImage_mc", _root.getNextHighestDepth)

this.dragImage_mc.startDrag();
}

Or ya know... something along those lines. But right now the movie doesn't duplicate for me. Is this even possible using MX2004? Thanks for the help!

MovieClipLoader.loadClip Doesn't Work, But MovieClip.loadMovie Does?
ActionScript Code:
private function init()
{
    var mclLoader:MovieClipLoader = new MovieClipLoader();
    var objLoadListen:Object = new Object();
    var mcTarget:MovieClip = _mcParent.createEmptyMovieClip("_mcGraphic" + _nCounter.toString(), _mcParent.getNextHighestDepth());
   
    /*objLoadListen.onLoadStart = Delegate.create(this, onLoadStart);
    objLoadListen.onLoadProgress = Delegate.create(this, onLoadProgress);
    objLoadListen.onLoadComplete = Delegate.create(this, onLoadComplete);*/
    objLoadListen.onLoadInit = Delegate.create(this, onLoadInit);
   
    //mcTarget.loadMovie(_strFile);    //This Works...
   
    mclLoader.addListener(objLoadListen);
    mclLoader.loadClip(_strFile, mcTarget);    //This Doesn't...
}

Code is pretty simple...for some reason the loadMovie statement processes fine, but the loadClip statement does not. No error, no nothing...it just doesn't load the image.

Loadmovie/loadclip On Attached MC Giving Wrong Height And Width.
Hey guys, I got this frame i created and gave it a linkage name of : "myframe"

myframe has a picloader mc and a picmask mc..

I loop through attaching "myframe" at proper depths 12 times and once it is attached, i use loadmovie or loadclip to attach an image to myframe.picloader and enforce the mask onthe pic.

once I load the image, i do some tweening effects in AS but the width and height is no longer correct.

myframe is supposed to be 130 x 100 but now im getting 621 by 400.2.

any idea on why this happens? Thanks

Loadmovie Through Buttons Only Once And Thereafter Just Just Swap Levels Every Click
I have made a button on my stage and once it is clicked it loads a .jpg into an empty movieclip. Now i have several buttons on the stage that do this loading a different .jpg for every button but they all load jpegs into the same movieclip. what i am trying to do is that once button1 is clicked and it loads the image1 into the movieclip called jpgMc and then button2 is clicked and it then loads image2 into jpgMC and then button1 is clicked again but this time i want it so that the next time button1 is clicked it will somehow go back and display image1 without loading it again. i'm not sure but is there somehow i can play around with layers or switch depths so that like on the second click on button1 it will just move image1 in the front. or is there a better way to do this?

How Do I Swap Flash Movies In Dreamweaver In Place Of Swap Image?
In Dreamweaver you can swap images on a mouseover event using behaviors.

Instead of swapping images, I want to swap flash movies.

Example:

Build a table
place and play a flash movie in a cell
on a mouseover, replace that flash movie with another flash movie.

Can it be done? It apparently can't be done directly - Dreamweaver won't see flash files as swappable. Perhaps there's a workaround.

Swap Images Or Swap Symbols?
I want to load a bunch of images dynamically -- into different movie clips. And then simply have a master clip which lets me swap out these dynamically loaded clips. Is that possible?

Can I do a swap or replace symbol on the Master to have it be replaced by each loaded clip one after the other?

Please Help Im Going Insane
What im trying to do is make a little animation of a spinning ciggarette, and as it spins it duplicates a grey blob (smoke) at whatever position the burny end of it is..

The problem Im having is that when I try to get the x and y of the invisible movie clip (fire) that I stuck on the end of the ciggie, it gives me it's x and y relative to the ciggie itself (0, -112)

What I want to get is the x and y of the fire clip, relative to the main movie (ie. it will change as the ciggie movie containing it spins)

http://my.genie.co.uk/wobble.gonk/spinningfag.fla

Here's a link to the .fla file, please please download it and see if you can help. (if you get it working please email the .fla to me)

I Am About To Go Insane - PLEASE HELP
Hi,

Sorry for the overly dramatic title

I have had a problem that is driving me nuts, i have tried various solutions and workarounds and none seem to work. Whats worse is that my boss is pressuring me to get it fixed.

The problem is relating to Flash mvoies loading out of date content. I have a flahs banner which pulls content from a txt file. When a user visits and then revisits, they are presented with the same info even though I have changed the content in the text files.
Here is the URL to a simplified version: http://www.martincrumlish.com/flash/aff75.php (note: it seems to work if you click the link, then close the browser, change the txt file and then click the link. However, I need it to reflect the change if you hit refresh)

I have add a random number to the text file names in the actionscript, i have used an iframe to call another PHp file with a random number appended to the URL and finally, the code for the flash movie also ha a random number after the .swf part. All of this was to try to make the browser download the latest version of the movie (and the text files) from the server but it doesnt seem to be working.

I also used the META tag option described here: http://www.macromedia.com/support/f...ent_caching.htm

I have included all the files in a zip for anyone who wants to have a crack at this either working with my code or a new version that just displays 2 bits of text in the same was my movie and makes sure this text comes from an external source and is up to date.

Thanks in advance for your help.

Here is the zip with all the files: http://www.martincrumlish.com/flash/mc.zip

Thanks,
Martin

I'm About To Go Insane.
OK... for the 3rd time posting, and with no success (thanks to those who tried) i'm going to ask it again.

I have 4 layers, Layer 1 is the background. Layer 2 is a layer that fades in and on frame 10 has a load command.* Layer 3 are my buttons.** and Layer 4 is my Dynamic Text Box and Scroll bar.***

*the load command is:

Code:
onClipEvent (load) {
loadVariables ("http://www.coreywatson.com/res/var1.txt");
}


**these I use to change layer 4.

***this needs to be changed by layers 2 and 3. the code on one of my buttons is:

Code:
on (press) {
loadVariables ("http://www.coreywatson.com/res/var1.txt");
}

(this is if they come back to them main section from one of the other buttons.)

the Variable for my Textfield is myText.

****this is my var1.txt code

Code:
&myText = dlksjflskjdlfjdlsdjfldkfjdslkfjslfksjflsakdjsldfj


now how to set this up? i have tried many a time and it has all fallen to ***** and i'm about to do some stuff straight out of GTA.

here are some questions i'd like to get answered:
1) do my buttons, load code and textfield need to be on the same layer?
2) does my text file have to be encoded in UTF-8? (it is right now.)
3) do i need levels and instance names when i load variables and pass commands?

and do be VERY specific, i mean like i'm your grandpa - explain it all in glorious, boring detail please.

Thanks if you can!!!

Please Help Before I Go Insane.
I have this .Fla file that is like a presentation. If you run the file you will clearly see what is wrong with it. Overlapping text. Play around with the buttons it keeps getting screwed up. I cannot figure out how to make this work for the life of me. Please any help would be awesome.

Going Insane, Please Help...
I built a project in MX 6.0 that I published in a projector and burned to CD. It contained a number of swfs with embedded video clips which the user accessed by clicking on text in a scroll box in a main template. The text in the scrollbox used asfunction commands to create links that then called the videoclip swfs with a loadMovie action. The video clip swfs were loaded onto level 1 of the main template.

This worked great locally, but was unacceptably slow in loading the video once it was from the CD. It was suggested that loading the video as flvs using a media display component wd be much faster.

So...I downloaded the MX 2004 pro trial version and re-created the whole project using Flash 7 and ActionScript 2.0. I created flvs for each of the video files. For every swf that had had an embedded video clip, I dragged a media display component on the stage, named the instance "myMedia," used the action myMedia.setMedia("filepath","FLV"); in the first frame and set the parameter to the flv I wanted it to show. I published each file making sure it was ActionScript 2.0 and Flash Player 7 and that all the files were in the same directory. Each original .fla I'd already re-saved as an MX 2004 Pro file.

I haven't even gotten to test off of a CD for my original purpose--to see if this solution actually gets the swfs with video to load faster--because really bizarre things are happening:

1. All of the new swfs were made in exactly the same way--I've checked and re-checked--yet some of them play in the original template swf when the loadMovie link in the textbox is clicked, and some just show the swf but no video plays.

2. Some swfs play the video in "test movie" mode, but not in the published projector file. A moment later, with no changes made to the original files, these links play the video in the swf.

3. When I test in the projector or the test movie mode, one of the files with the video will play great, and if I click on the link again immediately after it's played, it will show the blank swf again with no video running.

4. When I just open the swfs with the video clips in them from my computer directory in the Flash 7 player (not accessing them from the links in the scroll box from the main template), they will appear blank--no video. Then if I hit a cntrl-r (rewind) in the player they play.

I tried downloading and installing the updated video exporter. No change. I feel as tho I'm losing my mind. Anyone out there got any ideas what's going on?

I'd be extremely grateful for any help.

Please Help, Im Going Insane
Im trying to create a jukebox, so that when the user clicks a different song, the "Current song" variable. This is quite simple, but I want the variable to be read from a playlist (txt file).

Below shows the txt file being loaded. when the user chooses a song ie song 2, the var current = 2 etc. Then I want a movie clip which are the /song1, ,song2 etc below, to be made visable which contain a dynamic txt box with the name of the song. Is there a better way of doing this??? This is so that I can change the txt file values for new songs, and theres no need to change any vars in flash etc! FLA also attatched! Thanks

loadVariablesNum("playlist1.txt", 0); //Loads txt file for the playlist
if (current = 1) {
setProperty("/song1", _visible, true);
setProperty("/song2", _visible, false);
setProperty("/song3", _visible, false);
} else if (current = 2) {
setProperty("/song1", _visible, false);
setProperty("/song2", _visible, true);
setProperty("/song3", _visible, false);
} else if (current = 3) {
setProperty("/song1", _visible, false);
setProperty("/song2", _visible, false);
setProperty("/song3", _visible, true);
} else {
setProperty("/song1", _visible, false);
setProperty("/song2", _visible, false);
setProperty("/song3", _visible, false);
}

Going Insane Help
I'm sure this is a stupid question so maybe someone could give me a stupid answer..lol anyhow can someone please tell me why each time i created a button place it where i like it when i save all and reload it always appears as the loading symbol... thanks for any help

Please Help, Am Going Insane
Hi all,

I am using flash mx (version 6)

I bought a pre built flash template, as am very new to flash and wanted to put a site together, which i have done! to my amazement!! hehe

anyway,

after a few weeks of my site being up and running, i decided to put in a contact form, that uses a email.php script to handle the message and email it the message to my address, which, again am surprised i got to work.

but ive come across this problem, please someone help me, before i chew up my laptop and or feed the thing to the dog!.

"when someone enters their name, email and their message into my form, they hit submit and i get the email instantly, which is fine, but on the page, to the site visitor, the text remains, and they dont know if its been sent, so they press numerous amount of times and i end up getting the same message 12 times!"

how can i make my submit button, go back to the main screen again?
once a user has submitted a message, i want the site to jump straight back to the begining again?

heeelp pretty please!

Paul, total nooooob!

**** I Am Going Insane ****
Here's the issue:

I have an SWF that progressively loads using the MediaPlayback control. After 10 minutes, 49 seconds, I need the .swf that is loading the mp3 to pop up a "take survey" button that, when clicked, takes the user to a website in a new, blank (_blank) window.

I have tried and tried to figure this out, but I am running into brick walls, over and over. PLEASE HELP ME!!!

Am I Going Insane?
Do any of you guys have the actionscript compiler randomly ignore code sometimes? Here's an example:


Code:
oDescrMC.attachMovie("iGenShield" + awrdChoice,"descrGen",2);
oDescrMC.descrGen._width = oDescrMC.descrGen._width * 2;
oDescrMC.descrGen._height = oDescrMC.descrGen._height * 2;
oDescrMC.descrGen.y = 0 - oDescrMC.descrGen._height / 2;
//oDescrMC.attachMovie("genShield" + awrdChoice,"temp",2);
trace(oDescrMC.descrGen._name);
trace(oDescrMC.descrGen._width);
trace(oDescrMC.descrGen._height);
trace(oDescrMC.descrGen._y);
trace(0 - oDescrMC.descrGen._height / 2);
Originally, the trace calls weren't there, and the movie would never attach, even though all the parameters were correct. I fiddled around with some things but nothing worked. Finally, I added the second attach call and the trace calls, and WHAMO! the movie appeared. Removing the second attach call didn't affect anything.

Now, everything works fine, even if I remove the trace functions. Strangely enough, there's another piece of code eariler on that's IDENTICAL to this one except for the target MC in the library, but it still refuses to attach at all. (in case you asked, I copy/pasted the linkage name right out of the dialog box so I didn't misspell it).

Am I going insane? Or am I just being a n00b?

PS: Sorry if this is a common question...I tried searching but couldn't find anything.

I'm Going Insane...
Alright, so I'm working on developing an online magazine page flip thing for my company and I've got all of the kick butt functionality plus some. Now I need to import the .pdfs to make everything vector, but I keep getting a wonderful "unknown error" message. If I import .ai or .eps files all of the text and images relocate to wherever they want, and if I use a .swf and loadMovie, it cuts out revealing the page behind it every time it loads the page.

This is driving me nuts. Is there a way to completely flatten an .ai file so there are NO layers? Just one flat image? I think that would solve my problem, but am not sure. I'm open to any other suggestions.

Here is a link to what I'm working on: http://www.wrightsreprints.com/flashtest/pageFlip/. The first page has the loadMovie function working for it. Looks pretty bad.

Thank you in advance!
John

I Going Insane...
I cant reach the functions in my loaded SWF !!

Its correctly loaded... and displayed on the screen in a movieclip called
"myContent"

I CAN do things like:
myContent.y = 100;

and accesing variables like this:
trace (myContent.currentPage);

but i CAN NOT use the functions in the loaded SWF...
I try this code, and it wont work.
myContent.testa();

(btw... "testa" is a REALLY simple trace function inside of the loaded swf... just to test things... )

Help I Am Going Insane With This
Please help me on this i don't know if i made myself clear 'cause
my english is pretty much average but regarding this flash question i think there must be a problem with the html .
i did create all the html and swf on a pc but i uploaded this on a mac ...could that be the problem?
This is my first page ever so i have almost no experience with flash
but it is such a beautiful program and i like to play with it as an hobby (i am a photographer) .
Also how do i take the antialias for text out?
Thanks again


Hi i just did my first web site ( i am a total beginner) and i am having problems with either the html or the preload of my web page. Basically there is a main and 7 child linked with get url
buttons _self on the main and the back buttons on the child are alway get to url main_self . it works on pc but on a mac it reloads the all intro animation even if the whole thing is already downloaded and the preloader tells him to go to the end and stop on the main scene on the main swf.
i don't kno what it is and i really don't have any experience so please if anyone can help me it would be great.
Thanks everyone
photomassimo
this is the link to the page i still have to embed the fonts
so is not really up yet.
http://www.gammacurta.com/flash/index1.html

Im Going Insane...
For some reason, my background wont stay fixed to x:0 y:0 position when I publish. Everything looks just fine in flash, but when I publish it, it's moved a bit.
The preloader seems to have a few issues as well. Please take a look
Check out the .zip:

www.olssongerthel.se/flash.zip

Going Insane
Hi,

1st
Iam using Flash MX and am not a total newbie to it. I have used both Flash 5 and Flash MX for about 2 months now. But I have a question on how that was done.
Go to http://www.5sec.com/ and then on the menu bar click Free Stuuf once there......ahh never mind, I will just up load the zip file.

Now iam wondering how she linked all that text in the flash site.

2st
Ok....if someone could fill me in on what is needed to bulid a flash site. Yes I did see the tutorial on this site...but being ADHD I need things in steps
What iam looking for is like...the things needed such as...code,how to do the menu,how to make the site quick loading,how to make it easy to update....and stuff like that.

I know Iam asking for alot but if someone could help me here that would be great.

Thanks

Going Insane... Help :-(
i am new at flash. please, please help me!!!

goal:
create a swf photogallery that easily can be reused. to change it to a new gallery - the only code needing to be altered is directory name and file names.
all photos will be the same size...

end result:
on a cdrom ->
main menu with 4 buttons - 1 exit btn and 3bts each to a different photo gallery.
each gallery has 'next', 'previous', 'sound off/on' and 'back to main menu'

i used the photo gallery tutorial on this site. all is perfect, altered it to add captions, it's great...

BUT
i don't think it's what i want. everytime the user hits 'next' or 'previous' it goes back to the cd... it's spins, noisy... (no prob. if this was online) but...

so i think i need to preload... or load the photos into the library.

i'm a programmer so can understand the logic... even if someone just could give me a clue... like say you gotta do this, then this, blah blah... i can figure out how.


Anyone... please.. can you send me in some direction? The more I read, the more confused I get (and i've been reading a lot!).

Going Insane...
Does anyone have any idea why I can find an MC via the target button in the expert panel...so it does exist with a complete path...but when I try to trace the _y value of the clip it outputs nothing. I can't communicate with it in any way. It's 4 MCs deep in a MC that's masked (layer masking not AS). This is driving me crazy. It seems like a bug or a corruption of some sort. I'm on the verge of just recreating it from scratch. Thx for the consideration.

Please Help Or I Will Be Insane By Morning
I need to preload an external swf file into the users cache. I have searched everywhere and only found a few very complicated options that do more than I need. I really need some love here.

I want to preload menu.swf which loads into _level1 before the movie is allowed to play.I would like to do this from the intro if possible.

I had one idea. I though if I put a small empty movie clip on the stage and named it holder I could tell my intro to load the swf into the holder clip, and that would get it into the cache. then I could tell the main movie that loads after the intro to unload it, but it would remain in the cache till needed. Could this work?

I attempted it but was not sure how to get it to load into the empty clip. I named the clip holder and used this code (I am not that great at script)

host.loadmovie("menu.swf")

then I wanted to add some code to detect if the clip was full., which I also could not figure out. but, i wanted some code that detects the total frames and checks to see if they are there. if they are there, then it could load the main movie.

do you see what i am wishing I could do here. I know what I want to do but not how to set it up. Or if there is a better way I want to learn it.

bottom line......
how the hell do you preload a external swf into the cache so it is there when you need it??

thanks for any and all help. I have been working on this for two days straight and am now insane. rahaha
[Edited by tammit1971 on 11-29-2001 at 09:49 PM]

This Is Making Me Insane
Ok, so i'm trying to make this interactive course...
and i have an input text box called Units...and the instructions tell the user to type a 5 in the box and then press enter...when they press enter i need flash to advance to the next frame label which is called 17...so far i've put this in and invisible button off screen

on (keyPress "") {
if (Units == "5") {
gotoAndStop("Step3 15)", "17");
} else {
trace("else");
}
}

all that happens is...well...nothing...if however you click outside the input box after typing in the 5 and then press enter...then it advances...

any ideas....pulling hair out!!!!

Variably Insane
hi, I am having problems and hoping to get some help. What I have is a variable named image that is either given the value 1,2,or 3 depending on which background image is showed. The images update every 15 seconds and are changing the variables value, i know this because I trace its value on each image update.

no the problem is that i want to have a button to change the image if the user does not want to wait for the timed update. I thought I would need three if statements that point to frame labels. Here is the code I have.

on (release) {
if (_root.image=1) {
_root.background.gotoAndPlay("background3");
} else if (_root.image=2) {
_root.background.gotoAndPlay("background1");
} else if (_root.image=3) {
_root.background.gotoAndPlay("background2");
}
}
background is the name of the MC that contains the images, and image is the variable. As of now it only works if image =1.
Please helpon (release) {

I'm About To Go Friggin Insane Please Help.
I know I'm so very close to getting this to work but I must be missing something easy.

Problem: I use loadVars to run a PHP file that sends variables to my movie. Works fine. I then use those variables and loadMovie to retrieve a jpg on a remote server. Also works great. I then do some simple animation and use gotoandplay at the end to jump back to the loadmovie part to grab a new jpg. This works great too. My problem comes in when I try to determine the size of the jpg file. For some reason flash is able to correctly get the getBytesLoaded and getBytesTotal for the first jpg loaded, but when I send the control back and grab a new jpg, it doesn't grab the new jpg's size correctly and instead it keeps the size of the first jpg loaded.

I've tried unloading and removing the clip that the jpg is loaded into and it doesn't matter. I've tried setting the vars that hold the getbytesloaded and getbytestotal to zero and I briefly see them reset to 0, but then go right back to the size of the first jpg.

Please help me restore my sanity!

Would This Be Insanely Insane?
I know this sounds a little out of the ordinary...

But I was considering making tiles for my game huge... making tile by tile is difficult and slow.. The tiles would be pretty big, but it would be much easier to detail them...

Arrays Insane
Am I insane, or is there a bug in flash when working with arrays. Is this a bug, or is this LEFT with purpose?!
I just cant construct dynamically working multidimensional Array. I would like to know is this possible at all..

Code:
//sample variables
group = [0,1];
tn_r0 = ["t0","t1","t2","t3"];
tn_r1 = ["t0","t1","t2","t3"];
jpg_r0 = ["jpg0","jpg1","jpg2","jpg3"];

for(i = 0; i < group.length; i++){
for(j = 0; j < _root["tn_r"+i].length; j++){
temp = new Array;
temp[0] = group[i];
temp[1] = i;
temp[2] = eval("tn_r"+i)[j];
temp[3] = eval("jpg_r"+i)[j];
_root["tr"+i] = new Array;
_root["tr"+i][j] = temp; //this doesnt work. Why!?
_root["tr"+i][0] = temp; //this works
}
}
trace (tr0[0]);
I have tried many combinations with different braces, but no can do..


WOW!! Got it!
this works ... insane...:

Code:
group = [0,1];
tn_r0 = ["t0","t1","t2","t3"];
tn_r1 = ["t0","t1","t2","t3"];
jpg_r0 = ["jpg0","jpg1","jpg2","jpg3"];

for(i = 0; i < group.length; i++){
_root["tr"+i] = new Array; //this here!!
for(j = 0; j < _root["tn_r"+i].length; j++){
temp = new Array;
temp[0] = group[i];
temp[1] = i;
temp[2] = eval("tn_r"+i)[j];
temp[3] = eval("jpg_r"+i)[j];
_root["tr"+i][j] = temp;
}
}
trace (tr0[0]);

This Is Driving Me Insane
I have a movie I am trying to do a preloader for but nothing is working..no matter what I do..nothing will play until everything is loaded.. I put a new scene in before my main scene and just typed a number..but that won't even show up until the entire movie is loaded...everything works fine once the movie is loaded... what are some possible reasons for the file doing this. Shouldn't scene 1 play and load before scene 2(I took out the preloader script just to check and same thing..the m,ovie doesn't start until everything is loaded) I need some suggestions before I pull out all of my hair
thanks,
Jeff

Slowly Going Insane
ok i want to load 24 images using xml into 24 frames of a movieClip. the movieClip has two buttons and a mouse drag zone to go foward and backward in its timeline any help would be appreciated


here is the fla and xml files

[F8] Im Not Sure How This Is Done - And Its Making Me Insane
http://www.clintbalcom.com/

when you enter the site, youll see little balls on the bottom of the layout, these are the buttons. when you click one, the "stage" or box slings down and shoots off screen, being replaced with another.

how to I code something like this????

Driving Me Insane
Hello everyone...

I'm building a very long flash movie that jumps to different 'scenes' (really just frame numbers and labels along one timeline).

I want the entire movie to load, and then jump to a specific frame. I'm using this code on frame 1, my loading frame:


Quote:




fFrameLoaded (3992) {; gotoAndPlay("INTRO");}




'INTRO' is actually on frame 2611... miles away!

The thing is, if I preview this in HTML, FROM FLASH, the code works... But if I publish it online or run it from my desktop, it doesn't work!

I've tried labelling my frames differently, or using goto frame number rather than frame label... But to no avail.

You can peep my movie here:

http://www.mysteriousal.com/spookhouse/new_teaser.html

I've also uploaded the fla if anyones interested:

http://www.mysteriousal.com/spookhouse/new_teaser.fla

If anyone can shed some light on this problem I'd be very much in your debt...!

I'm using Flash 8, by the way.

Thanks...

Driving Me INSANE
I am REALLY losing my mind !!
I have duplicated movie clips so many times but this time it got to me ,HELP !!
I am trying to duplicate a movieclip that is one level above me (_parent)
and trying to create it also one level above me , OR should it be in the nested one i`m trying to do it from ?
Secondly the movieclip i`m duplucating is a COMPONENT and the default value for _enabled = true;

Now when i run this code in the nested clip , it sorta does duplicate it but , the trace gives me undefined for _enabled (which default should be true???)

HELP!!!


ActionScript Code:
trace("NUMBER BLUE" + _parent.no_blue_covers);
        duplicateMovieClip(_parent.blue_cover, "blue_cover" + _parent.no_blue_covers, this.getNextHighestDepth());
        trace("Enabled = " + _parent["blue_cover" + _parent.no_blue_covers]._enabled);
      _parent.no_blue_covers++;

Flash Is Insane
Sorry...Feeling a bit over the gremlins today...

WHY the hell....
I have a main.swf, which uses loadClip to load in mediaPlayer.swf, just as an example... The mediaPlayer.swf is compiled using a set of classes, as is the main.swf.

It seems that when they're online, you can only update the classes of the loaded movie if you first change and re-upload the main movie first. You can change the FLA and see it right away, but not the code/classes...

what the hell is goin here??? I wasted so much time...Thinking I was testing an updated movie each time, because there were obvious graphical changes showing up, but the code was cached.

Is this nonsense intentional or is some kinda bug or what?

_please Help Me .. I'm About To Go Insane
Hi there,
I'm a despreate flash (MX) newbie about to go nuts because of a "Simple script" that doesn't work .. if you could give me a hand I would really appreciate that!

the following script should load an external mp3 file named "sound1.mp3" and display a progress bar (preloader)
when the file is loaded the script sould move the playhead to frame number 3 .. but it doesn't!

the source file is attached!

to see a working example please go to:
lewislewis2.tripod.com/

Note: try to empty your cache before you re-view any of the two .swf files in my site .. since the code will cache the file "sound1.mp3" in the browser cache anyway!!


Thank you

Load ....i Am Going Insane
I am trying to load an external swf called f into the main time line of a another swf called index wich is my main and i am having this problems:
there are many bottons on my main and when i load that into a target f since the bottons are on diffferent parts of the main they would show up under f but are still active and if somebody hit them they would unload the f.
i tryed loading into a level but i still have the same problem
or i can just load one movie into the other and viceversa but it doesn't look good.
also on the f i have some bottons that interact with index and so i really think that i need to load that into a level but how could i either mask or deactive the buttons on index?
thank everybody in advance there's probably an easy solution but as i already said many times flash is just an hobby of main and i am just a total beginner.
eveything is on flash mx and the player is flash 6

Insane Player
I downloaded this file from a tutorial. It works great and is very good. It works when I do it with the file that comes with it. I copy it to test it in a different movie and it does not work. Nothing is different from the movie and the one im working on. The code and everything is in the right place, but for some reason when you try to make one of your own it doesnt work.

I just a "Loading failed!"

This is driving me nuts and I don't know where else to turn.

I hope someone can help

thanks

PLEASE HELP XML Is Making Me INSANE
I've searched and searched what feels like THE ENTIRE INTERNET until I can't see anymore!

Here's what I want to do and I'd love it if somebody could just give me a little advice...I've followed the xml tutorial on kirupa, but still can't figure out how to do what I want to do! Please help me!

Here's what I need to do:

External XML file holds all the data for each person, right? All their accomplishments, their bio, their phone number, etc.

Buttons correspond to data - "Accomplishments" "bio" "phone numbers" right?

On press of each button, I simply want to populate my dynamic text box with ALL the data of a certain kind for each person. That is to say, ALL the accomplishments. Then the bio. Then ALL the phone numbers.

That's it.

How can I do this? I've searched and searched and everything seems so complicated. Anybody have a SIMPLE solution to this?

Please help. I'm desperate.

Thank you!

Somebody Help Me Mod This Thing Before I Go Insane....PLEASE:D
hey guys I'm trying to get this crazy line drawing thing to not go from a curved line to a straight line when its trying to hit its target. i want to keep it curved when it hits the target. Is there anyone who can help, please?

download the file to see what i am talking about.

Insane Background?
Can you make a really trippy backround for flash 8, by making shapes transform to sin(x^2) and other mathematical equations? Kinda like 'Windows Media Player' Plugins.

Thanks,
~J H Allen

Copyright © 2005-08 www.BigResource.com, All rights reserved