ActionScript 2.0 :: External Mp3 Load Dilemma
Mar 10, 2004
I have a index.swf page that i have a menu that loads other .swf's onto it. For this example, the button loads the music.swf file onto the index.swf Easy, right? Well, when i go to open the music.swf file onto the index.swf page the mp3 doesnt play. However, when i play the music.swf by itself (not loaded onto the index.swf) it works perfectly fine. I've uploaded example files to a free server for you all to download and try and check what my problem is. [URL] (fyi, the mp3 link isn't working rightnow, email me or PM me and i'll send that right to ya)
View 3 Replies
Similar Posts:
May 12, 2011
new to action-script 3. I have created a flash site with 5 buttons (home,tvcs,film,contact and about). All buttons navigate to labels on the timeline. The tvcs and film buttons load external swfs which show flv videos. They both load up fine but unloading them seems to be my problem. They still remain onstage and play on while navigating through other pages. I've tried a few scripting ways to unload but to no avail. I'm wondering how and where to add the unloadAndStop()method into my current script in order for it to work properly.
as below:
stop();
import flash.events.MouseEvent;
home_btn.addEventListener(MouseEvent.CLICK,hClick) ;
function hClick(event:MouseEvent):void{
[code]....
View 3 Replies
Aug 11, 2009
My Website: jesus101.sytes.net Ok, I have a website that contains flash and in this flash there are buttons. Each button when pressed downloads a video from "You Tube". Lets say I press a button and then decide to press another, now we have a problem the previous video can be heard. Not only that you can also see the loading bar go back and forward for a few seconds. You may have herd of me speak about this before, the difference is that the help I got wasn't enough to solve the problem. I have tried these following tips: stopAllSounds (); unload movie, removemovieclip but none work.
Also, how do I get the ".sfw" to talk to another? For example if I have an MP3 player on and I decide to watch one of my movies, how do I stop the MP3 player?
[Code]...
View 2 Replies
Jan 14, 2005
Basically what I'm looking to do is build a music player in flash and embed it into an HTML page. Now the trick is, I need the player to stay present when a user clicks thru different areas of the site. (I.E. different html pages) However I do not want the flash to reload each time they go to a different page. Is there a way to have the Flash sit on top of HTML pages and not refresh when a user goes to a different page, or an alternative would be for when the next page loads, the music player knows where it left off and starts from its ending point on the page before. Building the site in iFrames or any frames will not be an option. The solution I was looking at was to set the page up like the music player was a transparent promotion ad like you see on so many pages these days and see if I could just keep it present when clicking from page to page. This doesnt seem to work.
View 3 Replies
Oct 21, 2005
I have a button that is loaded into my main movie at level 2. in my main movie on the timeline I have a frame label called guestbook. I want my button, when released to go to trigger the frame label. on my button i have the script:
on (release) {
_root.gotoAndStop("guestbook");
}
Obvously this does not work because it references the wrong timeline so i tried:
on (release) {
_parent.gotoAndStop("guestbook");
}
thinking that somehow it would see the parent swf and work - haha - me and my dumb ideas of course it doesnt work.do you know how i can get it to work. Perhaps i should mention that the button that loads in at level 2 is inside a movie clip (for reasons of animation)
View 1 Replies
May 28, 2007
Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.
View 4 Replies
May 6, 2011
I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.
[Code]...
View 2 Replies
Apr 22, 2007
I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:
metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);
[code].....
View 2 Replies
Jan 19, 2009
How do you load external library objects from an external swf? I want to have an external swf that only contains library objects that are exported for Actionscript, and load these from the master .swf file dynamically during the master swf execution. (I may have multiple external swf resource files)I want to be able to load the external swf, and then access it's library objects via actionscript in my main swf file.
View 6 Replies
Nov 17, 2010
as3 is new for me, but i would like to write a script using loader to load an external swf, and control the external swf. But I find I can't control the swf, because there are no fixed instance name. here is my script.
[Code]...
View 3 Replies
Sep 19, 2011
When i try to load an external swf file using Loader.Load(); The swf starts playing even before the init event is fired. Is there any way to stop the swf from playing atleast until the init event or complete event is fired?
View 1 Replies
Oct 19, 2009
I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.
This is the bare bones of it:
Code:
sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);
[Code].....
View 1 Replies
Apr 11, 2009
Okay so I am trying to load external swfs which load videos dynamically.
I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error
[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]
Is there some specific method to casting within external swfs?
My code for loading the videos is this:
[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);
[Code].....
View 1 Replies
Dec 24, 2009
How I can make this script lo load mp3 files via an external xml file like music.xml and if is possible to load random
Code:
music = new Sound();
music.onSoundComplete = function() {
[code]....
View 1 Replies
Jul 24, 2009
I've got a small (more than 100 hours of thinkwork up till now!) problem I can't seem to solve:
I want to populate an external loaded swf with an dynamicly loaded xml fil (loaded from my config.xml).
[Code].....
how do I get the external xml into the external swf as a variable for the actionscript in the external loaded swf (So I just want to put the path in the script in my external swf...).
View 5 Replies
Mar 31, 2010
I'm trying to get an external swf to load when the flv content of another external swf finishes playing.
I've only been using actiosncript 3 for about a week and I've got to this point from tutorials, so my knowledge is limited.
This is what I've got so far:
Code for External swf (with flv content):
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
motionClip.playPauseButton = player;
[Code].....
I'm starting to get an understanding of how all of this works, but it's all to new to me at the moment, so I'm sure I've approached it from the wrong angle.
View 1 Replies
Aug 2, 2009
i have a main.swf and i load menu.swf into main
[Code]...
this works right on its own but when using addchild in main.swf the menu loads the button events work, even click but it will not load the associated file. If i place the menu code in the main.swf it loads all required files. QUESTION How do reference menu.swf when loaded as an external swf?
View 2 Replies
Dec 24, 2006
I have a "about.swf" file that loads a CSS file and formats some dynamic HTML text. On its own, it works fine...but when it gets loaded into my "Main.swf", it doesn't work. What am I doing wrong? Is there a bug that doesn't let you load CSS with external .swf's?My style sheet and index file holding the "Main.swf" are all on the root level of my site. The "Main.swf" has a "holder_mc" clip that I load the "about.swf" into which has the CSS formatting. When loaded into "Main.swf", it doesn't work.
View 9 Replies
Jun 13, 2010
I'm sure this question has been answered but I have been looking everywhere and all I can find is how to load an external SWF but not how to unload it. I come from a basic knowledge of AS2 and it was easy for me to load using levels but I have run into a wall. I have a main swf and to keep the initial filesize small I would like to split some image intensive sections out and load them when needed.
View 6 Replies
Nov 8, 2010
I have problems in running a projector under win 7. My projector load several SWF and each of them load different external MP3 that plays during the show.Under Win 7 sometimes the sound (Mp3) stops.
View 5 Replies
Aug 30, 2004
i have a scen named preload, and i want it to load an external .swf, but once it's done doing so to move on to frame two so far i have
[Code]...
and this doesn't work, i think my problem is the "if(this.getBytesLoaded()" but i am not sure how to identify if the movie is loaded, maybe with true and false? but i am not sure how i would do that,
View 11 Replies
Dec 17, 2009
Normally I do get by with a lot of R&D, but for some reason am stumped and really pressed for time!An interactive file (say main.swf) is already ready to go.I now need to make this play over a background (say bg.swf) which is a fairly heavy file.
What I'm trying to do it this:Open a new flash document (say "index.fla")- on the first frame, call "bg.swf" by using "loadMovie('bg.swf', 2)"[where 2 is the level number] and then calling "main.swf" by using "loadMovie('main.swf' 4)" [where 4 is the level number]
Now the problem I am facing is this:"bg.swf" is quite a heavy file so takes quite some time to load, whereas "main.swf" is much lighter and loads before "bg.swf" buffers fully.
What I want to achieve is this:Create a new swf file (say "index.swf"), making sure that "main.swf" does not load until "bg.swf" loads completely under it. Note: I cannot make any edits to "main.swf" (which is like a slideshow) file and it is rendered such that it starts the slideshow after 5 seconds.
View 1 Replies
Nov 4, 2009
I can do this with a button ok eg[code]...
this loads into the empty mc But I want to to happen automatically when it enters frame 4. So nobody has to click anything- it just loads.
View 2 Replies
Jan 11, 2009
I can't do it. I tried load movie and empty movie clip. It just doesn't work.
Also, I'Mm trying to not make the swf cover the entire stage (empty movie clip method)I want it to just be inside of a square.
View 1 Replies
May 19, 2010
Ok I'm very, very new to this but this is what I wanted to happen I made a series of individual animations that I now have to flow together. Since the animations are different flash files, I figured maybe I'll create a new Flash file and just load in all the individual swfs to just play continuously. NO mouse click needed. I just need it to play when opened and thats it.
So would a load movie be the way to go? If so I found this code
[Code]...
View 5 Replies
Aug 18, 2010
I need to call external SWF's so they randomly appear within my main SWF. When one ends, the next will start and so on. I searched the forum and found a thread with the code below and have run in to an issue.
Each of the external clips is set up exactly the same... same length, same tweens, etc.
The code below is sitting the first frame, on the top layer within my main SWF:
randomClips = new Array ("Journey.swf", "Doobies.swf", "LedZep1.swf", "PinkFloyd1.swf", "Stones.swf");
function randomBackground() {
[Code].....
The main movie is one frame long and has three layers. The top layer has the Action Script (above), the bottom layer has my background image, and the middle layer holds the empty movie clip named mtClip
When loaded to the server, the movie plays and one of the external SWF's will load. When it ends, I need one of the other SWF's to load. What happens is that rather than randomly playing one of the other SWF's, it repeats the original external SWF. If I refresh the main SWF, it randomly selects one of the external SWF's and it will constantly repeat.
The external SWF's have no Action Script. I tried it with putting a Stop on the last frame, but that didn't help.
View 7 Replies
Feb 19, 2009
I've recently started learning as3 and have made a flash site using it which all works fine. iv used an online tutorial to help create a dynamic slideshow/photo gallery which again works fine. But when i try to load the external slideshow/gallery into a movieclip it dosnt work and i get this error[code]...
View 2 Replies
Nov 28, 2008
I have 2 files: mycarousel.swf - written in actionscript 2.0 index.swf - written in actionscript 3.0
I want to load "mycarousel.swf" as an external .swf inside of a movie clip that is located inside my "index.swf" file.
Anyone know how I can accomplish this?
View 2 Replies
Aug 14, 2009
I normally just use elements here and there, and I am totally confused. The link to the project is here: www.cathisingh.com/new I want the site to be set up so that when I click a button (at the bottom), an external .swf file loads into that gray box in the center. How do I start? Where do I start?
View 1 Replies
Jan 11, 2010
I'm trying to load an external .swf that contains some checkboxes. The extenal .swf has a server-side script in applications folder on FMS3.When I load the external .swf in local, it works fine.If I load the external .swf in remote using an Apache Web Server, the external .swf is loaded but the checkboxes don't appear.
View 7 Replies