  | | | RE: calling non-sequential.jpgs from folder - how? | RE: calling non-sequential.jpgs from folder - how? 2004-03-17 - By dave matthews
Back Thanks "David Hawks" and "Jason Merrill",
We'll try the php function Dave.
Jason, the split function will help too!
Is it possible to just tell the player to grab the next file in the folder the end user points the Flash app at?
For example we will be using part of our beta 'fly through Flash system', at: www.2GoTo.com ,specifically the internal window.
It's sort of convoluted to access the file search box (this is our testing platform), but it is able to pull a picture.jpg or .swf file from the end user's hard drive (even when the app is accessed from the net).
To try it, start at: http://www.2GoTo.com ,then roll over 'info', click 'internal window' Roll over the area under the drag bar of that internal window and click 'call new server'... a search box will come from the server (12k). Paste the complete file path to the picture.jpg or .swf you want to import into the app and then click 'import file into window'. A web based folder or a folder from the local hard drive will work.
What we are trying to do is create a button instruction that will climb up or down and access the next .jpg's in whatever folder the first image is in... :)
Is there any command we can put in the button to just make it retrieve the next file in the folder - sequentially, without renaming all the files?
Now, granted this is a pretty invasive little procedure, but we haven't seen any objections from the sandbox control system... so far.
everything works through the browser, incidentally.
All comments / observations are welcome.
thanks all, dave Matthews
-- ---- ---- ---- ---- ---- --
Date: Wed, 17 Mar 2004 18:23:31 -0000 To: <flashnewbie@(protected)> From: "David Hawks" <davidhawksuk@(protected)> Subject: RE: [Flashnewbie] calling non-sequential.jpgs from folder - how? Message-ID: <000001c40c4c$f64807a0$6501a8c0@(protected)>
Hi Dave,
This might help...
http://www.sephiroth.it/file_detail.php?id=119
... it uses php to read a folder of images and then display them as galleries in flash. It takes the names of the original files and title the images in the gallery too. The tutorial is pretty detailed too.
Hope this helps
David
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Date: Wed, 17 Mar 2004 13:25:29 -0500 To: <flashnewbie@(protected)> From: "Merrill, Jason" <JMerrill@(protected)> Subject: RE: [Flashnewbie] calling non-sequential.jpgs from folder - how? Message-ID: <97C35235B4F1274EB344CDC33566801B05F0D799@(protected)>
Flash cannot read file names in a folder natively - could probably do it = with a 3rd party app like screenweaver. Easiest way would be to create a= =20file (txt or XML) that has the names of all the images. As for using = part of the filename, try this:
/* Obtain the name of the file without the extension. Usage: getFileName("California.jpg"); output: California */
getFileName =3D function(thisName) { =09tempArray =3D thisName.split(".") =09return tempArray[0] }
theName =3D getFileName("California.jpg"); trace(theName)
=20 Jason Merrill =20 ICF Consulting Government e-Learning Solutions =20 icfconsulting.com
-- --Original Message-- -- From: dave matthews [mailto:edictmgt@(protected)] Sent: 17 March 2004 17:58 To: flashnewbie@(protected) Subject: [Flashnewbie] calling non-sequential.jpgs from folder - how?
hi everyone,
Our client wants a Flash based image gallery but has to many pictures to rename them all each time the content is changed.
Is there a script anywhere that shows how to call the next image from a folder of images?
For example, many gallery examples require each image.jpg to be numbered sequentially, ie: image1.jpg, image2.jpg, image3.jpg... making it quite difficult to refer to any specific image because a parallel list of the original image names must be referenced should web based viewers want more info re: an individual image... a nightmare actually.
What we want to do is swap out the folder of images and have the Flash
gallery app call the first, then next image with the original image names intact, which we would also use as part of the caption for that image when it is displayed.
Can this even be done and if so how?
Examples of the exact syntax would be ever so helpful too, since we are not all that familiar with this type of random scripting.
Thanks to all for this wonderful list,
Dave Matthews Phone# 574-262-1267 Fly through Flash http://www.2goto.com
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ FREE pop-up blocking with the new MSN Toolbar ?get it now! http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|
 |