Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
dragonair1 #1
My first time with flex (how to scan a remote folder)
hi there I've taken a sample code and I'm trying to recode it to suit my needs
As you can see images are defined in the array the problem is I don't want to
recompile
my flex application every time I add a image to the "img" folder is there a
way I can
scan the folder and have all file names added to my array every time the
application is launched
if not can someone show me how to code a loop that will search the
destination for specific file names if they exist then add them to the array if
they don't then don't add them to the array, thanks for your time
<Array id="dataSet">
<String>img/11.jpg</String>
<String>img/12.jpg</String>
</Array>
<local:DisplayShelf id="shelf" horizontalCenter="0" verticalCenter="0"
borderThickness="5" borderColor="#FFFFFF" dataProvider="{dataSet}"
enableHistory="false" width="100%"/>
dragonair1 Guest
-
Defining a remote folder
I just purchased a Macromedia Dreamweaver software and I really want to learn how to build a website. I'm now in the contents "Defining a Remote... -
Can't get ASP.Net to access remote folder share
I have a WebService executing on one server in a workgroup which needs to reach out to a folder share on another server for read/write access. ... -
Ricoh IS430 & Adobe Acrobat 6.0 will only scan 2 pages at a time
I installed the latest update for Adobe Acrobat 6.01 and I'm using the Ricoh IS430 the problem is it will only scan two pages at a time. I've ran... -
Setting folder permissions on remote machine / remote domain
Hello there, I have the following problem: I have Machine A which runs my website. I have Machine B which holds folders for users. Machine A... -
Scan 4 at a time
I want to speed up my scanning process of my entire photo album. Doing the photos one by one, on a flatbed scanner, is deadly. Is there any way I can... -
laurent pinson #2
Re: My first time with flex (how to scan a remotefolder)
take a look at the FileReference and the FileReferenceList
laurent pinson Guest
-
dragonair1 #3
Re: My first time with flex (how to scan a remotefolder)
I've had a quick look over those functions and they let the user select the
files don't they? I'm looking for a way to list all files in that dir and
populate my array with them if I'm wrong here can you quickly draw up an
example of them in use? Could I just say FileReferenceList(myfolderurl) and
populate my array with it?
I have generated a php script that lists only images in the dir and it works
([url]http://dinogod.adrianhosting.com/smf/coverflow/list.php[/url]) I've set it to list
file names per line
but I don't know how to feed this into my array being completely new to this I
do need a lot of guidance
thanks for your reply mind
dragonair1 Guest
-
-
VarioPegged #5
Re: My first time with flex (how to scan a remotefolder)
The Flash Player (Flex) doesn't allow you to scan the file system the way you'd
like. You'd have to use PHP as an intermediary to get info on any files within
a directory, generate the XML from that and have Flex consume the XML.
TS
VarioPegged Guest
-
dragonair1 #6
Re: My first time with flex (how to scan a remotefolder)
Thanks for your reply I'll have a look for some php forums having trouble adding my string with the filenames in to a xml file
dragonair1 Guest
-
dragonair1 #7
Re: My first time with flex (how to scan a remotefolder)
okay I have produced a php script that makes xml files
out of what ever is in the image directory you can view it here
[url]http://dinogod.adrianhosting.com/smf/coverflow/list.php[/url]
now how do I import this into flex and put it into my data provider
<local:DisplayShelf id="shelf" horizontalCenter="0" verticalCenter="0"
borderThickness="5" borderColor="#FFFFFF" dataProvider="{}"
enableHistory="false" width="100%"/>
?
dragonair1 Guest
-
VarioPegged #8
Re: My first time with flex (how to scan a remotefolder)
Use the HTTPService component to load the XML. See the
[url]http://livedocs.adobe.com/flex/3/html/index.html[/url] for complete info.
<mx:HTTPService id="service"
url="http://dinogod.adrianhosting.com/smf/coverflow/list.php" useProxy="false"
method="POST" resultFormat="e4x">
Then you can either have a result handler where you assign the result to a
variable or do something else with it, or you could just assign the service's
lastRequest to the data provider.
<local:DisplayShelf id="shelf" horizontalCenter="0" verticalCenter="0"
borderThickness="5" borderColor="#FFFFFF"
dataProvider="{service.lastResult.image.url}" enableHistory="false"
width="100%"/>
TS
VarioPegged Guest



Reply With Quote

