ActionScript 3.0 :: Building An MP3 Player?

Sep 25, 2009

I have the below actionscript almost working for playing mp3s. This isn't dynamic or anything. Just links to songs (from buttons) that should null each other out when clicked on. The first song loads fine. However, the second song will not load. I must be missing something. Or maybe I took the wrong approach? Any help would be great.

[Code]...

View 2 Replies


Similar Posts:


ActionScript 1/2 :: Building A Custom Flv Player?

Aug 24, 2009

I'm currently building a custom flv player and need some help.  Maybe I'm missing something, I'm not sure.  The main problem is that the FLV doesn't load/play, which most likely causes the secondary problems, such as the bufferClip always visible and no way to test the video and audio scrubbers.

[Code]...

View 9 Replies

Professional :: Building A Music Player / Efficiency?

Mar 8, 2012

I'm creating a music player to be on my website and so far I have it set up as such: The player is contained in a movieclip with a 'song progress bar', a pause and a play button.The songs are played by clicking the song title in a list in the main stage (not contained in the player movie clip), which sends the music player to the frame in which the song starts.
 
My audio is set as event audio so that the play and pause buttons can be coded as play(); and stop(): respectively which will stop the main player movie clip thus yeilding the progress bar from moving further and the song from playing.
 
This works just fine, except for the following:
 
