IDE :: CS4 SWF File Sizes Different On External Drive

Jan 3, 2011

I'm running Flash CS4/AS 2.0 on Mac OS X. I keep my work files on a flash drive. One of these FLA files is a parent (container) movie that, when compiled, results in a SWF that is 6,983 bytes.

I saved a copy of the FLA source file to the Desktop, recompiled, and the SWF size was only 1,773 bytes (much better, since the movie only has a static preloader and some ActionScript).

I'm guessing this is because Flash has to copy some default class information(?) to compile the movie because the source file and Flash CS4 are on different drives.

Do I need to copy the class files to the external drive and map to that path in Preferences?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Flash Preloader That's Aware Of Multiple External File Sizes?

Aug 14, 2010

I have an AS3 .fla that loads an external XML file of image names, and then iteratively loads the images into the .fla. All this works great. What I want is to create a preloader that is aware of the size of all these external images. As far as I can tell there's no way to do this, but I'm hoping someone here is smarter than I am.

I tried Lee Brimelow's method of having a separate SWF whose only job is to load another SWF in its place. This doesn't work because the preloader's call to .bytesTotal only reads the bytes of the main SWF, not of the external XML or JPGs that are dynamically loaded into it. So the result is the preloader reaches 100% when the main SWF is loaded, but that happens really quickly and the bulk of the load time comes after the 100% mark, when the main SWF starts loading in images.

The more I think about this, the more it seems that you can never access the .bytesTotal property until you've already instantiated the loader and called the .load() method. Am I wrong? Is there a way to fetch just the SIZE of an external file without actually initiating the act of loading the file into memory?

View 4 Replies

ActionScript 3.0 :: Open An External File Onr Hard Drive From Swf And .EXE?

Aug 23, 2007

how to open an external file on your hard drive from your swf and .EXE using AS3? I wana click on a button and basically just open a PDF.

View 11 Replies

ActionScript 2.0 :: Youtube, External Video, Different Widget Sizes?

May 18, 2007

Suppose I am designing a widget that is 400x300 and in that I want to import a youtube video (which is an external swf). Through loadClip I am able to do this, but I face a lot of issues.Like for eg the space in which (container) I want to load the youtube movie, I am not able to confined it into that space by just giving that container a width/height.After lot of exploring, if I give it _xscale and _yscale I can somehow get it to those coordinates and dimensions but still dont understand why it just doesnt load into that space like a photo that I would import.

Now, suppose I want to increase the size of this widget to something like 500x500 - whats the best way to do this?1) Create a new widget with 500x500 dimenions? Too painful.2) Just while embedding change dimensions of 400x300 widget to 500x500?This works when I just load photos but not youtube videos. It screws my stage and just keep it like 400x300 and not 500x500

View 7 Replies

Actionscript 3 :: Get Cd/dvd Drive Or Flash Drive Name By In AIR Application(in Windows)

Jun 4, 2011

I am creating an AIR application using flex3 and actionscript3. there, i need to display dir content of cd drive/usb drive entered by user. how can i get cd/dvd drive name by actionscript3

View 1 Replies

Actionscript 3.0 :: Banner Ad File Sizes?

Mar 12, 2009

What is a reasonable file size for a Flash wide skyscraper ad? I know the IAB is a max initial load of 40k for standard ad's, but what about Flash? Either I'm losing my mind or my client is for them wanting something under 30KB. I've used AS3 for almost all animation, I even killed all animation and I still can't get it under 30KB. Is there some kind of compression secret that I'm missing?I've compressed the images before import.I've reduced quality of the images inside Flash as much as possible without killing quality

View 4 Replies

ActionScript 3.0 :: Inconsistent SWF File Sizes When Publishing

Jul 1, 2010

I'm having an issue regarding the file size of the .swf file whenever I publish my flash game. Whenever I publish my flash, I get a .swf file that ranges from 2MB (with lots of run-time errors) to 6MB (no errors). This is completely inconsistent, and I get a different size .swf every time I publish. The run-time errors I get when I unluckily publish a .swf that is below 6MB are:
Error #1034: Type Coercion failed
#2022: Class x must inherit from y and
#1009: cannot access a property or method from null reference.
This inconsistent problem started emerging after I turned each .as file in my game into it's own class. Sometimes it works fine. Other times it blows up.

