I want to get a list images inside a folder but in order to do that, I need to get the names all the files inside a folder first. What flash class should I look into to allow me to do this?
EDIT:
how about doing this using php? what should I return/echo on my php file?
...
Hello, what is the best approach of solving this problem:
If you have an image whose sides are even for example 48 x 24 you may do this and you are just fine:
matrix.translate(-24, -12);
matrix.rotate(Math.PI);
matrix.translate(24, 12);
But if you have an image of size something like 49 x 25, then there is a problem with those odd pi...
Hi guys..
I am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down.....Are there anyways around this?? Thanks for the reply...
...
So I am writing this action script program that will call a php file which will return the filenames inside a folder.
My PHP file looks like this
<?php
$dirname = "thumbs";
$ret =array();
if($dir = opendir($dirname)){
$i=0;
while($file = readdir($dir)){
if($file != '.' && $file != '..'){
...
I'm trying to do a crossfade effect, and I have
TransitionManager.start(imageHolder, {type:Fade, direction:Transition.IN, duration:0.75});
Which makes the image fade in, but I also want the image to fade out which it doesn't do, when I change direction:Transition.IN to direction:Transition.OUT
Anyone know what I'm missing?
Thanks!
...
I have an instance of URLLoader that works perfectly on my machine and a number of other machines, but in a few rare cases, regardless of the browser or the flash player version, URLLoader never comes back with any of my callbacks and so the load() method is fired off into the stratosphere and nothing happens beyond that.
Curious if any...
Hi there,
I have a flex app, in which I need to change the color of the focus rectangle of a textinput if the input is empty. This used to work when I was writing inside a mx:script tag, but now I'm writing a new component (an AS3 class that inherits from VBox) myself. And now it isn't working anymore. I used to run the following statem...
I need 3 different regular expressions
one that finds at the beginning of the string a 'D' and a space then a name, so 'D patrickgates hello there' would return 'D patrickgates', or if all possible would return just 'patrickgates'
one that will find the @ sign and a name together anywhere in the string so '@patrickgates hello, world' w...
I cannot apply a texture to an object, I don't know why...
( AS3 blender export script and Collada Import is not working for me
either )
Any idea?
var loader:Loader3D = new Loader3D();
loader.addEventListener( Loader3DEvent.LOAD_SUCCESS,
handler_loadSuccess );
var parser:Obj = new Obj();
loader.loadGeometry( "assets/objects/Tes...
Hello the problem i'm experiencing is when I attempt to call javascript function.
Using Jquery @
$("#flashtxtchat").get(0).startTxtChat()
ArgumentError: Error #2126:
NetConnection object must be
connected. at
flash.net::NetConnection/get nearID()
at textchat/startChat() at
Function/http://adobe.com/AS3/2006...
Guys..
This drives me crazy...I am trying to build a youtube player with flash and everytime I load a video, there is a runtime security sandbox error..I already put crossdomain.xml in my root server http://mysite.com but I am still getting the errors...Do I miss something? Do I have to load it into my flex project??Thanks for the rep...
I have these 2 separate FLA (AS3) files and I want to merge them together. One FLA, let's name "Animation.fla", consists of a 1-frame animation with a class assigned to its main stage, let's label it "MainStage.cs." The other FLA file, label it, "Navigator.fla", consists of 3 frames where I have to navigate different frames to get to the...
Hi,
I've got a simple question that I just KNOW won't be possible, but here goes:
Is it possible in ActionScript to customise the look of the very un-user friendly Flash settings dialog that pops up allowing the user to give permissions for network/camera/storage access?
It makes me crazy that I can make a beautifully crafted Flash ap...
Hi guys....
I was wondering if there are ways to set the width and height in a pure AS3 project...I appreciate any help....Thanks
...
i'm using this regex
((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'\".,<>?«»“”‘’]))
to match urls (found here http://daringfireball.net/2010/07/improved_regex_for_matching_urls it's the bottom one) and when i use match i...
I have created a custom event in flex 3.5. But the handler is not invoked. How to solve this or what is the way to debug this problem?
The Event class:
package com.saneef.worldlanguages.events
{
import flash.events.Event;
public class LanguageEvent extends Event
{
public static const LANGUAGE_SELECTED:String = "Lan...
import com.omniture.ActionSource;
var s:ActionSource;
function configActionSource():void {
s = new ActionSource();
/* Specify the Report Suite ID(s) to track here */
s.account = "YOURREPORTSUITEHERE";
/* You may add or alter any code config here - see documentation for more variables */
s.pageName = "Sample AS3 Script H...
Hi,
I'm having an issue with:
__flash__addCallback(variable, "sendData");
When trying to interact with a movie via javascript, where 'variable' is undefined - but only in flash versions less than 9.0.115, in my case the problem presents itself with version 9.0.47 - tested in IE.
I've searched and have found a few posts regarding this...
I am creating one desktop application of facebook.
So here I am getting streams from facebook post.
So when any facebook application's long image link I am getting that I can't display in Image container, this is not displaying image.
One also fact is that, When I am giving this link directly then it is working.....
I am full confused...
I am having great difficulty getting my existing actionscript files into flash builder 4.
Basically, I have fully working flex builder 3 project, in a flex builder 3 workspace.
I now have flash builder 4, and a new flash builder 4 work space.
I dont want to "import an existing project into workspace", as I need to move the project ou...