ActionScript 2.0 :: Load / Play Only Defined Sample Of Mp3 File?
Feb 24, 2010
I bought a ready to use mp3 player /shop solution ( Paypal ).Buyer gets the link to the loaded ( player ) mp3 file after successfull payment by email.Need to feed the player with only a part of the mp3 file, but taken from the full length mp3.
I cant simply load a pre-cut mp3 into the player, as the buyer will get the link to the file which loads into the player after buying.how to call just like the desired seconds to play from the track ?
View 0 Replies
Similar Posts:
Aug 12, 2009
i have installed flash media server 3.5 ..windows vista and using FLASH 10right now in Flash Media Server page I am only able to play HTTP sample,RTMP file is not working , i check the sample folder >> and open HelloWorld >> that shows error :: Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failedat HelloWorld/connectHandler()what should i do now need ur help urgent
View 5 Replies
Apr 9, 2010
for example i have 2 movie clip, clip1 and clip2, and i want to play one of them, which defined in a external txt file variable like this:&c=1& or &c=2&my problem is, i have just one frame to make this!i tride to make simple my question, it's a bigger project!there is more than 2 movies and can't use if(), i just want to change the number of end of movie clip instans name some thing like this:
ActionScript Code:
clipname= "clip"
var trc = new loadVars()
[code]....
View 9 Replies
Jan 11, 2011
Can some only indicate a small piece of FLEX/AS code which plays mp3 and with play button only,the objective is to play a sample sound for around 5 to 10 seconds.And the compiled swf should have the mp3 embeded in it
View 1 Replies
Aug 4, 2009
if I repeat this IIS topic, I couldn't find the answer to my problem any where on the internet. I installed FMS Dev 3.5 on Win 2003 Server with IIS 6.0 enabled. I don't have any issue with port 80 Listening, I used the IP address 192.168.0.21 for my web application (IIS) and 192.168.0.22 for FMS (I only have one network card and port 1935 is open under firewall). I can play the sample videos (RTMP, HTTP, and Dynamic Stream) using the Flash Media Start Screen (or from the location C: Program FilesAdobe Flash Media Server 3.5webrootindex.html) without any problem.
I then modified the IIS Default Website to look at the "webroot" folder (C: Program FilesAdobe Flash Media Server 3.5webroot). From IE, I can access the default web site by enter http://192.168.0.21/index.html. The website loads up correctly, and the RTMP video is playing perfectly. However, if I click Play Video (HTTP) or Dynamic Stream (tab), I receive "Connection Error. Please press Play to try again." I look at the log file (access.01.log) and see the error log "Session disconnect
[Code]...
View 5 Replies
Apr 22, 2009
i attached my fla file and the sample activity image.so before i create like this activity i try basics of this activity.so i got proplem.there are lot of line drawing
View 1 Replies
Jun 13, 2003
could some one please tell me why the hell my fscommands don't work???[AS]fscommand("allowscale" , "false");
fscommand("showmenu", "false");[/AS]
these are the two I am using but the showmenu does not seem to work. could some some body help me with this?
I am attaching ta sample fla and the html file.
View 6 Replies
Jun 3, 2011
I am trying to create the sample file for loading the video images with thumnail.But i don't know how to create thumnail for video file (using video component).give any tutorial and give some sample files.
View 1 Replies
Sep 4, 2010
I'm trying to have JavaScript call a function from my ActionScript.
ActionScript:
import flash.external.ExternalInterface;
ExternalInterface.addCallback( "playSong", playSong );
function playSong():void {
var _sound:Sound = new Sound();
var _request = new URLRequest("music.mp3");
_sound.load(_request);
_sound.play();
}
JavaScript:
swfobject.embedSWF('[URL]', 'musicplayercontrol1', '1', '1', '9', null, null, {
allowScriptAccess: 'always', wmode: 'transparent' }, { }, function( e ) {
document.getElementById('musicplayercontrol1').playSong();
});
I keep getting a function not defined from firebug. I tried having the song play as soon as the swf load, and that works for sure.
View 1 Replies
Jan 25, 2011
If i broadcast a video and divide it into packets, and when a users connect to the netgroup and receive the object from the group( the user will receive from specific time let say actual video is 10 minutes and user connect to the group, and seek video for last 5 minutes). how can i achieve this task. is it possible ? i am using flash player 10.1
View 1 Replies
Feb 26, 2010
I am searching for a way to load and play karoke files "cdg"The loading part is easy the difficult part is interpreting the byte array that i get after loading the file...
View 2 Replies
Mar 28, 2011
I have been searching the web and all of the codes I have found are to play external swf files that have a timeline. The file that I am trying to load does not have a timeline. I am using the Flixel framework for this project and the file that I want to play is also made in Flixel(don't have the source file just the swf file).Most of the code I have is from a cutscene template that I found on the Flixel forum. Here is what I have so far:
package
{
import org.flixel.FlxState;
import org.flixel.FlxG;
[code]....
When I run this I get this error: Type Coercion failed: cannot convert SponsorsState_SwfClass@fb5161 to flash.display.MovieClip., all I want to do is play the swf file for a set frame count then move onto the next state.
View 3 Replies
Dec 17, 2009
Is it possible for a movie to stop until an external file has fully loaded at which point the main movie will then play?
View 1 Replies
Jul 11, 2010
Adobe Flash CS3 I need to create a Flash project that will load images that are defined from either a xml or database (If database, then it will be SQL Server (or) Access using ASP Classic).
I need to make an image wall that looks like the below. Now, the the total images will be: 10x10 = 100 So that is 10 columns, 10 rows = 100 images.At times, it will not have all the images (Image #1)And the rest of the time it will have them all (Image #2)
The important part is this:The Flash movie will not have nothing special as in.It will just be showing the images, and the images will need to be Clickable, NOT to show a larger image within the program BUT Launch a website that is specified in the xml file for the paticilar image.
View 5 Replies
Aug 3, 2009
I need to know how to load and play a sound from within a CLASS definition file. I know the normal way of doing this, but Flash MX rejects that syntax, so there must be some special way of using sounds in a class file.
I need to know how to code for "if the score increases by any value." So, if the score goes from 0 to 1, the sound plays ONCE. If it increases from 1 to 2, the sound plays ONCE again.
View 0 Replies
Sep 20, 2005
What I need is an AS code for a button which first play an animation ( a motion tween) and then load an external swf file.
View 2 Replies
Jul 14, 2009
i want to load and play a swf file form a specific frame number
So when a swf finishes i want to load another swf file from frame number 6430.
Is it possible or not
View 3 Replies
Jun 3, 2010
I have never used flashVars, even in AS2, but the project I'm working on requires that I use since my client is going to use dynamic urls defined as expressions and he wants to have control without having to edit a fla file. I have read a lot of tutorials and can't seem to come up with a solution. Basically what I want is to load my Flashvars defined in swfObject, each one holding an expression, for example:
[Code]...
How will I accomplish the same thing in as3? I know you have to get flashVars using .loaderInfo but that as far as i got.
View 5 Replies
Feb 9, 2010
I am using flex builder 3.2, Action Script 3 and develop for Flash Player 10 and am quite new to it. when I call a method of a self defined class, I get the 1061 error (not defined). But the class and the method exist and are public, so what the hell am I doing wrong? Flash Builder is even offering me this method in the auto-completion, so at least the builder knows it... I have already tried cleaning the project (as this is the common source of strange errors when working with java/eclipse),
edit: solved... The problem was that a package had the same name as the variable I used for the class. Very strange error message, thumbs down for this .
View 0 Replies
Apr 16, 2006
[Code]...
Is there any way at all I can define the file I need loaded in a variable and include the file that way? The only other way I can think around this issue is incredibly labour intensive and takes me places I really don't want to go (like dynamically writting script heavy AS files using PHP, no fun). PS. There seems to be an error in how this forum displays #include's
View 3 Replies
Feb 6, 2012
I have defined some sprites in a class .as file and I want to put them in the screen. How can I do this?
View 2 Replies
Oct 10, 2006
What I'm looking for is a fairly basic looking MP3 player, with the usual, Play, Stop, Pause and maybe a loadbar, that will only be playing one track. But the catch is, I want to be able to define the MP3 file to be played via the HTML code.My reasons for this is, the player is for a record label's website and they have audio samples for 3-4 artists a month. And it would make my life a lot easier if I could have one standard player for the site and then just change the HTML code, instead of having to make individual .swfs for each MP3, each month. And having to open the player(s) in Flash and define the file in there.
View 1 Replies
Mar 25, 2010
I have a label component in a mxml file like below
<mx:Label x="700" y="409" text="Label" id="lble" width="131" height="41"/>
if i want to access it and change its text content within a method defined in action script class that i have written, how to do it?
lble.text="test";
View 2 Replies
Jul 10, 2009
I am trying to use the CSVLib from [URL].. However; when trying to use one of the examples I get an "1180: Call to a possibly undefined method addFrameScript."This is what I did.Extracted the files, then moved all FLA, AS and CSV files in the root (where also the COM folder resides). Then added the import statement to the Applicaiton file and defined document class.
View 2 Replies
Sep 25, 2009
Here is the basic structure of my xml code:
[Code]....
Now what i want to do is,
1. create some templates in Flash CS3 <!--i want to learn -->
2. use actionscript 2.0 for coding
3. read nodes from xml <!-- i know how to do this -->
a. read the template type of the screen <!-- i know how to do this -->
b. for a particular screen on flash, load the template (made in 1) onto stage <!--i want to learn -->
c. read data from xml file <!-- i know how to do this -->
d. load the data onto template in flash. <!--i want to learn -->
I want to do this because i think re-using will make my application size smaller.
Can I do this?
View 2 Replies
Jul 14, 2011
I am trying to make a swf with one FLV playback player and 6 buttons. I've got 6 different videofiles that I want to have linked to this swf. Some of the videos are quit large.When starting the Swf, the first video has to start, after playing it, it has to stop. Then you must be able to choose which video to play by clicking one of the buttons. I don't want to have small thumbnails of the video, just plain and simple buttons.I have to have all my files, both fla, swf and xml files in the same directory (I cannot have them stored in different folders, since I have to upload this to a cms system which has limited upload properties).
I've tried to find the right script on the internet, I'm not very good at scripting myselve, actually rather poor educated there.It seems to me that I have to make an xml file with a list of all my videos, I have my default swf ready, with a FLVplayback and buttons.Now there's just the coding part....
View 1 Replies
Feb 27, 2012
I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?
[Code]...
View 1 Replies
Oct 8, 2011
I'm trying to load a swf file within another swf file and then load different swf files from buttons.This is the code I'm using, but I can't get any of the swf files to load.
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;[code]...........
View 0 Replies
Mar 23, 2010
I have a "movie player" that plays flv files using the code below (videoToPlay is the name of the file to play and is just a string). I want to use the same setup to play an mp3 file also.I tried using mySound = new Sound(); and then mySound.attachNetStream(ns);, but it gives me this error: 1061: Call to a possibly undefined method attachNetStream through a reference with static type flash.media:Sound.
View 5 Replies
Dec 26, 2009
My sample templates are missing, all that shows now are Cateregory: Advertising and different size banners. I searched my harddrive and found the rood folder where they are stored but only the folder for Advertising exist. I haven't deleted anything, so could it have been a glitch at installation, I had startup problems with Flash constantly crashing at the splash screen and finally had to uninstall and reinstall.
Running WinXP SP3.
[Code]....
View 2 Replies