View 6 Replies

Actionscript 3 :: Dynamic RSL URLs - Minimize File Sizes As Much As Possible?

Sep 2, 2010

I have several SWFs pulled in at runtime from different domains (we're using a CDN). There are some shared fonts within the SWFs. I'm trying to minimize file sizes as much as possible, so that means either not embedding the fonts in any of those SWFs and setting all their TextFormats at runtime. That's very impractical, and it would be easy to miss some of them.

The other, better option is to use runtime shared libraries to pull in the fonts, but that requires either an absolute URL (goes against the concept of using a CDN), or a relative URL (defeats the purpose of using RSLs in the first place since those resources would be downloaded several times anyway). Ideally i'd like to be able to tell each SWF at runtime where to pull in the fonts, and give them all the same, dynamic URL. I can't find anyone who's encountered a similar situation, so i'm not sure if this can or can't be done, but most AS3 problems i find are solved here, so i'm hoping someone knows a good solution for this.

View 2 Replies

ActionScript 2.0 :: File Sizes Increase Greatly When Importing Sound?

Nov 1, 2007

when importing sound into flash. the file becomes a lot larger than it should be and this has happened to me many times before. heres a scenario to describe what i'm talking about:

original file size: 900 kB

music file size(to be imported): 5000 kB

import the music file size, and it should be automatically compressed (usually i get a message at the bottom of the properties window for the sound, saying that it was decreased to 10-15% the size of the original file). even without the compression, the file size shouldn't be more than 5900kB (900 + 5000), right? well oddly enough, it isn't. it might increase by 3 times this amount from what i've experienced in the past(to about 18 000kB).

this has caused many problems for me including the inability to upload files(due to upload limits) and slow file transfer, which is the reason i decided to bring this up.(file sizes increase greatly when importing sound)?

View 4 Replies

ActionScript 3.0 :: Looking For A File In A Drive With A Loop

Jan 28, 2010

i'm trying to see if a file exists, the file is located in a usb memory so i'm using an array and an ioerrorevent, if the file is found (event.COMPLETE), i execute another function and if the file does not exist i use this (IOErrorEvent.IO_ERROR) which tirggers another function to look for the next drive. however, even when the load find the file in the right drive the IOErrorEvent is triggered anyway and not my event.COMPLETE.

[Code]...

View 0 Replies

ActionScript 2.0 :: Upload Multiple Files (with The Specified Max Sizes, And File Types) To A Server?

Feb 22, 2007

Does any one have a working fla. and php script to upload multiple files (with the specified max sizes, and file types) to a server? In addition, when there is an image being uploaded, it would be luxurious to have a thumbnail of the image being uploaded displayed.There is clearly not a simple issue. Scores of designers and developers encountered problems and headaches trying to upload multiple files with and image display (if an image is being uploaded). Even my web designer has a slight problem, although he tweaked some of the code to get a simple upload. Adobe needs to address this issue because it seems that sscores of designers and developers are having difficulty with uploading multitple files.

View 3 Replies

ActionScript 3.0 :: How To Upload A File In Local Drive

Jun 24, 2009

i have an requirement that is to upload a file into local machine and that file name will stored into database

View 1 Replies

ActionScript 3.0 :: Download Txt File From Hard Drive?

Apr 29, 2010

I am using the code below 2 download txt file from hard drive.

Getting this error: ArgumentError: Error #1063: Argument count mismatch on Untitled_fla::MainTimeline/downloadFile(). Expected 0, got 1.

am i doing something wrong?

ActionScript Code: import flash.net.FileReference;
//abc is a Mc with instance abc[code].....

View 4 Replies

ActionScript 3.0 :: Save File Form Cd To Hard Drive?

Sep 9, 2009

I have created a window contain a save button. i want to click on this button a file from cd is copied to my hard drive.i found class File but it work air only,i use flash cs4 and File class dosn't work in it.

View 1 Replies

ActionScript 2.0 :: Make A Button Get A File On Hard Drive Or CD

Feb 23, 2006

I know how to program a button to get a URL loaded:

[Code]...

But how would I tell the button to do the same thing for a file located on the hard drive? I want the file to load in the web browser, but I am making a presentation CD and I want it to grab a file off the CD as opposed the internet in case the person viewing the CD does not have internet access. keeping the file path structure similar on the server this should work on the CD as well as the server, correct?

View 2 Replies

ActionScript 3.0 :: Save Drawing Data To A File On A Hard Drive

Feb 27, 2010

I'm still relatively new to the actionscript 3.0 world. I have been given an assignment to make a drawing program that allows me to do many different things. One of the big things that it needs to do is be able to save a file with the drawing information and still be editable. After much searching I see that you can't just write sprites to a file and then they come back cleanly, obviously returns null. I also don't think that registerClassAlias won't work because I don't think it will allow me to convert things back to a sprite. I keep an array of sprites that allows me to undo/redo, and I originally figured I could either write the arrays or the individual sprites to the file, but that is not allowed either. Does anyone have any idea how I can possibly accomplish saving my drawing document and loading my document with keeping all of my sprites in my array separate from each other?

View 6 Replies

Flash :: Link Be Created To Call A Local File On A Drive?

Jun 7, 2010

I am trying to create Flash video for usb drives sold to customers with their pictures on it. After the video plays, can I have a link to a local folder, IE: named YOUR_IMAGES on the drive, and have that folder open on their machine when clicked? Or is there to many variables with what what the drive letter name that will be assigned on customers machines? So there will be the same .SWF on every drive sold, then a folder named the same thing with the customer pics on it.

View 3 Replies

ActionScript 2.0 :: Load Variables From Text File On Hard Drive?

Jul 23, 2005

I'm having with loading variables from a text file that is sitting on a Hard Drive rather than the server?

I would like each computer station to pull data from the server based on their individual Station IDs (which is defined in the text file on the hard drive).

The path to the text file is C:StationID.txt - I am having trouble with defining the PATH to the text file on the actual hard drive.

View 7 Replies

ActionScript 3.0 :: Flash To Download XML File And Saving In Hard Drive

Jul 15, 2011

I am have to build a Flash aplication, that has to download a XML from a differente server and save on it's own server, at a predefined time of the day. Is it possible ans safe to make that in flash using AS3?

View 1 Replies

Media Server :: Store Media On An External Drive

Mar 30, 2010

I am running FMS 3.5.2 on Windows Server 2008. The server only has 40GB free. Is it possible to store media on an external drive connected to the FMS? Then have my http or rtmp requests go to the external. Am I making sense? I'm sure there is a script to accomplish this, but I am afraid it will degrade the media files.

View 4 Replies

Flash :: Professional - Error "creating Movie File Be Sure The Destination Is Not Locked Or On A Locked Drive"

Jul 22, 2008

OK I have been racking my brain to get this resolved and unfortunately there isn't a lot of info on the web. Scenario: We are in a shared environment. Central file server (Mac OS X server) over gigabit enet. We open flash files over the network and then we "try" to publish the files back to the same server in which the .fla is stored. (I have read John at Adobe's comments on the practice but this DID work).

