Help Needed With Sound Files And Loadmovie
I have a small flash file with an mp3 in the library with a linkage name. I
then have a small bit of code as below
CONTENT_SOUND=new Sound();
CONTENT_SOUND.attachSound("m_d_1_01");
CONTENT_SOUND.start();
which plays the sound fine.
I then publish this swf. I then want to load it into a container swf.
In the container swf i have a button with the code
on(release){
mCONTENT.loadMovie("m_d_1_01.swf");
}
mCONTENT is a movie clip in the container movie.
The sound does not play when loaded into the container movie. Can anyone
please helpthis is really urgent.
Many thanks
Adobe > ActionScript 1 and 2
Posted on: 09/10/2007 01:51:58 AM
View Complete Forum Thread with Replies
Sponsored Links:
How Do I Call Sound Files For A Sound Player Created In Flash
I want to create a sound player for a website in Flash 5. However, i do not know how to play the files without importing them into the flash movie. If i imported all of the sound files i am using, my flash file would end up being about 25meg in size. This would obviously be stupid, as it would take forever to load up. Could someone please tell me what action i eed to use to play a sound file which is stored in the same directory as the swf file.
Im only just learning flash so im not 100% sure that this is the way to do it. Is there a way of telling flash flash to only load a certain part of the movie as it is neded.
I want to create something similar to the player found at this address
http://www.newfoundglory.com/player.html
Any help you can give me would be much apreciated
Thank you
David
View Replies !
View Related
Help Needed On Loadmovie
Hi, thx for reading on :-)
I have the following problem:
I have twelve buttons, and they all have the following action:
on (release) {
gotoAndPlay(10);
loadMovie("jana.jpg", "fotobox");
setProperty("fotobox", _x, 190)
setProperty("fotobox", _y, 42)
setProperty("fotobox", _width, 50)
setProperty("fotobox", _height, 50)
}
(with the exeption offcourse that the second button has "feba.jpg" etc. )
Everything is fine, as long as you only press one of the buttons /once/.
When you click another button, or the same button for the second time,
the image is loaded, but on a different spot and 5 times smaller !!
The reason why I set the properties is because I can't get the picture to load
exactly inside the target (called fotobox).
I've put up the result at:
www.thephotofactory.nl/test/final03.swf
so you can see the problem. first press "analoog",
then one of the two left buttons on the top row.
I spent hours allready trying to get this right, pleeeaase help.
either through newsgroup, info@thephotofactory.nl or ICQ 4542402
Thanks a lot,
Alexander
View Replies !
View Related
LoadMovie Lag... Help Needed
Hello:
Recently I've tried making a simple application to showcase the different signatures I've made for a different video gamers' forum. It is simply one swf with four buttons that loads four separate signatures I've made. One of the sigs is a JPEG - but the rest are swf's as well.
For some reason, when the viewer shows the swf signatures they are very slow. The signatures do have a lot of motion tweens, but one in particular is less than the others and it still lags.
Any advice, help, or suggestions would be greatly appreciated. Please see the simple action script below.... I wanted to include a zipped file with my swf signatures and the .fla but it is too large to upload.
one_btn.onRelease = function () {
movie_mc.loadMovie("signatures/signature.JPG");
}
two_btn.onRelease = function () {
movie_mc.loadMovie("signatures/YoungNastyMan.swf");
}
three_btn.onRelease = function () {
movie_mc.loadMovie("signatures/YoungNastyMan2.swf");
}
four_btn.onRelease = function () {
movie_mc.loadMovie("signatures/YoungNastyMan3.swf");
}
Thanks in advance,
View Replies !
View Related
Help Needed For A LoadMovie()
Hello everyone,
I’m creating this tourist website for my own interest and because I want to learn more about Flash. Everything was fine until my loadMovie() appears in the siteFinal.swf for a few seconds and then jump into my next section.
This is what I want to do: I create an introduction2 swf animation, which I want to load into the siteFinal swf. So for my introduction button I’m using the following script: on (release) {
gotoAndStop("intro");
}
This would go to another movie clip inside the siteFinal called intro_mc. In the intro_mc I create an empty movie clip and I placed it where I want my introduction2.swf to take places. So I got that functioning but the problem is that my preloader is not showing at the beginning and also the movie play for 2 or 3 seconds and go to my next section. I want the movie clip to play through.
Also I can see the images coming from the side when I play the movie siteFinal.swf, I don’t want this to happen, what can I do for this?
Pleases if someone have time to help me and advice me what to do that would be really nice of you. Pleases visit this link to download the files:
Thanks
Vanessa
View Replies !
View Related
LoadMovie Into MCs, Reposition Help Needed
Hey, everyone. I have a small problem I haven't been able to find the answer to. I'm working on a project the uses multiple .SWFs loaded at random into holder movie clips. Each of these random .SWFs is of a different height and width, and I'll have 3 on the stage at one time. What I need to do is come up with a way to reposition these movies after their loaded so that the appear properly aligned.
What I've tried so far:
I've assigned variables to the first frame of each .SWF. The vars are called xdis and ydis (x, y displacement) are are equal to half the .SWF's width and height, respectively. Then, in the main movie, I have the following code (the random .SWFs are enemy1 - 13):
num = random (13) +1;
loadMovie ("enemy" add num add ".swf", "holder1");
setProperty ("holder1", _x, (GetProperty ("holder1", _x)-_root.holder1.xdis)
setProperty ("holder1", _y, (GetProperty ("holder1", _y)-_root.holder1.ydis)
This isn't working. Any ideas?
View Replies !
View Related
Pre Loader For LoadMovie: Help Needed
I have a main swf with (10) button icons. Click the icon, it does a unload level20, load new Movie into level 20.
Some of these movies are big enough to warrant a preloader to let the user know that something IS happening while the thing loads.
I'm losing hair over this. I've seen it done on a New York Times photogallery, where they have a number of galleries available in one Flash, but to keep the size down the gallery doesn't load until you select it. You get a 'loading' MC as it loads.
My problem is that I cannot get the preloader to work. I have taken a very basic bytesLoaded preloader and changed the relevant code to _level20.bytesLoaded, etc., but with no joy.
The problem with available preloaders is that they pretty much all assume that you're going to do the preloading before your Flash really starts (frame1). Here, I'm already into frame 40.
What I can't figure out is the order of execution of the commands. For instance, click icon1 :
on (release) {
unloadMovieNum (20); (clears any previous loaded movies)
gotoAndPlay ("movie1_label");
loadMovieNum ("movie1.swf", 20);
}
The content of the 'movie1_label' frame is a MC named DropIn. DropIn has a 'loading >>' image in Frame 1 with the actions:
bytesLoaded = (_level20.getBytesLoaded());
bytesTotal = (_level20.getBytesTotal());
if (bytesLoaded == bytesTotal) {
_level20.gotoAndPlay (1);
}
I have previously tried _root.Play(0), but it didn't work.
Frame 2 has no image, but has actions:
if (bytesLoaded < bytesTotal) {
_root.DropIn.gotoAndPlay (1);
}
So the MC should loop until level20 is loaded.
What happens is that the MC looks like it is completely irrelevant - it looks like Flash is executing the loadMovie first, and by the time it gets to executing the preloader MC actions, the movie has already loaded.
Anyone out there done this before successfully?
TIA,
Nick
View Replies !
View Related
LoadMovie -- Expert Help Needed
I'm using the following code to load a small animation into an empty movie clip to superimpose over a main movie:
loadMovie ("sparklies.swf", "empty");
The main movie and the .swf file are in the same directory, but the animation doesn't show up on the main movie. If anyone would like to look at the code and see what I'm doing wrong, that'd be fantastic.
Here's the main movie:
Musket Drill (drill.swf)
Musket Drill (drill.fla)
Here's the slowmatch animation (it scales according to your browser window size--should be very small):
Fuse (sparklies.swf)
Fuse (sparklies.fla)
The sparklies.swf is supposed to appear as a lighted fuse that the musketeer is holding to light his matchlock. As you'll see, the movie isn't appearing anywhere.
Thanks for helping me out.
Devon
View Replies !
View Related
Urgent Help Needed - LoadMovie
i have been creating my new website, callumations. i posted a message earlier about this problem, but i have now worked out where the problem lies but i cant seem to fix it.
when the movie "anims" is loaded into the 'main' movie, the hover captions stop working in the main movie. i think this is because of the 'stop' action that is in the anims movie. this stop action needs to remain there however so that my tsunami menu will still work.
i need someone to have a look at this as i am very confused!
any help would be muchly appreciated.
the files are located here.. www.soam.nipz.com/callumations/samples.zip
Thanks very much
cal
View Replies !
View Related
::help Needed On Loadmovie And Captions::
I have just started rebuilding my website, Callumations.
In my main page, i have used 'hover captions'. these all work fine until you click one of the buttons to load a movie. once the movie has loaded the hover captions do work.... but dont follow the mouse anymore.
i have played about a bit but i cant seem to spot or fix the problem.
i have attached the main body of the site and one sample movie that will be loaded. if anyone could take a look and get back to me ASAP as i want to upload my new site as soon as it is sorted.
I am using Flash MX
Cheers peeps!
Cal
View Replies !
View Related
Urgent Help Needed - LoadMovie
urgent help needed - loadMovie
i have been creating my new website, callumations. i posted a message earlier about this problem, but i have now worked out where the problem lies but i cant seem to fix it.
when the movie "anims" is loaded into the 'main' movie, the hover captions stop working in the main movie. i think this is because of the 'stop' action that is in the anims movie. this stop action needs to remain there however so that my tsunami menu will still work.
i need someone to have a look at this as i am very confused!
any help would be muchly appreciated.
the files are located here.. www.soam.nipz.com/callumations/samples.zip
Thanks very much
cal
View Replies !
View Related
Help Needed For Loadmovie() Advan...
hi all,
i just create my user here and with full of hope that i got the solution for my prob.
i am already upload the all issue on my website. just for short detail.. i have designed a image gallery and it loads images via xml link from specific folder and it is working fine in seperate swf file. i have 4 different galleries and i wish to load each galleryswf in a movieclip picture_mc. for this i create a seperate swf file and load one imagegallery in level 2. its works fine.
but when i call that imagegallery in mc it didnt work. i am very disturb with this issue. i have posted my all source files at
http://www.idesign-interactive.com/files.rar
as well as you can see the online links
seperate file working fine:
http://www.idesign-interactive.com/prob/single.htm
embedded file having prob:
http://www.idesign-interactive.com/prob/full.htm
wish you all the best and hope someone sure help me thanks.
Regards,
Shabee
View Replies !
View Related
Percent Loader For LoadMovie: Help Needed
Here's the skinny:
I have a main swf with (10) button icons. Click the icon, it does a unload level20, load new Movie into level 20.
Some of these movies are big enough to warrant a percent preloader to let the user know that something IS happening while the thing loads.
Q1 - Does the percent preloader go in main.swf or in each of the movies to be loaded? My guess is in main, but I can't get it to work.
Q2 - Any source or tutorials out there that show me how to do this?
TIA
Nick
View Replies !
View Related
Reusing JPG's Using LoadMovie. Some BRAINS Needed...
// my simple scripting *************
_root.loaderSmall.loadMovie("foto.jpg")
_root.loaderBig.loadMovie("foto.jpg")
//************************
I have some thinking questions. I want to know how Flash handles multiple loadMovie actions (with the same jpg's)
hypothese-question 1
I have a number of jpgs that i use as thumbs. I loaded these jpgs in a movieclip and scaled it at 30% of size. Now i want to use the same jpg loaded in an other movieclip at full size. Would flash load this jpg twice ?? Or will the jpg file been reused ?? (increase downloadtime ??)
hypothese-question 2
I load the same jpg 'at the same time' into different movieclips. Will flash now load the jpg in loaderSmall first -action loadmovie in loaderSmall is first executed- and then use the "foto.jpg" in the cache to load him into loaderBig. Or will the jpg be downloaded twice?
Or should i first load the jpg in loadersmall, then wait till the jpg ("foto.jpg") is completely downloaded end then load the same jpg in mc loaderbig.? Anyone suggestions...
Tx !!
View Replies !
View Related
Help Needed On LoadMovie And Resize Image
I find that when using LoadMovie function in FLASH MX, it can not automatically fit the loaded jpeg into movieclip's size. I need to find a way to use action script to process these jpegs with different size to fit into the movieclip before using LoadMovie function. Can anyone help me with some ideas? Or LoadMovie function can do that?
View Replies !
View Related
Urgent Help Needed On As Loadmovie Thingy
hi, i need some urgent help on inserting a confidentiality agreement in flash mx
i have some buttons which all load movies into the main timeline.. but now i want to insert a conf. agreement called agree.swf into the main timeline BEFORE loading the content swf.
another guy gave me a lot of advice on another board, but now i'm stuck again and he doesnt seem to be there anymore..
i have this sofar:
pressed=0;
button1.onPress=function(){
pressed++;
if(pressed==1){
loadMovie("agree.swf",2);
}
unloadMovieNum(2);
loadMovie("mov1.swf",2);
}
button2.onPress=function(){
pressed++;
if(pressed==1){
loadMovie("agree.swf",2);
}
unloadMovieNum(2);
loadMovie("mov2.swf",2);
}
button4.onPress=function(){
pressed++;
if(pressed==1){
loadMovie("agree.swf",2);
}
unloadMovieNum(2);
loadMovie("mov3.swf",2);
bviously there are some big errors, but i would really appreciate if somebody who has some experience could help me. I'm willing to pay for your time ofcourse.
if anybody could help me asap it would be great!
thanks,
Robert
View Replies !
View Related
Urgent Help Needed On As Loadmovie Thingy
hi, i need some urgent help on inserting a confidentiality agreement in flash mx
i have some buttons which all load movies into the main timeline.. but now i want to insert a conf. agreement called agree.swf into the main timeline BEFORE loading the content swf.
another guy gave me a lot of advice on another board, but now i'm stuck again and he doesnt seem to be there anymore..
i have this sofar:
pressed=0;
button1.onPress=function(){
pressed++;
if(pressed==1){
loadMovie("agree.swf",2);
}
unloadMovieNum(2);
loadMovie("mov1.swf",2);
}
button2.onPress=function(){
pressed++;
if(pressed==1){
loadMovie("agree.swf",2);
}
unloadMovieNum(2);
loadMovie("mov2.swf",2);
}
button4.onPress=function(){
pressed++;
if(pressed==1){
loadMovie("agree.swf",2);
}
unloadMovieNum(2);
loadMovie("mov3.swf",2);
bviously there are some big errors, but i would really appreciate if somebody who has some experience could help me. I'm willing to pay for your time ofcourse.
if anybody could help me asap it would be great!
thanks,
Robert
View Replies !
View Related
LoadMovie And Cache-big Expert Needed
I hava a big question for u and a big problem. I am using loadMovie function to preload some images, some jpgs. So i load them and then i want to use it later in my swf, problem is that even if i preload them on some computers flash cannot find them and then he makes a request from server again for that file and then file that i preloaded doesn't show up in time, there is a delay and that's not good. And it seems that it's depends from browser to browser system to system and definitly flash 6 to flash 7 player version if it is gona work or not like it supposed to. Also it depends if it's exported in flash 6 or 7. Today something didn't work on MAC when exported in flash 6 but when i exported in version 7 it works perfectly. Can someone clear this up or even MM would have problems explaining this?
View Replies !
View Related
Help With External Swf Files Needed
hey
i'm making a project and using multiple swf files for the purpose
it'll be easier if u can have a look at the prototype at:
http://www.geocities.com/mrmoonlite_xj/prototype.html
now i'm i'm using the gallery button on the top to load the gallery file "gallery_hd.swf" onto level one , using
loadMovieNum("gallery_hd.swf",1);
then when u press the color button u go back to the previous movie by:
on(Press){
unloadMovieNum(1);
_root.gotoAndPlay("first_1");
}
the problem now is that, whenever u press the gallery button ,it shows the preloader... i dont want it to show it after the first time
the structure of the site is something like this:
Base File: site_prototype.swf
this file contains two scenes: "loader", and "first"
when the movie opens it plays "loader"
after loading the file it goes on and plays "first"
Gallery File: gallery_hd.swf
this file contains the preloader in the first frame
the animation is in the subsequent frames
all the buttons are in "site_prototype.swf"
also is there any better way to go about it ?
View Replies !
View Related
Help Needed In Loading XML Files Into Flash
Hi,
Is there any option by which the flash reads all the XML files kept in a particular folder and display it in a combo box in flash?
bcoz today there may be 2 XML files and tomorrow there may be 5 or 10 like that if in future I may add files into the folder or delete from the folder, but the flash file should read the whole directory and should display what r the XML files available in that folder.
is it possible?
and I want to load the details of particular XML file after selecting from the combo box and should be displayed in the flash file.
Presently I have done it for one file but I want to make it for multiple files and whichever file is selected, the details of that particular file should be displayed.
so will u tell me how to do it?
View Replies !
View Related
Reading Large XML Files. Help Needed.
I have a long XML file and I'm able to read each node in the file, but I'd rather not have to type out:
.firstChild.firstChild.nextSibling.firstChild
.firstChild.firstChild.nextSibling.nextSibling.fir stChild
.firstChild.firstChild.nextSibling.nextSibling.nex tSibling.firstChild
...Adding ".nextSibling" each time to read the nextSibling in the node list.
Is there a better way? Maybe to loop and add another ".nextSibling" to the line each time?
I've tried ...firstChild.firstChild"+xsib+".firstChild where xsib += ".nextSibling", but it always ends up printing out the literal string, rather than reading the XML file like I want it to.
Ie:
allData[0].firstChild.firstChild.nextSibling.firstChild
allData[1].firstChild.firstChild.nextSibling.nextSibling.fir stChild
Here is my code so far:
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
//trace('data loaded')
alldata = this.firstChild.childNodes;
for (i=0; i<allData.length; i++) {
xsib += ".nextSibling";
trace(allData[i].attributes.name);
trace(allData[i].firstChild.attributes.name);
trace(allData[i].firstChild.firstChild.firstChild);
trace(allData[i].firstChild.firstChild.nextSibling.firstChild);
trace(allData[i].firstChild.firstChild.nextSibling.nextSibling.fir stChild);
trace("---");
trace("allData["+i+"].firstChild.firstChild"+xsib+".firstChild");
trace("---");
}
} else {
trace("error");
}
};
myXML.load(myFile.xml');
View Replies !
View Related
Flash Menues And XML Files...Help Needed.
Hi everybody,
I am trying to give a new feeling to my menus, so I want to learn how to populate the menu component with an XML file+. I already know some basics about XML, I can write the document I would need, that's easy but I dont know how I can populate the menu component. To illustrate what i am saying of my teacher's website is written in flash and he used this method, but he doesnt teaches in my school anymore and moved out of state. The web site is www.iragreenberg.com, the menus he is using are an example of the menu component populated with an XML file.
If anybody know an easy or whatever way to do what i want, please i would appreciate any help. My email is ysaisalberto@hotmail.com or u can post a response here.
Thanks a lot.
View Replies !
View Related
Synchronizing Playback Of FLV And MP3 Files - Help Needed
Hey all,
I'm not sure if anybody's run into this situation before, but here's what I need to do. I need to record sound using a microphone and play it back with music in the background (basically a karaoke box). However, I'm having difficulties synchronizing the FLV (recorded voice) to the MP3 (pre-existing sound). What can I do to improve sync?
- I tried using setBufferTime to set it to 30 seconds (my FLV's length is 15 seconds, so it SHOULD have prebuffered it) - but that didn't work;
- I tried using an onLoadComplete handler for the MP3 loading, and flag the MP3 as NON-streaming, and start playback of both after the MP3 has done loading ... that didn't help;
What can I do at this stage? I realise that I probably can never have PERFECT sync, but I want to try at least...
- can I convert my MP3 to FLV, and real-time mix them on playback?
- can I somehow record the voice to FLV and then somehow superimpose it on my MP3?
I don't mind wasting the space, I just want it to work.
Any ideas appreciated.
View Replies !
View Related
How To Restrict Outside Access To Php Files Needed By A Swf
hello all,
i have php files that my swf needs for database access that i'd like to restrict access to so no one other than the swf can gain access to for security reasons. seeking best practice for this.
can't simply do an .htaccess redirect away from the directory w/ the php in it since the swf client will also get redirected.
one way is to embed a key into the swf which gets POSTed to the php file. if this key doesn't exist then the php file sends an error message rather than executing. but then someone could crack the swf and get the key. and if the swf retrieves the the key from the server then there still must be an unprotected file for the swf to get the key from.
another way is to .htaccess protect the folder with the php files and allow the swf to authenticate. is this best? if so, how to do this?
what's your thinking?
tia,
michael
View Replies !
View Related
Help Needed..How To Link 2 Flash Swf Files Together
Hi
I am making a flash portfolio which can be seen here http://members.tripod.com/umairkhan20/portfolio.htm
Only problem I am having is howto link another flash file jus like this one together..for example if u see this link and u see the "About Me" section..I want it that the user clicks that and it opens another .swf file..if someone can help me with this it will be great... if u need me to explain this in more detail plz feel free to email me and I can explain it to u more detailed..
thanks and take care
-Umair
mdsruff@dbzmail.com
View Replies !
View Related
How To Restrict Outside Access To Php Files Needed By A Swf
hello all,
i have php files that my swf needs for database access that i'd like to restrict access to so no one other than the swf can gain access to for security reasons. seeking best practice for this.
can't simply do an .htaccess redirect away from the directory w/ the php in it since the swf client will also get redirected.
one way is to embed a key into the swf which gets POSTed to the php file. if this key doesn't exist then the php file sends an error message rather than executing. but then someone could crack the swf and get the key. and if the swf retrieves the the key from the server then there still must be an unprotected file for the swf to get the key from.
another way is to .htaccess protect the folder with the php files and allow the swf to authenticate. is this best? if so, how to do this?
what's your thinking?
tia,
michael
View Replies !
View Related
Help Needed: Buttons And StartDrag Not Working Through A LoadMovie Function
Can anyone out there help with this?
I'm trying to solve this (probably simple) path issue, and am not having much luck.
I've got 2 files (see attached):
File 1 (ex2mainfile.fla) has one button only that, when clicked, should load File 2 (ex2.swf) into a movie holder. It's not working (see attached)
File 2 (ex2.fla) is a drag and drop activity in which:
- Users listen to each of 5 audio files, then
- Drag the accent name on the right (American, Irish, etc) to the correct drop zone on the left
PROBLEM
1. When you test ex2.fla by itself the drag and drop work fine. BUT, when you test (ex2mainfile.fla), the startDrag function won't work
2. I have a number of different files which are causing similar problems. Sometimes it's the startDrag which won't work, other times it's the cursor which won't work / won't change into whatever it's supposed to change into. (Is this the same pathing issue as the startDrag? Or is it a completely separate issue?
Can anyone help?
(See attached files)
Thanks in advance for your time
Rob
View Replies !
View Related
Help Needed Opening Ppt Files And Save File
Hi,
I need to insert some ppts on a CD presentation that I'm doing in Flash 5.0, I got a button inside the flash presentation that must open the ppt files and I use the geturl command but it open the presentation on Iexplorer, is there any way to tell the button that open the ppt on power point viewer ?
And my other question to you is how can I insert a behavior ona a button to give the user the option to save a file that is on a cd ?
sorry for my bad english.
I hope someone can help me wit this... thanx !
View Replies !
View Related
Nav Resize & Placement Help Needed, Files Provided
I have been altering some some source I've found. I have used it to suit my purposes except for one problem. Please view the file here, and download the fla here. Rollover the second block from the left, you will see it scales up and the blocks to the right and left shrink away relatively. If you roll off of the block either upwards or downwards, the block scales back down and the blocks to the right and left fall in line. However, if you roll off to the right or the left (and onto an adjacent block), the entire series of blocks "walks" towards that direction. You can repeat the process to make it practically walk off screen. The same code control all of the blocks, I have only made the second one scale at the moment. The code controlling the movement is attached to the only MC on the stage.
What I want to happen is for the blocks to fall back in line the way the do if you roll off above or below and eliminate the nav's tendency to walk away. Can anyone help? Or, does anyone have a better solution that the way I am going?
View Replies !
View Related
Sequencing Swf Files/flash Movies - Help Needed
I have produced a load of swf movies, which advertise different businesses and I want to produced a sequenced set of movies for display in shop windows etc. Is there a SIMPLE way of sequencing my files so that they run for their duration, fade out and the next one fades in.
I have tried to produce a single file in Flash, imported the swf file, alpha in and out at the correct timing then added another movie on another layer and building them up like that.
I have found that embedded movies (mainly jpeg images of the relevant business) don't work and there must be a simpler way of doing it.
Any ideas?
Cheers
Paul
View Replies !
View Related
Tutorial Needed - Loading And Controlling .swf Files
Hello,
I'm looking for a tutorial that explains how to create a container that loads .swf movies and has interactivity built into it that enables the user to control playback .(i.e. skipping to next .swf file, scrubbing through currently loaded .swf file, volume adjustment, etc.)
I've worked with projects like this before, but since they were built by someone else it's been difficult to understand how they set them up. I'd like to make one from scratch so that I understand all the elements that go into making it work.
thanks!!
bb
View Replies !
View Related
Loading Files From A Folder (URGENT HELP NEEDED)
I have this script (below) that picks out the files from a folder and loads them into the swf without saying specifically what the filenames are. At the moment they load in 1 at a time, how can I make it so they all load at once in a horizontal row with a whote gap between each of them?
The whole point of this is so the user can just upload files to a folder and not have to touch any script etc.
The plan is to put them into an infinate menu (that part is ready, its just the first bit thats causing me problems).
I've attached the files. The swf can be seen at www.dhingali.co.uk/images.swf
Please can someone help!!
Thanks
Code:
delay = 3000;
//-----------------------
function loadPHP(loaded) {
if (loaded) {
imageArr = new Array();
fl = this.filelist;
imageArr = fl.split(",");
total = imageArr.length-1;
image = [];
for (i=0; i<total; i++) {
trace(files[i])
image[i] = imageArr[i];
}
lv.load("http://rock.blueprintit.co.uk/test/images.php");
firstImage();
} else {
content = "file not loaded!";
}
}
phpData = new LoadVars();
phpData.onLoad = loadPHP;
phpFile = "images.php";
phpData.load(phpFile);
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 100;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 100;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}
View Replies !
View Related
Nav Resize & Placement Help Needed, Files Provided
I have been altering some some source I've found. I have used it to suit my purposes except for one problem. Please view the file here, and download the fla here. Rollover the second block from the left, you will see it scales up and the blocks to the right and left shrink away relatively. If you roll off of the block either upwards or downwards, the block scales back down and the blocks to the right and left fall in line. However, if you roll off to the right or the left (and onto an adjacent block), the entire series of blocks "walks" towards that direction. You can repeat the process to make it practically walk off screen. The same code control all of the blocks, I have only made the second one scale at the moment. The code controlling the movement is attached to the only MC on the stage.
What I want to happen is for the blocks to fall back in line the way the do if you roll off above or below and eliminate the nav's tendency to walk away. Can anyone help? Or, does anyone have a better solution that the way I am going?
View Replies !
View Related
More Sound Help Needed
Hi peeps, After help from oldnewbie i got my intro up and running. But now i would like to add some sound to my intro! i have tryed to import it and set ip up ok but i lost my linked enter button in doing so! i created a new layer called it sound and imported crowd sound. see attached any ideas? plz??
View Replies !
View Related
Sound Needed
I made a block breaker game,it is finished but I just need sound and music.
here it is
I know you can see white around the background,that is because on imageshack the size can only be 550 pixels width and 400 height(mine is 480x400).
I need a nice music and a 'toc' sound when the ball hits the paddle.
Thanks.
View Replies !
View Related
Loadmovie And Swf Files
In my root fla there is an empty mc into which i load external swf files when a button is clicked.
However, when i test my movie, the swf loads in but has no functionality e.g. the loaded swf has a dropdown list in it or to be more precise a ComboBox component and this no longer works in the root swf movie. What am i doing wrong - i understood that providing the swf works in its own right then it should still work correctly when part of a larger movie.
Any help would be greatly appreciated.
View Replies !
View Related
[F5] Loadmovie And Txt Files...
here is my issue...
i have 2 domains friend and mine.
i made a swf with empties in it to load other swf's which then load txt files in dynamic text boxes.
here is the problem.
when together on the same server/host they work.
when i have one swf on my server it loads and then loads the txt file.
but when i want to load a swf from another domain with it's txt file it doesn't.
it doesn't even load the txt file or anything.
what's up with that?
thanks for any feedback.
View Replies !
View Related
LoadMovie() And .png Files
PNG files aren't showing in my movie, I have a dynamic image viewer that loads in images from the Database, works with Jpgs but the PNGs aren't showing at all...the Flash manual sais png files should be fine, but it's not working.
Any help or advice?
Thanks
View Replies !
View Related
Files Needed To Make Flash Site Live
My Flash site is now complete. At this point what are my next steps in making my Flash site live (i.e., uploading to a server). What are the necessary files that I need and do I need to use Dreamweaver, and if so what is the process to make my site live in that manner? Please help!
Edited: 07/12/2007 at 02:44:17 PM by Twee
View Replies !
View Related
HELP ME SOUND GENUIS NEEDED
Hello!
PLEASE PLEASE PLEASE HELP ME. I have been trying to figure this out for 2 days now and am lost.
I am building a site which has 4 sound buttons within it. All I wantt is an ambient background sound to play for the entire movie so that different sounds can be played at the same time.
For example music in the background while 4 buttons activate different speech sound files.
The way it works so far is when you press button 1 the man says his speech, when i click on button 2 the women says her speech, on the third a dog barks and on the fourth a cat purrs.
If I were to say press button 2 in the middle of the man's speech the man's speech would stop dead and the woman's speech would begin. If i were to press button 3 half way through the women's speech the woman's speech would stop dead and the dog would start barking.
This is all fine and works perfectly. I am using the following script:
on (rollOver, dragOver) {
mySound.stop();
mySound = new Sound( );
mySound.attachSound("test");
mySound.start( );
}
All I do is rename the linkage for the four sound files.
I am wondering if there is anyway to contol precise sounds by using the mySound.stop( ) command.
All I need to know if there is anyway of added a background sound to my movie to keep it completely sepearate from any code interference of my main movie.
I have tried loading external swf's to try to keep it seperate but it never works.I have tried doing a sound loop on the main time line but it doesn't work. I have tried absolutly everything.
PLEASE HELP ME I WOULD BE SO APPRIECATIVE!
View Replies !
View Related
Urgent Help Needed With Sound
Hi,
I Urgently need help with a sound problem. I made a custom cursor for a game (it is a pair crosshairs)and I want to have it so that when the person clicks the mouse, a gunshot sound plays so it sounds like they are shooting.
HELP!!!!!
thanks
Steve
http://www.theultimatewebpage.com
View Replies !
View Related
Lots O' Sound Help Needed
Hello everyone,
I'm not a huge Flash user - I mainly make small projects to accompany my sites. However, I am putting together a portfolio and I'm in need of assistance in the sound department.
First, this is going to be a web portfolio as well as a CD portfolio, so I need to keep the file sizes down a bit. I want to add a nice background sound from an MP3 I have, but the file is 9MB. Is there any way I could 1) reduce the file size in Flash; 2) only import the first 2 minutes of the song?
Secondly, what is the best way to add background music to a fla? And how am I able to allow users to turn it on/off? If it isn't too complicated, how would I go about allowing them to adjust the volume?
I know this sounds like I'm asking for a lot, but even if you can shed some light on one point, it would be very much appreciated. Thank you so much for your help.
Muse829
View Replies !
View Related
Football Sound FX Needed...
I desparately need some football (American) sound effects for a project I'm working on. Specifically, I need the sound of a quarterback yelling "Hut, hut, hike!" and the like. Does anyone know where I can find this?
View Replies !
View Related
Sound Object Help Needed
Hi I need some advice, with sound object. The problem is that i don't know how to tell a soundobject to start a certain sound, like 2 or 3-> see lcd panel picture. And to stop playing previous song. Also sound clips should be in a different movie clip. Sounds would be loaded into main movie. Also theres the pause issue, how to pause a sound? Any ideas wich would be the easiest way to make such player. Here's the code i used
Code:
esimene=new Sound();//declare s as a sound
teine=new Sound();
kolmas=new Sound();
esimene.attachSound("sound1");
teine.attachSound("sound2");
kolmas.attachSound("sound3");
esimene.start(0,999);
View Replies !
View Related
Sound Object Help Needed
How do i stop a sound that is directly put onto the time line?
The reason i have chosen to do it this way because its the only way i can get it to work with a preloader. Besides doing it dynamically.
i have tried:
on(press){
unloadMovie("bti.swf");
}
but that will not work, what will?
thanks to those that help.
I am also open to suggetion on how to do it another way (without dragging the sound to the time line).
View Replies !
View Related
Help Needed With Sound Issues
Hi,
I have 6 slides/frames in my movie and each one needs to play a narration/sound when the user goes to that slide. However, I need the previous sound to stop when the user decides to move halfway during a narration.
Ie: The user comes to the "home" slide and the "welcome" narration starts, but halfway through it the user clicks on the "contact" button to go to the "contact slide", I would like then want the "welcome" narration to stop and the "contact slide" narration to start.
Right now, I simply put an instance of each narration on the appropriate slide/frame and did the settings as shown below:
Sound: Track 1.wav
Effect: Fade in
Sync: Start
Loop: 0 times
But the previous sound keeps playing when the user advances to other parts of the movie and the becomes a jumble as the other sounds start playing.
Any help would be tremendously appreciated!!
(Thanks "bfly03" on the previous post - It worked
Best regards,
Zain
zainmagsi@hotmail.com
View Replies !
View Related
|