- When I select event as my audio type the quality reduces dramatically Having the audio files in my library and not obtained from some outside source (i.e on my website's server) causes the .fla file to be much larger as well as the .swf Being as my project is at 24 FPS and each song is represented in as many frames as it takesto play the song out, my music player at present has only 3 songs 'in it', and my frames in the movie clip are approaching 20,000 (this is VERY tedious to work with) 
 
I'm sure there is a more efficient way of doing things, but my knowledge is limited. I'd imagine I can do something along the lines of loading .mp3's off of my website into the frame and the play pause buttons will enact more elaborate scripts that not only stop the progress bar but also stop the music from playing temporarily, or something like this. But I have no idea how to implement it

View 2 Replies

ActionScript 3.0 :: Building A SWF Player That Loads Other SWF Files Into It?

Jan 18, 2010

I am building an AS3 SWF player that loads other SWF files into it, both AS2 and AS3 files will be loaded (one at a time). In the case that it is an AS3 file then the main player SWF can directly call functions and variables inside the loaded AS3 file. Now to handle AS2 files I am using 2 Local Connection channels, one for the player to send info to the loaded SWF and one for the loaded SWF to send info to the player SWF.

Now i never have more than 1 SWF loaded into the player at a time and before i load the next SWF into the player i use..

[Code]...

View 1 Replies

ActionScript 3.0 :: Building A SWF Player Which Loads External SWF's?

Oct 3, 2010

I am building a SWF player which loads external SWF's.

Rite Now. I could call the external SWF using URLRequest.

but I am getting 2 problems

1. How to run the SWF with the frame rate of the actual SWF movie. If, I increase the frame rate manually, some movies become a lot faster and some are pretty slow.

2. I have set a layer of 450px by 333px. How do I scale the external SWF with showall property to fit in the layer.

View 5 Replies

ActionScript 3.0 :: Compile SWF - Building Different Flash Player Versions

Jan 15, 2012

Can we compile a SWF for (let's say) Flash Player 11, but still let people with older Flash Player versions run the SWF? E.g. if they have the latest version of Flash Player we will take advantage of the features in that player (eg H264 encoding of video) but if they have an older player we will just use older features (in this case VP6 encoding).

I've tried compiling for the latest version, FP11.0, but when you run this in older Flash Players it complains that libraries aren't available, even though that part of the code is not executed as its placed within a conditional statement which checks the version of the Flash Player. Surely we don't need to compile a SWF for each different Flash Player and have a condition in the HTML page which decides which movie to load?

View 6 Replies

ActionScript 3.0 :: Building An AS3 Media Player And Get TypeError: Error #1009

Sep 13, 2007

I'm building an AS3 media player and I am having trouble loading an external movie. I keep getting the error: TypeError: Error #1009: Cannot access a property or method of a null object reference at CookBookPlayer$iinit()Here is my script for the main Loader class:

Code:
package {
import flash.display.*;
import flash.net.URLRequest;

[code]....

View 9 Replies

Actionscript 3 :: Building Flash Video Player With Amazon Cloudfront To Stream MP4?

Aug 2, 2010

So I have a working Flash player using Cloudfront, AS3, NetConnection & NetStream. Works with a FLV, but I need it to work with MP4s. It connects to the stream, and outputs the following:

NetConnection.Connect.Success
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Buffer.Full

My presumption is that it is working when looking at these messages, however it doesn't show the video or play any audio.

View 1 Replies

Flex :: Specify Swc When Building A Swf?

Jul 7, 2010

I have implemented some utility classes in Flex that I want to use in multiple AIR projects. I have created a swc which contain these classes. I am working on a Linux machine and do not have FlashBuilder. So I am using the compc and mxmlc command line SDK tools. My problem is that I have not been able to find a way to specify the swc when building the standalone project. A tutorial suggested the following command: mxmlc -load-config /opt/flex/4.1.0/frameworks/air-config.xml -library-path=/path/to/utility.swc hello.mxml. However, using that gives me the error hello.mxml: Error: Unable to locate specified base class 'mx.core.WindowedApplication' for component class 'hello'. Everything works fine if I move all code from the swc to a single monolithic pro ject. The code for the standalone project is:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" windowComplete="completeHandler();">

[Code].....

View 1 Replies

ActionScript 3.0 :: Building A XML File?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.Complete, loadXML);

[code]....

View 2 Replies

Building An Item In Flash

Aug 18, 2009

I have no idea what to call it or where to start looking, so I am putting it in the generic and hopefully someone can point me to the right forum or area. Here is my project and I am trying to teach myself how to do these things. I had great help in making buttons on here a while back, now I am trying to build an object right in flash. The easiest thing for most to relate to is a computer that is being built from scratch. So, You start with a base picture of an open sided computer with a list of components underneath. By draggin those components to the box, it snaps them in place. You can also remove them the same way. When done, you click a tally button and it shows a list of all the components you added with product numbers.

View 2 Replies

ActionScript 3.0 :: Add Variables Building On The Fly?

Oct 16, 2010

I remember reading somewhere how you can add variables building on the fly but can't find any references. What I have is a MovieClip in my library. I will use it to create several Menu Items.
 
This is what I have written:
LessonButton = new mcLessonBtn();LessonButton.name = "menuLesson"+i;this.addChild(LessonButton);

View 6 Replies

Media :: Building Server For FMS?

Nov 30, 2010

I have built a flash app that utilizes an rtmp feed to stream video and I want to be able to stream my own content. I am looking into building the machine that will run Flash Media Server and was looking for some pointers before I get started.
 
My flash based application runs independently on a large touch screen and is going to be the only pc accessing this server, so I was wondering how beefed up the server needed to be. I would like to get it stream three live hd feeds. Can I run Flash Media Live Encoder and Flash Media Server on the same machine?

View 2 Replies

Building An App To Call A .swf Game?

Aug 7, 2011

I'm looking to build a flash application that acts as a "shell" around a flash game.I only need it to do some pretty basic functions:

1) Calls a PHP script I wrote to determine a few things (if user is logged in, what their userid is)

2) If the php file says the user is logged in, the "shell" should let the user play a .swf flash game that I wrote. And, after they are done playing my .swf game, I want the game to pass out a parameter (score). Again, the "shell" will call a prewritten php script to store the score.

3) If the php file says the user is NOT logged in, the "shell" should display a login box (username/password).

My main challenges have been getting one flash application to call another. (ie: the shell app calling my game). Is this possible?

View 1 Replies

How To Implement Interactive Building Map

Dec 16, 2009

I need to build an "interactive floorplan" for a shopping centre (or two). Many shopping centre websites already have this (eg Bluewater in the UK). Traditionally, the way to build such a floorplan / map is to do it in Flash. The actual floorplan is a Flash asset and the data that describes which retailer is in each location is fetched from the webserver as XML. That way editors can update the location of retailers without having to edit and recompile the SWF file. However if the floorplan itself changes (for example, a larger shop is split into two smaller ones) then the map has to be edited. Another disadvantage is that the data isn't readily available to third parties for mashups etc. So apart from Flash what would you consider using to achieve the same effect? I know of SVG but IE doesn't support it.

View 1 Replies

Actionscript 3 :: Building A New Dictionary Out Of An Old One?

Aug 31, 2010

I'm working with a large set of hierarchical taxonomic terms, where each term ("203") has a matching "term203" movie clip on the stage, and am having trouble getting a recursive function to return all of a given term's descendants.There is a main Dictionary() object with the following nested organization for each term:

