ActionScript 1/2 :: Font/Text Resize Function Works On Local Machine, Does Not Work On Others?
Apr 6, 2010
I have the fonts embedded (Yet it still prompts me saying missing fonts every time I open flash, but not the fonts that aren't resizing correctly)
I have a function that takes in a textfield, resizes the font to fit the text box, works fine on my local machine, does NOT work on other machines.
why this doesn't work? here is the function
function fontSizeChanger(dtb,myWidth)
{
dtb.embedFonts = true;
var myFormat:TextFormat = dtb.getTextFormat();
[Code].....
View 8 Replies
Similar Posts:
Mar 23, 2010
flash works on local machine but not server?
View 1 Replies
Mar 10, 2004
I have made a preloader showing the progress of dynamically added images. The code works fine when i play the movie on local machine, but when i play the movie from the server bytesTotal is always 0. It even says 0 after the images has finished loading. what i'm doing is basically: createEmptyMovieClip() , i then use a movieClipLoader to load jpeg into that empty movieclip. the movieClipLoader has a listener attached and with the listener i use the function onLoadProgress() to display bytesLoaded and bytesTotal all of these things occur within one function.. bytesLoaded works fine both on local machine and from the server
View 2 Replies
Mar 10, 2004
I have made a preloader showing the progress of dynamically added images. The code works fine when i play the movie on local machine, but when i play the movie from the server bytesTotal is always 0. It even says 0 after the images has finished loading.what i'm doing is basically: createEmptyMovieClip() , i then use a movieClipLoader to load jpeg into that empty movieclip. the movieClipLoader has a listener attached and with the listener i use the function onLoadProgress() to display bytesLoaded and bytesTotal
View 2 Replies
Dec 2, 2007
I have a news ticker that I modelled after the kirupa tutorial that was given:
[URL]
When I run it on my local machine it works just fine the way I expect it to. However when I put it on my website, it does not work at all. I have another flash file (.swf) on my webpage which is just a simple countdown timer and that works just fine so I don't think this problem has anything to do with MIME types.
Here is the code I used to embed the .swf file onto my website:
<script type="text/javascript">
var so = new SWFObject("http://428the.calvin.hostingrails.com/XMLParser/sports_ticker1.swf", "headerAnimation", "390", "180", "0", "#FFFFFF");
[Code].....
Neither of these worked. I just have no idea what I am doing wrong. I don't know if there is something I should be coding differently in my actionscript. I am very new to AS programming. how to get the .swf file to appear on my website would be great.
View 2 Replies
Sep 19, 2006
I'm using loadSound to load in external MP3 files and they load and sound great on the local machine but don't work when I upload the files to the web. I'm pretty stumped. The MP3 files are only like 10k and 60k so it can't be a size issue (I'm on a T1 line here at work too). Here is the site: [URL] Basically when you walk close to the fire you should hear the fire crackling and it will get louder as you get even closer. Everything works on my PC, just not online. Here's the AS code for the fire:
[Code]....
View 3 Replies
Jul 30, 2003
Is it possible to pass the contents of an array to JavaScript code which then creates a text file on the local machine?
View 10 Replies
Oct 18, 2011
I have a quite different problem with resizing. I have a Flexbook component which uses the middle part of screen (center) with a html header menu and footer. The problem: The scaling works perfectly when we run in the local machine ( Flexbuilder). But when we deploy it to the server its like scaling never existed.. The requirement: when user maximizes the window or minimizes it, the Flexbook should be resized to fit the screen.
[Code]....
View 1 Replies
Feb 7, 2011
I'm trying to embed a font in my project by using url("font.ttf") rather than local("Font Name"), but it doesn't seem to pick it up. The font in question is called "Gotham Bold". When i view the details of the font, the font weight is regular, however when i use local("Gotham Bold") in the css i have to specify fontWeight: bold or else it wont pick it up. But when I use url("folderGotham-Bold.ttf"), and specify fontWeight: bold, it says that font weight is not found for that TTF. If i remove the fontweight, there's no errors, but the font is not applied to the text.
View 2 Replies
Oct 21, 2010
I have dynamic text field that must be a fixed width and height. The actual text that will populate the dynamic text field is variable. What I would like to do is to reduce the font size if the text does not completely display within the text field's dimensions. How I can accurately perform this? Also, I am using AS 2.
View 2 Replies
Jun 22, 2011
I have dynamic text field that must be a fixed width and height. The actual text that will populate the dynamic text field is a variable. What I would like to do is to reduce the font size if the text does not completely display within the text field's dimensions.
View 2 Replies
Aug 25, 2010
Finally got this project all wrapped up and working perfect, and was feeling pretty proud of myself, and then I went and posted the exact same .swf on the web and it doesn't work anymore. Specifically, there are a bunch of icons which I hand placed into the FloorMC - which then attachMovie a copy of themselves into a LegendMC and UtilityRefMC, but they dont seem to be attaching anything when I run it through a browser.
[Code]...
View 9 Replies
Oct 18, 2009
I have an xml driven swf enbeded in xhtml page that plays fine when tested on local machine through dreamweaver CS4 but once uploaded to site, swf won't load. The music plays however so I know it's not about the linking.
Here's the xhtml code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[URL]" width="500" height="400" id="mymovie" align="middle">
<param name="FlashVars" value="xmlFile=VVsite/robshow/virtual_tour.xml&preloaderBackColor=0x0099ff&prelo aderBorderColor=0xCCCCCC" />
<param name="movie" value="VVsite/robshow/virtual_tour.swf" />
[Code] .....
View 3 Replies
Jul 2, 2009
Is it possible to save images in to local machine while loading images in a flash component from a server. I think it's possible to save images in to local machine using actionscript3. I want to know whether its possible by actionscript2. While searching i got some tutorials regarding this but its using actionscript3.
View 2 Replies
Jul 14, 2009
how to save my drawing (image or movieclips) to my local sytem without any server side script . i m using player 10.
View 1 Replies
Aug 24, 2010
is there a way to save, not save as, from an online flex app onto someone's local machine?asically, if a user opens a file local to their machine in an online flex app, is there a way to allow them to save it locally without going through dialog boxes and picking file names?
View 2 Replies
Aug 29, 2011
I placed google map in the local machine. But I can't see any placemakers in the output. But it is displaying well in google map.
View 0 Replies
Mar 7, 2012
I wen through the flare 3d tut and got everything working in Flash Player 11.1 embedded in a HTML document, however it does not work when I try to view it once it's been placed on a web server. I can open the html page from my local machine and it runs just fine.
View 6 Replies
Jan 19, 2007
i wonder if it's possible to load an image to a flash movie from your local hard drive without uploading the image to the server?
eg: loadMovie("C://yourImage.jpg");
it works fine locally, but once i upload it to the server, the image won't be loaded.
the reason is, i want to build a flash site that allow users to create an e-Card using their own image from local drive. i don't want users to upload anything to the server.
View 4 Replies
Feb 13, 2009
I am working on a flash application on my local machine. It involves reading and writing to an xml file. I am facing a lot of security problems because of flash sandbox. In order to get around this I have installed php+apache to call an external file that writes to a file. I have created the crossdomain.xml and put it in the root of the web server on my local machine.
However, I can ONLY run the flash file in the flash program AND IT DOES WRITE TO A FILE. If I publish it as a html I still get the security error msg. Now another requirement of my program is as the user interacts with my flash application it changes an xml and the page should refresh to show the changes. But because I can't run my flash program as a html file I can't refresh the damn page! I'm half thinking of setting up a vm machine as a pretend server to get this damn thing working. Then I at least have the server + client model.
View 3 Replies
May 7, 2011
I have a videochat app (as3) developed in CS5, when I test the movie (ctrl+enter) it compiles and shows no errors, then I upload the file to the server and does not work at all. the xml paths are perfect, in fact when I go to the page on the machine with FLash CS5 it loads fine, but from a friend's computer does not work at all.
View 2 Replies
Mar 21, 2010
I am building a site off of a template and I have a major issue. The site looks fine when previewing it on my computer or in flashBut as soon as it is uploaded it distorts the siteNotice the non-centered tabs and messed up text
View 3 Replies
Aug 6, 2011
I have an actionscript file which provides me with xml data. But I m not being able to save it to the local host machine. The code i m using to save the file is just the normal one i.e
var xml : XML = <save><instruments/></save>;
var fileRef:FileReference = new FileReference();
fileRef.save(xml,"NewFileName.xml");
I've tried saving the data as byteArray first n saving it in a xml file. That didnt work. I've flash player 10 installed and I m working in Flash Professional CS5. I have also used a hex editor and changed my swf file's 7th and 8th bits from 09 to some A0 as directed in a website but I m always getting an error which is
1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference.
View 2 Replies
Feb 1, 2012
I am new to Flash/ActionScript, and I am having a lot of fun creating a project in Flash. am working on a character tracker (yes I am totaly geeking out) an I was wondering how to save the data I have entered into the project (hit points etc...) and load it back next time I opened it. The data would be saved on my local machine. How can I get Flash/ActionScript to do this?
View 11 Replies
Feb 13, 2009
I am working on a flash application on my local machine. It involves reading and writing to an xml file. I am facing a lot of security problems because of flash sandbox.In order to get around this I have installed php+apache to call an external file that writes to a file. I have created the crossdomain.xml and put it in the root of the web server on my local machine.However, I can only run the flash file in the flash program. Even if I publish it as a html I still get the security error msg.Now another requirement of my program is as the user interacts with my flash application it changes an xml and the page should refresh to show the changes.But because I can't run my flash program as a html file I can't refresh the damn page!I'm half thinking of setting up a vm machine as a pretend server to get this damn thing working. Then I at least have the server + client model.
View 0 Replies
Jan 11, 2005
I want to use this Flash MP3 player URL...on my website to play my music compositions. It is a fantastic player, but it is caching the mp3 files to location "C:Documents and SettingsuserLocal SettingsTemporary Internet Files" on the user's machine.Is it possible NOT to cache the mp3 files to the user's local machine.Pls let me know if there is any other flash xml mp3 player which has the same functionalities.
View 14 Replies
May 28, 2005
I want to know how to save some variable values into a local machine... as for example a save button. Then the user plays the movie again the variables show up as he left them. I think this is done by SharedObject or something like that...
View 2 Replies
Nov 27, 2007
I've been given a bit of a dog to work on. I'm upgrading a flash presentation that runs via an xml feed. I've added several dynamic flash graph generators external swfs through this data feed but can't seem to pass a query string to the flash presentation via this xml feed. This query string provides an alternate XML datasource for the graph generator.s
I would really like to be able to pass this query string as the current flash graph generators are running off a hardcoded xml filename and I would like to offer some flexibility. I've investigated further and the main presentation loads these extra "slides" with the loadMovie AS which should accept query strings but NOT locally. Is there a workaround to make loadMovie work with query strings locally? I can't run the presenation on a server!!
For example. This XML works locally with the flash presentation;
<slide>
<name>Chart 1</name>
<bullet>chart01.swf</bullet>
</slide>
[Code].....
View 1 Replies
Feb 19, 2010
Is it possible to turn off sandbox checking when developing on a local machine? I know this could never be allowed on a production version but publish and upload after every edit?
View 5 Replies
Apr 29, 2009
I have an action script that plays flv files when I run it on my local machine (no web) server then it playes well but if I run it on the server it does not
Code: Select allvar netConnection_:NetConnection = new NetConnection();
netConnection_.connect(null);
var netStream_:NetStream = new NetStream(netConnection_);
[code].....
View 5 Replies