How do you set an FLV player to be muted automatically on load? I know how to make the volume 0 on load but I actually want to set the mute button state to muted so the user can click on it to unmute it.
I've been fiddling around with the above player and find it simple to use and personalise.
The only problem is that I can't seem to find a way for the next track to play automatically. And I guess to start at the beginning again after the last track.
I'm sure it's just a play/stop or true/false that I've over looked
Here's the code on the MC that contains the player's buttons:
It is perfect, except that I'm not sure how to keep it from playing automatically. I tried removing the playSong() part under the loadSong function and it just removes the ability to play the song altogether. Here is the code:
if there's a way to automatically update the flash player if the user doesn't have the required version. If there's no way, can i make a button to download it directly from my site so the user doesn't have to go to the adobe webpage?
There's no access to the HTTP cookies from within a Flash movie, but I now have repeatedly read that Flash Player is supposed to take care of session cookies automatically. I could, however, not find any documentation about this, and it sure didn't work with my Flex client running against a Struts backend using the default JSESSIONID cookie.
On the first page, my player begins to play like a radio show. i have different sections which are all individual tracks. the player works and plays each track when i manually press next or previous...but it doesn't automatically play through all the tracks. instead it pauses after the first track and i have to manually press next.
here is what i used...can you find the problem:
stop(); playlist = new XML(); playlist.ignoreWhite=true;
i have a project that i'm working on for school in a multimedia class. everything in the project is essentially done except i need to load a few sounds into the project file all at the same time. as this would be rather unpleasent to listen to, i want them all to be muted when they are loaded (externally or internally, it doeesnt really matter) in. my professor doesn't seems to be very helpful so i decided to come to the source. the program i'm using is flash pro cs5.5 with as3. i think there is some code for controlling the volume, and optimally that is what i would like to use, like "setVolume = 0" and then later when i want the sound(s) to be heard "setVolume = 100", or something along those lines.
I'm by no means up on my AS at all and this MP3 player I've had for a while and just readjusted to suit my needs.
One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.[code]...
Why and when? Because I addChild to the stage 1000 times but only removeChild 800 times, and even so, stage.numChildren returns to 0 after all my objects have exceeded the stage boundary. I have to mention that I am moving objects from left to right (it's a game) and the object's X and Y properties eventually exceed the stage boundaries. Does something happen automatically then??? Like... events removed or something like that? This is a continuation of this thread of mine, where I initially thought addChildren has issues: [URL].
I have a streaming MP3 player that i'm going to incorporate into my site. Below is the AS for the player. At the moment the player starts automatically when the page loads up. Can someone tell me what i'd need to change so the player doesn't start streaming on page load....?
I'm by no means up on my AS at all and this MP3 player i've had for a while and just readjusted to suit my needs.
One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.
Code: stop(); playlist = new XML(); playlist.ignoreWhite = true;
I have a custom Flash Video Player and I have the play and mute button as controls. Currently my player has the sound on, I want to set it as muted by default.
This should also show my mutebutton as on as a visual cue. The only line of code I am using for the mute button is this
myVideo.muteButton = mute_btn; // which is just telling the flv component which button needs to act as the mute button
Using Flash CS3 , Actionscript 2.0
I got extremely two easy lines of code that I put in my action Frame 1 which fixed everything.
I need to check that the user has not muted the system before running my main movie (as indicated by the red bar over the speaker icon on the lower rgiht) and if so prompt to unmute with pop up. Is that something I can do with Actionscript 3 or is it sometihing that needs to be addressed with JavascriptWSH?
I am looking for my soundspectrum animation to play but my sound will be muted...This will be inserted in a banner ad, so their are specific rsestrictrictions with vendors where the sound has to be user initiated...
var SpectrumLineWidth:Number; var SpectrumLineColor:Number; var SpectrumGlowDirection:String;
My flash media player is not playing automatically when my webpage loads. I have changed the settings from 0 to 1 (which should auto start the file), but still does not start the song automatically. This occurs in IE, FF, and Chrome.
I'm having a problem with audio of Captivate demos created in Captivate 4 loaded into a Loader component using Flash 8 and AS2. Problem is if someone is viewing a Captivate demo and hits the Audio On/Off button on the playbar to turn the audio off and then returns to the menu, the next Captivate demo loaded has no audio until the user click the audio Off/On button a couple of times. Even though when loaded, the playbar audio is shown as on. I've already tried cpCmndMute and cpCmndVolume to no avail. Is there another audioOn variable I'm missing?[url]...
I have a project where an external video plays with cue points that trigger the elements on my main timeline (captions). I have a custom mute button for the video so that the guy talking on the video can be muted if necessary (did not use a skin for video controls but set it up as a button). The problem is, when I reach the end of the video and I click a "replay" button to restart at the beginning, the timeline and video start but if the video was muted previously, the video remains muted while my button shows that it isn't. How do I get the audio to turn back on automatically when restarted, or at a minimum show that it's still muted when replaying? My replay button AS2. mcPlayer is my flv.
i'm very new to Flash (although have plenty of experience in Java, C++, PHP, etc). For a University assignment, I am creating a World Cup Guide and i'm creating a countdown to the tournament. I've followed a tutorial and modified it slightly but i'm receiving an error message. The error message is:
i started with a Multiple mp3 players project and i more complicated with that - as you see in the picture i try to do that when click on the play button for every song this switch the song that selected -first preloading + percentage the mp3 file and after play it immediately and of course there is stop button, pause button when choose a song the previously that play will be muted
I have two mp4 video files on webserver, i wanted to play them in flash player(flv player) on my asp.net page, but i couldn't be able to play them, i also tried to play them in quick time player the same prob occured. but i waz giving the accurate path, there were no spaces in mp4 file names etc. Does it need to have mp4 player(or codec etc) installed on webserver?
I have also some wmv files on that server , and i am playing perfectly using silver light player, and media player object on my website.
I am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:
Code: on (release) { player.contentPath ="Song.mp3" player.play() } ("player" is the mp3 component)
This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:
I have a game that needs to send the number of points a player is awarding to another player to a MySQL database on the same server. This game is part of my psych MSc dissertation, and I've gotten a lot of help on this bit from my department techie who knows php and MySQL well. However, he has absolutely no experience with Flash or Actionscript. He's gotten the php bit working so that it does send data to the right table in the database when it's supposed to using dummy variables, but when we try to test it with the actual .swf thats supposed to be doing the sending, nothing happens. We're pretty sure this means theres something wrong with the actionscript, but we don't know where.
I have a slight problem when publishing to Flash Player 7 but works perfectly in Flash Player 6, below is the code:[code]In short this creates a list where the values are kept in SharedObject.I need to use a WebService so I require Flash Player 7, as I said this works as expected in Flash Player 6, so maybe someone may know a pitfall or two when migrating code form 6 to 7?
I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").
Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):
Main.badger.x Main(root).badger.x Stage.badger.x
I have also tried to access other vars and still nope..My class code is this:
I was re-using some old actionscript in a new fla. For some reason my scrollbar script didn't work correctly. After some debugging I found out the the maxscroll value was being returned as 2. Strange when there is only two lines of text in a 400px high textfield.
I published the same fla for flash player 7 in stead of 9 and the problem was gone??? Tried in 8 and there it was again. So something went wrong between Flash player 7 and 8, but what? Is this a known bug and are there any work arounds?
I want to dynamically load .swf file in a player(like FLV player of as3) in as3.When I shall click on an image the corresponding video will be played on the player on right side(like you tube). Is there something (like FLV player) for .swf files with play, pause, resume, scrubber options to play in web?
i think i might be missing some information here about how to manage classes and display objects. In the main .fla i have a mc called player; so I made a player.as class and put a linkage on player mc considering it would work as the mcs class. Well, its not working, the mclip is not noticing any of the vars and functions i added in the class. Anyone figures whats going on? How to make it work?
I can only find how to download the actual PLAYER for 10.1, but which library is used in conjunction with it?Will the latest release of the Flex SDK have the libraries for the multi-touch events etc?Or is the SDK for 10.1 only available to people who work for Adobe? will porting to iPhone supported formats only be available in Flash Professional, or will SDK users also have that option?
I've recently implemented in my engine is freeing the RAM for a level.It's something that's pretty essential seeing as I'll have thousands of polygons per level, and a pretty large amount of textures too per level, with an average of around 150 to 200 megs of RAM being used.This obviously needs to be cleared before the next level is loaded.The process is pretty simple really, just nullify all references to everything.On the offline SA player, this works perfectly. After pressing the clear button you see the RAM usage burning down, before it snaps to around 3.7.Online it simply doesn't work. Firefox's RAM usage on the plugin container basically doesn't change, but even Flash's internal reading of the RAM usage only changes a bit. It gets reduced by a couple of megs.URL...Press C to clear the engine. The RAM usage goes down by like a meg, to 10.3, which is hugely different to how much RAM is free'd on the SA player.I've tested it on Firefox and IE, the behaviour is the same on both.