ActionScript 3.0 :: Sound URL Request Fails?
Jul 17, 2009
I was wondering if there's a method to determine whether an audio file is accessible before trying to import it into the movie?I'd like to use something like this, just in case the the .mp3 is not in the correct directory to begin with.I'm using the following to import my audio file:
Code:
var sound:Sound=new Sound(new URLRequest("music/busylittlemarkettown.mp3"));
var songChannel:SoundChannel
View 1 Replies
Similar Posts:
Aug 18, 2010
Here's the code that I have - I don't know why sound isn't looping?
// Attach Music
var req:URLRequest = new URLRequest("squeeak.mp3");
var sound:Sound = new Sound();
var controller:SoundChannel;
var myTransform = new SoundTransform();
var soundLoop:int = int.MAX_VALUE;
[Code] .....
View 2 Replies
Feb 19, 2010
I am using Flex 3 (ActionScript 3.0). I use the HTTP progressive download to play sound files. I want to secure the sound files, by only serving them when the request comes from my flex app. I chose the simplest solution of adding a HTTP header to each request send from the app. But flash.media.Sound object ignores the headers set in flash.net.URLRequest. Here's an example,
URLRequest sndFile = new URLRequest("http://blah.com/media/load_sound.php");
sndFile.requestHeaders = new Array(new URLRequestHeader("req-orgin", "myflexapp"));
Sound snd = new Sound(sndFile);
snd.play();
The value of req-origin comes as null in load_sound.php. When i inspect the request using Firebug, the request headers to [URL] doesn't contain the header.
View 1 Replies
Jun 1, 2010
When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.
View 1 Replies
Apr 13, 2011
I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:
POST /engine/ HTTP/1.1
Host: abcdef.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....
The result is a blank page instead of response from server.
View 1 Replies
Apr 16, 2011
I am triggering short sounds dynamically from the library for a game (Specifically Air for Android). When the user clicks a button the sound can take up to 600ms to actually play. I have set it for any silence before the actual sound by calling the sound like so:
[Code]...
All return the same results. I know there are threads here that talk about this but none have offered a real solution that I can find. Is there no way to cache the sound or store it in a buffer?
View 1 Replies
Oct 1, 2010
Just updated from FMS 3.5.2 to 3.5.4. After this I'm not able to login onto the server.I've tired to check the fms.ini file without any luck. I've tried to login using both localhost and domain/url. I've tried to use a backup of the conf-folder but all responses from the installation is: "login attemt to the server below failed".It worked PERFECT before the update. There has been no changes in firewall etc. during updateinstallation.
View 7 Replies
Aug 24, 2011
In my application, when I have got an modal window with tab navigation enabled for all the fields. When I am working with chrome, the navigation works fine but when i try it in IE, when i press on tab from the last field, instead of going to the first field, the control goes to the address bar. Does anyone know how to rectify this issue? Is it possible to set next-navigable-item on items?
View 1 Replies
May 1, 2009
I have a large FLA (about 13 MB) which used to compile fine.
Recently, when I try to publish it, the AS 3.0 files are not getting compiled (Generated size report says 10 bytes for AS3 code) and the swf just keeps blinking (due to the unavailability of the class code for the components). When I tweak around a bit with the class path (and finally restoring it to where it was), sometimes it works
Is there any reason, why the compiler would silently fail. Does flash have any cyclic dependency problems (like in old include statements in C). I somehow see this as a compiler crash. I know there might something wrong with my code but it doesnt show any error.
View 2 Replies
Jun 13, 2009
Tried to upgrade to FMS 3.5.2 on CentOS 5. No dice. Listener doesn't start. No other (as far as I know) services running on :1935. Admin server works, but not Streaming Server.
View 2 Replies
Jul 25, 2009
I use Flash primarily for animation. The project I'm working on currently is a hefty 1920 X 1080 square pixel file and currently weighs in at 187mb because of all the sounds and jpg images.It's 2 minutes long.
The problem occuring is new to me as I've never worked with projects this long or in this resolution. Or with this much data (sound effects, jpgs, etc).
The problem is this: I'm trying to import a high resolution photograph (3500x2500) onto the stage or even just in the library. I'm using the photos to get an idea on where the final animation will be placed (photo backgrounds, flash animation, composited in After Effects, think Roger Rabbit).
View 1 Replies
Jan 23, 2010
I''m currently working on a school project, but I'm having issues with getting the flash loaded with loadMovie. I've read on several forums how to use the command, If I use the command, it loads the flash file. But all variables are undefined and the movieclip in which I loaded the swf file also remains empty.
I've tested the situation with a random jpg and this works.
I'm getting kinda desperate, since I've first tried to use scenes without succes..
View 4 Replies
Feb 17, 2010
I have the CS4 Creative Suite, I just got done checking for updates msg and downloaded all.
Dreamweaver, Acrobat and all others were installed but for some reason Flash is still at 10.0 I downloaded manually as well and still I'm on build
10.0.0.544
View 6 Replies
May 27, 2010
I've bought the new Adobe Web Premium CS5 and I have big problems with the Flash Professional CS5.
First time the application started correctly, but didn't start next time. I always had to remove all application settings in "Documents and Settings/user/Local Settings/Application Data/Flash CS5", what is already not very good.
View 13 Replies
Aug 24, 2010
I have a .swf containing a FLVPlayback components that includes a FLV movie.I'm loading this .swf in a main flash project using a Loader(). When I try to unload the .swf using myLoader. unloadAndStop() the FLV inside the FLVPlayback still playing (I can't see it, but I'm still listening his audio).How could I unload nicely a .swf that inside it has a FLVPlayback component?
View 3 Replies
Jan 10, 2011
I'm have Flash CS5 trial on windows 7, I want to install the updates but I get "Install Failed" without any other information.First I tried to install 11.02 which failed, so I tried to install 11.01 which finished with message "Done with errors"
View 1 Replies
Jul 11, 2011
Here is the thing: I use a URLLoader to load a PHP script, and receive an answer. Ok, fine, but the problem is: sometimes it does'nt work...Yeah, my big problem is the SOMETIMES. I can't figure out why would it only be sometimes, it's killing me. Anyway, it doesn't generate any error, it just stop in the middle of the scriptHere is some code (in french mostly,):
var enveloppe:URLLoader = new URLLoader;
function envoyerCode(event){ //Sending PHP Script to database var variablesLocales:URLVariables = new URLVariables(); var scriptPromo:URLRequest = new
[code].....
View 2 Replies
Mar 1, 2012
I have some proLoader code that works on one FLA file and I am trying to reuse the code on another file to pull in the exact same .swf in the same location and I am getting this error.. What do you reckon is going on?
[Code]....
View 5 Replies
Jul 23, 2010
Is there a way to clear a textfield when all else fails? This is from a very long document I can't post. The textfield is on stage and worked fine until this call. There's no error, I just can change text
public function cx(e:MouseEvent):void{
//VARIABLE THAT EFFECT THESE TEXTFIELDS
V1 = 0;
V2 = 0;
[code].....
Tried: FocusEvent, but it didn't work
View 1 Replies
Feb 21, 2011
I am having an issue with a playbook app I am working on. This is the first one i've done using Flex Burrito Hero, and on the simulator I noticed that the app fails to minimize gracefully (when multi-tasking etc). Are there any resources for handling minimization or anything that could help guide me to debug whats going on with that?
View 1 Replies
Sep 6, 2011
I've hit a snag when trying to debug an AIR app using adl.
Although adl successfully launches, the application never appears on screen / starts up.
eg:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code].....
Update: I've also since uninstalled and reinstalled Flash Builder (and therefore, the AIR SDK), and it still doesn't work. I think this adds weight to the port conflict, but still leaves me unsure of where / how to proceed
Further update Compiling exactly the same codebase to a AIR installer, installing, and running the application works fine. (Ie., a production release). However, the codebase fails to launch with adl. This pretty much confirms the issue as a local machine config problem somewhere with adl, and not an issue with the codebase.
View 5 Replies
Nov 13, 2009
I have a flash file that loads 3 straight XML files, one after other.And in every single code I have the sucess condition, like this:
ActionScript Code:
if (success){
doRightStuff();[code].........
Later, I added a function and an Interval to do the verifying:
ActionScript Code:
goBack = function () {
gotoAndPlay("untilItWork1");[code]..............
Didn't work also. Las try was a completely stupid addition: a variable counter that increased it's value 100 times (doing the XML calling and loading everytime), to check if the problem was some delay issue. 5 minutes later, it didn't work also.The second time I load the f**king page, it works like a charm.
View 1 Replies
Dec 23, 2009
This segment creates the MCs for a preloaded slideshow. I want it to skip the creation of the MC and loader at the current index in the loop if a variable at that index is false, and then decrement the index and slideshow_length variable by one.Looking at the code now, I suspect I need to pass si to another variable at each trip through the loop, and decrement that instead. But that still doesn't seem to explain why the else condition isn't tripping. Does it?[code].....
View 0 Replies
Apr 30, 2010
I've tried numerous times to get the URLLoader to work properly, but it never does. I don't know if it's a problem with my code or something wrong elsewhere. AS3 Code (pastebin) It's talking to my PHP ...here... which returns valid XML. No matter what I do, I get nothing but: Error #2032: Stream Error. URL:[URL]
View 2 Replies
Oct 7, 2010
I am using an external preloader to load up my main SWF from the same directory that the preloader is loading from. This is my custom class that I used based off of the adobe docs example for using Loader objects.I implemented a maxRetries variable as you can see, but how on earth do I make use of it and where do I perform the retries?Do I detect the Http status code and perform a retry based on whether it was a 200 or 0, or do a I do it in the IOError or what?
Code:
package
{
import flash.events.*;[code]....
View 2 Replies
Dec 7, 2010
I have a SWF-Movie written in AS2(I call it AS2-Bridge), which loads another SWF2-Movie. Now if I run the AS2_Bridge.swf everything works fine.But if I load the as2_bridge into the as3-movie - then the as2_bridge fails to load the other content.[code]
View 3 Replies
Mar 31, 2011
I have a site that loads XML content data into a movieclip right away. When the user clicks a button, that movieclip is removed and replaced with another. When the user clicks a back button, the XML is loaded into the movieclip once again. The trouble I'm having is when I upload the files to server, the XML will not load a second time either by refreshing the browser, navigating away from the page and going back or going back from within the flash file itself.
[Code]...
View 1 Replies
Oct 13, 2011
So I'm rather new to preloaders in Flash. However, I found a decent tutorial online, and after completing it, began to create a preloader for my movie project.
Everything was going just dandy until I viewed the movie. Because I wanted to see the preloader, I tested the movie and simulated a download... and was greeted with a white screen. I waited for some time, and suddenly the preloader appeared, loading from 80% onward. Basically, the first 79% of the preloader was represented by a blank screen.
View 1 Replies
Aug 4, 2009
I am using ZendAmf with an example Tutorials of Lee and files downloaded from this forum.
This is the client actionscript code :
Code: Select allvar nc:NetConnection = new NetConnection();
nc.connect("http://localhost/myfiles/zendTest.php");
var res:Responder = new Responder(onResult,onError);
[code]...
View 2 Replies
Sep 28, 2004
I'm trying to output a table like structure where i attachMovie() 5 MC's in a row then change the _y and set the _x back to zero for a new row, and print another five. and so on, and so on.
The problem is that after setting the _x to zero the next clip i attach on the 2nd row goes on from it's old _x and _y position. I do the following in a loop[code]...
View 2 Replies