{ [object Movie Clip] : { "tid":203, "parent":99, "name":"Culture", selected:false, "otherData":"etc" } }

...where the [object Movie Clip]'s instance name would be "term203". All of these object:subObjectArray items ("terms") are stored in a master taxonomy:Dictionary() object.I've been trying to make a recursive function (which is in itself already a little above my head) that takes the click.target of a movie clip and returns a new Dictionary() object with all of the children and grandchildren and great grandchildren (etc) of that term, in the same, nested organization described above.

The code below traces the right number of recursive loops, but the returned Dictionary() object only contains the first run's terms (only the immediate children of the requested term).

var taxonomy:Dictionary = new Dictionary();
// ...Term info is loaded into taxonomy from a JSON-style text file)
// ...MOUSE_OVER event listeners are added to each

[code]....

I certainly do not claim to be the most efficient AS3 programmer, so I am open to alternative configurations. However, after trying static and nested Arrays, I would prefer to continue using the Dictionary() object as my main pool.As noted, only the immediate children end up animating in the revealChildren() function. It's mystifying to me then, that in the getAllChildren() function, all of the descendants trace sequentially (well in no particular order) in the output window.Also I can't get any sort of name or property out of the subSet Object. That could be the problem.I've only tested it as far as 'two generations,' but it seems that only the first round of calling the function successfully adds those terms to the new Dictionary() object and returns it intact to the animating function.

View 1 Replies

Flash :: Building Exe And App Applications From Swf

Aug 20, 2011

converting my swf to exe and app. I know that there are several options available. My application will be frequently updated so update feature is essentions for me.

p.s. As another option, I can make app and exe out of a loader app that will load main application module every time it is updated.

my main concern is about build in update feature inside projector eg. Mac app will be able to check for new version of my app automatically...

View 4 Replies

ActionScript 3.0 :: Building And Using SWCs?

Oct 3, 2011

building and using a SWC.Essentially, my only goal is to put a bunch of assets in a library, and have those assets included when a different swf is compiled. Compile-time, not runtime.

In my assets FLA, I add an FLV to the timeline of a movieclip. In the movieclip properties, I select Export for ActionScript and give it a unique classname ("FLV_intro"). In Publish Settings, I choose "Export SWC" and click Publish.

In my main FLA, I goto Actionscript Settings, Library Path, and add the SWC. In the code for my main FLA's document class, I do this:

var VideoClass:Class = getDefinitionByName("FLV_intro") as Class;
_video = new VideoClass();
_videoHolder.addChild(_video);

The result is a SWF that does not have the increased filesize of the assets SWC (~30mb), and obviously, the video doesn't show up.Again, the goal here is to have large media assets, such as FLVs, external from the main FLA code, but the resulting SWF to contain everything when compiled - no external SWFs at runtime. The client requires a singe SWF. Additionally, I can use a different, smaller set of assets when developing to make development faster.

View 3 Replies

ActionScript 2.0 :: Building Array From XML?

Jun 27, 2006

I'm trying to dynamically build this structure from my XML file:

[Code]....

Now I know how to parse the XML file, but I'm just confused how I should build the array described above using this XML file.

View 8 Replies

ActionScript 2.0 :: Building Or Setting Up A Web-cam?

Mar 13, 2007

has anyone had any experience building or setting up a web-cam? i feel like this is old technology and should be easy to do. however i dont really even know where to start as far as company to go through for streaming it what to buy etc. this will be something that at points there could be 30,000 or more people watching because it is for a radio station in chicago. so i have to think about traffic?

View 2 Replies

ActionScript 3.0 :: Building RSS 2.0 Reader?

Oct 23, 2007

I'm building a RSS 2.0 reader and have only a vague idea of how to do it except use URLLoader and URLRequest to start everything. Can anyone point to a good tutorial?

View 1 Replies

IDE :: Building A Preloader In Flash?

Jan 2, 2009

building a preloader in Flash. It's about pre-loading swf files in the background while the visitor is watching a page. For instance, I have a start page built in HTML. It will have links to various swf-clips. I would like for those swf-clips to start caching immediately once the HTML page is loaded so that there is no (or little) delay once the visitor clicks on any of the links.

View 1 Replies

IDE :: Building A Site From Scratch

May 4, 2009

