Flash :: Get Filesize Of Remotely Hosted File?
Dec 6, 2009I'm looking for an AS3 function to get the filesize of a file that is being hosted on a remote webserver. Tried to find some functions but didn't succeed.
View 3 RepliesI'm looking for an AS3 function to get the filesize of a file that is being hosted on a remote webserver. Tried to find some functions but didn't succeed.
View 3 RepliesI've embedded a virtual tour on one of my client sites.
The site is hosted by Slicehost, and as you can see the load times for the Flash movies are very slow, so my idea was to serve the swf files from Amazon S3 Europe.
To test it, I have all swfs uploaded to the same directory / bucket on Amazon, while the index.html and p2q_embed_object.js files reside on my local machine. The js file is changed to refer to the Amazon-hosted swfs. The first swf loads fine, but the others don't. What am I doing wrong? Is there a better way to do this that would allow me to serve my Flash assets from elsewhere?
I create a movie on imovie. I take it to Flash(CS3) and publish it as an swf file I then install that file in Dreamweaver. All is good I save and preview it locally. the file's root folder is images and same remotely I upload all including the HTML page and when I view the page, the place where the file is is blank.
I have uploaded this many times and it just wont work.
I'd like to know how to use the JavaScript onChange event on <input type="file"... so that when a user selected files, onChange will call Flash to return the file's size and decide what to do next.2nd. How to use JavaScript to exclude this check, if the browser doesn't have Flash.
View 1 RepliesI've made a little game in Flash, and I want it to have an online leaderboard. But after looking into it, it seems it's complicated saving a simple .txt file because of security, and the tutorials I have tried to use, using PHP to do it, have not worked, not even the excercise files. So I was wondering if anyone have either a working tutorial or code to save a simple string in a txt file, or know another way of saving data remotely?
View 13 RepliesHow can I programatically make a picture of a flash application in an ASP.NET/C# page which is hosting the flash application?
View 2 RepliesI am able to publish flash as long as I launch from local computer. Can't get flash to play when I publish on external server hosted by ISP. Is there another method to publish that does NOT require the Ac_RunActiveContent.js?
View 1 RepliesI used AS3 to successfully load a web-hosted video file when I tested my app. within Flash CS5. However, I published as a Windows projector EXE file and the web-hosted video won't load from within Flash Player 10 running the EXE.
View 1 RepliesWe are writing a new social app that connects to FB using FB connect (actually, it's in Flash so we're using the FB AS3 SDK, which uses the FB Javascript API under the hood AFAIK).
When the flash app is served from our site - it works fine.But when we try to embed it in a 3rd party site (using an Iframe that points to our site) the following happens: when we try to perform a login to FB using the AS3 function Facebook.login(onLogin, opts), a small browser-based login to FB pop-up comes up, but it has the following error first
Or is it possible that FB don't support FB connect apps that are embedded in 3rd party sites?
I have one text field which needs to support RTL languages but this is not achievable with ordinary TextField so I used TLF. I created a test project just to make a test with this small text field which uses TLF, and guess what it became 346KB. I browsed the compiled swf in flash develop and I can see a lot of classes from TLF framework which I havent imported in the text project.
How to remove them from addin to the main swf file?[code]...
does size of the vector simbols in the library depends on how big the swf is going to be when compiled?
View 1 RepliesI can't see how to do this because silverlight is compiled. I don't want to load a video, I want to load a component/object that will be instantiated at runtime. Flash can easily do this as movieclip is also an component/object.
View 3 RepliesStarting with a blank project, when I load a SWF which has a dependence on ISomeInterface defined in a swc which is compiled into my blank project
var lc:LoaderContext = new LoaderContext( true, ApplicationDomain.currentDomain );
var loader:Loader = new Loader();
loader.load( new URLRequest( "Some.swf"), lc );
[code].....
I want to create a custom video player to modify the skin of the play controls etc but still host the videos on youtube.The youtube api allows for minor colour adjustments but not full customisation. I know it would be possible if I download the FLVs but i want the video to remain hosted on youtube.
View 3 RepliesI'm loading a 33MB .swf, and my preloader is removed by the Flash Player and replaced by this strange graphic while the swf is loaded.
View 3 RepliesConsidering we have already done the following actions:
Flex Framework as RSL
Compiling with debug=false
Loading most images at runtime
Drawing other simple images with flash draw features
[code].....
We believe we spent a lot of time into asset optimization and most of the work is remaining on the code.By analyzing our link-report, our guess is that the heavy part of the code is comming from Flex .mxml nested components. We don't think there is much to do on our pure AS classes.Is there any analysis or coding best practice in order to reduce the impact of the code on the swf filesize ?
Is there anyway I can get the total size of all files queued from swfupload right after the user selected the files? I need to be able to display something like "0 of 184MB" when the upload is about to start.
View 1 RepliesI made a quick flash document for my friend who posted it his MySpace. The document has 3 buttons, each with a URL attached to them. When I play the SWF file locally, the links work fine, however once it's published to MySpace, the links refuse to work. The hand icon comes up so it understands them at least as buttons, but it seems to do nothing when clicked in the web-browser. Also, I can open the SWF in my browser and it also works fine.
I'm using Flash CS5 and working in ActionScript 3.0.The three buttons are on one layer called "Buttons". I right click the button and click "Actions". From there, I click the "Code Snippets" and under the folder "Actions" there is an item called "Click to Go To Webpage". Here is the code it gives you by default:
button_2.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_6);
function fl_ClickToGoToWebPage_6(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}
I heard there was a problem with MySpace not allowing action scripts, and after checking the source code, the value is set to not allow action scripts. I don't think it's a browser issue, since it's working fine when I execute the SWF by itself, and when I load it into Firefox. It's just seems MySpace is having a problem with it.
i need a webpage (host on my website) that can play the following mp4 file either via silverlight 4 or flash[URL]..i tried various solution like flowplayer and silverlight but none of them work with the URL above. I can play the file fine using Windows media player or VLC.
For silverlight, i always get AG_E_NETWORK_ERROR exception within MediaFailed event. For flash, via flowplayer, IE page is just blank
Can someone tell me what am i missing? i am very frustrated as I have finished encoding, upload, cataloging my videos and now I am stuck at the last step.
Is there any way via Actionscript that I can have a swf determine what URL it's hosted under? For instance, if I put my swf on this site, I want it to behave one way and on another behave completely differently. Make sense?
View 7 RepliesI don't have a sking on my f4v file, it doesn't play in the server but it plays locally[code]....
View 1 RepliesI have a SWF hosted on a https enabled domain and amfphp installation on the same domain. Now when i let user embed the swf on his on http page, i intend to send some data to amfphp without user seeing it. However i see that firefox with firebug plugin catches the post data easily. How is this happening ? Adobe documents say that if a swf is hosted in https and destination is also under https, its suppose to be secure?
View 4 RepliesThis code is posted in several places saying it works with paypal. For some reason, for me, it does not work - I get to paypal's homepage instead. However, the same code (sort of) works if I just use a straight html page. I don't get it.S3
Code:
addcart.addEventListener(MouseEvent.CLICK, addItem);
function addItem (event:MouseEvent):void
[code].....
why is that the news item links on [URL] work
and when the same swf is embedded here, the links do not work? [URL]
how can I go around this?
corssdomain: [URL]
I am using [URL]
I created a swf embedded on a web document and hosted on our local server. I have no problem previewing and playing it on flash player 10 but whenever I attempted to play the same swf in flash player 9 I'm getting a popup security warning. I went ahead and registered it on the Adobe website but still with no success.
View 4 RepliesI am looking for an online photo editor like url...) or picnik.com/info/api (Flash) but I need one that I can host on my own server.. been searching for a while but no results..I also love the idea behind url... but its so expensive.
View 4 RepliesHere is the external swf loader that is commonly used and which I used
ActionScript Code:
var xpos:Number = 4;
var ypos:Number = 4;
var swf:MovieClip;
var loader:Loader = new Loader();
var presvid:URLRequest = new URLRequest("presentation/presentation.swf");
loader.load(presvid);
loader.x = xpos;
loader.y = ypos;
addChild(loader);
The presentation.swf file plays well when I test the movie, but when I upload it to the internet to say swfcabin.com or deviantart, etc or any site which supports swf, the presentation.swf file doesnt play.
We recently updated to ColdFusion 9 (from 8) and Flex 4 (from 3).
Now receiving below error when attempting to load Flex portion[code]...
Do we need to re-export the Flex project to fix problem or maybe code from /flex/remoting-config.xml needs to be updated?
I have a UIlLoader component that loads external images okay locally, but when i tested it remotely it doesn't work. Below is the code i used. I have a movieclip called content that holds my UILoader component and beside the loader is five buttons that when clicked....loads in my images.
Code:
// Listeners...
content.maryPic_mc.addEventListener(MouseEvent.CLICK, loadPic);
content.lemonPic_mc.addEventListener(MouseEvent.CLICK, loadPic);
content.orangePic_mc.addEventListener(MouseEvent.CLICK, loadPic);
[code]....
why this only works locally? I have doubled checked the directories and for the life of me, i can't work it out!
I have a couple of methodology questions concerning an .fla file I'm working on. I made a flash gallery here. As you can see online the images fade in as they are loaded dynamically via the loadClip() method.
I would prefer them to load more like this. Is it possible to load an image to a variable instead of a MovieClip that exists on stage via actionscript?In other words, at the moment the script loads images as you go. I would prefer if I loaded all the images first and then ran the script to render, view, and navigate the images.
In addition to this if you download the zip file with the flash file, source code, and example you'll notice that the position of the images and the text is more accurate than when viewed in a browser. I thought flash was a self-contained entity and that it would run identically on all platforms / browsers / online / offline / remotely / locally.
I know a lot to ask in one post, but I think the script can benefit you as well as me if you just download it and take a look. I'd love to hear suggestions as to how to remedy the position of the images and text.