ActionScript 2.0 :: MP3Player - Variables And External Sources

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


Similar Posts:


ActionScript 2.0 :: Load Text From External Sources?

Oct 31, 2005

I am trying to creta my own loading text I am using the file and action script that chris99022 has written[code]...

View 2 Replies

ActionScript 2.0 :: Loading Text From External Sources?

Apr 4, 2004

i can load text, but not so that it will change when a button is clicked (load a different file.)

there are two tutorials on this issue in the tutorial section

[URL]

both of which supply final sources and both of which have errors.

**Warning** Scene=Scene 1, layer=action, frame=1:Line 1: Case-insensitive identifier 'loadVars' will obscure built-in object 'LoadVars'.
loadText = new loadVars();
Total ActionScript Errors: 1 Reported Errors: 1

the loadVars error is in both of them.

View 2 Replies

ActionScript 2.0 :: Difficulty Loading Text From External Sources

Jul 27, 2004

I have been working on my first site which is my personal blog and I am having trouble getting my external text files to load in my dynamic text field. I would like to have my buttons when clicked to load my text files. This is the swf file that I have been working with: SWF FILE and these are my current dynamic text settings:

Code:
on (release) {
loadText.load("index.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
main.html = true;
main.htmlText = this.index;
}};}

View 2 Replies

ActionScript 3.0 :: Flash Loading Text From External Sources?

May 16, 2010

I need this EXACT tutorial only in AS 3.0

[URL]

View 1 Replies

ActionScript 2.0 :: Loading Text From Multiple External Sources?

May 20, 2004

So I have this button that when I click on it I want it to load two different text files into two different text boxes. This code works just fine for loading 1 file into one box,but not when I try to do the other thing. Whats wrong with it?

