ActionScript 3.0 :: Detect Total Size Of All Files In FileReferenceList?
Jun 2, 2009Is there a way to detect the total size of all files in a fileReferenceList?
View 1 RepliesIs there a way to detect the total size of all files in a fileReferenceList?
View 1 Replieswhat is the total maximum file size that the flash cs4 library can hold?? because im experiencing error, right now, i have too many objects in the library.is it because of the too many items in the library?
View 5 RepliesI am trying to build a preloader that loads multiple external swf files with ONE big preloader, however I need a script that somehow gets the total bytes of all the external files. I just need something that checks it and returns a value that i can use later.
View 12 RepliesI'm creating a map that has points of interest. (POI) When a user mouses over the POI an info bubble pops onto the screen and it loads an swf. I can't detect the size of the swf so that my infobubble will size itself to the size of the swf. When I mouse over my swf file, it disappears. I would love to have the my swf file pop up in a layer on its own instead of being on the stage of my main flex file...
package com.modestmaps {
import flash.display.Graphics;
import flash.display.Loader;
import flash.display.Shape;
import flash.display.Sprite;
import flash.filters.BlurFilter;
[Code] .....
I'm creating a map that has points of interest. (POI) When a user mouses over the POI an info bubble pops onto the screen and it loads an swf. I currently have 3 problems. My 4th problem is that this is due Monday 21st! so any help would be greatly appreciated!
1. I can't detect the size of the swf so that my infobubble will size itself to the size of the swf.
2. When I mouse over my swf file, it disappears.
3. have the my swf file pop up in a layer on its own instead of being on the stage of my main flex file...but i have no clue how to do this.
<code>
package com.modestmaps
{
import flash.display.Graphics;
[code]...
Can i detect size of external file from swf?
I have btn link in SWF for XSL file and the file is 1 mb big.
I possible to detect the size of XLS and then show e.g. with preloader the downloaded size?
From my main flex mxml, I am trying to detect the size of a rect:Rectangle that I created in my InfoBubble.as class. The info bubble itself is created in my InfoMap.as class. How can I access the attributes of the rectangle I created?
Here is the variable portion of the InfoBubble class:
Code:
public class InfoBubble extends Sprite
{
//public var textField:TextField;
[Code]....
Is it possible in Flex 4's VideoPlayer control (spark.components.VideoPlayer) to detect some attributes of the source video?
In my case, it's a local file. I would need to detect the original width and height of the input source video (an h264 f4v).
I'm writing an application in AS3 on Flex that utilises USB removable storage - SD cards - and I need to display the space available on it in a progress bar.Getting the space available on a drive is straightforward enough using:
flash.filesystem.storageVolume.rootDirectory().spaceAvailable
but to display free space graphically, I need to know the total size of the drive and I can't find anyway of getting that info.For now, I've resorted to guessing the size roughly based on the free space, but this is obviously far from ideal.I've scoured the vast documentation that Adobe provides and googled 'til my fingers ache, but no luck. I'm guessing this may not be possible with the standard framework and may require a custom Native extention to be written.
I have a SWF that's 1100 x 730 (odd size, I know). What I want to do is detect the window size (not screen resolution). If the width of the window is less than 1100, scale the SWF to fit the window. If the width of the window is 1100 or higher, do nothing.
View 0 RepliesTried stage.stageWidth and stageHeight on applicationComplete, but for some reason the actual numbers returned do not seem to be accurate - the image always appears off-centered (stageWidth/2 - imageWidth/2). How do you determine the mobile device's actual screen size, to center an object?
View 1 RepliesI'm going to load some external files in to my main fla-file. I want the code in my main fla to be executed when all files are properly loaded.
#include "MyFile.as"
I had this:
Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadCompleted);
loader.load(new URLRequest("MyFile.xml"));
[code]....
but now I want to include an as-file aswell so both has to be loaded before loadCompleted triggers.
What I'm trying to do is get the total bytes of all the files I want to load and display the percentage loaded of total bytes and bytes loaded of all the files. Its a slideshow so i want all the files loaded and then it will play. I've looked at bulk-loader but it wasn't what I needed. The image are loaded from an xml file. I think I would need to create an Array and then find out the total bytes but I don't know how to reference the loader in the progress.
[Code]....
I would like to know how you can preview different images from a FileReferenceList Normally with file reference you can do the following:
img.source = fileReference.data;I want to do this with more than one image and with using filereferencelist, I do the following:
var fileReference:FileReference;
var fileReferenceList:FileReferenceList = FileReferenceList(event.target);
var fileList:Array = fileReferenceList.fileList
[Code].....
I have a FileReferenceList from which I'd like to display images in a DataGrid; currently I'm getting the following error: Only one download, upload, load or save operation can be active at a time on each FileReference.Here is my DataGrid:
<s:Panel>
<mx:DataGrid id="imageGrid" width="100%" height="100%" dataProvider="{imageFiles}">
<mx:columns>
[code].....
I am using FileReferenceList browse method. the window opened shows the following title:"Select file(s) to upload by ".
View 1 RepliesIs it possible to manually add an array of files to a FileReferenceList to upload/download? Rather than selecting from browser()? I need to download a number of images from my server, run some scripts with switchboard, then upload them back to the server, all automated.Is this possible using FileReferenceList or would I need to build some sort of ftp app with sockets?
View 2 RepliesI'm working on an web app that requires a multiple file uploader and I've hit a dead end. I'm using FileReferenceList for selecting the files to be uploaded, but there seems to be a bug in the Chrome Flash Player plugin, when selecting lots of files at once.The uploader must allow up to 300 files to be uploaded, but when selecting more than 232, the FileReferenceList triggers Event.CANCEL instead of Event.SELECT.I've found a bug report for this exact problem here:[url]......
View 2 Repliesthe onComplete listener tells me when the individual file uploads are done in a multi file select upload...but how could I know when they're all done?
View 2 RepliesI was wondering if it is possible to make and App capable of listening when the user "adds" new files to a directory.
Example:
The User opens up our Application. The user adds new files on the desktop (using the Microsoft Explorer). Our application automatically detects that new files have been added and executes a function or whatever.
Maybe, this could be done using a programming language like Visual Basic and open the executable with the NativeProcess api and listen for an stdOut event.
Is there a way for flash to detect what files are in a certain folder online with just a URL (ie "http://example.com/files") if the .swf file is stored on the same site?
View 1 RepliesI have been looking for a complete example of FileReferenceList but haven't found anything as of yetEverything I found was either incomplete or I didn't understand it as there was not any FLA source files with i
View 7 RepliesFollowing is my code for loading one video using FileReference class and it works fine [code]...
then after this, the file.name and file.size goes to mxml page and the video is displayed on stage with name and file size but the samething i want to do with FileReferenceList class, i am solving this problem from last 2 weeks but cant.
i am using the fileReferenceList class to get the file name and path but i am not able to get the path.
View 1 RepliesI am using the following simple code:[code]A big flash button triggers this code, which works perfectly fine. Unfortunately, I don't enforce that the button cannot be clicked while the dialog box to browse file is opened, so I get "Error: Error #2041: Only one file browsing session may be performed at a time." if I click on the button while the pop up dialog box is up.A solution that I really like is the one that Google Docs has. It does not let you click on their button, above "Select files to upload" while the pop up dialog box is showed. Actually, this dialog box has a sort of priority: You can't click ANYWHERE on the page before you select files or cancel on this dialog box.I would like to have the same behavior, not let the users click anywhere in my web page until this dialog box is done, just like Google Docs does it, but I can't seem to find how.
View 1 RepliesFileReferenceList does not dispatch Select event twice every 3 times
When i select multiple uploads, it just does nothing, when i select again, it may begin to upload, here is my ugly code below.
ActionScript Code:
package com.kilonsele.profile{
import flash.display.Sprite;
import flash.events.*;
[Code].....
I also noticed that if i select say 10 files, flash attempts to upload the files simultaneously. how do i make flash complete one upload before STARTING another.
I have a flex project with two .mxml files. Therefore, there are two .swf files in the bin folder. The size one of them is 500Kb and another 3Mb. Why are they so different? I assume some files with embedded images are not included in the first one. But why? All files in one project in flex builder.
View 2 RepliesI would like to reduce the size of swf files for easy uploading. Is there a way I can reduce the size of swf files
View 2 RepliesIs there a way for flash to detect a user's bandwidth, and depending the size of bandwidth, stop loading, or continue with the load? Now that I'm thinking about it, this would probably be a javascript detection script and if the bandwidth is high, load .swf, if not load a .jpg?
View 3 RepliesActaully I am running a cards game. While running the game in between if I change the style portrait to landscape. then how can I detect the screen size and run the game according the screen style (Portrait or Landscape).
Actaully I have written the code to detect the screen as portrait and landscape. But in between if I change the game portrait into landscape, no more it works.