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]
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-29-2001, 10:42 PM
View Complete Forum Thread with Replies
Sponsored Links:
Having A Bad Morning
How do I get my sound to loop but put a stop action on the scene. i have a home scene etc and I want the animation to stop until a button is clicked. However the user may be on that scene for several minutes and I want the music to continue to play. I know the stop action will stop the music even if I have loop on. So I tried the prev frame action and now on some scenes the buttons don't work.
any suggestions?
Nothing is working right this morning this is about my thrid post today. Yesterday I could do no wrong, today I can do no right.
Thanks in advance.
Taz
View Replies !
View Related
[F8] FLV Playback Help By Morning
Question: Can the FLV Playback component be used with an swf or does it have to be FLV (whatever that is). If so, how do you get an FLV out of an swf?
I'm trying to acomplish a control bar at the bottom like this:
http://www.wdc.com/map/tester/mbworld/
I think it's the FLV Playback component, but how do you use it with a swf?
Thanks!
View Replies !
View Related
Morning Everyone CGI Question :o)
Morning )
I'm posting to a CGI message board but unfortunately having trouble laying out how the URL.
This works okay when posting into a browser window :
http://www.website.com/cgi-bin/guest...&message=HELLO
The above example posts the words ME as the name and HELLO as the message directly to the messageboard, no problem BUT....
If i want to pass variables from the movie to replace the ME and HELLO, i have problems (
Example :
var1 = "TOM"
var2 = "DICK"
http://www.website.com/cgi-bin/guestbook.cgi?namefield="var1"&message="var2"
It looks strange i know as i dont know how to add the variable to the URL?
I'm using onPress getURL function and POST method.
The variables are within the same movie.
Many thanks in advance )
Cheers!
Steptoe
View Replies !
View Related
The Morning Headache
Here's what I'm trying to do...
Take this:
http://www.iparigrafika.hu/pageflip.html
and convert it to an effect instead...
To explain better, I don't care that it loads a page graphic, I'd just like one page that I could flip back and forth, and depending on what side you click, it'd change a variable. That's it.
If that's not possible, then can anybody point me to a decent looking page flip animation?
If you're serious about helping, I'll post what I've already cobbled together...it works, sort of.
View Replies !
View Related
Good Morning OOP
still struggling to make some OOP code
folowing the file found in gotoandlearn, introductionToOOP, tryed to modify it and work with tween class.
i wont post the code, cause it seams that u will need to sneak inside the fla to see how it works
first look it seams to be working fine, but if you just keep rollover those "buttons" area it will "crash" (the rollout animation starts before you rollout)
this is just for me to understand how OOP works, i thought that whas same rules as AS :p
o k time to stop saying sh*t
hope someone can give me a free class about OOP
am
View Replies !
View Related
The Morning Headache
Here's what I'm trying to do...
Take this:
http://www.iparigrafika.hu/pageflip.html
and convert it to an effect instead...
To explain better, I don't care that it loads a page graphic, I'd just like one page that I could flip back and forth, and depending on what side you click, it'd change a variable. That's it.
If that's not possible, then can anybody point me to a decent looking page flip animation?
If you're serious about helping, I'll post what I've already cobbled together...it works, sort of.
View Replies !
View Related
Good Morning Etc - Actionscript
I've used the following actionscript on a dynamic text box to show - good morning, afternoon, evening etc.....but I hate standard text.
I want to use 3 gif's - morning.gif afternoon.gif evening.gif instead of the dynamic text.
How do I go about that? any ideas?
Ian
onClipEvent (load) {
days = new Array('Sunday','Monday','Tuesday','Wednesday','thu rsday','Friday','Saturday','Sunday');
months = new Array('January','February','march','April','May',' June','July','August','September','October','Novem ber','December');
timedate = new Date();
}
onClipEvent (enterFrame) {
hour = timedate.getHours();
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = timedate.getMonth();
monthname = months[month];
year = timedate.getFullYear();
if (hour<12) {
good = "Good Morning !";
}
if (hour>12 & hour<18) {
good = "Good Afternoon !";
}
if (hour>=18) {
good = "Good Evening !";
}
fulldate = dayname + " " + todaydate + " " + monthname;
delete timedate;
timedate = new Date();
}
View Replies !
View Related
A Sunday-morning Question
Hi there, can someone explain to me why this:
picArray = Array(["one"]);
attachMovie("1", picArray[0], 1, { });
picArray[0].gotoAndPlay(10);
wont work and why this:
picArray = Array(["one"]);
attachMovie("1", picArray[0], 1, { });
one.gotoAndPlay(10);
works?
Thanx.
View Replies !
View Related
Flash Crash Down In The Morning...
Hi !
I would like to know if I am the only guy on Earth with this
problem :
Very frequently, when I test a project, Flash crash down.
Usually, this happen the first time I test a project, so just after
I've lunched Flash (like in the morning...). Sometimes, I must
try 5 ou 6 times before Flash becomes stable. After that, I am Ok...
This is really annoying !
I am working on Windows XP and Flash Mx 2004 (7.0.1)
Mathieu
View Replies !
View Related
Morning Flashers. Im Having A Problem Getting An External Text File To Do What I Want
Ive not used the forum before, but you do seem like a helpful bunch!
here is the scenario i am trying to create : the web page has a crystal ball, inside the crystal ball, text fades in and out saying something. This is fine, its just calling an external text file, and it works.
Underneath the ball is a dynamic text field which when typed into, will preview what was written in the crystal ball. I figgered the best way to do this would be for the dynamic text to write to an external text file which the movie would call and then preview in the ball. I dont want the file to become part of the text file that the movie uses as its source, but to a seperate one so that I can choose what people can enter as text for the ball to display.
make sense? any help would be really really appreciated as i am tired of beating my non scripting brain in over it.
many thanks.
View Replies !
View Related
Good Morning, AS3 Help Needed For Building My Own Site In Flash
Good morning to all,
I am creating a site in Flash, I am using AS3 to create a site that stops/starts the movie on my home page and I have a series of buttons that play a head (or are supposed to) to the a frame for each additional page. Do I need A.S. for each button as well? I didn't think I did. The script below is the first one in the layer titled actions, this I thought is supposed to stop/start the movie at the beginning and the button abt_mgn_btn is supposed to bring it to frame 10 to play my about page. ?? at my frame number 10 should I put the stop(); script there as well? And at every frame break for the next pages? I am hopelessly in need of guidance. Thank you to anyone helping me out.
import flash.events.EventDispatcher;
import flash.display.MovieClip;
this.stop();
function startMovie(event:MouseEvent):void {
this.gotoAndPlay(10);
}
abt_mgn_btn.addEventListener(MouseEvent.click,startMovie);
View Replies !
View Related
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)
View Replies !
View Related
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
View Replies !
View Related
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!!!
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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);
}
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
**** 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!!!
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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... )
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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!!!!
View Replies !
View Related
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) {
View Replies !
View Related
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!
View Replies !
View Related
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...
View Replies !
View Related
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]);
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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...
View Replies !
View Related
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++;
View Replies !
View Related
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?
View Replies !
View Related
_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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
Insane AS3 Performance
i came across this link today, http://www.adobe.com/jp/events/cs3_w...fs/perform.swf
it's pretty intense, awsome stuff going on here, I got it up to over 3000 particles and still no performance issues. I kind of wonder what optimization tricks he/she used in the experiment.
Couldnt find the file author though...
View Replies !
View Related
LoadVariables - Help Before I Go Insane
hey
okay heres the basics... i have a text file with some variable declarations in it. its perfectally fine. i have actionscript that loads those variables. they load i am sure of it. now, i want to store the variable i loaded's contents into another variable -- nothing happens. what is most confusing is, i run the debugger, it loads the variables becuase it says under level0 and in the variables tab it says the name of the loaded variable and the correct value! everything is there! i try to trace it...undefined. i try to rename it...nothing. i am so confused and i have been looking at other examples trying to get it to work and it looks so perfect but it DOESNT WORK! any help appreciated. thanks.
View Replies !
View Related
Telltarget Driving Me Insane
I'm simply trying to use a button in my main movie to telltarget a movie 2 subdirectories down to play frame 2.
Here's the code:
on (release) {
tellTarget ("sidebar.corpage") {
gotoAndPlay (2);
}
}
and here's the message from the output window:
Target not found: Target="sidebar.corpage" Base="_level0"
View Replies !
View Related
GetTimer Is Driving Me Insane
OK - Heres the Magic Dillema:
I jump to frame 10 w/ a stop function.
frame 10: On Mouseover jump to frame 20
Simple!! - I know -thats not my problem
if flash must wait for 10 seconds on frame 10 for the person to mouseover, then jump to frame 30.
thats it! I cannot figure out how to use the getimer() function or if I should be using something else.
For you gurus who want to answer this please be kind in your EXPLAINATION of the answer. I may not understand.
Thanx - thanx - Thanx,
Atreau
View Replies !
View Related
Music Synching Please Help Going Insane
I've got a song that plays through all scenes and since streaming wasn't working for multiple scenes I used start and then set the program to be downloaded as a zip to the user's hard drive to eliminate the problem of varying transfer rates. I inserted a preloader (perhaps incorrectly?) but still the movie doesn't play in proper time on other user's computers.
I've read every help file I could find but none seem to answer my fundamental question: how do I get my movie to play in time to a song across multiple scenes at the same rate as it plays on my computer, which is synched perfectly.
The movie is at ikcaj.com/wedding as a zip file.
Please help or email me at jacki@ikcaj.com I've spent four of my five days of vacation working on this movie, which is a wedding present to a friend and I'm truly about to go insane over it!
Thanks,
'ik
View Replies !
View Related
|