ActionScript 2.0 :: Different To Just Have The Sound Load In Automatically?
Jul 17, 2003
Whenever I enter the actionscript loadMovie ....I could only place it in by cut and paste because everytime I use the ready actionscript loadMovie;it places the script as loadMovieNum and that does not work!
yet what do I have to do different to just have the sound load in automatically when the scene is open instead of having the viewer press play when they see the play button, but rather only see the stop button to choose to turn the sound off.
View 1 Replies
Similar Posts:
Jan 2, 2011
I have an SWF that's 30MB. Sound files (music) make up 25MB, art and other things make up the remaining 5MB.
Would it be possible for me to load the 5MB of necessary art and other things first to allow the user to operate the app, then after that's all loaded and they are operating the app, load the remaining 25MB of sound files in the background?
UPDATE: Loading SWF (or other entities) externally is not an option.
View 1 Replies
Mar 3, 2012
I'm trying to compile a SWC file with a lot of assets in it in an as easy possible way. "Easy" for a not so technical end user, not perse the way to acchieve that goal. Goal is to streamline a process to generate SWC files with as little possible tech for the person doing it.So, sort of like manually doing:
* Import files into Flash
* For each library item select "Export for actionscript" and have Flash generate the basic class.
* Publish as SWC
but without the Flash IDE and the possibly labourous process.Right now I'm trying to put an AIR project together that generates classes based on a file list. The classes can than be added to a Flash Builder library project to generate a SWC file from it (copy in finder, check classes in Project properties, done)I can generate the classes for graphics like below. Such a class can then be instantiated from within the host application [code] Allthough this adds another level to the display list (which looks kinda sloppy to me), it works.However, for this to work for sound files I need to create a class implementing all possible methods and properties of the soundclass and handle the events and such. There is no way to extend Sound and then do something like you would/can with graphics.[code]Does anyone know if there is a way to get to the format the Flash IDE generates the classes with?
View 1 Replies
Jan 11, 2010
I have 2 samples that play with a click on a button, however, I want one of them to stop playing if the other one is played; so that only one sound will ever play at any one time.
View 9 Replies
Dec 3, 2010
I have a splash screen that I am playing a nice waterfall in the background. I inserted into frames 1 through 50. No scripting....The noise will not shut up at frame 50. Do I have to script what is the newbie answer to my issue. I don't want buttons to stop sound I just want it to end at frame 50..
View 1 Replies
Jul 4, 2011
AS in frame 1:
[Code]....
the MC soundLoader is there on the stage, and the file is linked correctly from the library, meaning that it works (the movie makes a single sound when the mouse hovers over it), except that the attached sound plays immediately when the swf loads. This is annoying on a page with about 16 of these!
View 1 Replies
Apr 1, 2004
I understand how to make the play, pause, and stop. But, I want the music to automatically.Anyone know how to make the sound start automatically, allowing people to pause / stop it on their will?
View 3 Replies
Apr 1, 2004
I went to Kenny Bellow's sound tuts. I understand how to make the play, pause, and stop. But, I want the music to automatically. how to make the sound start automatically, allowing people to pause / stop it on their will?
View 3 Replies
May 16, 2011
I need to learn how feasible it is to automatically assemble Flash animations which take a background image, an animation (or a set of vector drawings that can be turned into an animation) and a sound file from a set of files. In other words, assume that I have the following set of files:
3 background images (let's assume JPG)
3 animations (no sound, no static background)
100 sound files (let's assume MP3)
So if I want to code something like:
for i 1 to 3
for k 1 to 3
take animation i
take background image k
for j 1 to 100
take sound_file j
resulting_swf = assemble (animation[i], background[i], sound_file[j])
save(resulting_swf)
Which will produce 900 Flash animations with different combinations of sound and background, what is the starting point? Are there some libraries (in Python, Perl, PHP, etc.) with good documentation and examples to develop something like that, some program that I can run from the command line?
View 2 Replies
Jan 28, 2010
I am trying to make a webinar in flash, I have frames and in those frames I need to insert audio and when the audio finishes it goes to the next frame automatically. but I also have a menu bar and when I click on a button to take me to a frame i get a whole load of audio going on. I just need it to go to that frame and play the audio Just want to be able to have it play though, when the audio finishes it goes to the next frame or if i click a button on the menu it takes me to the frame i need,
View 1 Replies
Sep 15, 2011
So I am a complete novice at actionscript as was evident in my attempts to figure this out on my own. I have the following code to control the "Songs" section of my website and I would like the following features:
1. Not have the music automatically start when the user enters the frame. (I thought this was due to line 3 code but it still played after I deleted that code)
2. Add a "Back" button to go back 1 song.I currently have it set up with the following code on my "Songs" Page:
[Code]....
View 3 Replies
Dec 16, 2005
I'm trying to load sound dynamically into a clip and then play it randomly. The AS I came up with works great if the sound is embedded and I use the .attachSound() method instead of loadSound(). Now, when I load it dynamically and use the code below, the sound plays very fast and at a higher pitch.
Code:
var crows = new Sound(this);
crows.loadSound("Raven.mp3", false);
crows.setVolume(100);
[Code].....
View 1 Replies
Jun 22, 2003
I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok. however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano. This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.
But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top. this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there's actually 13 little sounds.
[Code]...
View 3 Replies
Mar 31, 2011
I'm building some website and I want to make it automatically. I load buttons and deeplinks from XML and works perfect.Possible to load classes automatically?
Even loading classes works also almost perfect.
I'm loading them from XML, but in class Menu.as I need to write them also like[code]...
View 0 Replies
Jul 21, 2010
I have a quiz app. All data is in an xml file. Right now when the user starts the application he/she has to pick a chapter from a combobox and all questions for that chapter get loaded. What I'm trying to do is have only one chapter instead of multiple in my xml file and remove the combo box completely. So when the user starts the application the chapter gets loaded automatically. How can I have the quiz load automatically and not when the user selects the chapter from the combobox.
ActionScript Code:
function goReview(evt) {
myRoot=evt;
goXML("XMLs/review.xml");
} function goXML(url) {
myXML.ignoreWhitespace=true;
[Code] .....
View 2 Replies
Nov 14, 2005
I want to create a gallery similar to this but have the images load and play automatically. I looked at the code and figured instead of the "forward" and "backward" comands I could load them from a folder.Url...
View 1 Replies
Jul 9, 2003
This is probably really easy to do but I an new at Flash and have no idead of how to do it.
I have a few buttons and when you click on a button it loads a different movie file. Is there a way that I can get one movie file to load after another automatically instead of having to press the buttons.
View 2 Replies
Mar 22, 2011
I need it to be in Action script 3 though. I did find a tutorial on this website that is labeled loading random movies but its written for a very old version of flash from 2004.
I am trying to load multiple swfs into a main swf one after another. So after one plays the next one plays etc. I need it to be random as well. As in I am going to be taking some swfs out then putting new ones in the rotation. This is a slideshow so to speak of different swfs displaying current promotions and when the promos are over I need to remove them from the rotation. I right now have one big long swf that contains all the different rotated promos I hope this was easy to understand.
View 10 Replies
Jan 27, 2004
I downloaded the sample file of making slide photos, but I just can't make it run and load pictures automatically and loop itself continuously. How do I do it without have to hit next or previous? And all done with action scripting only without using keyframes? [URL]
View 4 Replies
Jun 23, 2010
Basically my project is like this, if the time condition is not meet, then it will display a default swf. If meet,then it will unload the default swf and display certain blank swf which will addchild certain image and words based on record in database. Then when the time is reach the end of duration, it will unload the blank swf along with the images and words and upload back the default. how to do in such a way like automatically unload a default swf and load the blank swf along with objects when the time is meet with computer system time and vice versa.
View 4 Replies
Nov 19, 2010
My first movie is in AS1: movie1.swf is its name and it only contains a button, releasing it, it loads hello_world.swf in the _root. The code is:
btn.onRelease = function(){_root.loadMovie(hello_world.swf)};
It works fine if i open the movie alone, a problem comes when I load it from this other movie called movie2.swf (which is in AS3). The load script in this second movie is:
var i =new Loader();
i.load(new URLRequest(movie1.swf));
MovieClip(root).addChild(i);
when i open movie2.swf it will automatically load movie1.swf, which looks fine, but now its button doesn't work.Maybe it isn't logic to keep the AS1 in the first movie, but I really want to keep it as it is (cause I would have to change dozens of them,) i really want this AS3 and AS1 communication.
View 4 Replies
Aug 10, 2011
We're trying to implement a load-balancing mechanism between FMS hosts in a virtual "farm". The mechanism we're using is to have the FMSs periodically send "load" data (along with a timestamp) to an application server. That server will then use that load information and timestamp to detect when an FMS server has gone down and to make stream assignments to FMSs. Right now, I've implemented this code via a setInterval() in live/main.asc.
I've added a "return false" to Application.onAppStop() to (according to the docs, I haven't tested this yet) keep the server from shutting down an idle instance. How do I get the interval running before the first request hits the application (and forces the load of the application)? I've tried putting the setInterval in onAppStart() and as a global. In both cases, it only gets executed after application is loaded. Any way to force an application to load (via a config file parameter or local command-line)?
View 2 Replies
Oct 9, 2011
can anyone tell me the coding for how to load an html page after a flash intro? i have my .swf file in my html page which plays to enter site, but intead of going right from clicking on enter and bringing up the html page i have it clicking on the 'enter site' which goes to a fade up animation which i would then like to end automatically at the html page.
can't for the life of me find this coding which seemed to me shouldnt have been this hard, all i can find is the geturl script which seems to only work for as2.
View 1 Replies
Nov 25, 2009
I am making a flash site & have the intro & menu as separate swf's.
I want the Menu to load as soon as the intro ends, without having to click any buttons. I have tried...
onEnterFrame = function(){
loadMovieNum("AS_Menu.swf",2);
}
View 2 Replies
Aug 4, 2011
Ok this is what I would like to do. My project I am working on has an app that will upload image files to a specific folder on my server what I would like to do is have it load all the files in that folder through flash without me having to manually add the names of the files into the coding if possible.
I can create an image slideshow but I have to put in each and every .jpg and such I would prefer not to do that as in the future there may be more then 5-10 images.
In addition I already have the app created that uploads files.
View 5 Replies
Apr 11, 2011
I create a .swf file and wanted it to load/open automatically as a full screen. I tried the following code but it only works with projector or .exe files. Curently user has to press F11 to open or close as a full screen. Here is my code:
fscommand("fullscreen", "true");
View 2 Replies
Dec 5, 2010
I have a an swf (A) that loads external swf files (B). I use the loader or UILoader classes for this. I do not have the source of the loaded flash files, I have source only for files A. The loading works fine. The problem is some of the loaded files resize or rescale themselves. Doing some research I realized that they use the Stage.width/height for calculating their size/scale. This approach works fine, when they are embed to a website, because they get a stage sized for their needs. But when these files are loaded in my MovieClip, they get the stage of the loader swf(A), and that is definitely have different sizes.
Approach 1: In this approach I tried to create a fake stage for the loaded movies with the right size for them. This failed at several points: Stage is a singleton, and the stage property of the objects are Read-Only. On top of that Stage is a built-in class, without AS source. My first question is that is there any possibilities to override this class, or use this approach?
Approach 2: I planned to design a web-service (not in actionscript), that predownloads the swf, decompile it, replaces the references to Stage.width/height to the correct values, compile it again, and passes the generated swf to my Loader. On decompilation/recompilation, it should be as fast as possible, and I'd like to modify the swf as little as possible, so I prefer to not decompile the swf completly, just as much as needed.
After some googling I found swix kit, or simply swix. It generates not the source but an xml file equivalent to the swf. The problem is this xml format is not documented, or at least I haven't found it. I found references for Stage, but I have no idea how to modify that file.
Code:
<ConstantPool>
<Constant Name="Stage" />
<Constant Name="width" />
<Constant Name="height" />
<ConstantPool>
How to replace the Stage.width/height values with a simple Number in the xml? Does this tool have a command-line interface?
View 5 Replies
Feb 27, 2004
I've got index.swf which is the file with the container. main.swf is the file to be loaded onto index.swf.I can't get my main to load into the container automatically at a specific time. When I click on the button the animation plays perfectly though.Maybe because loadMovie is unable to load over index.swf?I haven't inserted code for any of the other buttons yet though. I want to be sure I can make this work before I start doing everything else. I think it shouldn't matter though cause its only meant to load at a specific time.
View 4 Replies
Sep 10, 2005
I'm new in flash and I taking a basic flash class in my school, I did a project in which have a basic intro, well the problem that I have is this, I want after finish the intro automatically load the first page of the project, how to do that? edit: the intro and the flash project are in separated SWF's
View 9 Replies
Mar 30, 2007
[Code]...
i use the above code for the glow effect, i want the effect to load automatically rather than when i hover my mouse over it. how to edit the code to do it?
View 3 Replies