Actionscript 3.0 :: Custom Mp3Player Plays At Some Pc And Not On Other
Sep 24, 2010
I would like to share my problem with the my custome Mp3Player that I have developed in AS3.The thing is that, when I access the player from the website it plays on my pc and some of friends pc too with out any errors.But some of my friends do complain that the player loads but plays nothing
I have gone through the code and even placed the crossdomain policy file at the root. But some of friends still complain for the same ! But its perfectly running in my FLASH IDE as well as when I access the it online.
View 2 Replies
Similar Posts:
Jun 7, 2007
I'm super stuck on this (getting into the days catagory!) before i start, here's the link to what my XML MP3Player functions like atm;[URL]..The foundations of the AS for this player are from the gotoAndplay.com tutorials, I'm having two problems with adding this volume slider control,
Firstly the SliderBar onload position, it is positioned on the far left of the screen, you can drag it towards the player, once you get it with'in the player it functions correctly moving between the designatd left and right x values correctly, but how can i get it to load into the player rather than out to the left?
And Secondly, by this stage you may have noticed no sound, i've tried alot of different things but to no avail?
[Code]...
View 1 Replies
Sep 30, 2004
I have an mp3player that loads an external mp3 file and plays. It works just fine if the url/location is hardcoded in the swf file. However, I need to be able to have the url passed to the flash externally so that a number of users may utilize this single swf build.
Example:
Current location need to be filename.mp3 or [URL]. However, I need this location to be edited per use of the swf. In php i know I could call it such as:
$myLocation = "123";
[URL]
or
$myLocation = "[URL]";
(The "123" is what changes for each page use)
Here is the code i have that is working just fine. Until I need to use a full url that changes for each page the swf is use on.
onClipEvent (load) {
if (playing!=true) {
playing=true;
soundIsLoaded=1
myMusic=new Sound();
myMusic.loadSound("myMusic.mp3",true)
}}
Limitations:
1. Because of the server set up, I am always required to call items using full absolute urls/paths.
2. php, cfm, xml etc are not available for use with this. -- the goal is to be able to give an webmaster a copy of the swf and the code to embed it on their html page... and that's it.
View 7 Replies
May 19, 2010
I've created a small mp3player which is to be used twice on one page (eg. songA.swf and songB.swf). Both are based off the one .fla file and use exactly the same code. My client has requested that only one player function at a time, so that if a user is listening to song A and then starts playing song B without pausing song A, song A will stop playing and reset, and vice versa.
I've been scouring the web for the past few days looking for an AS3 solution but I haven't found anything I've been able to successfully apply, as I'm really quite new to AS3 and only a basic background in javascript has helped me get this far. Attached is a zip folder containing .fla's and an html page as an example of how it will be used on the client's site. And a link to a live example page included in the zip file: [URL] Other notes ummm... I'm using swfobject to display the swfs, and currently they display across the top browsers.
[Code].....
View 0 Replies
Apr 3, 2009
I tried creating a music player based on Lee's tutorial (part 1 and 2). However, the code I used in my movie is slightly different from Lee's. Unfortunately, for some reason the mp3 player won't jump to the next song, like it does in the video tutorial. At first I thought there was a hidden error in my code, and later, after many tests I realized that the problem was the same even with Lee's files as well, which makes me wonder what's really happening here?I'm using Flash CS4 under Windows Vista Ultimate edition. However, I get the same strange behavior when I run the tutorial files on a different PC, in Flash CS3 under Vista Home Edition. This is why I believe that attaching my custom files to this thread is not necessary.
View 2 Replies
Dec 11, 2011
I want my flash file plays one and stops in the end and only plays again if play again button is pressed.How do i do it?
View 1 Replies
Aug 30, 2011
I want my movie to loop. Would prefer an If/Else loop so that the movie plays a certain number of times then plays the opening of a screen then stops. This is a simple 4 screen ad I am doing for a school project. Can't get it to work. I tried containing my code in the proper loop syntax, didn't work. Then wrapping the loop in a function and calling that with a timer event, didn't work. My final solution was to call my whole movie in a timer event set to play once. Then calling the entire movie again in a second timer event set to play 20 times and set to start at an interval when the first movie ended. This did work but each time the movie plays thru function calls drop off making the movie degrade.
[Code]....
View 5 Replies
Jul 25, 2010
first of all i am kinda newbie with as3 functions and script and I have a question in regard of Lee mp3 player tutorial part 1.I want to know why, in my .fla file mp3Player when I put on the first frame the action #include "mp3Player.as" i get a syntax error?Sorry if this sound very newb but I definitly want to go foward with thoses tuts
View 1 Replies
Mar 2, 2012
This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component
TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));
Note: The error in my earlier post is giving below error message
Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent
The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.
This is my custome event
package events
{
import flash.events.Event;
import ui.map.MapElement;
[code]...
View 1 Replies
Nov 4, 2011
I have the following situation:I have an event handler, that displays small messages in my application's statusbar.These messages get passes through by dispatching events from custom components.A simple message could be like "HTTP Error" or so.Now, the main event listener, in the main application file, listens to the event dispatched by any custom component,but seems to refuse listening to events dispatched by custom AS classes.Here is my code for the custom event:
package main.events
{
import flash.events.Event;[code]..
So to sum it all up:
- The event listener listens to the custom event dispatched by any custom component.
- The event listener does not listen to the custom event duspatched by an AS class.
Those who wonder, the event really gets dispatched, that's why I added a trace call.
View 2 Replies
Dec 11, 2010
In the main file, I would write[code]...
But if I want the component to have that behaviour innately, where do I write it in the mybutton mxml file to have it reference itself?[code]...
View 2 Replies
Aug 25, 2009
i am a bit embarassed to ask this, but i do this so much i have to ask. Occasionally, i need to pass/handle custom events on the fly. Rather than creating a whole custom event class, i will just do something like
Code:
myObject.dispatchEvent(new Event('thisCustomEvent'));
//and then handle it later
[code]....
View 12 Replies
Jan 25, 2010
I couldn't work it out yet...
package components {
public class templateSelection extends VBox {
static public var tempSelectionBag:Dictionary;
[Code]....
I want to have a custom class tempSelection with a Dictionary as a public accessable property of that class. If I use this code, the compiler tells me:
1046: Typ wurde nicht gefunden oder war keine Kompilierungszeit- onstante:Dictionary
Which translates to:
Type was not found or was not a compile-time constant: Dictionary
View 1 Replies
Jun 22, 2011
I have a Custom Component that has a couple of Canvas with some background colors assigned to them. Now i have hard coded the colors, i want to move them to an external css file. So i would like to have the css declaration like this :
[Code]...
My question is if i can define custom style names like dividerRightColor and if so, how can i use that value inside my MXML Component? I have seen examples of using them inside Pure AS components.
View 2 Replies
Sep 8, 2011
I have a custom Flex 4.5 component (to be used in a List) -
Game.mxml (represents a clickable playing table in a card game):
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer [code].......
But I never see the "game clicked: " trace. Does anybody please know why? I'm probably missing something minor, because I can see the "Clicked: 8946" trace.
View 3 Replies
Feb 16, 2012
This is similar to the question asked here. I am dispatching custom event "ShopEvent" but i am getting error "Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent"Note: Error is thrown from the parent custom component (3rd code snippet), I have added more details thereThis is my custom event. See the first constant, I copy pasted the event name in custom components.
package com.events
{
import flash.events.Event;
[code]......
View 3 Replies
Jan 16, 2009
I have created custom TreeItemRenderer in which i am trying to draw colored Hbox bar at each node except root. Intially when i click on root node it opens first child node with bar but when i open leaf node it does not showing bar and removing existing bard from other few child nodes. Its calling itemrenderer on mouseonver eventhough i have disabled.Attaching Code here
package Adodbe.renderers
{
import flash.display.DisplayObject;[code].....
View 0 Replies
Jun 1, 2009
I looked for similar questions on the forum, but couldn't find a reference. This is likely an inane question (with a simple answer), but here goes.I have created slideshows for a site with a blue background. In quick succession, the page loads, a white box appears where the swf will play, and then the Flash movie starts. The background color of the Flash file matches the background color of the site. How do I get rid of the white box that appears beforehand?
View 2 Replies
May 24, 2010
I have a menu SWF that comes up in a UILoader, and this file then uses this code to go to another SWF:
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("physics.swf"));
Which it does fine, but then the original menu SWF plays again underneath the newly loaded SWF, and I'm not sure why? Is there any way of stopping this?
View 6 Replies
Jul 17, 2009
I have a simple movie clip of fading in text displaying on page with a sound. also have a button that allows user to go to the next frame. It is an exercise for students that basically goes like this: object presented in each frame, spelling (text) for that object fades in on mc with sound attached to mc, then button activates to let them move on to next. Since they are trigger happy, I don't want the button that allows to move on to activate on the frame until AFTER the movieclip and it's sound have played out (which is like 2 seconds so not a long wait) - otherwise, they would just keep clicking next and not listen to the material presented (it's very young children).
How do I set this up? I knew it's likely very simple, but I'm a newbie. Of course, I could always just do it on the timeline, but I have a ton of material, so am trying to use actionscript to be more efficient. for even younger kids, am considering setting this up so they can move to next frame through any keypress. I know how to set up a certain key, but not ANY key.
View 2 Replies
Jan 4, 2010
I have a captivate generated SWF file which has a .FLV inside it.In flash on click of a button I unload the movie(SWF), the video goes away but the .FLV still plays the audio.
View 2 Replies
Aug 6, 2009
I encoded an AVI w/ Media Encoder and dropped the FLV into a Flash playback component.In my compiled SWF, the video plays in hyperspeed (like it has a really fast framerate), but the audio plays normally.It seems like an encoding issue, but could it be something in Flash?I'm guessing there's some setting mismatch -- different bitrate, framerate, dimensions?[code]...
View 5 Replies
Nov 28, 2009
In my flash game, every time you click a button, it plays a short sound. Almost all of the buttons work - Except for a few random handful. Those couple play the sound twice. I don't know why either - I double checked everything.None of the frames have sound. The buttons that play twice are only set to play once. I didn't do anything different between the ones that worked and the ones that don't work.
View 2 Replies
Dec 2, 2009
What am I doing wrong? When loaded to the server, the swf file works as intended: [Url] But, when embedded in html document, the movie plays but the buttons aren't interactive: [Url]
View 7 Replies
Jan 16, 2010
I hope I explain this well. But in my game I have 3 keyframes for my bullet Movieclip. 1 to display its normal state. 2 to show it Blown Up, and 3 to remove it from the stage. A total of 3 frames. When the bullet hits an object, I go to and play the 2nd frame. then when frame 3 hits, I remove it. Here is my code
[Code]...
View 3 Replies
Apr 22, 2011
I have set up a splash page video (flv) set up as a FLVplayback. It all works fine from my computer. When I try and link it to my website flv file it comes up as an error code...error opening URL. The link is set up as...[URL]
View 1 Replies
May 16, 2007
My first Flash project involves 2 animations each in it's own HTML page and it works fine and my client is happy - except, as noted below. The first SWF is short, the 2nd much longer.Therefore, the 'getURL' in the first SWF results in a 1-2 second pause, instead of an instant and smooth transition, between the 2 animations, the first time someone accesses them.
View 6 Replies
Sep 6, 2011
I created a custom MXML component, TurboContent, that extends the NavigatorContent class:
<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
[Code].....
In this case, the 'myButton' component never shows up, but all the elements of the base component do (3 buttons and a datagrid).
View 2 Replies
Dec 28, 2009
Is there a point of creating custom event class if i dont need to pass custom property with that event?
View 3 Replies
Mar 15, 2008
I need an example of how to have a swf file (empty swf, just has code in it) that plays frame 1 of another swf, And once that swf has played for its duration I would like to click on a button, to open another swf and remove the previous one.
View 7 Replies