I need help building a site entirely on Flash from scratch. I am a beginner at the software, I know what most tools do, I know how to create basic tweens and stuff, but well, all in all, I'm a beginner. I know absolutely nothing on Action Script (be it 2 or 3), and I want very much to learn Flash now. To do so, I want to put online a portfolio site for me. I already know Photoshop, Illustrator and After Effects quite well, so I think now's the time to give it a shoot. On to business:

1. So, first, what size should it be? I wanted it to be something around 1024 x 768 maybe? Is it possible to set an adapative resolution for the site? (I don't know if that's the correct term, what I meant is that the site changes resolution according to the users who are accessing it.)

2. I heard that if you don't use ActionScript to animate things, the site gets mega heavy. Is that true? What should I use ActionScript for when building this website?

3. Is it possible to organize the loading priorities? As in, the order in which things load, so that the site gets a bit more dynamic allocating the user's connection?

4. Are there global standards for Flash-based websites?

For now, I guess this is it. I'm starting this project today, so I'm still not quite sure what other doubts may pop up.

View 1 Replies

ActionScript 3.0 :: Building An XML File ?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();[code].......

View 1 Replies

IDE :: Building A Menu In Flash?

Jan 10, 2010

I'm trying to figure out where to get started on a menu like the one found at:There are several links, and as you rollover each of them, it changes the image above them. However, the image above them has links in it as well.I'm completely lost on where to get started as it seems like rolling over opens another page right above it.

View 4 Replies

Building A Flash Drop Down Menu?

Oct 12, 2009

HOW do I go about doing it?Ive tried...buttonon "over" create to movie clipinside movie clip have my animations and sublink buttonsit works fine, but there's one problem, The hit area of the main button HAS to cover the hidden sublinks, so even if you scrolled your mouse over the bottom of the button (in the invisible area) it will still show since its in the hit area).How can I create a simple nav drop down? I seriously have went through almost all tutorials, both video and text, and nothing has worked! I am using Actionscript 3, or whatever the tutorial says to use.edit: Here is something I'm working on. Its a button, and on the rollover it creates the animation. Obviously it doesnt work, because you cant have a button inside a button, so I don't know the actionscript to do this.

View 2 Replies

ActionScript 3.0 :: Building A Search Application?

Aug 1, 2010

I am supposed to design a Flash application. Part of this application consists of a search window. It is similar to your search window on a DVR. When you want to find a specific show or movie to record, you cycle through the letters and type it into the search box. As you type, results are instantly posted. Once you see the one you want, you can simply scroll over and select it. You can move in and out of the search box as needed.

View 6 Replies

Building Gallery (50 To 60 Images) Bit Of Animation?

Jul 6, 2009

I am putting together a gallery that will show about 60 images. basic fade-in transitions between the images. I need to animate the company logo (very basic) and show some text below each image), becasue of this I dont know if any off the shelf xml based gallery will work? As usually you just define the image name/path and run the swf. This is for a presentation and not web so maybe not possible to be Xml based. Is there anything that is out there that could work for this and if not i suppose I am doing everything in flash but fear this as thimeline will be so long and a bit of a nightmare to do, if I have to do this in flash, I would have each image occupy about 20 frames 1-9 it will fade in, frame 10- a 10 sec pause, and frame 11-20 a fade out, that will still give me a timeline of 1200 approx.

View 1 Replies

ActionScript 1/2 :: Building A Simple Checklist

Sep 25, 2009

I'm new to Flash CS3 and am working in action script 2.0.I've built a beautiful checklist that has a number of items on it.When you click on an item, that item turns green, then a box drops down to the next item on the checklist.Using the AS 2.0 stop(); command, I've simply made two frames of each checklist item (one in white font and the other in green font).Each time you click an item, I've used the behavior "gotoframe and stop" to make the movie play and stop on the last frame.When you get to the end of the checklist, I would like the clicking of the last item to activate the next checklist (which I haven't built yet). What is the best method to handle this problem?I've tried a new layer, but when I start the swf, all the layers are visible.I've tried scenes, but that doesn't work either.Is it possible to build the next checklist as a separate swf, then call that external swf up when you click the last item on the checklist? can't seem to get this last and crucial step to work.

View 9 Replies

ActionScript 3.0 :: Building A Spark Component?

May 13, 2010

I'm making a spark component and I've defined my own skinpart which doesn't show up in Flash Builder's design view. When I run the app it works fine. I'm basically using Panel and PanelSkin as a guide. For debug purposes... I just took the panelskin and renamed the controlbar to headerI'm posting code below... but this forum kinda killed all my code formatting

Console.as
package
{

[code]......

View 3 Replies







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