XML and/or Action Script

i'm creating a photogallery which has 10 photos viewed
through XML. I've got next and previous buttons aswell. How can I
do to detect if its on the 10th photo the next button disappears
and if its viewing the first button the previous button disappears?
help pls help! 10x

I assume you are building an array containing the photos that
are on the XML file, withit you also know the length of the array,
or even the length of the items on your XML, so you just need to
create a simple if/else statement.. be aware that you also need to
check how many times a user has clicked each button.. sounds
complex but it isn't.. I think I can get you a piece of code soon..

Similar Messages

  • In Trying to convert my flash movie to the latest Flash format and from action script 2 to 3

    In Trying to convert my flash movie to the latest Flash format and from action script 2 to 3 I get this error message Scene 1, Layer 'Layer 3', Frame 1, Line 2, Column 7
    1119: Access of possibly undefined property showMenu through a reference with static type Class. This is the debug scrip this.loadVariables("_urls.txt") Stage.showMenu=false; stop(); I don't know how to fix this. Can any one Help. The movie loads to 99% then stops and reloads again. over and over again.

    Stage is a protected keyword in AS3 and it has no property showMenu
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.htm l

  • OS UDM's and Corrective action Script at a central Location

    Is that we can place the OS UDM's and Corrective action Script are to be placed at Target server side or can we place these scripts at a central location say on OMS/ OMR server and trigger from here. As if we change a particular script we need to propagate particular script to all location. Instead if we keep these at a central place we can replace that particular script at a single location.
    Please advise.
    Thanks.

    When creating an UDM, you need to create this for a specific Target like a database instance or host
    This means, when you want to create a SQL based UDM, you first need to select a database in OEM and next select the User Defined Metrics link that will allow you to create the UDM.
    After finishing the creation of a UDM, the UDM will be "owned" by the database you selected in OEM.
    This means, when having 50 databases, you are able to create several UDM's spread over all of these databases. This is a situations you don't want to get into. You most probably will want to reuse UDM on several or even all databases.
    To avoid UDM getting duplicated, being spread all over the pace you actually need a "library" where you would be able to locate the UDM's.
    Unfortunately there is not such a library in OEM. However if you decide to choose one of your databases for playing the role of a "library" at least you found a way to centrally locate all your UDM's.
    If you then want to apply one or more UDM's to several database you could create a monitoring template, include the UDM's you want to reuse on other databases and apply this template.

  • Help... link URL from XML to Flash Action Script 2

    I am trying to link a different URL to each of my files in XML and use this XML in Flash were I created a carousel. In the carousel, when you click on a picture I would like to insert a specific URL. Each picture will have a different URL (http://------------).
    Here are my codes:
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" />
    <icon image="icon2.png" tooltip="Investments" />
    <icon image="icon3.png" tooltip="Education" />
    <icon image="icon4.png" tooltip="Insurances" />
    <icon image="icon5.png" tooltip="Mortgages" />
    <icon image="icon6.png" tooltip="Retirement" />
    <icon image="icon7.png" tooltip="Business Owner" />
    <icon image="icon8.png" tooltip="Banking" />
    </icons>
    Flash Action Script 2:
    import mx.utils.Delegate;
    var numOfItems:Number;
    var radiusX:Number = 250;
    var radiusY:Number = 75;
    var centerX:Number = Stage.width/2;
    var centerY:Number = Stage.height/2;
    var speed:Number = 0.01;
    var perspective:Number = 60;
    var home:MovieClip = this;
    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
    var nodes = this.firstChild.childNodes;
    numOfItems = nodes.length;
    for(var i=0;i<numOfItems;i++)
      var t = home.attachMovie("item","item"+i,i+1);
      t.angle = i * ((Math.PI*2)/numOfItems);
      t.onEnterFrame = mover;
      t.toolText = nodes[i].attributes.tooltip;
      t.icon.inner.loadMovie(nodes[i].attributes.image);
      t.ref.inner.loadMovie(nodes[i].attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.onRelease = released;
    function over()
    home.tooltip.tipText.text = this._parent.toolText;
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
    home.tooltip._alpha = 100;
    function out()
    delete home.tooltip.onEnterFrame;
    home.tooltip._alpha = 0;
    function released()
    function moveTip()
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover ()
    this._x = Math.cos(this.angle) * radiusX + centerX;
    this._y = Math.sin(this.angle) * radiusY + centerY;
    var s = (this._y - perspective) / (centerY+radiusY-perspective);
    this._xscale = this._yscale = s * 100
    this.angle += this._parent.speed;
    this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
    speed = (this._xmouse-centerX)/10000;
    Thanks so much for the help.

    You should be able to add that data into your xml tags and then extract it in the AS2 onLoad function...
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" linkURL="http://www.someURL.com/somePage.html" />
    AS2:
    xml.onLoad = function()
    etc....
    t.onEnterFrame = mover;
    t.toolText = nodes[i].attributes.tooltip;
    t.urlLink = nodes[i].attributes.linkURL;
    etc...

  • Flv xml Stream Playlist action script help

    So if you go to this site:
    click here
    you will see a FLV player that has a list of videos that are
    pulled from a .xml file...
    The action script for this player is as such:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    rewindButton.onRelease = function() {
    ns.seek(0);
    playButton.onRelease = function() {
    ns.pause();
    var videoInterval = setInterval(videoStatus,100);
    var amountLoaded:Number;
    var duration:Number;
    ns["onMetaData"] = function(obj) {
    duration = obj.duration;
    function videoStatus() {
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    loader.loadBar._width = amountLoaded * 194.5;
    loader.scrub._x = ns.time / duration * 194.5;
    var vlist:XML = new XML();
    vlist.ignoreWhite = true;
    vlist.onLoad = function() {
    var videos:Array = this.firstChild.childNodes;
    for(i=0;i<videos.length;i++) {
    videoList.addItem(videos
    .attributes.desc,videos.attributes.url);
    ns.play(videoList.getItemAt(0).data);
    videoList.selectedIndex = 0;
    var vidList:Object = new Object();
    vidList.change = function() {
    ns.play(videoList.getItemAt(videoList.selectedIndex).data);
    videoList.addEventListener("change",vidList);
    vlist.load("videos.xml");
    I want to action script something that will make the videos
    play one after the other, get rid of the list on the right and have
    buttons on player that allow you to go to the next/previous video
    listed in the .xml file
    Its sort of like the player at
    click
    here
    I know this is a lot to ask, but I am currently in a jam and
    any help would be greatly appreciated...
    Thanks
    Matthelm88

    gotoAndLearn is a fantastic base to build off of.
    but
    i'm looking for the same thing... how do you get the files
    to play one after another?
    i've looked for everyhting ns. related and i can find any
    doc's on this one.
    i 've found the
    function complete_listener(eventObject:VideoEvent):void {
    if (my_FLVPlybk.source == "rentv1.flv") {
    my_FLVPlybk.play("rentv2.flv");
    else if (my_FLVPlybk.source == "rentv2.flv") {
    my_FLVPlybk.play("rentv3.flv");
    on the flash video live docs.. but i can't find anything on
    how to tie it into the XML.
    anything anyone can offer would be a huge help ...

  • I am trying to reinstall Flash CS4 professional as the action script is not working but now I am getting an error: 2 message when I use the original CD to try and reinstall

    I can't get the original disk to work on a reinstall.  I get the message
    AdobeColorCommonSetRGB
    Error:
    Error 2.
    I teach a class using this program on Macintosh computers running 10.9.5 and the action script is not working.  It will work on any program designed using the 10.8 but if you design any animation on 10.9.5 the action script will not work for the buttons

    You would have to manually delete the color profiles in question... Run the cleaner tool and see if it gets you started.
    http://www.adobe.com/support/contact/cscleanertool.html
    Mylenium

  • Action script 3 and adding code to buttons

    When I open a new doc and selct action script 3 it won't
    allow me to insert code by selcting the button on the stage. It
    does if I select action script 2. All my old pages update ok but if
    I make new buttons it wont take the code. CAn someone tell me what
    is going on???
    Thanks a lot

    If your in a bind at the moment, I would suggest not
    attempting to learn AS3. The system is very different, good, but
    different, the syntax structure is much more strict and most things
    have been revised to use a listener/broadcaster (or event
    dispatcher) model, as well as most coding being class oriented,
    additionally the graphic display structure is quite different.
    Now did you change your publish settings back to AS2? If so,
    you should still be able to apply the above code to a button
    instance. However, as Dave stated, even in AS2 the code is best
    used from the timeline, to do so with the code above (which the on
    handler above is meant for Object attachment) you need to write it
    like this:
    my_btn.onPress = function() {
    _root.loadMovie("graphic_arts/graphic_arts.swf");
    I would also consider using a MovieClipLoader and the
    loadClip method forloading swf files, as it gives you more control
    over the load targeting, progress reporting, and event
    notifications.
    All this said, to use a button and load a file in AS3, you
    need to add an event listener to the button instance and construct
    a responding function to the event, in this case the loading of a
    swf file. Additionally, in AS3 the MovieClipLoader class, as well
    as the loadMovie methods have been replaced by the Loader classes
    and must be used to load swf files. So construct a button in AS3
    you must write something like the following:

  • XML and AS2.0

    OK I have been going down one road for this and have taken a
    few wrong turns.
    A few things about what we are looking at:
    I am using Flash CS3 but I am using Action Script 1.0/2.0 for
    compatability purposes.
    What I have been able to do so far is create random instances
    of a movie clip to appear over a set amount of time but I need to
    go a bit further. The web application needs to be updated regularly
    and the best way I can think of doing that is with keeping all the
    variables in an XML. The problem is I am not sure how to format the
    XML properly to get Flash to read it and load the variables.
    I am creating an online version of a vision screening tool we
    use. The test is graphically simple just a collection of a few
    primitives on a dark background. There are basically two objects a
    fixation point and a stimulus. What I need to be able to do is
    this.
    Display either movieclip at (x,y) for (z)ms where x,y,& z
    are all variables loaded from an xml. I have asked questions along
    this line before but this is a different scope in case anyone wants
    to claim I double posted, this is quite different than they way I
    was doing it before.
    Any help with the XML or even any actionscript suggestions
    would be greatly appreciated.
    Thanks

    Okay, you still need to check what _root[oValue] is:
    trace (_root[oValue]);
    Is it a movie clip, undefined, string?
    shurleynova wrote:
    >
    quote:
    Originally posted by:
    Newsgroup User
    > If you put this on the frame within the clip itself
    (rather than on the
    > clip), you could use:
    >
    > this.onEnterFrame=function() {
    > _root[ovalue]._x=xValue;
    > _root[ovalue]._y=yValue;
    > }
    >
    > But maybe that's something you can implement when you
    get the initial
    > problem fixed.
    >
    > Patrick
    >
    > Patrick B wrote:
    > > Your notation is a bit archaic but we can work with
    it :)
    > >
    > > onClipEvent (enterFrame) {
    > > setProperty(_root[oValue],_x,xValue);
    > > setProperty(_root[oValue],_y,yValue);
    > >
    > > }
    > >
    > > Better still:
    > >
    > > onClipEvent (enterFrame) {
    > > _root[oValue]._x=xValue;
    > > _root[oValue]._y=yValue;
    > >
    > > }
    > >
    > > Just make sure xValue and yValue exist and are
    numbers and you should be
    > > okay. How does that work out?
    > >
    > > Patrick
    > >
    > >
    >
    >
    > Ok I know my syntax is a bit rusty but I am slowly
    learning to appreciate the
    > dot notation as a much easier way to read the code.
    >
    > so I went ahead and place this code on a movie clip
    >
    > onClipEvent (enterFrame) {
    > _root[oValue]._x=xValue;
    > _root[oValue]._y=yValue;
    >
    > }
    >
    > I checked the output window and the action script to
    make sure the xValue and
    > yValue were being read as numbers and that it refelcted
    that in the output I
    > have attached the action script below. Also this is what
    is in the output
    > window:
    >
    > Data loaded: true
    > object_type=stimuli
    > x_coordinates=25
    > y_coordinates=25
    > z_display_interval=200
    > object_type=stimuli
    > x_coordinates=85
    > y_coordinates=175
    > z_display_interval=200
    > object_type=stimuli
    > x_coordinates=325
    > y_coordinates=55
    > z_display_interval=200
    > object_type=stimuli
    > x_coordinates=115
    > y_coordinates=355
    > z_display_interval=200
    > object_type=fixation
    > x_coordinates=289
    > y_coordinates=229
    > z_display_interval=200
    >
    > Maybe I am looking at this wrong and maybe there is one
    other step I need to
    > include is what I keep thinking but I dont knwo what it
    is.
    >
    >
    >
    >
    > var timelineXML=new XML();
    >
    > timelineXML._context=this;
    > timelineXML.ignoreWhite=true;
    >
    > timelineXML.onLoad=function(success:Boolean) {
    > trace ('Data loaded: '+success);
    > this._context.parseXMLData(this.firstChild);
    > }
    > //onLoad
    >
    > function parseXMLData(data:XMLNode) {
    > for (var
    count:Number=0;count<data.childNodes.length;count++) {
    > var currentNode:XMLNode=data.childNodes[count];
    > var oValue:String=String(currentNode.attributes.omc);
    > var xValue:Number=Number(currentNode.attributes.xp);
    > var yValue:Number=Number(currentNode.attributes.yp);
    > var zValue:Number=Number(currentNode.attributes.zms);
    > trace ('object_type='+oValue);
    > trace ('x_coordinates='+xValue);
    > trace ('y_coordinates='+yValue);
    > trace ('z_display_interval='+zValue);
    >
    > }
    > }
    > //parseXMLData
    >
    > timelineXML.load('input.xml');
    >
    http://www.baynewmedia.com
    Faster, easier, better...ActionScript development taken to
    new heights.
    Download the BNMAPI today. You'll wonder how you ever did
    without it!
    Available for ActionScript 2.0/3.0.

  • Action script error on a button

    I have added following code on a button, btn_lab5, but I get
    an error msg ,"Must appear within on handler". Thanks in advance!!!
    btn_lab5.onRelease=function(){
    gotoAndStop("intro", 1);
    Thanks in advance!!!

    No, I don't have button within a button. But, Thanks for your
    input.
    Fortunately, I have found the solution by changing few things
    around. Here is what I was trying to do..
    1. Four buttons were placed on the same time line 15 frames
    apart.
    2. Added action script at each button and also tried adding
    seperate layer for action script but when I ran my movie same
    script played for every button.
    Finally, got frustrated and placed all the buttons at the
    same point in timeline and added action script by adding another
    layer.Visually I am not getting the desired result with buttons but
    code is working. I would really love to have buttons appear
    gradually on the screen. Let me know if any one of has any thoughts
    to share....
    Thanks a lot!!!!

  • Cs5 on a new pc transferring actions/scripts/pre-sets etc?

    I have just upgraded computers and re-installed CS5 on it.
    Is it possible to cut and paste actions/scripts/pre-sets etc from old pc to new one.
    If so how/where would I find them?
    Thank you
    Tim

    each program has its own location for its settings.  eg, ps:  http://helpx.adobe.com/photoshop/kb/preference-file-functions-names-locations.html

  • Action Script?

    Hi All,
    I have create a Application for transaction VA01. Can anybody tell me how to write Action script ?
    Please Help. ASAP.

    Hi,
    Transaction code for action script is WDK_APPL_REG
    1) There you need to register your Variant transaction and specify your floor plan
    either QAF or GAF or OIF in Applications.
    2) You have to spcify your different Floor Plan States like INI, S01, S01, CFN etc.
    3) For Floorplan states you should assign dynpro assignment ( i.e., Program name and screen number ).
    4) And u need to assign actions for every state.
    5) Next go to Script definition and assign action script and u need to record va01 transaction with SHDB, and submit program, dynpro, bdc filed value in batchinput data.
    6) If u want to raise any messages, click on Message Mapping and submit message name and number.
    Finally you need to save your action script.
    Best Regards,
    Vara Prasad.

  • How do I Action Script buttons, so the objects lay on the prior object clicked on, in Flash?

    Here's my idea but having problems with the actions scripting:
    Accessories and build your car application in Flash.
    I'm new to the Action Script 3 and I am trying to Action Script my custom graphics for a “build your own car”. Something similar to the Harley Davidson motorcycle builder https://www.harley-davidson.com/en_US/Content/Pages/H-D1/Bike-Builder.html#/locale__en_US/ model__FLD/year__2013
    I have all the graphics (multiple photos, photoshopped and cut out for the different car body colors. I'm doing the same with the car rim choices, etc) All the graphics are sized so they will lay on top of one another seamlessly but I don't know how to Action Script 3 the buttons so you can click on (ex: rim1, or rim2 , etc and see how it looks on car by pulling up the photo on top of the existing background car photo) .
    How would I Action Scrip my "color button" to come up with 10 color swatches I’ve designed and then when you click on the color swatch (ex: red). It will then put the graphic red of the car body that I have already made on top of the existing background photo of the car and so on for each color button?
    Thanks for the help in advance!

    I'm not sure if I do know how to correctly create the Wheels classes and use action scripting. Are the classes you're referring to the parts I labeled btn1, btn2 below? Here's what I have under the main Timeline labeled actions:
    stop() ;
    // Color button code //
    colorbtn.addEventListener(MouseEvent.CLICK, btn1);
    function btn1 (event:MouseEvent) :void{
        gotoAndStop (2);
    // Rims button code //
    rimsbtn.addEventListener(MouseEvent.CLICK, btn2);
    function btn2 (event:MouseEvent) :void{
        gotoAndStop (3);
    //rim1 button code //
    rim1.addEventListener(MouseEvent.CLICK, btn3);
    function btn3 (event:MouseEvent) :void{
        gotoAndStop (4);
    I'm not sure how to fit your code in that you said in your first comment. The //rim1 button code // doesn't currently work.
    I think if I had a sequence of the action script 3 with a button/movie clip layed out for me, I could organize accordingly for my buttons and movie clips. Since they would work the same just would have to have different labels.

  • XML Gallery won't work remotely - Action Script issues

    I created an XML scrolling thumbnail gallery using a
    tutorial
    found here
    I then had to alter the action script to get my thumbnails to
    display properly -- they were spaced out or overlapping each other
    and not in the sequence specified in the XML file. The new code
    works great locally, but the thumbnails and larger image refuse to
    load remotely in every browser i've tried. Any thoughts on how to
    alter the action script to load the gallery?!?! I'm not much
    experienced in Flash so any help would be most appreciated.
    You can find the page with my unloadable gallery
    here
    You can see my action script in my
    Flash
    CS3 file
    Thanks!
    Joe.

    Hi --
    I clicked on the link for your gallery and the images load??
    Both when I
    click on the image or when I click the "next" and "previous"
    buttons --
    although the "hit" area for the buttons is below the actual
    text so you
    should adjust that on those buttons. I would also recommend
    not making the
    text selectable so the cursor won't change to the "I bar"
    Rich
    "joesavy" <[email protected]> wrote in
    message
    news:fcp3qi$4ak$[email protected]..
    >I created an XML scrolling thumbnail gallery using a
    >
    http://www.kirupa.com/developer/mx2004/thumbnails.htm
    >
    > I then had to alter the action script to get my
    thumbnails to display
    > properly
    > -- they were spaced out or overlapping each other and
    not in the sequence
    > specified in the XML file. The new code works great
    locally, but the
    > thumbnails
    > and larger image refuse to load remotely in every
    browser i've tried. Any
    > thoughts on how to alter the action script to load the
    gallery?!?! I'm not
    > much
    > experienced in Flash so any help would be most
    appreciated.
    >
    > You can find the page with my unloadable gallery
    >
    http://www.sullivancreative.com/clients/se-07-7-24/se_website/gallery.html
    >
    > You can see my action script in my
    >
    http://www.sullivancreative.com/clients/se-07-7-24/se_website/xml_photogallery_s
    > crollthms_fix.fla
    >
    > Thanks!
    > Joe.
    >
    >

  • XML Action Script Help

    Im taking over a job and I was given the original flash file
    that doesnt seem to be working properly.
    It a thumbnail menu that loads through xml...the images work
    fine but the Links & Titles do not load.
    Nor does the rollover effect. Here what I have.
    Action Script:
    Stage.align = "TL";
    Stage.scaleMode = "noscale";
    preloader._visible = true;
    thumbs_line._visible = false;
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    my_xml = new XML();
    my_xml.ignoreWhite = true;
    if (_parent.xml_file == undefined) {
    my_xml.load((String(_url.slice(0, (_url.length-3))))+"xml");
    } else {
    my_xml.load(_parent.xml_file);
    my_xml.onLoad = function(ok) {
    if (ok) {
    process_xml();
    } else {
    trace("XML not loaded");
    function process_xml() {
    total_images = my_xml.childNodes[1].childNodes.length-1;
    gallery_width =
    Number(my_xml.childNodes[0].childNodes[0].attributes.gallery_width);
    gallery_height =
    Number(my_xml.childNodes[0].childNodes[0].attributes.gallery_height);
    max_thumb_height =
    Number(my_xml.childNodes[0].childNodes[0].attributes.max_thumb_height);
    thumbs_space =
    Number(my_xml.childNodes[0].childNodes[1].attributes.thumbs_space);
    thumb_border =
    Number(my_xml.childNodes[0].childNodes[1].attributes.thumb_border);
    image_border =
    Number(my_xml.childNodes[0].childNodes[1].attributes.image_border);
    fade_in_seconds =
    Number(my_xml.childNodes[0].childNodes[2].attributes.fade_in_seconds);
    fade_out_seconds =
    Number(my_xml.childNodes[0].childNodes[2].attributes.fade_out_seconds);
    thumb_fade_seconds =
    Number(my_xml.childNodes[0].childNodes[2].attributes.thumb_fade_seconds);
    fade_in_seconds += 0.01;
    fade_out_seconds += 0.01;
    thumb_fade_seconds += 0.01;
    thumbs_line._y =
    gallery_height-max_thumb_height-(4*thumbs_space);
    thumbs_line.thumbs_bg._width = gallery_width;
    thumbs_line.thumbs_mask._width = gallery_width;
    thumbs_line.thumbs_bg._height =
    max_thumb_height+thumbs_space*2+thumb_border*2;
    thumbs_line.thumbs_mask._height =
    max_thumb_height+thumbs_space*2+thumb_border*2;
    thumbs_line._visible = true;
    load_thumb(0);
    preloader._x = int((gallery_width-preloader._width)/2);
    preloader._y = int(thumbs_line._y/2-preloader._height/2);
    max_image_height =
    gallery_height-max_thumb_height-thumbs_space*6;
    load_image(0);
    this["link"+t] =
    my_xml.childNodes[1].childNodes[t].attributes.link;
    function load_thumb(t) {
    thumbs_line.thumbs.createEmptyMovieClip('thumb'+t,
    thumbs_line.thumbs.getNextHighestDepth());
    thumbs_line.thumbs['thumb'+t]._y =
    thumbs_space+thumb_border;
    thumbs_line.thumbs['thumb'+t]._x =
    thumbs_space+thumb_border;
    if (t>0) {
    thumbs_line.thumbs['thumb'+t]._x =
    thumbs_line.thumbs['thumb'+(t-1)]._x+thumbs_line.thumbs['thumb'+(t-1)]._width+thumbs_spac e;
    thumbs_line.thumbs['thumb'+t].image_number = t;
    thumbs_line.thumbs['thumb'+t].onRollOver =
    thumbs_line.thumbs['thumb'+t].attachMovie("thumbov_mc",
    "thumbov_mc", 10);
    thumbs_line.thumbs['thumb'+t].onRelease = function() {
    tellTarget (thumbs_line.thumbs['thumb'+t]) {
    var loadListener:Object = new Object();
    loadListener.onLoadInit = function(target_mc:MovieClip) {
    preloader.visible = false;
    thumbs_line.thumbs['thumb'+t].attachMovie("border_grey",
    "border_grey", 10);
    thumbs_line.thumbs['thumb'+t].border_grey._x -=
    thumb_border;
    thumbs_line.thumbs['thumb'+t].border_grey._y -=
    thumb_border;
    thumbs_line.thumbs['thumb'+t].attachMovie("border_white",
    "border_white", 20);
    thumbs_line.thumbs['thumb'+t].border_white._x -=
    thumb_border-1;
    thumbs_line.thumbs['thumb'+t].border_white._y -=
    thumb_border-1;
    if (target_mc._height>max_thumb_height) {
    ratio = target_mc._width/target_mc._height;
    target_mc._height = max_thumb_height;
    target_mc._width = int(target_mc._height*ratio);
    thumbs_line.thumbs['thumb'+t].border_grey._width =
    target_mc._width+thumb_border*2;
    thumbs_line.thumbs['thumb'+t].border_grey._height =
    target_mc._height+thumb_border*2;
    thumbs_line.thumbs['thumb'+t].border_white._width =
    target_mc._width+thumb_border*2-2;
    thumbs_line.thumbs['thumb'+t].border_white._height =
    target_mc._height+thumb_border*2-2;
    if (t<total_images) {
    t++;
    load_thumb(t);
    thumbs_width = thumbs_line.thumbs._width;
    thumbs_right_limit = 0;
    thumbs_left_limit =
    0-thumbs_width+int(gallery_width-thumbs_space-thumbs_space);
    var thumb_fade_in:Tween = new Tween(target_mc, "_alpha",
    none.easeIn, 0, 100, thumb_fade_seconds, true);
    var thumb_loader:MovieClipLoader = new MovieClipLoader();
    thumb_loader.addListener(loadListener);
    createEmptyMovieClip("img", 30);
    thumb_loader.loadClip(this.my_xml.childNodes[1].childNodes[t].attributes.small,
    img);
    thumbs_line.onMouseMove = function() {
    if (_xmouse>=thumbs_line.thumbs_bg._x and
    _xmouse<=thumbs_line.thumbs_bg._width and
    _ymouse>=thumbs_line._y and
    _ymouse<=thumbs_line._y+thumbs_line._height) {
    onRollOver =
    thumbs_line.thumbs['thumb'+t].attachMovie("thumbov_mc",
    "thumbov_mc", 10);
    onEnterFrame = function () {
    if (_xmouse<(gallery_width/2)-10 and
    thumbs_line.thumbs._x<thumbs_right_limit) {
    thumbs_line.thumbs._x -=
    int((_xmouse-thumbs_line.thumbs_bg._width/2)/(100-scroll_speed));
    if (thumbs_line.thumbs._x>thumbs_right_limit) {
    thumbs_line.thumbs._x = thumbs_right_limit;
    if (_xmouse>gallery_width/2+10 and
    thumbs_line.thumbs._x>thumbs_left_limit) {
    thumbs_line.thumbs._x -=
    int((_xmouse-thumbs_line.thumbs_bg._width/2)/(100-scroll_speed));
    if (thumbs_line.thumbs._x<thumbs_left_limit) {
    thumbs_line.thumbs._x = thumbs_left_limit;
    } else {
    onEnterFrame = undefined;
    this["link"+t] =
    my_xml.childNodes[1].childNodes[t].attributes.link;
    this["the_target"+t] =
    my_xml.childNodes[1].childNodes[t].attributes.target;
    XML File
    <?xml version="1.0" encoding= "UTF-8" ?>
    <options>
    <option gallery_width="730" gallery_height="450"
    max_thumb_height="96"/>
    <option scroll_speed="75" thumbs_space="0"
    thumb_border="1" image_border="2"/>
    <option fade_in_seconds="1.5"
    thumb_fade_seconds="1.5"/>
    </options>
    <gallery>
    <img small="../flash/hosts/images/pic7.jpg" title="Name
    1" link="hosts.asp"/>
    <img small="../flash/hosts/images/pic1.jpg" title="Name
    2" link="bio1.asp"/>
    <img small="../flash/hosts/images/pic2.jpg" title="Name
    3" link="bio2.asp"/>
    <img small="../flash/hosts/images/pic3.jpg" title="Name
    4" link="bio3.asp"/>
    <img small="../flash/hosts/images/pic5.jpg" title="Name
    5" link="bio4.asp"/>
    <img small="../flash/hosts/images/pic6.jpg" title="Name
    6" link="bio5.asp"/>
    <img small="../flash/hosts/images/pic8.jpg" title="Name
    7" link="bio6.asp"/>
    <img small="../flash/hosts/images/pic9.jpg" title="Name
    8" link="bio7.asp"/>
    </gallery>
    Thier is a dynamic Text field in the roll over effect that
    should contain the "title"
    the rollover MC name is: thumbov_mc
    the dynamic text field is labeled: title
    And the links are not working either?
    Does anyone see the problem?
    Thank You So Much for you help in Advance

    If you think you can help just let me now and ill email you
    the link to where this menu is...i dont want to post it for
    everyone to see..thanks

  • Designer looking for Action Script/XML galleries

    I am designer. I know XHTML and CSS3, but am really having lots of trouble learing Action Script and XML.
    I need to create a photo gallery for a client and am looking for resources.
    I will have to buy a pre-coded gallery and plug in my own photos.  Looking for suggestions on where to look.
    Thanks

    you can use google to search for premade galleries:  flash as3 photo gallery template.
    if you want a custom made one, send me an email via my website:  www.kglad.com

Maybe you are looking for

  • Rep-1401 Error

    Hi , How can I solve below mentioned problem? In report it is showing the Error like "Rep-1401 'Desc_thickformula' Fatal PL/SQL error occured ora-06502 PL/SQL numeric or value error". Before this report is working fine. No modification done in the re

  • TCP Listen vi does not work in Labview RT 7.0

    I'm trying to use a TCP Listener to accept connections from another PC on the local network. When running the program with Labview 7.0 all works fine and I'm able to receive IP packets from the remote PC. However, when I run it in Labview RT 7.0, the

  • Apple tv Slow download

    Films need nearly tío hours to be downloaded.

  • Printout missing characters, Mac

    Hi we have a rather odd problem and as I am not too much into Macintosh and Adobe Acrobat I can't seem to find the solution. We have official school documents that needs to be printed out, the properties of affected PDFs are produced by Oracle PDF dr

  • Viewing issues in Photoshop CC

    Has anyone seen whacky views such as the squigglies shown below in the new PS CC: Background - same image of course, yet these clips are from 2 different machines that are pretty much the same build.  If anything, the whacky view has a newer more pow