Flash & xml gallery problem

i have a flash & xml gallery source. whatever click the
thumbnails, opening first image. where is the problem? i need help,
please...
Flash & Xml
Gallery

then that's a problem. sometimes your cookie may loaded
sooner than the needed frame in your swf and when you try to go to
a frame that hasn't been downloaded, the swf will stay on frame 1.
i assume you already have a stop() on frame 1 and you check
the cookie's value before proceeding. in addition to waiting for
the cookie to load, you should wait for the needed frame of your
swf to load.
so, if you're not using a loop now to check for your cookie,
you'll need one for your swf to check its _framesloaded property
before advancing the timeline.

Similar Messages

  • Xml gallery problem??

    I´m using a xml gallery with thumbs . I tried several
    things but can´t get it work. I want to add links in the
    textfield. The text in the textfield comes from a .txt file and xml
    file. I dont know if it´s possible to add links in .txt files
    or if there is any other way to open urls with links for the
    different images.
    I hope someone can help me with this..
    file included...
    http://www.robertr.se/flash/portfoliopage.zip
    207 kb
    Very best regards
    /Robert

    I'm not really sure what you are trying to do. I dont know
    what you are trying to make a link out of....
    However if you have a movieclip called myPic, and you want it
    to link to one of your urls loaded from the xml or a .txt file
    myLink= whatever your loaded link from xml or .txt is;
    myPic.onRelease=function(){
    getURL(myLink,blank);}

  • Flash Video Gallery Problem

    Hi All
    I am developing a video Gallery in AS 3.0.
    * I am providing thumbnails and XML is loading external FLvs
    in those thumbnails .
    * The user can either double click or click and drag
    thumbnail to play the main video above the particular line.
    * I am calling external SWFs in the UIloader component for
    playing the main video. That UIloader will be called when the user
    either double clicks on thumbnail or click and drag the thumbnail.
    * Also user can drag the main video wherever he wants, and
    he can drop the main back to the thumbnails too( which will unload
    the video player).
    My problem is that everything is working fine when i run the FLA
    file, but when i closed my application and try to run the
    individual SWF file, the file does not work ( its just
    crashing).
    There are no frames I am using so that's for sure that i did
    not forget to put stop frame.
    All of my code is in the main time line and I haven't used
    any custom classes yet, which means everything is in the actions
    window.
    Am i using the right tool for such a big application? Should I
    switch to FLEX for compiling this file. i am not that familiar with
    FLEX working environment too.
    Please help me out what i am doing wrong and i apologize that
    I could not mail you the code because the file is very very big.
    Also if any better tool is available for this please let me
    know.
    Any kind of help will be highly appreciated.
    Thanks a lot
    Anuj

    Interesting problem.
    I thought initially that this could be easily solved with Action Sequences on the imported SWF file.   Action Sequences will control the visibility, play(), stop() and go to frame, it doesn't stop the audio that has already started playing in the imported SWF.
    I worked around this by
    placing an empty frame "0" in my Flash .fla with SoundMixer.stopAll(); in the ActionScript - then reoutput the SWF
    Imported the SWF and then set an ActionSequence to go to Frame 0 and Stop when I exited the state where I wanted my SWF playing
    Also set an ActionSequence to go to Frame 0 and Play when I wanted my SWF to start playing again
    See the source .fla and .fxp here: TestingSwfSoundStopStart.zip
    Best wishes,
    Tanya

  • Flash & Dreamweaver gallery problem

    Hey guys,
    I am helping out a friend that I can't let down and I am afraid I may of bitten off more then I can chew.
    He wanted me to put up all his fashion shots on a webpage and it is proven harder to combine the flash gallery with html then I thought.
    Take a look at : http://williamvintage.atwebpages.com/site/
    I want to center the gallery in the middle and have it so that it looks like one white square, which will be centred in the middle of the page.
    I sliced up the white background and deleted the middle part thinking it would work, but it has not. I tried placing the gallery on top of the white background with a table, but that didn't work and because the flash gallery enlarges the pictures when clicked it needs more room then the size of the galley it's self.
    I used this Gallery and modified the code to suit my needs. I have included the link if that helps : http://www.freeflashcomponents.net/flash-galleries-slideshows/html-xml-image-grid-as2.html
    I have to have this completed and uploaded by this monday so if you could help me out asap that would be great.
    Cheers.
    Dale.

    You need to specify the correct path/name for the swf file...
    fl_Loader_2.load(new URLRequest("player_black"));
    does not do that.  As a minimum it should have an ".swf" at the end of the file name, as in "player_back.swf".
    Any time you get error messages, you should include both the complete error messages and the relevant code in your initial posting.   It can help get to solving think more readily.

  • Flash cs5 gallery problem...

    Hello I have made a website and a gallery both in seperate files. I made the gallery in fireworks cs 4 (as2), and the website in flash cs5 (as3).  When I imported the gallery.swf to the library it just shows the outline of the gallery (picture1) with no pictures or even the menu just the outline. Could anyone please help me out in this matter?

    You need to specify the correct path/name for the swf file...
    fl_Loader_2.load(new URLRequest("player_black"));
    does not do that.  As a minimum it should have an ".swf" at the end of the file name, as in "player_back.swf".
    Any time you get error messages, you should include both the complete error messages and the relevant code in your initial posting.   It can help get to solving think more readily.

  • Flash Image Gallery load problem

    This a familiar problem that has been put up here a thousand
    times I'm sure but as yet I haven't been able to find a solution
    for it. I've put together a simple image gallery using Flash and an
    XML file. It works perfectly on my system but there are issues with
    the images loading properly when I put them onto my site. I know
    very little Flash, I've been using a pre-made gallery that I
    downloaded but since it works on my computer I assume I should be
    able to get it to work online too. The thumbnails for the file seem
    to work fine and the information from the XML file is obviously
    being accessed, however the main images are not loading. I've
    included all the code below (Actionscript, XML and the Web coding),
    if someone could help me before I put my fist through a wall that
    would be great:
    Actionscript
    stop();
    //specify the url where folder is located below (if
    applicable)
    toadd="";
    t = 0;
    l = 0;
    theside = 1;
    galxml = new XML();
    galxml.load(toadd+"flash/fashion/easy-xml-gallery-2.xml");
    galxml.ignoreWhite = true;
    galxml.onLoad = function(success) {
    if (success) {
    maxnum = galxml.firstChild.childNodes.length;
    for (n=0; n<maxnum; n++) {
    specs = galxml.firstChild.childNodes[n];
    //TEXT FOR SIDE NAV
    duplicateMovieClip(side.thumbs.thumbsb, "thumbs"+n, n);
    thumbclip = eval("side.thumbs.thumbs"+n);
    thumbclip._x = n*100;
    thumbclip.thetitle = specs.attributes.name;
    thumbclip.theurl = specs.attributes.theurl;
    thumbclip.thecaption = specs.attributes.caption;
    thumbclip.thenum = n+1;
    thumbclip._alpha = 100;
    loadMovie(toadd+"/flash/fashion/images/"+(n+1)+"b.jpg",
    thumbclip.thumbload.thumbload2);
    play();
    side.thumbs.thumbsb._visible = false;
    mainperc.onEnterFrame = function() {
    if (mainperc.perc<98) {
    mainperc._alpha += 5;
    mainperc.perc = Math.round(l/t*100);
    mainperc.perctext = mainperc.perc+"%";
    mainperc.ltext = "OF THUMBNAILS LOADED
    ("+Math.round(t/1024)+"kb)";
    if (mainperc.perc>98) {
    //mainperc._alpha -= 5;
    if (mainperc._alpha<-50) {
    delete mainperc.onEnterFrame;
    XML
    <gallery>
    <pic1 name="ONE">
    <pic2 name="TWO"/>
    <pic3 name="THREE"/>
    <pic4 name="FOUR"/>
    <pic5 name="FIVE"/>
    <pic6 name="SIX"/>
    <pic7 name="SEVEN"/>
    <pic8 name="EIGHT"/>
    <pic9 name="NINE"/>
    <pic10 name="TEN"/>
    </gallery>
    Webpage coding
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>shorty designs</title>
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #666666;
    body {
    margin-left: 0px;
    margin-top: 0px;
    background-image: url(images/fashion_back.gif);
    background-repeat: no-repeat;
    a:hover {
    color: #999999;
    text-decoration: none;
    .Sections {
    color: #333333;
    font-weight: bold;
    #wrapper {
    background-color: #FFFFFF;
    padding: 10px;
    width: 760px;
    margin-right: auto;
    margin-left: auto;
    .section_reg {
    color: #333333;
    font-weight: bold;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: large;
    padding-left: 10px;
    .contact {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: large;
    color: #333333;
    background-color: #FFFFFF;
    width: 400px;
    padding-left: 22px;
    text-align: right;
    .section_back {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: large;
    color: #FFFFFF;
    background-color: #000000;
    width: 135px;
    padding-left: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    background-position: center center;
    vertical-align: middle;
    height: auto;
    .style2 {color: #F0F0F0}
    a:link {
    text-decoration: none;
    color: #333333;
    a:visited {
    text-decoration: none;
    color: #333333;
    a:active {
    text-decoration: none;
    -->
    </style>
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <div id="wrapper">
    <p class="Sections"><img src="images/version5.jpg"
    alt="shorty logo" width="166" height="85" /><span
    class="contact">Contact by email:
    [email protected]</span></p>
    <p class="Sections">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','536','height','518','align','right','src','/flash/fashion/fashion','quality','high',' pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwa veFlash','movie','/flash/fashion/fashion'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="536" height="518" align="right">
    <param name="movie" value="/flash/fashion/fashion.swf"
    />
    <param name="quality" value="high" />
    <embed src="/flash/fashion/fashion.swf" width="536"
    height="518" align="right" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash"></embed>
    </object>
    </noscript>
    </p>
    <p class="section_back">Fashion</p>
    <p class="section_reg"><a
    href="travel.html">Travel</a></p>
    <p class="section_reg"><a
    href="wedding.html">Wedding</a></p>
    <p class="section_reg"><a
    href="layout.html">Layout</a></p>
    <p class="section_reg"><a
    href="personal.html">Personal</a></p>
    </div>
    </body>
    </html>

    Yep, these are the directions:
    this is very easy to update. You only need to edit the simple
    xml file and add images to the images folder.
    step 1.
    add as many images as you like at the size 536 x 403
    step 2.
    create thumbnails for the above images at size 100x75
    step 3.
    update the xml file with the name url and caption for each
    image. (to take the url off just click through to the button on the
    main picture and delete the script that says getURL(theurl)
    step 4.
    open flash file and change the 'toadd' variable to the folder
    where the flash file and image folder is located on your site.
    thats it done.
    The frustrating thing now is that the files are finally being
    found but the thumbnail function has decided to mess up.

  • Flash & XML Photo Gallery with Categories

    Hello friends
    i am trying but
    i want to create Flash & XML Photo Gallery with Different Categories
    please help me

    If you want to do using oop
    go throgh this article first
    http://active.tutsplus.com/tutorials/actionscript/as3-101-oop-additional-concepts/

  • Lightroom Flash Gallery Problem

    I created a flash web gallery in Lightroom and added it to
    dreamweaver cs3. When I opened the gallery index page to review and
    adjust in dreamweaver I got a message saying I needed to have Flash
    Player installed in my browser (It was) and scripting available for
    safari (it is). Could not get past this issue.
    When I used the same lightroom gallery only as html I had no
    problems editing and posting the index page and gallery to the web.
    Is there something I'm missing? Is this a Lightroom or
    Dreamweaver or wombat problem?
    Wally Wombat

    For some reason Dreamweaver won't support Flash in the program itself or something like that.  I went through the same thing once.  I dont remember trying it but you could open the index page and hit the live mode button and maybe it'll pop up how it should.  But if you uploaded it to the actual site and went to it in a browser i'm pretty sure it would look normal.  And I was just wondering...but how did you get your html gallery to load up on your website? i'm having the impossible difficulty of achieving that.  I paste the gallery folder into the site folder and i try to change links and html documents so they all correlate but i still get the 404 error when i try to go to it in the browser.  I semi-succeeded one time by moving the index.html files out of the gallery folder with the other html pages that i had but then since they weren't in the folder some of the stuff in the gallery did not work in the browser.  So if you have time I'd much appreciate some help!

  • XML image gallery problem

    Hi! I've builded this XML gallery, and suddenly Im getting an
    error when Im loading the pictures.
    Its only sometimes the error comes.
    TypeError: Error #2007: Parameter url must be non-null.
    at flash.display::Loader/_load()
    at flash.display::Loader/load()
    at imageviewer_xml_subcats_fla::MainTimeline/allLoadXML()
    at
    imageviewer_xml_subcats_fla::MainTimeline/goForwardSorted()
    at imageviewer_xml_subcats_fla::MainTimeline/sortMe()
    Can anyone help me?
    Flash file incl XML
    imageview.fla

    I noticed two thing:
    1. I guess the error occurs when currentImage variable is out
    of range of sortedXML array. You, perhaps need to trace this var
    and see at what point the error happens.
    2. Unless I missed someting, It seems that you always load
    images. At some point you load images that are already loaded. It
    is inefficient. You, perhaps, better off reusing already loaded
    images.

  • Photoshop's FLASH web gallery - let's make it better

    hello there,
    I have spent many hours trying to solve this problem so any
    time you could spare to take a look at this would be great - i'm
    out of ideas/knowledge.
    Photoshop can produce flash web gallerys through it's
    automate function. These look great and are a very quick and
    elegant solution. If you edit the XML files it produces you can get
    it to load swfs which is fantastic - you can now use the flash
    gallery automate function to load images, animation, and even
    games. But here's the thing that stops it being truly wonderful.
    The gallerys are produced as Flash 6 files which means they refuse
    to load Flash 8 files. If it could produce Flash 8 files then you
    could edit the XML and have it load swfs that contained Flash 8
    video. This means I could do pretty much everything i want to do
    for my website simply by using the flash photo gallery function in
    photoshop and tweeking the XML. Anybody think this might be a
    doddle for them? Help

    hi. i have a problem that i think it is similar.
    i have a gallery on my website made in psd cs3 and if you
    look at the page (
    http://signsofkauai.com/WEBSITE/PictureGallery/gallery.html
    ) you will see the .sfw or the image centering the whole page
    vertically. therefore creating a large space between the navigation
    buttons and the first image. is there a way to make the .sfw to
    align top? i just need the pictures to get closer to top of the
    website so that people dont have to scroll down to see the
    pictures. which file am i supposed to edit and where should i add
    what? (yes i am not experienced in coding :( )

  • LR Flash web gallery

    I'm having a real problem with creating a flash web gallery in LR. I'm using LR 1.3 and firefox when I upload the gallery and go to view it in firefox it just hangs there saying "loading..." and it never loads. When I create a html gallery it works fine. I really want to use LR flash galleries on my site but I'm afraid I'll have to look for other options if this doesnt work out :(

    **Update**
    Working now. We were doing javascript:; browser pop to this page and if the Height of the window exceeded the ie6 laptop screen size the flash gallery would fail to work. When I changed the height to 690 (from 800) it worked fine. Go figure...
    Is this a known flash issue that I was out of loop on? Do we need to keep window sizes in mind?
    I have LR 1.3 and IE6 is not showing thumbnails on my flash gallery output.
    Also note that I had to remove the xml doc type (line 1) from the index file or I would get a parse error on our server (it worked fine locally and on my leopard MAMP websrv testing environment.)
    Seems to be working on all other browser/platforms but IE6 is by far the most popular for our website.
    Flash Gallery

  • Flash Web Gallery Loader Background

    Greetings all,
    I am placing a LR Flash Web Gallery in an inline frame of an html page. The page background is 75% Gray.
    When the page is displayed, the loader swf appears to have a white background, causing an annoying white flash on the page until the slideshow loads.
    Once the slideshow loads, the page looks fine.
    I've played with the .xml files, but haven't found a tag that affects that background yet. Anybody experience the same problem?
    Many thanks for your help,
    Jeff

    Hi John,
    Thanks for the info and the link...
    I read your blog and instead of using an inline frame, embedded the sideshow directly in my page.
    Works fine, except now I have to "click to activate control" (Windows curse), which apparently was overridden by a script in LR's generated index.html page.
    However, thanks to your suggestions, I used my own overide scripts and embedded the page anyway. A much more elegant solution.
    Great blog and thanks for the inspiration.
    Best regards,
    Jeff

  • Flash photo gallery error

    As part of a project for school I created a flash gallery using bridge and tried to add it to a site in dreamweaver. When I tried to preview in browser it would tell me to install flash player but when I did it then said that it couldn't find the xml file or it just won't play. I tried adding the xml file under src in the properties inspector. I'm new to using swf files in dreamweaer so I have no clue what I'm doing wrong. Can someone please explain to me how to make this thing work?

    Most likely a Flash asset pathing problem...the .swf can't find the .xml file. The path to the .xml file is usually set inside the .swf when you first created the .swf... it's not something you add in later. It's very important that when the .swf and asset files are first created that you do not alter the file/folder structure and that all the files/folders get correctly uploaded to the server.
    And if you are new to Flash, it's easier to put the .swf in the site root folder (but that is not really necessary... see below).
    Pathing issues
    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
    If you are unable to fix as per above, please post link to actual page.
    Best wishes,
    Adninjastrator

  • Xml gallery alignment, help

    I am making an XML gallery with thumbnails. It is working fine, but I have a problem with alignment of the images. All the large images are loading into the top left corner. I would like them to load with center alignment for all images. I don't know anything about Action Script. The way I made this website was to use already made sample of some one else. Can you help me to figure out this alignment problem? Again, I am very bad at Action Script, so it would be great if you can show me the actual coding for this to work.
    Here is the sample gallery: http://www.chimeddorj.com
    Here goes the Sript>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    RemoveAllThumbs.onLoad = function(){
    removeAllThumbs()
    //init global variables and properties
    Stage.scaleMode = "noscale";
    import gs.TweenFilterLite;
    import gs.TweenLite;
    XML LOADING
    //handle loading of external images..
    var slide:XML = new XML();
    slide.ignoreWhite = true;
    var largeImageUrl:Array = new Array();
    var thumbUrl:Array = new Array();
    var captions:Array = new Array();//not used
    var p:Number = 0;//tracks position in arrays
    /*!!!!if you want to load in another XML file, make sure you clear the existing thumbnails
    by calling the removeAllThumbs() function first!*/
    slide.onLoad = function() {
    largeImageUrl = [];
    thumbUrl = [];
    captions =  [];
    xmlNode = this.firstChild;
    var images:Array = this.firstChild.childNodes;
    for (i=0; i<images.length; i++) {
    thumbUrl[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
    largeImageUrl[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
    captions[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
    p = 0;//reset p for different gallery loading
    //create a bg clip for the thumbsTrack. Enables padding between images to work correctly
    thumbMask_mc.thumbBox_mc.createEmptyMovieClip("thumbTrackBg",1);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.beginFill(0x000000,20);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.moveTo(thumbMask_mc.thumbBox_mc._x,thumbMask_mc.thum bBox_mc._y);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x+thumbMask_mc.thum bBox_mc._width,thumbMask_mc.thumbBox_mc._y);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x+thumbMask_mc.thum bBox_mc._width,thumbMask_mc.thumbBox_mc._y+thumbMask_mc.thumbBox_mc._height);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x,thumbMask_mc.thum bBox_mc._y+thumbMask_mc.thumbBox_mc._height);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.lineTo(thumbMask_mc.thumbBox_mc._x,thumbMask_mc.thum bBox_mc._y);
    thumbMask_mc.thumbBox_mc.thumbTrackBg.endFill();
    //load the thumbs
    loadThumbs();
    Mouse.removeListener(mouseListener);//kill the mouselistener if it is added
    slide.load("paintings.xml");//load xml
    var imageWidth:Number = 0;//default x position of our movieclips relative to containing movieclip
    var buffer:Number = 20;//padding between images
    var thumbsToShow:Number = 5//
    LOAD THUMBNAILS, ADD ACTIONS & PADDING TO THUMBS
    //here we load in our thumbnails
    function loadThumbs() {
    //remove the movieclip loade listener on each iteration of this function
    Clip.removeListener(mclListener);
    //attach and associate with a variable a MC to hold each loaded movieClip
    var container:MovieClip = thumbMask_mc.thumbBox_mc.attachMovie("thumbBox", "thumbBox"+p, thumbMask_mc.thumbBox_mc.getNextHighestDepth(), {_x:imageWidth, _y:0});
    //create a movieclip loader
    var Clip:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    mclListener.onLoadStart = function(target_mc:MovieClip) {
    target_mc._alpha = 0;//set thumb alpha to be zero
    //handle loading progress - simple counter here
    mclListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  {
    //use this if you want to indicate loading of your thumbnails etc...
    //loadTxt.captions_txt.text = Math.floor(bytesLoaded/bytesTotal*100)+"%";
    mclListener.onLoadInit = function(target_mc:MovieClip) {
    //here we can access our loaded clips properties!
    //here is where we attach functions to our clip so that we can dynamically create rollovers etc.
    //make our thumbnails visible again
    TweenLite.to(target_mc, 2, {_alpha:100});
    //based off image width this places our thumbs next to each other
    imageWidth = (imageWidth+target_mc._width)+buffer;
    //associate a variable here with our p value, we use this later to load in large images
    target_mc.pictureValue = p;
    //handle  image rollovers these are active only on the thumb image!!! Watch the US spelling!
    target_mc.onRollOver = function() {
    TweenFilterLite.to(target_mc,.4,{type:"Color", brightness:1.5, ease:None.easeOut});
    target_mc.onRollOut = function() {
    TweenFilterLite.to(target_mc,4,{type:"Color", brightness:1, ease:None.easeOut});
    //handle a click on a thumbnail
    target_mc.onRelease = function() {
    //load large images
    mcLoader.loadClip(largeImageUrl[target_mc.pictureValue],largeImage_mc);
    caption.text = captions[target_mc.pictureValue];;
    p++;//increment value to cycle through array
    if (p<thumbUrl.length) {
    loadThumbs();//create loop
    if (p == thumbUrl.length) {
    /*we set this variable here because this is where we know the length of our thumbnails containing mc.
    After we have loaded all content in. Makes sense really!*/
    mcWidth = thumbMask_mc.thumbBox_mc._width;
    //adjust the width and height of the thumbstrack bg clip
    thumbMask_mc.thumbBox_mc.thumbTrackBg._width = mcWidth;
    thumbMask_mc.thumbBox_mc.thumbTrackBg._height = thumbMask_mc.thumbBox_mc._height
    /*add the mouse listener object to the thumbnail mask. We do this element of our script here so
    we do not enable scrolling of our mc before the images have all loaded in. As this can look a little funny*/
    Mouse.addListener(mouseListener);
    //load in the next thumb
    Clip.addListener(mclListener);
    Clip.loadClip(thumbUrl[p],container);
    REMOVE ALL THUMBS METHOD
    //Use to clear old thumbs if you are going to add in a new set of thumbs
    function removeAllThumbs():Void {
    for (var i in thumbMask_mc.thumbBox_mc) {
    if (typeof (thumbMask_mc.thumbBox_mc[i]) == "movieclip") {
    removeMovieClip(thumbMask_mc.thumbBox_mc.getInstanceAtDepth(thumbMask_mc.thumbBox_mc[i].ge tDepth()));
    thumbMask_mc.thumbBox_mc._width = thumbMask_mc._width
    /*sampleRemoveAllButton.onRelease = function(){
    removeAllThumbs()
    LOAD LARGE IMAGES MOVIECLIP LOADER FUNCTION
    /*generic load object here we handle loading in external images etc
    this block of code loads the large images into the bright blue mc
    for instance, you could fade in/out big images or make a progress indicator
    using this block of script*/
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var listener:Object = new Object();
    listener.onLoadStart = function(target_mc:MovieClip) {
    //empty
    listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  {
    //amountLoaded = Math.floor((bytesLoaded/bytesTotal)*100);//calulate a loading percentage!
    listener.onLoadInit = function(target:MovieClip):Void  {
    //empty
    mcLoader.addListener(listener);
    MOUSE LISTENER
    //this handles the panning of the thumbnails
    mouseListener = new Object();
    mouseListener.onMouseMove = function() {
    if (thumbMask_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
    maskOver();//call the scroll function
    SCROLLER FUNCTION
    var scrollSpeed:Number = 5;
    var halfMaskWidth:Number = thumbMask_mc._width/2;
    var npixels:Number;
    var mcWidth:Number = thumbMask_mc.thumbBox_mc._width;
    var maskWidth:Number = Math.floor(thumbMask_mc._width);
    function slideThumbs() {
    // stop scrolling if we are off the mask and delete the enterframe event
    if (!thumbMask_mc.thumbBox_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
    delete this.onEnterFrame;
    // mouse over left half of slider:
    if (thumbMask_mc._xmouse>0 && thumbMask_mc._xmouse<thumbMask_mc._x+halfMaskWidth) {
    npixels = (halfMaskWidth-thumbMask_mc._xmouse)/halfMaskWidth*scrollSpeed;
    thumbMask_mc.thumbBox_mc._x += npixels;
    //stop sliding too far to the left
    if (thumbMask_mc.thumbBox_mc._x>=0) {
    thumbMask_mc.thumbBox_mc._x = 0;
    delete this.onEnterFrame;
    // mouse over right half of slider:
    if (thumbMask_mc._xmouse>halfMaskWidth && thumbMask_mc._xmouse<thumbMask_mc._x+thumbMask_mc._width) {
    npixels = (thumbMask_mc._xmouse-halfMaskWidth)/halfMaskWidth*scrollSpeed;
    thumbMask_mc.thumbBox_mc._x -= npixels;
    //stop sliding too far to the right
    if (thumbMask_mc.thumbBox_mc._x<=-(mcWidth-maskWidth)) {
    thumbMask_mc.thumbBox_mc._x = -(mcWidth-maskWidth);
    delete this.onEnterFrame;
    //function to do the scrolling man!
    function maskOver() {
    this.onEnterFrame = function() {
    slideThumbs();

    I am using Flash CS 4, like I mentioned earlier, I am making this site on some one's pre-made flash file. There is a movie symbol for loading the large images (called largeImage_mc). I resized this movie clip to 550x450 px (landscape). And positioned it at X=200 Y=0 (top left corner registration point or the anchor point).
    The movie clip could be dragged to any position. But images that are loaded into this bo is always aligning to the top left corner of this movie symbol.
    If I calculate the actual center of this image loading area (regarding its position on the window), it would be x=425, y=225.
    I hope my writing makes sence.
    actual site: www.chimeddorj.com

  • XML Gallery - Picture Display

    Well, with a bit of help from these forums, and some others,
    I've got almost all of the kinks worked out of a Flash/XML photo
    gallery that I've been working on.
    The only problem now is getting the full-size images to
    center themselves. See here:
    http://phenixdesigns.net/testing/art_index.html
    I've got that black box on the stage to show where the images
    will load. Their top left corner will begin at the top left corner
    of the box. That would be great if all of the full-size images were
    the same size.
    I'd like the images to load centered on the stage, but I'm
    not sure how to accomplish this. I've obviously got them showing up
    on the stage already, but I don't know what to do with XML, AS, or
    what else in order to get them all to be absolutely centered upon
    loading.
    Thanks!

    I'm not sure what you mean by telling you what it traces...
    not sure how to find that sort of thing out?
    But anyway... I made those changes, and it's still at the
    same point. No centering, just lining up where the "loader" MC is.
    Edit: Also, I've only changed the word "holder" to "loader"
    in the script, as "loader" is the MC where I want the images to
    load. Is this the only spot I've got to change something to
    "loader?" Should all references to "target" remain "target," or
    should they also be changed to "loader?"
    Thanks so much for the help!

Maybe you are looking for

  • My phone won't let me use imessage in a group chat

    I have an iPhone 5 and after updating to iOS 8 my group chat only is not letting me use imessage it is only letting me use text message. I've gone to settings> messages > send& receive and I see that my apple ID is in use and imessage is turned on bu

  • How to get peoplepicker multiple value in text box?

    Hi All, How to get multiple selection people-picker value into text box while using InfoPath? Thanks in advance!

  • Promotional Offer (Buy 1 Get 1 Free) doesn't Display in Quote

    Hi, Please Please Please help me in getting the solution. I Created a Promotional Goods offer in Marketing Online, with a Criteria of Buy 1 "A" Item and Get 1 "B" Item for Free. But when i attach the "A" Item in the Quote Level, Item "B" doesn't get

  • How do I improve Adobe Elements 10 use on my Mac?

    We purchased a iMac not too long ago and there is hardly anything on the harddrive, yet Elements keeps giving me a hard time and often freezes or will give me the error message "Unable to open file not enough memory" Am I able to uninstall and reinst

  • ITunes "Purchased" tab not showing on my iPad

    Hey guys, I hope I am in the right section of this support community page: Allthough iTunes in the Cloud is available in my country, the purchased tab is not appearing on iTunes on my iPad.  I tried signing out and and back in but nothing helps. Stra