So we access the flash file at /Volumes/ServerName/JobFolder/~Flash/ and we "attempt to" publish the .swf to /Volumes/ServerName/JobFolder/htmlfolder/flash .... this was working previously in flash 6-7 but in 8-cs3 it has stopped working and we are kicking ourselves to get some answers. When we try to publish we get the following error: "Error creating Flash movie file. Be sure the destination is not locked or on a locked drive. Also, check that the file name is not too long."

[Code]...

View 6 Replies

ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?

Sep 12, 2009

I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

View 15 Replies

ActionScript 2.0 :: Replace Text Loaded From An External File With Text From Another External File?

Nov 9, 2005

How can I replace text loaded from an external file with text from another external file? Using setInterval and calling the .load from a function or something? In the example below I'm calling an external text file, could this also work with an .xml file with cycling through the children?

[Code]...

View 2 Replies

Background .jpg In Different Browser Sizes?

May 12, 2009

I'm building a flash website. I want the background to be a .jpg photograph which fills the entire area outside the browser. I understand that it is possible to scale background to fit different sized computers, but I don't understand how that doesn't distort the image when viewed on a widescreen computer. Is there some way tocreate a site that shows a portion of the image on a 800 x 600 monitor, a little more of the image on a 1024 x 768 monitor and even more a 1650 x 1050 monitor.

