Hi Nielsk,
Thanks for that, managed to get it working on localhost with…
<?php
$dir = $_SERVER['DOCUMENT_ROOT'];
$dir .= '/SITE-DEBUG/Images/Previews/1';
$files = array_diff(scandir($dir), array('..', '.'));
print_r($files);
?>
Hi Nielsk,
Thanks for that, managed to get it working on localhost with…
<?php
$dir = $_SERVER['DOCUMENT_ROOT'];
$dir .= '/SITE-DEBUG/Images/Previews/1';
$files = array_diff(scandir($dir), array('..', '.'));
print_r($files);
?>
Hey Guys,
Trying to get scandir() working and need a little help…
I’m able to get scandir() to work when the $dir is a subdirectory or the current scripts location however im trying to access a folder elsewhere on the server but when I try to locate it using a URL i’m getting errors…
ie:
Script location – http://mysite.com/scripts/getFileNames.php
Directory Location – http://mysite.com/images/thumbnails
<?php $dir = 'ResourceImages/Previews/1'; $files1 = scandir($dir); print_r($files1); ?>
Thanks guys!
Hey marco,
thanks for the reply, I’ve fixed the problems i was having but have added your code to my snippets as I am sure that will be very useful in the future!
Jay
Hi guys,
Starting to tear my hair out here, im trying to add text to a RichText component using AS3 , some of the text is just plain text but some will require a click event to fire an AS function.
Does anyone have any ideas how I can accomplish this in AS3 ?
public function buildPathComponent():void {
for(var i:Number = 0; i<ParentStructure.length; i++) {
AddLabel(ParentStructure[i].Name, true, ParentStructure[i].CatUrl);
if(i+1 != ParentStructure.length) {
AddLabel(" >> ", false, "");
}
}
}
public function AddLabel(str:String, isCat:Boolean, ClickUrl:String):void {
if(isCat) {
//Add clickable text to textflow
} else {
//add plain text to textflow
}
}
my end result should look like this…
Category Link >> Category Link >> Category Link
the ’>>’ parts will be a different color and not clickable!
Thanks guys!
FINALLY arrived!!! Thanks Scott, will keep it in my wallet ready for a perfect upcoming picture opportunity… 
MW3 and BF3 on XBOX360
Gamertag: F1ashJunkie (thats a 1 not an L)
Just hit 1st prestige 
Yes please

tsafi said
flashjunkie saidSo why did you buy flex app` few days ago from Marco? it’s a new trend now ?you are on dead wish?
Is Flash Dead? – Yes…Is Flex Dead? – Soon…
http://blogs.adobe.com/flex/2011/11/your-questions-about-flex.htmlGo figure, even Matt is not that weirdo
just don’t ask for a refund…..
![]()
Projects to finish 
MSFX said
^Flex? What’s that![]()
The software that allowed me to fully recreate and improve ‘wunderlist’ just for fun 
Is Flash Dead? – Yes…
Is Flex Dead? – Soon…
http://blogs.adobe.com/flex/2011/11/your-questions-about-flex.htmlCOPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.