Hi!
I need to write a ByteArray to a file on local disk with Flash AS3. The flashapplication is run locally (it's a projector exe).
I found the FileReference class with the save() function which works perfect. The only problem is, that this function opens a filebrowser and let's the user select where to store the file. However - i have...
Hi!
I need to display antialiased systemfonts (because the swf filesize must be small, therefore i can't embedd fonts). So I wrote this script in order to manually antialias the text
Code:
public function renderTextField():BitmapData{
var w:int = this["mainTextField"].textWidth+10;
var h:int = this["mainTextField"].textHeight+10;...
Hello,
I am using a regular expression to find links in a generic string and highlight that text(underline, a href, anything).
Here's what I have so far:
var linkRegEx:RegExp = new RegExp("(https?://)?(www\\.)?([a-zA-Z0-9_%]*)\\b\\.[a-z]{2,4}(\\.[a-z]{2})?((/[a-zA-Z0-9_%]*)+)?(\\.[a-z]*)?(:\\d{1,5})?","g");
var link:String = 'generic ...
Hi guys!
I'm making a quiz in Actionscript 2.0.
The quiz has 8 questions. Each question has four answers and each answer gives different points. On every frame their is two questions to answer and then move on to the next two and so on.
My problem is that I need to assign each answer with points that in the end will be calculated and d...
I'm looking for something that automatically generates images from the content in some SWF and stores the images on a server to be fetched if the user doesn't have Flash Player installed. The purpose is to at least show a static diagram instead of just a table with data, if Flash Player isn't installed.
It's quite easy to create an ima...
is there a way to write a program in php or javascript that can load a flash file and interact with it? (click on buttons and such)
...
We're writing an extension for Google Chrome, which only consists of inserting a Flash object in the HTML content. This FLash object generate public external events that can be trapped in JavaScript. Events are correctly trapped if in a normal HTML page, but inside the Chrome extension, it doesn't work.
It's like Chrome is blocking an...
I'm trying to call an external JS function from flash using the ExternalInterface.call() method in action script. The function should open a modal window that has been written in jQuery. My problem is two fold:
How do I open this modal window without attaching the action to a link? I just want the window open and to pass in the URL.
Is...
I am developing PDF to e-book converter which will run on a server.
I need to programmatically extract embedded fonts from PDF file to finish the project.
Now I am able to extract images and text, but to display content in the Flash Player precisely I need the fonts to be extracted from PDF and compiled to SWF to be loaded by Flex appli...
Happy Tuesday everyone :)
I noticed I was using the same fonts over again in several of my Sub Classes, so I figured I'd just make a Fonts Class to handle all those.
Anyways I'm scratching my head around how to get those TextFormats created in my Fonts class into my other Classes cleanly. I don't believe I'm doing this the correct wa...
Hi, I've used jqUploader for a while but I find that it will occasionally fail to work on certain browsers on certain machines or will not work properly when using HTTP Basic authentication. I've tired of trying to get this to work properly and am considering switching to another (hopefully) less buggy uploader. I've looked into Uploadif...
Hi everybody!
Never had to do some ...Flash stuff, but now a customer wants me to make a Flash intro in her (ASP MVC) site!
The scenario is this: images are stored in the dbms. Every image belongs to a category. Depending on what category is selected, the corresponding images should be fetched and played in a flash player with "transit...
I am trying to create a set of drag-and-drop, orderable lists with ActionScript. I know this is possible in Flex.
The behavior I am going for can be seen here: Two-way drag-and drop support (you'll have to scroll down)
Here is the source code
Does something like this already exist in AS? Can I use the Flex component in Flash?
...
How can I obtain the position of a instance whose name is stored in an variable?
If there is a instance whose name I don't know, but the instance's name is store in an variable x. How can I obtain its position?
...
For example, If I already construct a lot of instances and let people type one instance name in the input text, text1. I want to obtain the x-position of the instance and store in a variable. How to do this?
...
I am trying to implement a large font for sIFR, but it seems to have a ceiling where you cant go any higher. I have adjusted the the variable MAX_FONT_SIZE within the sIFR.as to no avail. Is this possible or is it a limitation with flash?
...
So, events bubble up the display list. That's great if that's what you want. But what if you have objects on the stage that are not related that need to listen for events from each other? A simplified example:
var objA = new ObjA;
addChild(objA);
var objB = new ObjB;
addChild(objB);
var objC = new ObjC;
objB.addChild(objC);
Object B...
hi all, I am using flash to display background images (rotating) and it usually displays divs above the flash.
Now since Safari has been updated it's decided to display the flash above everything, instead of everything else above the flash.. http://www.souliejolie.com/2010/home
It works in all other browsers except for Safari 4(.0.3) ...
Is there a way to deny direct access to a XML file without affecting access to the SWF?
...
hello guys!
i wonder if somebody knows how to trigger thickbox from onRelease() event in flash.
is that possible?
...