View 1 Replies

ActionScript 2.0 :: Getting The Byte Sizes?

Mar 1, 2007

if i am using sound/music in a flash movie and i would like to create an instance for it then play it in actionscript, how would i go about getting the size of that sound file?Here is the code i used, btw the sound file has a linkage name of 'tune'

Code:
musik = new Sound(this);
musik.attachSound("tune");
musik.start();
varsize = musik.getBytesTotal();

A dynamic text field is placed in the doc to show the value of varsize but when the movie loads, it shows as undefined!

View 4 Replies

ActionScript 3.0 :: Creating A List With Different Row Sizes?

Dec 3, 2008

I'm new to AS 3.0 and CS4 and I've been getting up to speedon all of it. I've used the List component before with my owCellRenderer. I now need to create a list with different rowheights. The List component is great and does everything that Iwant but it requires all rows to be the same height.I'm unsure of where to go. Creating my own class seems like alot of work. The TileList and Grid components don't allow differentsized (and dynamically changing) row heights either. Is there somebase class (SelectableList? BaseScrollPane?) that I should extendor do I need to just bite the bullet and write it all from scratch?

I need each row to have it's own height and interaction witha row could change the height of the row. The main use is a list ofdata. If the user clicks in an item, it turns the display intosomething they can edit (which will need more height)I really like that AS 3.0 is much more consistent of aprogramming language than previous MX versions that I've used.We're doing a lot of AS/Flash/AIR work with it and it's turninginto a wonderful environment...

View 1 Replies

Resizing Flash Swf's To Fit Screen Sizes?

Jun 19, 2009

I would like to know how to resize flash to fit in browser/monitor sizes. This site http:[url]....is a perfect example. Notice how it opens with no scroll and fits to a window that matches your screen size.

View 1 Replies

Professional :: Transition Between Two Different Sizes Of The Same Image?

Apr 20, 2010

Im currently working on a project where I have a 92x92 pixel image that needs to tween into a 711x300 pixel image.  The images are the same but cropped to these sizes via photoshop, imported into flash, then converted to graphic symbols.  I want to have the 92x92 image tween into the 711x300 image.
 
I say tween, but the two tweens aren't working correctly, I can't seem to find a "crop" like function in flash that will let me adjust the large image for when its supposed to be small, then have it tween between the two sizes as i need them to.

View 2 Replies

Professional :: Can't Obtain The Stage's Sizes?

Oct 14, 2010

Situation:I've got 2 swf files,1 is a preloader which loads the 2nd swf file, my site.Both of them, if started separately,work correctly.Problem:when I put the files together,linking the site's swf to the preloader,I get a  null element error and the site loads no correctly.What I've understood :The preloader is ok, because I can remove the error message working on the site's swf AS code.In the preloader's code I have some lines to center its animation on the stage, I do that like this:

import flash.display.Stage;
var myStage:Stage = this.stage;

then using myStage.stageWidth and myStage.stageHeight I calculate the clip position

Also on the site's code I do the same to center a movieclip using exactly the same code, but it doesn't work and I've found that the problem is the myStage variable, not because it has the same name as the variable on the other file (I've tried to name it myFrame).It looks that on the site's swf the myStage variable can't be assigned and then results to be null.

Question: How can I obtain the stage's height and width since var myStage:Stage = this. stage; doesn't work?

View 11 Replies

Actionscript :: Duplicate MovieClip From XML, One Each Other, With Different Sizes?

Jun 9, 2011

i have this script and i want to know how to duplicate the movieclips, one each other. This scrip works fine with images with same width, but when the sizes its diferent, dont work.

var dados:XML = new XML();
dados.ignoreWhite = true;
dados.load("xml/15anos.xml");

[Code].....

View 1 Replies







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