How to fit a pre-built photogallery in a 800x600 area?

hi all.
I've downloaded a prebuilt gallery .fla (570x350) from this lesson http://www.flashmagazine.com/Tutorials/detail/as3_photo_gallery/ to insert in my project (800x600).
I don't understand where to fix it to adapt on my site.
I've copy the fotograms and the AS3 code from the original file and paste on the mine(I've used only 10images), it works, but I don't know where I can fix this problems:
1) the gallery is over the menu and I would like to fit in the center.
2) if I click on the image (randomly) the result is the same, I've the pic over the menu, and I would like to center
The code is in AS3 and available here http://www.flashmagazine.com/Tutorials/detail/as3_photo_gallery/
Thanks for the help.

If can help,  this is the button Thumbnail.as
package {
02.    import flash.display.Sprite;
03.    import fl.containers.UILoader;
04.    import caurina.transitions.*;
05.    import flash.events.MouseEvent;
06. 
07.    public class Thumbnail extends Sprite {
08.        private var nume:String;
09.        private var url:String;
10.        private var id:int;
11.        private var loader:UILoader;
12. 
13.        function Thumbnail(source:String,itemNr:int,numeThumb:String):void {
14.            url = source;
15.            id = itemNr;
16.            this.nume = numeThumb;
17.            drawLoader();
18.            addEventListener(MouseEvent.MOUSE_OVER,onOver);
19.            addEventListener(MouseEvent.MOUSE_OUT,onOut);
20.            scaleThumb();
21.        }
22.        private function drawLoader():void {
23.            loader = new UILoader();
24.            loader.source = url;
25.            loader.mouseEnabled = false;
26.            loader.x = -50;
27.            loader.y = -50;
28.            addChild(loader);
29. 
30.        }
31.        private function onOver(event:MouseEvent):void {
32.            Tweener.addTween(this, {scaleX:1,scaleY:1, time:1, transition:"easeoutelastic"});
33.            Tweener.addTween(this, {alpha:1, time:1, transition:"easeoutelastic"});
34.        }
35.        private function onOut(event:MouseEvent):void {
36.            Tweener.addTween(this, {scaleX:.9,scaleY:.9, time:1, transition:"easeoutelastic"});
37.            Tweener.addTween(this, {alpha:.5, time:1, transition:"easeoutelastic"});
38.        }
39.        private function scaleThumb():void {
40.            this.scaleX = .9;
41.            this.scaleY = .9;
42.            this.alpha = .5;
43.        }
44.    }
45.}
and this is the actionscript for the timeline
import fl.containers.UILoader;
import caurina.transitions.*;
//---------loading the external xml file-------
var urlRequest:URLRequest = new URLRequest("pics.xml");
var urlLoader:URLLoader = new URLLoader();
var myXML:XML = new XML();
var xmlList:XMLList;
myXML.ignoreWhitespace = true;
urlLoader.addEventListener(Event.COMPLETE,fileLoaded);
urlLoader.load(urlRequest);
//--------holds the paths to the thumbnails-------
var arrayURL:Array = new Array();
//--------holds the paths to the big photos-------
var arrayName:Array = new Array();
//--------holds the thumbnail objects-------
var holderArray:Array = new Array();
//--------represents the number of collumns-------
var nrColumns:uint = 5;
//-------represents the container of our gallery
var sprite:Sprite = new Sprite();
addChild(sprite);
var thumb:Thumbnail;
//-------- the thumbnails container-------
var thumbsHolder:Sprite = new Sprite();
sprite.addChild(thumbsHolder);
//-------- the photoLoader container-------
var loaderHolder:Sprite = new Sprite();
loaderHolder.graphics.beginFill(0xffffff,1);
loaderHolder.graphics.drawRect(0,0,550,330);
loaderHolder.graphics.endFill();
loaderHolder.x = 1000;
loaderHolder.y = 10;
sprite.addChild(loaderHolder);
//-------- loads the big photo-------
var photoLoader:UILoader = new UILoader();
photoLoader.width = 540;
photoLoader.height = 320;
photoLoader.y = 5;
photoLoader.x = 5;
photoLoader.buttonMode = true;
photoLoader.addEventListener(MouseEvent.CLICK,onClickBack);
loaderHolder.addChild(photoLoader);
/* we loop through the xml file
populate the arrayURL, arrayName and position the thumbnalis */
function fileLoaded(event:Event):void {
     myXML = XML(event.target.data);
     xmlList = myXML.children();
     for (var i:int=0; i<xmlList.length(); i++) {
          var picURL:String = xmlList[ i ].url;
          var picName:String = xmlList[ i ].big_url;
          arrayURL.push(picURL);
          arrayName.push(picName);
          holderArray[ i ] = new Thumbnail(arrayURL<i>,i,arrayName<i>);
          holderArray[ i ].addEventListener(MouseEvent.CLICK,onClick);
          holderArray[ i ].name = arrayName<i>;
          holderArray[ i ].buttonMode = true;
          if (i<nrColumns) {
               holderArray[ i ].y = 65;
               holderArray[ i ].x = i*110+65;
          } else {
               holderArray[ i ].y = holderArray[i-nrColumns].y+110;
               holderArray[ i ].x = holderArray[i-nrColumns].x;
          thumbsHolder.addChild(holderArray[ i ]);
//----handles the Click event added to the thumbnails--
function onClick(event:MouseEvent):void {
     photoLoader.source = event.currentTarget.name;
     Tweener.addTween(thumbsHolder, {x:-650, time:1, transition:"easeInElastic"});
     Tweener.addTween(loaderHolder, {x:10, time:1, transition:"easeInElastic"});
     Tweener.addTween(thumbsHolder, {alpha:0, time:1, transition:"linear"});
     Tweener.addTween(loaderHolder, {alpha:1, time:1, transition:"linear"});
//----handles the Click event added to the photoLoader----
function onClickBack(event:MouseEvent):void {
     Tweener.addTween(thumbsHolder, {x:0, time:1, transition:"easeInElastic"});
     Tweener.addTween(loaderHolder, {x:1000, time:1, transition:"easeInElastic"});
     Tweener.addTween(thumbsHolder, {alpha:1, time:2, transition:"linear"});
     Tweener.addTween(loaderHolder, {alpha:0, time:2, transition:"linear"});
}</i></i></i>

Similar Messages

  • How to combine SOA pre-built Virtual Machine

    Hi ,
    I have downloaded oracle provided SOA pre-built VM. There are 7 files that need be combinted to produce 1 file that Oracle Virtual Box can recognize and import.
    http://www.oracle.com/technetwork/middleware/soasuite/learnmore/vmsoa-172279.html
    I can't find a good way to combine it. I have WinZip installed in my xp machine. Can't extract any of the file with it.
    Any idea?
    Thanks in advance.
    Lisan

    The files are in 7zip format, see http://www.7-zip.org/ for the utility to extract them.

  • How to load the pre-built dashboards?

    Hi all,
    I am experimenting with OBIEE with BI APPS and DAC on a Oracle 11g database.
    I managed to do a complete ETL run in the DAC from a Peoplesoft HCM environment. With the HR Workforce module, so that is loaded in to the Oracle database.
    I have configured all the variables in the BI administration tool for the OracleBIAnalyticsApps.rpd repository. And in Enterprise Manager I have imported that repository.
    Now I want to test the pre-build HR workforce dashboard with OBIEE. But how do I do this? At the moment I only get the SampleApplite when i go to http://oracletest:7001/analytics.
    Can anyone please help me?

    Hi,
    Did you install OBIA? If Yes, then OracleBiData will have prebuilt web catalog available in web catalog folder. modify instanceconfig.xml to point it to prebuilt web catalog and restart the presentation server. you will be all set.
    Thanks
    Jay.

  • Localizing pre-built web beans

    Hello.
    I wonder how you localize the pre-built web beans, such as FindForm, EditForm etc, to a different language like Swedish. I saw in the online help that you could do it for your java files, but these aren't mine now are they... ;)
    But it must be possible, I can't use them with english text since the program I'm constructing is for swedish people only.
    Please help me,
    /Janne
    Thanks Laura for all the help I've received

    Hi,
    We do provide the source for these classes in jbohtmlsrc.zip for the purposes of localization amoung other things.
    You can find this archive in JDEV_HOME\lib.

  • Pre-built website businesses how to get into dreamweaver?

    Hello,
    I just purchased a monthly  membership to a website that is selling "scripts". Pre-built website businesses  that I am able to download and edit as i like. I also recently dowloaded  dreamweaver and look forward to learning how to use it. I'm a novice with html,  web design, etc and know dreamweaver is pretty "intense". I tried to get these  files "php" and "css" into dreamweaver and I'm having difficulty. Is there some  easy way this is done that I'm not able to find in my books and online material?  thanks!

    Hi
    Unfortunately without knowing what the 'pre-built' sites contain it will be difficult to say if they can be used 'as is' in dreamweaver.
    Many of these pre-built sites contain templates and include files, and depending upon the type of template used, you may require a plug-in to use them in dreamweaver, the good new is that most of the common template systems such as 'smarty', do have dreamweaver extensions available.
    The first thing to do is set up a testing server with a server side scripting language as required by the pre-built site. If it is a php/MySQL site then see this article for setting up a testing server -  http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html, if it is asp then try this one -  http://www.adobe.com/devnet/dreamweaver/articles/setting_up_asp.html, should it be some other then please let me know.
    Once you have your testing server of choice set-up, copy the files to a folder in the testing servers htdocs or www.root folder and define your site in the dreamweaver site definitions, to do this see -  http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html, this article is for php but the steps required are the same.
    Should your site use templates such a smarty, then a search of the web for smarty (replace this with your template name), dreamweaver extension, should find the dreamweaver extension you require, failing this try searching the dreamweaver extensions site at -  http://www.adobe.com/cfusion/exchange/index.cfm?event=productHome&exc=3&loc=en_us. There are also many tutorials and how-too's on the dreamweaver developers center pages at -  http://www.adobe.com/devnet/dreamweaver/?view=home, to help you get started with dreamweaver.
    PZ

  • How to demonstrate pre-built Oracle BI capabilities?

    Hi Forum,
    Can anyone give me insight, on how to demonstrate Oracle BI capabilities to show the pre-built reports and dashboards with data?
    Please explain me the right approach for showcasing the capabilities of Oracle BI.
    Thanks

    HOW TO VIEW DATA IN PRE-BUILT ANALYTICS DASHBOARDS AND REPORTS

  • HOW TO VIEW DATA IN PRE-BUILT ANALYTICS DASHBOARDS AND REPORTS

    HI FOLKS,
    I WANT TO SEE DATA IN THE REPORTS OF PRE-BUILT ANALYTICS DASHBOARDS? EG: AUTOMOTIVE, SALES, SERVICE DASHBOARDS. SO WHAT IS THE COMPLETE PROCESS TO SET UP THIS ENVIRONMENT. I'M USING SIEBEL ANALYTICS VERSION 7.8.5.
    THANKS IN ADVANCE
    VJ

    Hi,
    I am new to Business Intelligence Applications and keen on learning it.
    I know Informatica and OBIEE(Not a very experienced person).
    I have installed BIA on my local windows machine.
    I am using Oracle Apps as the source.
    In the execute tab I selected the HR-Oracle 11510 execution plan and ran it but it failed.
    The workflow error log says the following:
    "ERROR : TM_6292 : (2928|2336) Session task instance [SIL_InsertRowInRunTable]: TM_6193 [Error occured during expansion of DB connection parameters [Database connection name DataWarehouse for database connection variable $DBConnection_OLAP is not well defined.
    ERROR : TM_6292 : (2928|2336) Session task instance [SIL_InsertRowInRunTable]: TM_6270 [Error: Variable parameter expansion error.].
    ERROR : TM_6292 : (2928|2336) Session task instance [SIL_InsertRowInRunTable]: CMN_1761 [Timestamp Event: [Tue Feb 26 15:59:35 2008]].
    ERROR : TM_6292 : (2928|2336) Session task instance [SIL_InsertRowInRunTable]: TM_6226 [ERROR:  Failed to initialize session [SIL_InsertRowInRunTable]].
    ERROR : LM_36320 [Tue Feb 26 15:59:37 2008] : (1276|3864) Session task instance [SIL_InsertRowInRunTable]: Execution failed.
    WARNING : LM_36331 : (1276|3864) Session task instance [SIL_InsertRowInRunTable] failed and its "fail parent if this task fails" setting is turned on. So, Workflow [SIL_InsertRowInRunTable] will be failed.
    ERROR : LM_36320 : (1276|3864) Workflow [SIL_InsertRowInRunTable]: Execution failed."..
    I think I have missed few steps here and there.. I am struck up here.. I don't know what to do... I think its the problem connecting to the source and target schema.. can you please help me out?

  • How to view pre-built Dashboards and Reports of Oracle BI- Apps?

    Hi All,
    We have sucessfuly installed and configured the Oracle Apps, and also we configured the OracleBIAnalyticsApps.rpd and we are able to view the different subject areas.
    But we are facing problem in viewing any prebuilt dashboard or report.
    Is it possbile to view pre-built Dashboards and Reports of Oracle BI- Apps if we dont have any ERP applicaton as a source?
    As we dont have any ERP application we have loaded the data from the sample flat files to the Analytics warehouse.
    Any help would be highly appreciable.
    Regards,
    Manmohan Sharma

    Hi Damon,
    Thanks a lot.
    Now I understand that we have to have ERP data source if want to view the prebuild Dashborads and reports.
    Could you please provide the path to get Prebuilt Dashboard & reports ?
    Regards,
    Manmohan Sharma

  • Prompts in Reports similar to Pre-built reports??

    Hi All,
    There is a pre-built report called 'Top 10 opportunities' in 'Pipeline Analysis'. When we execute the report, it shows the prompts at the top (Fiscal Quarter, Fiscal year, Region). And depending upon the value user selects in these prompts the report data changes
    I copied this report in different folder and tried to execute it through there. But then it don't give this prompts as in pre-built reports. Do you know how to connect these kind of prompts to the reports??
    I tried to create a Dashboard prompt and link it to the report. But then it only works if I execute it through dashboard and if tried to execute the report from Report Tab then it does not show this prompts.
    Please let me know if you have any input/suggestion on this
    Thanks & Regards
    S

    Hi All,
    I don’t think pre built reports are designed using narrative reports. I think these are designed by using dashboard prompts. We could do the same and design a dashboard page with prompt on top but it will not work in direct report.
    The alternate to do the similar prompts in report is by using the pivot table view (but pivot view will work if you have at least one matrix field). So in pivot view you can define the prompts on top and filter the report by that. But the disadvantage of pivot prompts compare to dashboard prompts is, these will be slow.
    Try out by pivot view. Hope should help
    Dinesh
    CRMIT

  • Including a Pre-Built LLB in Application Builder 8.X

    I have just recently updated some old code to 8.5.1. This code contains many dynamic calls to VIs located in pre-built LLBs (LLBs that were saved prior to application builder). This application is also compatible with a priority plug-in architecture. So when creating an application or installer in app builder 8.X, how does one include a LLB file? I do not wish to build it. I just want to include it the same way you may include a text file or someother type of source file. LLB files do not show up as individual files in the Project Manager.

    AstroGlen wrote: 
     I would like to create an installer that uninstalls the previous version of software (which was written in 7.1.1). I am assuming it is necessary to make edits to the "registry" category in the installer properties. I am also assuming that I would need to enter the product code for my application. This is the code found in the 7.1.1 application builder \ installer settings \ Properties button. But i do not know the particulars of what needs to be done.
    I think when you install an application created/built using a higher version of LV, it ll automatically overwrite any previous version(s) of that application installed in the target PC. We may not need it to be uninstalled manually. Did you try this?
    - Partha
    LabVIEW - Wires that catch bugs!

  • Pre-Built EBS Analytics with BAM and EBS adapters on FM

    Are there any pre-built business analytics dashboards/ reports installable in BAM SOA 11g for Oracle EBS 11.5.10?
    If so, where do I download and what other components are required to publish these?
    Thanks
    Edited by: user6739500 on May 21, 2010 3:08 PM

    Hi there
    I have a Technote that shows how the information can be published from EBS to BAM. In addition you could create an end to end visibility across the products e.g. B2B - BPEL - EBS - Financials etc by raising the events to BAM .
    There is no out of the box dashboards available today. However, i have a number of customers who are doing this use case by themselves or through some SI/Oracle consulting.
    can we contact you offline to discuss your requirement?
    http://www.oracle.com/technology/products/integration/bam/11g/technotes11g/whitepaperBAM_E-BusinessSuiteIntegration.pdf
    There are certified adapters available for EBS to FM as well.
    Regards
    Payal
    Edited by: PayalS on May 21, 2010 4:25 PM

  • Pre-built virtual machine VERR_LDR_GENERAL_FAILURE in vbox 3.2.10

    I am trying to run the SOA-BPM pre built virtual machine in http://www.oracle.com/technetwork/middleware/soasuite/learnmore/vmsoa-172279.html with vbox 3.2.10 r66523 (latest) but after loading and trying to start the VM I get an error. I transcribed the logs below. Anyone knows how to fix it? Or at least know a version of vbox that works with that VM?
    00:00:45.058 VirtualBox 3.2.10 r66523 win.x86 (Oct 8 2010 15:56:50) release log
    00:00:45.058 Log opened 2010-11-09T22:23:00.548144700Z
    00:00:45.058 OS Product: Windows XP Professional
    00:00:45.058 OS Release: 5.1.2600
    00:00:45.058 OS Service Pack: 3
    00:00:45.755 DMI Product Name: OptiPlex 755
    00:00:45.762 DMI Product Version:
    00:00:45.765 Host RAM: 3316MB RAM, available: 2626MB
    00:00:45.765 Maximum user application address: 0xbffeffff
    00:00:45.765 Maximum allowed guest RAM size: 2048MB
    00:00:45.765 Executable: C:\PROGRA~1\Oracle\VIRTUA~1\VirtualBox.exe
    00:00:45.765 Process ID: 1880
    00:00:45.765 Package type: WINDOWS_32BITS_GENERIC
    00:00:45.921 pdmR3LoadR0U: pszName="VMMR0.r0" rc=VERR_LDR_GENERAL_FAILURE
    00:00:45.933 VMSetError: D:\tinderbox\win-3.2\src\VBox\VMM\VM.cpp(549) vmR3CreateU; rc=VERR_LDR_GENERAL_FAILURE
    00:00:45.933 VMSetError: Failed to load VMMR0.r0
    00:00:45.933 VMSetError: D:\tinderbox\win-3.2\src\VBox\VMM\VM.cpp(323) VMR3Create; rc=VERR_LDR_GENERAL_FAILURE
    00:00:45.933 VMSetError: Unknown error creating VM
    00:00:45.933 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={6375231a-c17c-464b-92cb-ae9e128d71c3} aComponent={Console} aText={Failed to load VMMR0.r0 (VERR_LDR_GENERAL_FAILURE).
    00:00:45.935 Unknown error creating VM (VERR_LDR_GENERAL_FAILURE)} aWarning=false, preserve=false
    00:00:46.013 Power up failed (vrc=VERR_LDR_GENERAL_FAILURE, rc=E_FAIL (0X80004005))

    I had the same issue. Upgrading Virtual box from 4.1.16 to 4.1.20 solved the problem.

  • My new partner site has none of the pre-built content discussed in the documentation

    I am a new premium partner and I am very confused.  I have found many great support docs and tutorials that want to help me get my new partner site up and running, but none of the pre-built content that is discussed in these articles exists in my partner site.  There is one page and one page only (home/index) in my new partner site.  I have a support ticket that I submitted 47 hours ago and was escalated 36 hours ago and I still have no resolution.  Can anyone help?  If this discussion falls into the hands of a BC support person, can you PLEASE access ticket #OBNW4395487?  I have a client waiting for me to take his site live but I cannot do so without first setting up a payment gateway in my partner site that allows for recurring billing.  Thank you!  - Jack

    Hi Jack,
    Go to your partner portal > tools and you'll find http://syd.worldsecuresystems.com/CatalystHelp/PartnerContent/Unbranded-Partner-Site-Conte nt.zip link there. You can use that content for your partner site. There are also instructions there on how to implement it. That's if you want a templated partner site. Otherwise you can always transfer your existing portfolio site to your BC site or whip up something nice and unique.
    Cheers,
    mario

  • Dreamweaver CS5.5 pre-built flash skins

    How do I add a full screen button option to the Dreamweaver pre-built flash skins?

    Don't use Flash.  It's a dead web technology because the list of supporting devices is shrinking each day.  To reach the widest possible audience, you should use HTML5 <video> instead of Flash.
    Copy & paste this code into a new, blank document.  Save as test.html. 
    Change YourVideo.ogg, ....mp4 and ....webm to your actual video file names. 
    Save and preview in browsers / mobile devices.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 with Video</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    </head>
    <body>
    <header>
    <h1>SITE NAME</h1>
    </header>
    <!--begin video-->
    <div id="video">
    <video controls>
    <source src="YourVideo.ogg" type="video/ogg">
    <source src="YourVideo.mp4" type="video/mp4">
    <source src="YourVideo.webm" type="video/webm">
    </video>
    </div>
    <!--end video-->
    </body>
    </html>
    Nancy O.

  • OLTP data to view in pre-built reports

    Hi Forum,
    I have created few records in Siebel CRM eCommunications application to view the data in OBI Presentation services. Using DAC, I want to populate into W_ tables to view in OBI eCommunications pre-built reports.
    So can you please guide me in achieving this cycle? Also please share me the links if any.
    Regards
    Cool J
    Edited by: user622248 on Apr 27, 2009 5:20 AM

    Hi Cool J,
    read this article on how to do a first load:
    http://www.rittmanmead.com/2008/07/06/performing-initial-data-loads-into-the-oracle-bi-apps-795-data-warehouse/
    Regards,
    Stijn

Maybe you are looking for

  • Can this device be used as an external hard drive with a macbook pro laptop to use files on the airport?

    can this device be used as an external hard drive with a macbook pro laptop and use files on the airport time capsule?

  • Unable to execute the following sql statement in Jdev10g -- custom sql quer

    Hi All, I have requirement where I need to execute the below Query String through Jdev10g to Sql Server 2005. Query string -- select * from table where #InputString << Input String -- col3 like 'col%' and col1 like 'col2%' ...... >> Here the Input st

  • PO Release Procedure

    Hi experts! We have created two (2) release codes for PO with no release prerequisites. Details are as follows: E1 - total net order value is less than or equal 1 million E2 - total net order value is greater than or equal to zero However, when E1 is

  • Compiz Broken [Fixed]

    Updated this morning, now can't get compiz to start-> leaves me without windows borders or any of the compiz effects. When I try to start fusion-icon I get: * Detected Session: kde * Searching for installed applications... * NVIDIA on Xorg detected,

  • Adobe Layout Error

    Hi All, I have created Interface successful but when I am creating Form lay out I am getting the following Error. "Could Not Start Layout Designer (See Long Text)" help me how to solve this. Regards, Ashok.