Hi,
I am trying to set a path to an XML file, which differs when run locally or on server.
How do I determine if the Flash is running locally? (I am thinking to check if the URL contains "http://localhost" but how do you get the window URL?)
Thanks in advance
...
Hi,
How do you make a DynamicText spans into 2 lines when the text (dynamically-assigned) is too long.
I want to keep the width, but the height should adjust automatically.
Thank you in advance.
...
"I am using flash as3, php and mysql"
What is the difference between:
$username = $_POST['username'];
$password = md5( $_POST['password']);
and
$username = mysql_real_escape_string( $_POST['username']);
$password = mysql_real_escape_string(md5( $_POST['password']));
I am sending and retrieving variables from flash AS3 to ...
Hi ,
I have an application which embeds a xulrunner based browser.
I have to load some flash content in it which talks to some javascripts to update
the browser title.
The flash content works fine when launched from Firefox but not inside my app. I tried a sample html file which has some javascripts and they work fine. It even work...
How do I properly draw one vector object onto a specific position of another in ActionScript, accounting for positioning, transparency, etc?
My idea (as suggested e.g. here) was to use beginBitmapFill() and drawRect() to draw a bitmap copy (made using BitmapData.draw()) of one MovieClip onto the .graphics property of the other MovieClip...
I'm using Flash CS3 and ActionScript 2. I have a MovieClip symbol (identified as "MySymbol") that contains a dynamic text block with the identifier "innerText". The symbol is marked as "Export for ActionScript" using the following "MySymbol.as" file:
class MySymbol extends MovieClip
{
function SetText(text)
{
...
I'm a C# developer looking to branch out. I want to try either flex or flash. Any recommendations on which to go with and why?
...
Hi,
We need to create a flash application, where there would be a "menu page".
When you click a link here, it will take you to another page with a completely different layout and functions.
Now I am new to Flash and wondering how this is normally done.
If it is HTML, you would create 2 HTML pages that link to each other.
Do you create...
Hi,
I have a Flex movie that contains a text input box and an (optional) dropdown. The design requires that this dropdown fall below the lower edge of the movie, overlapping the HTML below it.
I can set wmode to transparent and can get the dropdown to overlap the HTML fine but then the HTML below is unselectable, even when the dropdown...
Hello!
I'm trying to create dynamic balls by using for loop.
For some reason I get two objects (trace show 2 balls and their DIFFERENT properties), but on the stage I can see just a last one created.
This is my code:
var randomBall_mc:ball=new ball();
for (i=1; i<3; i++)
{
addChild(randomBall_mc);
randomBall_mc.name="rando...
I have this AS2 code that does some simple animations when I rollover a mc using TweenLite.
I feel that I have a lot of repeating code.
Is there a way to be able to just specify a function like this
boxLink(a);
and have the rest of the code, with the path to the target movieclip in the function instead of in the function variable?
H...
Im breaking my head against the table right now. I have a flash batch uploader, which puts every file through upload.php which thumbnails the images, and moves them to appropriate directories. When I upload in IE, it functions perfectly (never thought I'd say this), but in Firefox, when flash executes upload.php it has its own session va...
Currently, a site I developed plays mp3 files directly in JW Player using the file attribute and public URLs to the mp3 file. This is now an issue with the client for legal reasons, and they now need to stream the audio files so that the users can't open up their cache and nab the files directly after downloading.
The JW player site has...
I renamed a movie clip in Flash CS4. After renaming and updating any references I had to it, the swf would still play fine. However, I could no longer get to any of the actionscript I had in the movie clip. It would still execute, but I couldn't get to the script anywhere in the Flash CS4 UI. Any ideas? The only way I was able was to get...
Check out this code:
import mx.core.View;
var accordianPane = my_acc.createSegment("mcElectrical", "panel0", "Electrical", "payIcon");
accordianPane.comboBox.addItem("test");
This adds an item with label "test" to a combo box in a movie clip. It works perfectly fine. However, when I put the same code in a callback function, it fails.
...
I use expiring urls to hide the urls of images I use on my sites, so that they can only be hotlinked for the duration of the life of the hash (1 hour).
I check the hash sent with the file url, against a hash on the server, if they match, the script calls the following code:
if (isset($_GET["hash"])) {
$this_min = date('Y-m-d-g',ti...
I am very new to Flash and I need help to get started with building multi-pages Flash application.
I managed to open another swf file (called Page1) from within the main swf by calling this function
private function LoadExternalSwf(): void
{
var loader:Loader = new Loader();
var urlReq:URLRequest = new URLRequest("page1.swf");
...
My SWF, when decompiled with flash decompiler, is generating an empty FLA.
The flash object also makes use of an XML file which is not being exported along with the SWF object. What could be done to decompile properly?
...
I need a button in Flash/AS3 that toggles between on and off. So I was glad to see that the Button class has the toggle property that lets me have that behavior. I was less happy to see that what I get when I make something a "button" in the Flash file is an instance of SimpleButton class, which does not have that option.
Is there a way...
My swf is occasionally crashing the browser (or just crashing the plugin as chrome tells me).
How do I diagnose the bug? I am developing for flash player 9 using flex.
Things I have tried:
Turned on log files so I can see trace("...") output. However, my log files, and my swf, are ending at inconsistent termination points.
Insta...