Loading photos without embedding them in swf file

I am planning to make a personal photo album website and am not able to decide whether to embed the photos at compile time or to load them at run time, and need some suggestions:
1. First how to load at run time?
2. Second what is the best practice, i think keeping the swf file as small as possible should be the right way to go any suggestion?
Thanks

Hi There
This is a bit scruffy cos as quick response but.  Have a look below
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="init()" xmlns:local="*">
     <mx:Script>
          <![CDATA[
          import mx.controls.Button;
          import mx.collections.ArrayCollection;
[Bindable]
private var ac:ArrayCollection = new ArrayCollection([
{imageTitle : 'Car 1', imageUrl : 'http://www.geekologie.com/2007/12/07/future-car-1.jpg'},
{imageTitle : 'Car 2', imageUrl : 'http://www.speedace.info/solar_cars/solar_car_images/Solar_Wing_front_Japanese_electric_po wered_car.jpg'},
{imageTitle : 'Car 3', imageUrl : 'http://www.dezeen.com/wp-content/uploads/2008/09/gem-peapod-car-by-chrysler-llc-et008_027e vsqu.jpg'}
private function showCar(num:int):void {
img.source = ac.getItemAt(num).imageUrl;
imgTitle.text = ac.getItemAt(num).imageTitle;
]]>
     </mx:Script>
     <mx:Image id="img" source="{ac.getItemAt(0).imageUrl}" width="426" height="243"/>
     <mx:Label id="imgTitle" text="{ac.getItemAt(0).imageTitle}"/>
     <mx:Button label="Button" click="showCar(0)"/>
     <mx:Button label="Button" click="showCar(1)"/>
     <mx:Button label="Button" click="showCar(2)"/>
</mx:Application>
Yes use HTTP service with what ever backend technology asp, php etc you use to populate the arrayColletion.  You'd have to build better navigator thats dynamic as I've just added 3 hardcoded mxml buttons but should be simple enough.
Good luck I hope this helps.

Similar Messages

  • I am going to get my iphone 4 screen fixed and i was wondering how can I take down my photos without deleting them or losing them?

    I am going to get my iphone 4 screen fixed and I was wondering how do I take down my photos without deleting them or losing them because I don't want the people looking at my photos??

    There's this magical thing called "Google" which coincides with the word "research" but since you're here, and obviously needy, here ya go:
    http://support.apple.com/kb/ht4083

  • Associating artwork with songs without embedding images in song files

    Is it possible to associate artwork with songs in iTunes without embedding images in song files?
    I'd like to see album covers in iTunes but don't want to waste the storage space on my iPod.
    Thanks

    You can add your own artwork (for covers iTunes does not get) to coverflow wihtout embedding it into the ID3 tags.
    See this -> http://www.macosxhints.com/article.php?story=2006100111071871
    I haven't tried it yet but others have had success.

  • How can I remove the photos without deleting them from the album?

    I am making a book in Aperture 3.  I want to change some of the pages that I have put together, and want to remove some of the photos from some of the pages, to put them on another page.  How can I remove the photos without deleting them from the album?

    As a follow-up, I have found that clicking on the photo in the book also highlights the photo on the strip below.  So, if you then hit delete, you will delete the photo from both the book page and the album (which is the book, the way I have it set up).  If you only want to delete it from the book page, you then have to un-click the photo on the strip below, or both will be deleted.  This seems unwieldy.  I deleted 6 photos from a page and found all of them gone from the album.  The only way that I can see to keep them in the album is to then unselect them from the bottom strip after selecting them fro the page.  This seems to call for an extra step. 
    Nancy

  • How to attach files in email without embedding them

    I am using an Imac with lion that is only a few days old.  How can I attach a file to an email without embedding it.  I spoke to apple care and they said after I attach the file to right click on the embedded image and and then click on view as an attachment. I have tried that many times but people still receive the emails with the image embedded.  I switched from a PC and have found that many simple things I used to be able to do on a PC are not so simple on a mac.  I called apple care 5 times about different issues and the geniuses did not know how to resolve the issue.    If this one doesn't get resolved this is going back for a refund.

    I haven\'t seen how a mac is easier to use than a pc wrote:
    How can I attach a file to an email without embedding it.
    Technically, you can't, at least if you are using SMTP to send the email. All except plain text attachments in emails using that standard are actually embedded in the message for transmission, separated by MIME tags that suggest how the receiving email client application (called "mail user agents" in the specs) should handle it.
    The content-disposition tag tells the client app if a part was intended to be displayed inline (embedded) or as a separate attachment. Unfortunately, the majority of client apps do not fully follow those suggestions & make their own determination of what to display inline or as separate attachments.
    So the best you can do is make sure the message as composed uses the appropriate content-disposition tag & hope that the receiving client app honors it. If you are using Apple's Mail.app try Don Archibald's suggestion, or putting all the attachments at the very end of your message (which may require not using a sig).
    But this won't always work since the receiving app may ignore your efforts.

  • FLV embedded in a SWF file, does not play in HTML file.

    Hi,
    I embedded a FLV file into flash movie clip, which on publish plays well on SWF file, but when the same is embedded in HTML, it does not play.
    What is it i'm missing ..
    Kindly help.
    Regards
    Shashi

    First, clarify this... are you embedding the .flv into the time line, as in:
    The .FLV file is imported on the  timeline of a movie clip.
    I embedded the .flv file,
    If you are in fact embedding the video, then there is no external video file... it's embedded into the timeline.
    If you are using the FLVPlayback component and an external vid file to display the video and the .swf when testing plays the video just fine but not on the HTML Web page:
    SWF plays external video file, as soon as I embed SWF in HTML, it no longer playes the external video file.
    then it's most likely a pathing problem.
    If you are placing the .swf on a Web page and the .swf and/or the .flv file are not both in the same folder as the Web page.... then the .swf should NOT work when you test it directly! That's because it should be pathed to play from the Web page and not the location of the .swf.
    For your review:
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best of luck,
    Adninjastrator

  • Importing photos without copying them

    I have all my photos as JPEGs on a shared network volume, with each 36 exposure film in its own folder each of which has its own HTML files so the photos can be viewed in a web browser.
    This all works very well but I would like to be able to view the photos in iPhoto. When I try adding them to the iPhoto library, iPhoto copies them over to the local hard drive, and since there is about 10GB of images the hard drive fills up.
    I want iPhoto to use the shared network volume, I want to be able to tell it that the photos are located in that folder and not to copy them when importing into the library. Just as in iTunes you can set the iTunes music folder location, I want to be able to do the same in iPhoto but there does not appear to be an equivalent preferences option.
    Is there a way to do this?
    Tim.

    Tortea wrote:
    ...there anyway of importing the photos into aperture, without copying them onto the mac hard drive?
    Tomi-
    Yes.
    Store the originals on the external drive(s), put the Aperture Library on the internal drive and Reference the Masters on the external drives.
    The use of a Referenced-Masters Library is discussed below.
    HTH
    -Allen Wicks
    Referenced-Masters Library
    Best solution, especially with mobility-hardware computers like laptops and iMacs, is to reconfigure your image Masters to have a *Referenced-Masters Library* on the internal drive with the Masters referenced on external drives via FW800 or (preferably) eSATA.
    However Referenced Masters usually do still work adequately with Masters accessed on externals via slower methods like FW400 or USB. After a slow reconfiguration process it will work fine and the Referenced-Masters Library will remain a reasonable size, not grow to overfill the internal drive.
    Note that Vaults back up the Library but a Referenced-Masters Library does not have the Masters in it, so Masters must be separately backed up. I strongly recommend that *back up of original Master files be performed BEFORE importing into Aperture* or any other app anyway. Once one is doing that backup of a Referenced-Masters Library is easier (due to much smaller Library size) than backing up Aperture's (unfortunately default) Managed-Masters setup.
    The Aperture Library should live on the internal drive for best speed and all drives should be less than 70% full for speed and stability.
    In the future back up Masters before import into Aperture. Then with the new Masters on external drives select Store Files: "In their current location" from the import window when importing into Aperture. This will maintain a *Referenced-Masters Library*. Routinely create Vaults to back up the Library.
    --------------------

  • Help with embedding fonts in swf file

    Hi, I am haviing a problem with my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on top of each other in several lines. Its a mess. It is displaying in times or some other font when viewed in on a pc browser.
    What I did so far that did not work:
    Made fonts static with animation
    made fonts dynamic with animation
    How can I fix this?
    I am still a beginner using flash so the simpler the option the better.
    Thanks!!!

    there are quite a few ways you could mess this up but no one way that's typical.
    create a new fla.  click on the text tool, select static in the combobox and add a textfield to the stage.  animate it.  test it.  any problems?
    any other way (or ordering of steps) you use to create static text is prone to problems.

  • CS3 and AS2: Embedding an external swf file

    Hey everyone,
    I have built a few flash sites before and am trying to make one that is slightly more complicated and allows for dynamic, database stored images and text. I have built a dynamic gallery based on an XML feed in AS2 which works fine. I am trying to embed it into another FLA file that contains the remainder of the site (the gallery will be one page of the main site). I have tried a ridiculous number of different methods but just cannot get it to work. The gallery is built in AS2, so I am using an AS2 FLA file for the main template it is to be embedded in. The simplest method i have tried that i think should work is to create a new AS2 fla file, edit the actions on my actions layer to be:
    Empty.loadMovie("My Gallery.swf");
    I have then created a new layer for the content and added a MovieClip to the top left of it, named Empty. I have set the instance name of this movie clip to be Empty. From what I have understood from my reading this is the simplest way to display the external file but for some reason it just will not work. It seems to see My Gallery.swf as when i delete it from the local directory i get an 'Error opening URL 'file:///D|/Websites/My Gallery.swf'' message. This message does not appear when this file exists locally, however it just opens a blank screen with nothing within it.
    I have been reading numerous tutorials and posts and i'm pretty sure i'm being thick, but for some reason i can't seem to get it to work!
    Thanks so much for any light you could shed on this for my guys, it's driving me crazy!
    Dave

    I have  checked that a number of times and unless i'm going crazy (which is distinctly possible) then the instance name is set to Empty. I have uploaded a zip file containing the fla and swf file and the test swf file that is being embedded. You can download it here.
    Thanks so much for your help, i really am completely stumped and i know it's going to be something crazy i'm doing and i'm going to hate myself when i finally discover why!
    Dave

  • Trying to delete photos without loosing them completely...

    I need to delete pictures off of my iphone to free up storage space.  If my photostream pics are automatically downloaded to my iphoto and aperture on my macbook, can I delete them from my phone's camera roll without loosing them on my computer?

    Have you confirmed that the photos have been imported into your libraries?  In iPhoto if the Photo Stream preferences are set like this:
    your Photo Streame photos have been imported and will be in an Event.
    If that's the case you can delete the photos from the Camera Roll on the phone and they'll be save in the library.
    OT

  • Please help - trying to manage photos without deleting them!

    I am trying to manage the photos on my ipad, because it is full.
    I have imported lots of photos directly from my camera, and these are also backed up on my pc. I want to remove them from the ipad without deleting them on my pc, however when I select them for deletion on the ipad,  I get a message asking if I want to "delete them everywhere" and I am worried that I will lose them altogether if I accept.
    But.......
    There is no alternative option offered. So the result is that I don't dare delete them and therefore my ipad remains full.
    Does anyone know the way around this?
    Thanks.
    Baffled of London.

    Have you copied the photos into other albums that you've created directly on your iPad ? If you have then that effectively just creates pointers to the photos, so if you delete the original photo from the iPad you will also be deleting all pointers to it and therefore remove it from any albums that you've added it to on the iPad. That is one reason why the 'delete everywhere' message appears.
    Or do you have photo stream on (Settings > iCloud > Photo Stream) ? If you do then deleting a photo that is in your photo stream will remove it from any device/computer that is seeing the Photo Stream album.
    Otherwise it shouldn't be removed from anywhere. I assume that by backing them up on your PC you copied them over by the windows camera wizard or something similar, you don't just mean an iPad's backup ? Any photos copied over by the camera wizard won't be removed if you delete the same photo from your iPad - if you want to be sure then delete just one of them from your iPad, then connect the iPad, and the copy of the photo on your computer should still be there when you disconnect it.

  • Embedding Flash Charts (*.swf-file) to WebTemplate

    Hi, due to customer requests we want to embedd Flash Charts to our WebTemplate in BI7.0. The examples we´ve got contain JavaScript and the necessary staff. There are *.swf files available. But is it possible to use the Scripting in a WebItem Chart ? Has someone just experience in that ? I´m looking forward for some interesting information. I couldn´t find the right answer yet here.
    Regards,
    Peter

    Answered by a former colleague at SAP.

  • AS2 font embeding in seperate swf file.....

    Dear all,
    I tried to embed font in as2 its working...this is the sample code
    var test_fmt = new TextFormat();
    test_fmt.font = "Font1";
    createTextField("text1",2,100,150,100,20);
    text1.text = "what the hell";
    text1.setTextFormat(test_fmt)
    text1.embedFonts = true;
    text1._rotation = -45;
    But i want to embed the font in seperate swf, how to call the font embeded swf.....Please if u have any sample share with me...
    Thanks in advance...
    Rajasekaran

    I tried the below code with your two lines inplace but it came up with an error
    trymeon_btn.addEventListener(MouseEvent.CLICK, tryMeButtonFunction);
    function tryMeButtonFunction(event: MouseEvent) {
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.events.ProgressEvent;
      function startLoad() {
       var trymeon_btn:Loader = new Loader();
       var mRequest:URLRequest = new URLRequest("hand2.swf");
       trymeon_btn.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
       //trymeon_btn.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
       trymeon_btn.load(mRequest);
      function onCompleteHandler(loadEvent:Event) {
       loadEvent.currentTarget.x=(stage.stageWidth-loadEvent.currentTarget.width)/2;
       loadEvent.currentTarget.y=(stage.stageHeight-loadEvent.currentTarget.height)/2
             addChild(loadEvent.currentTarget.content);
      function onProgressHandler(mProgress:ProgressEvent) {
       var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
       trace(percent);
      startLoad();
    ERROR: Error #1056: Cannot create property x on flash.display.LoaderInfo.
    at MethodInfo-2()
    Justin

  • Load url into!! the swf file

    can i load a url into a continer on a stage (into the swf)?
    i need to let users lunch url in the application without open
    a new window or somthing like this...
    it needs to load into a continer or somthing like this?
    i know to load swf with swfLoder, i need the same thing only
    to load any URL (insdate of wsf only)...
    can you help me?

    Flex does not support the direct display of URLs. Flex does
    have some capability to display HTML, but it sounds like it would
    be too limiting for your use.
    Check this out:
    http://coenraets.com/viewarticle.jsp?articleId=95
    Christophe wrote this for Flex 1.5 but it might work for Flex
    2.

  • Imported thousands of photos without "copying" them to Library. Can I now have iPhoto automatically "copy" those photos?

    I have thousands of pictures in my iPhoto library. Many of them were not "copied" into iPhoto when imported. I had my preferences set that way to save space on my system's hard drive. I just kept those pictures on a separate hard drive in my Mac Pro. Now I would like iPhoto to automatically "copy" those into it's library while maintaining their locations in Albums and Events. (I realize this will add many GB to the size of my Library).
    Is there a way to do this?

    No - what  version of iPhoto are you running? Prior to iPhoto '11 Alias herder could be used to do this - http://www.rorohiko.com/wordpress/downloads/aliasherder/
    LN

Maybe you are looking for

  • Looking for help to upgrade Z61m HD and OS

    All, Being a layman I am looking for some help on how to do the following: -  Upgrade my current HD from the small 105gig to a new 320 gig HD - have the new SATA drive. -  Also wanting to get off of Vista to Windows7 - I have the new Windows 7 ulimat

  • I am trying to get icloud. I am having issues with the email address.

    I signed up for an apple account ant it would only let me use my hotmail account. I got an account and i tried to use it to sign into icloud and it isn't working. THe apple web site stated that I could re name my account later. Please tell me what i

  • Payroll Payment via ALE/IDOC

    Hello Everyone, We currently run payroll and process ACH payment information via RFFOUS_T.  The information is sent directly to the bank.  We have a new request which will require HR Payroll payment information to be sent from our SAP system to anoth

  • Database Health Check Enquiry

    Hi all, Some enquires regarding database health check. I did some research regarding health check, got overwhelmed by the information available out there. Currently I don't have any report on hand, but currently working and starting on one. This repo

  • Pr-po conversion maint.order

    hi guys, we have a scenario as mentioned below Maintenance order has been created and material is likely to pruchase for which in the order material has been mentioned and PR has been created through work order. my technician should not do teco for t