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
Similar Posts:
Oct 22, 2010
I have a dynamic text box with a paragraph of information. I would like to make certain key words a larger font size for emphasis. An example would look like this: The ever-changing landscape of the business world demands knowledgeable and skilled managers. We have been educating students about management best practices for more than a century to help them succeed in the corporate world. Whether you are looking for an online business degree to get your career started in sales, human resources, accounting, or some other area of the business world, we have the online business degree you need. Is it possible to change the font size for just some of the text inside a dynamic text box to be changed like this? I cannot get it to work properly. The reason I have it as dynamic is because it needs a scrollbar.
View 1 Replies
Apr 6, 2010
In a project we use large flash FLA file with lots of graphic assets, but the actual data that is changed is just in a few symbols. Sometimes it is not very efficient to transfer the whole FLA file that comes up to 20MB now.
I was thinking about using Shared Libraries, but it seems that, even if you import external library, it still copies the whole assets into the destination file, but does not link it from external file. Consequently, size of the FLA file still remains the same.
Is there any way to split FLA files into few separate in order to minimise size of the most frequently updated file and keep all unchanged data in another file?
View 2 Replies
Mar 26, 2011
How to minimize the file size of a bitmap in flash/actionscript.
View 1 Replies
Mar 2, 2012
This component requires that you use Dynamic text, the Multiline behavior, and embed all fonts. There are 5 lines of copy on the banner. I need to make two of the lines of copy a larger font and also adjust line spacing on two of the lines. I can accomplish this using Static Text but cannot seem to get it to work in Dynamic Text. If I change the font size on selected text it changes ALL of the font sizes for everything within that text box.
View 4 Replies
Oct 3, 2011
I've created a flash animation where I am getting dynamic URLs from XML.Now, I need to use clickTAG in order to track the number of clicks.
I've never used the clickTAG thing, any pointer will be really helpful for me?
One more question is that Is it possible to use clickTAG and dynamic URLs together?
View 0 Replies
May 28, 2010
I'm currently creating a video player to play files from a different server.
We have chosen to use a token authentication system to check where the files are from. This is a one number authentication code.
We can link to the files by going to a dynamic url such as...
[URL]
The server has to recieve this token when you try to connect the movie or it won't allow it.
I've tried adding it as a dynamic url but ns.play() doesn't seem to recognise it at all that way, unless I'm really missing something with the parameters.
View 1 Replies
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
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
Jun 9, 2010
I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only.
View 1 Replies
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
Jun 9, 2010
I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only.
View 1 Replies
Mar 9, 2011
Anyone know of any good classes or functions that will do this? I've found some regexes but what I need is to pass the string to a method and have it return the same string, but with urls turned blue and turned into hyperlinks. Seems like a fairly common task, but I can't find anything.
[Code].....
View 1 Replies
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
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
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
Apr 4, 2009
I got a text file in the same directory as the flash file, and I am wondering what is the problem with it loading the url. the header is live on [URL] and it doesn't want to load the urls. what would be required to get it to do this? when ctrl + enter to test the movie, it loads the url in a new window. am pasting the code below:
Code:
// CLASS IMPORTS
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
[Code] ......
View 1 Replies
Nov 23, 2009
Very strange thing has happened. I've had this site running fine for over a year, and recently I have discovered that the buttons that go to external URLs do not work.All of the buttons should be going to another .php file, and they have been until discovered yesterday that they do not.If you go to the .swf file directly, you will see that the navigation buttons take you to the correct .php files, but it becomes unclickable when it's in index.php.VERY strange... but then when you go back to index.php, and click the php active hyperlink "Gum Drops" at the bottom of the page, you'll get taken to the php page... and then all of a sudden the navigation, and all flash links to URLs work!
View 2 Replies
Apr 25, 2007
I was wondering if it's possible to have a dynamic text box that can change sizes, without distorting the text displayed in it... I would also like to set it up dynamically.
View 4 Replies
Mar 5, 2010
I'm working on a flash header for a website with the page links contained in an external .txt file, and I'm experiencing a strange problem.The site is both in English and Italian: I worked first on the english version, I modified the AS code for the new .txt file and then I saved the project with another name and translated all the text into Italian.I also changed the name of the external .txt file as well as all the page links contained therein.Problem is when I click a page link in the Italian version of the site, the links are the same of the English version; seems like the .swf file "remembers" the old links just as I never changed the file name.This is the "_urls_IT.txt" file:
url1=index.html&url2=servizi_stefania_muggianu_traduttrice_interprete.html&url3=curriculum_vitae_stefania_muggianu_traduttrice_interprete.html&url4=campi_di_specializzazione_stefania_muggianu_traduttrice_interpre
[code]......
View 10 Replies
Sep 23, 2010
My client has asked me to provide a template for an investor relations section of their website. The HTML page or template for this page will be at the service providers site, but all the images etc. for the page will be linked to files on my clients server. Everything looks fine, but the absolute URL's in the .swf file back to my clients site aren't working.
This is what the service provider's guidlines say, but I'm not sure where the code is supposed to go:
Similarly, newer versions of the Flash Media Player installed by most users have a high level of security enabled by default. This is done to prevent Flash movies from playing on web pages that are hosted on different domains than the movie itself (again, to combat "phishing" or "spoofing").
[Code]...
View 3 Replies
Feb 20, 2008
I've built a flash photo gallery that pulls image urls from an external XML file. The gallery has different image catagories that load their own set of images.The user decided which catatgory they'd like to view by clicking an HTML button in the flash movies parent page...using javascript, this button click sends a variable to the root level of the flash movies with the new XML location...
Trouble is, onces the initial XML file is loaded, the movie has no need to refresh (and read the newly sent variable) ...*Unfortunately the catagory buttons MUST be outside the movie on the page...
View 4 Replies
Feb 19, 2009
I'm trying to minimize the size of my SWF, but I can't find the tools that I need. HI need a tool that will take my SWF (or .as files would work as well, I suppose) and deconstruct it, analyzing how many bytes each class contributed to the final SWF file size. I would like this analysis to occur for both 'built-in' Flash classes ('flash.util.*', etc), as well as my own hand-written classes. (Other languages, such as C, Java, OpenLaszlo, etc, provide this functionality in a straightforward manner, but I'm stumped with AS3). (Note that I'm compiling with CS3, but Flex SDK solutions are also welcome)
Armed with this information, I'll be able to identify which classes are contributing the most to file size, and optimize them as necessary. For example, Flash's Button class is a bit bloated for simple applications - this tool would help me realize the inordinate number of bytes the Button class is contributing and re-write a simpler Button class for my needs (which inadvertently, I've already done ).
View 2 Replies
Jun 23, 2010
Is it possible to limit number of 'imports' in AS3 code by defining them in parent class or in any other way?
View 2 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
Feb 11, 2010
I've made a video player based on the flvplayback component. I didn't get the player to fit the screen when i turned of fullscreenTakeover so i turned it on again.
But i at least want the user to be able to double click their out of fullscreen mode. I have tried adding a mouseEvent to both the player and the stage but i don't get it to work. Is there a way to do this?
View 2 Replies
Jan 3, 2011
I am creating a media player that is supposed to run in the background and thus not obscure any other applications that the user runs.The playe is essentially a lot of AS3 with a minimum of graphics � just enough to set volume and toggle some parameters.uestion:How can I make my graphics so that it can be minimized and only appear on the tastbar?As it is now it can be maximized to cover the full screen and made small so tha it shrivels up down in the left corner of the screen.
View 2 Replies
Aug 1, 2011
I have created a button with this function to minimize my application window, in AS3 for an AIR app:
function mbtn(e:MouseEvent):void
{
stage.nativeWindow.minimize();
}
On the stage, I have an empty movieclip which loads an AS class file. It works fine and shows up where I have put the empty movieclip which acts as a holder. But, if I hit the button that minimizes the window, and then open my application again the content of my AS class move some pixels below and go off stage.
View 1 Replies
Aug 20, 2010
Usually maximize, and minimize works while I am opening video player in windows, but when I upload it on website, I cant use maximizie and minimize option.
Here is my html code:
Select all<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html xmlns="[URL]"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Gagi's Gym</title>
<style type="text/css">
[Code] .....
I've added allowFullScreen but with no sucsess, IE gives me this:
Code: Select allSecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at f4:player/fullScreenHandler()
View 3 Replies
Jun 24, 2004
I want to have layer pop in my flash movie that allows the user to click and drag it around the screen. I also want this to have minimize, maximize, and close buttons on
View 2 Replies