calling non-sequential.jpgs from folder - how? 2004-03-17 - By Merrill, Jason
Back 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 file (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 = function(thisName) { tempArray = thisName.split(".") return tempArray[0] }
theName = getFileName("California.jpg"); trace(theName)
Jason Merrill ICF Consulting Government e-Learning Solutions icfconsulting.com
:::>-- --Original Message-- -- :::>From: dave matthews [mailto:edictmgt@(protected)] :::>Sent: Wednesday, March 17, 2004 12:58 PM :::>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 :::> :::>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ :::>Check out MSN PC Safety & Security to help ensure your PC :::>is protected and :::>safe. http://specials.msn.com/msn/security.asp :::> :::> :::>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- :::>-- ------ :::>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) :::> :::> :::> NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ 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)
|
|