Code:
on (release) {
loadText = new loadVars();

[code].....

View 3 Replies

ActionScript 2.0 :: Create A Loop That Will Put A List Of Names From External Sources Into A Number Of Arrays?

Jul 3, 2006

i am trying to create a loop that will put a list of names from external sources into a number of Arrays .so what i did is :

Code:
for (i=0; i<4; i++) {
this["loadVarsText"+i] = new LoadVars();
this["loadVarsText"+i].onLoad = function(success) {

[code].....

and i dont understand why it is not working, and how can i fix it?

View 3 Replies

ActionScript 2.0 :: "Include Code From External Sources Using #include?

Apr 6, 2005

I saw it in this site...[URL].. it says "Include code from external sources using #include".umm... does it mean I can use C code, etc. within flash??

View 1 Replies

ActionScript 2.0 :: Include Code From External Sources Using #include

Apr 6, 2005

I saw it in this site...[URL]it says "Include code from external sources using #include".does it mean I can use C code, etc. within flash?

View 1 Replies

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

ActionScript 2.0 :: Volume Control For XML MP3Player?

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

ActionScript 3.0 :: Stop Mp3player Swf When Another On The Same Page Starts

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

Actionscript 2.0 :: MP3Player Based On GTAL Tutorial Not Working?

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

Actionscript 3.0 :: When Put On The First Frame The Action #include "mp3Player.as" Get A Syntax Error?

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

ActionScript 3.0 :: Software To Put Two Sources In One?

Jul 4, 2010

Is there a Software to make two FlashDevelop Sources in one? a friend and me Working on a Project and its lot of work to put the Changes together.

View 4 Replies

Good Photo / Art Collection Sources?

May 22, 2009

Can you list your favourite royality free photo CDs/sources ? As in for hi res jpgs which we can use as backgrounds for websites ?Do most of you use CDs or do you rely primarily on webbased sources ?Can you list cheap priced CD titles, Websites or any free image sources online with no strings attached?

View 2 Replies

Ability To Export FLV From A Variety Of Sources?

Aug 28, 2009

In Mac OS X I previously had the ability to export FLV from a variety of sources- QuickTime, MPEG StreamClip, Unexpectedly, the flv export option is now missing. In CS3, there used to be an Adobe QuickTime plugin called "flv.component". That item is no longer installed by CS4.
 
- The Questions

1) Is it still possible to export FLV from QuickTime, etc.?
2) If possible, which installed file or files provides this capability?
 
OS X 10.5.8 QuickTime Pro 7.6.2

View 1 Replies

Flash - Preloading SWF From Multiple Sources

Apr 22, 2010

I have a rather big (34 MB) Flash CS4 AS3 swf being loaded as a whole into a preloader like
l.load(new URLRequest("sample.swf"));
What are my options to minimize loading time? Can I split the swf and load from several servers? I'm dynamically loading images from the library:

var myBitmapDataObject:myBitmapData = new myBitmapData(100, 100);
var myImage:Bitmap = new Bitmap(myBitmapDataObject);
addChild(myImage);

Right now I'm declaring/referencing every single image in order to get it included in the compiled clip. Any better way? Haven't got round to using Flex yet.

View 1 Replies

ActionScript 3.0 :: Preloading From Multiple Sources?

Apr 23, 2010

my swf is 34 MB. Is there a way to compile it to multiple parts and distribute over servers? How would i load that?

View 2 Replies

ActionScript 3.0 :: AIR Other Sources For FLVPlaybackCaptions Other Than Filepath

Jul 6, 2009

I'm curious if anyone has any idea how to use properly-formed XML, generated via script (and user-interaction) as a source for captions?

Since this is an AIR app, I know that I have the option to write a temp file to the application storage directory, but if I can avoid doing this, things will go much smoother.

View 1 Replies

ActionScript 3.0 :: Preloading From Multiple Sources

Apr 23, 2010

my swf is 34 MB. Is there a way to compile it to multiple parts and distribute over servers?

View 2 Replies

ActionScript 3.0 :: UILoader - Different Sources But Same Content Appears?

May 5, 2011

I have picked up a uiLoader component, and copy-pasted four times, so now I got five of them in my flash movie. Each got a different source (dresses/dresses1.swf, dresses/dresses2.swf, dresses/dresses3.swf, dresses/dresses4.swf, dresses/dresses5.swf). But When I launch the movie, all the 5 uiLoaders display the same content: dresses/dresses2.swf, and I can't understand why. For a test, I have replaced the .swf file with some jpeg files, and they were ok, but as I put the swf files back they show the same content again. The sources are ok, they work perfectly separately, so I can't figure out what is the reason why the swf files are loaded incorrectly..

View 3 Replies

Flex :: AS3 :: Loading Bytes From Multiple Sources

Jan 2, 2010

I am loading multiple images into a class instance and I would like to keep track of how large the complete amount of loaded data is at any given point.I have grabbed the totalbytes from my directory of images via a PHP script... but collecting the new bytes from the ProgressEvent on each image seems tricky for some reason.Let's assume that the totalBytes variable is correct and that I am totally unfamiliar with the way that ProgressEvent works.Does an event get fired every time ProgressEvent gets a new byte? If not, how do I keep track of the current total bytes?[code]

View 2 Replies

Actionscript :: Create A Flash Fonts From Different Sources?

Aug 11, 2011

In Actionscript/Flash it is possible to create a swf which contains font data for emedding like this:

package {
import flash.display.Sprite;
public class Font_times_new_roman extends Sprite {
[Embed(

[Code].....

now what i would like is, to create something like this with glyphs from different source fonts.

for example unicode character x should be taken from Arial, while character y should be from times new roman.

View 1 Replies

Flex :: Possible To Drag And Drop From 2 Sources To 1 Target?

Feb 2, 2012

My question is simple. Let's say I have 2 List Controls. 1 of Users and 1 of Tickets. (The 2 Sources). And I have a DataGrid (the target). Is possible to select 1 user and 1 ticket in the 2 list mentioned before and drag & drop them at the same time to the DataGrid? I know it's not as simple as they are going to get automatically mixed.. If it is possible... I would have to use the DragEnter Event of the Datagrid or something to mix them and create my dataProvider. But I don't know how you can drag & drop 2 items at the same time from different sources. It is possible with one source.. But no idea of how to do it with 2 sources.

View 1 Replies

Media Server :: Setting Up Multiple Live Sources With FMS

Jun 16, 2009

I'm struggling setting up 4 live audio sources with fms 3.5. I have 4 streams input from our studios into 1 encoder server. From here I need to pass it to the internet via 4 FMS 3.5 servers. I do not want to have 4 * 4 encoding sessions on the encoder in order to service the 4 FMS servers. Is there any way to pull the streams from the encoders? I have also tried configuring explicit connections using 1 server as an origin server and 3 as edge servers but being a live stream the load and connections seem to get passed to the origin server which will eventually not handle the load. I've looked through the application.xml server settings but cannot seem to see any noticeable settings?

View 6 Replies

Flash :: Server - Media Encoder Multiple Sources

Feb 5, 2010

Can Flash Media Encoder handle several video sources and live srteam them all at the same time? We want to stream a few over the air broadcast sources using Flash Media Server v3.0. Is it possible to install several TV tuner cards into a PC and have Media Encoder live steam each of them at the same time? If not, can several copies of the software run on the same machine (each with it's own video source live streaming)?

View 3 Replies

ActionScript 3.0 :: Sources For Styling Skinning The Slider Component?

Feb 22, 2010

Any sources for styling skinning the Slider component?ie setting the background invisible or using another graphic in place of the line/rectangle graphic.   using another graphic for the thumb.  replacing the current graphic thumb has restrictions in dimensions,

View 1 Replies

Media Server :: Broadcasting From Several Sources With The Possibility User Authentication?

Jan 25, 2010

we would like to purchase Flash Media Interactive Server 3.5 to solve the following problem

1.Broadcast network internet lectures on a paid subscription,with the possibility user authentication.

2. Broadcast video and audio.

3. Broadcasting from several sources (1 camera, 2 camera, TV tuner, etc.)within a single stream with the possibility of the user to choose the viewing source, other sources at this time, you can view the preview.

4. The intended audience for 10 000 users and more. 5. Estimated flow rate of 1 megabit per second.

1. Is it possible for broadcasters to use a single server, or they need more?     What configuration? 2. Does Flash Media Interactive Server 3.5 multicast? 3. How to make the system user authorization? Additional software, plug-ins? 4. How many users can simultaneously connect to the broadcast Flash Media Interactive Server 3.5 and how we calculate the bandwidth and outbound traffic?

View 1 Replies

Media Server :: Locate Sample Implementation (sources) For LiveSample.swf In FMS 3.5

Apr 26, 2010

I  am not able to locate sample implementation (sources) for LiveSample.swf in FMS 3.5. Can somebody point it to me?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved