Need help with dual slider

Hi everyone, I am a flash designer new to flex, i know that
Flex is geared more towards coders than designers, but i have a
pretty good grasp on how to work w/ flex and as3. usually if i find
some example i can mold my project after that. anyways here's my
problem: i found a dual slider component by
Brendan
Meutzner and have it working great. what i need is for its
change event to affect a grid of items in an xml file based on
price. i know i need to put these items in an array collection.
however, i found the adobe
FlexStore
and realized i could download the source by right clicking on it.
in the products section there is the code and everything i need to
make my project work (the slide updates visible products based on
their price) but my problem is it only works the first time(if you
move the slider you will see it update the product view but only
from the initial values that wee set). here is a
LINK
to my files (with sourceview enabled) so if anyone can help me out,
it would be much appreciated. feel free to email me,
[email protected]
if you need any more info to help me out. thanks!

Thanks NED!
that was it... I got the code below working.
stop();
maskee.cacheAsBitmap = true;
vol_slider.cacheAsBitmap = true;
maskee.mask = vol_slider;
stage.addEventListener(Event.ENTER_FRAME,myFunction);
function myFunction(event:Event) {
vol_switch.x = vol_slider.x;
function startDragHandler(evt:MouseEvent):void {
vol_slider.startDrag(false, new Rectangle(2, 0, 298, 0));
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
function stopDragHandler(evt:MouseEvent):void {
vol_slider.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
vol_switch.buttonMode = true;
vol_switch.addEventListener(MouseEvent.MOUSE_DOWN, startDragHandler);

Similar Messages

  • Need help with dual monitor setup for KDE 3.5.5.

    Here's my hardware:
    NEC MultiSync LCD 1530V:  1024x768 (analog)
    Samsung SyncMaster 941BW: 1440x900 (digital)
    nVidia Dual head AGP video card.
    The dual monitor works under dual-boot Windows, boot up and pure Linux console.  I've googled around for help, changed my xorg.conf file accordingly to some sites, but it wasn't much help. 
    Here's my working xorg.conf:
    Section "ServerLayout"
        Identifier     "Simple Layout"
        Screen         "Screen 1" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard1" "CoreKeyboard"
    EndSection
    Section "Files"
        FontPath        "/usr/share/fonts/misc"
        FontPath        "/usr/share/fonts/75dpi"
        FontPath        "/usr/share/fonts/100dpi"
        FontPath        "/usr/share/fonts/Type1"
    EndSection
    Section "Module"
        Load           "dbe"      # Double buffer extension
        SubSection     "extmod"
            Option         "omit xfree86-dga"   # don't initialise the DGA extension
        EndSubSection
        Load           "freetype"
        Load           "glx"
    EndSection
    Section "InputDevice"
        Identifier     "Keyboard1"
        Driver         "kbd"
        Option         "AutoRepeat" "500 30"
        Option         "XkbRules" "xorg"
        Option         "XkbModel" "pc101"
        Option         "XkbLayout" "us"
    EndSection
    Section "InputDevice"
        Identifier     "Mouse1"
        Driver         "mouse"
        Option         "Protocol" "Auto"    # Auto detect
        Option         "Device" "/dev/input/mice"
    EndSection
    Section "Monitor"
        Identifier     "NEC LCD1530V"
        HorizSync       31.5 - 48.5
        VertRefresh     50.0 - 70.0
    EndSection
    Section "Device"
        Identifier     "Standard VGA"
        Driver         "vga"
        VendorName     "Unknown"
        BoardName      "Unknown"
    EndSection
    Section "Device"
        Identifier     "NVIDIA GeForce"
        Driver         "nvidia"
        Option "NoLogo" "true"        
        EndSection
    Section "Screen"
        Identifier     "Screen 1"
        Device         "NVIDIA GeForce"
        Monitor        "NEC LCD1530V"
        DefaultDepth    24
        SubSection     "Display"
            Viewport    0 0
            Depth       8
            Modes      "1024x768"
        EndSubSection
        SubSection     "Display"
            Viewport    0 0
            Depth       16
            Modes      "1024x768"
        EndSubSection
        SubSection     "Display"
            Viewport    0 0
            Depth       24
            Modes      "1024x768"
        EndSubSection
    EndSection
    Using this xorg.conf file, only my NEC LCD analog monitor could display KDE while the Samsung digital can't.
    Any suggestions?   

    Thanks for your help guys, I'm halfway there.
    The second monitor shows the KDE desktop, but it isn't exactly what I expected.  Right now, both monitors display at 1024x768 (each) or 2048x768 (total).  The larger monitor stretches and distorts the display of 1024x768 to its natural resolution at 1440x900 and it isn't what I wanted.  Other than that, the dual desktop setup behaves what I expected to.
    Here's a snippet of my xorg.conf that currently works:
    Section "Monitor"
    Identifier "NEC LCD1530V"
    HorizSync 31.5 - 48.5
    VertRefresh 50.0 - 70.0
    EndSection
    Section "Monitor"
    Identifier "Samsung SyncMaster"
    HorizSync 31.5 - 60
    VertRefresh 60.0 - 70.0
    EndSection
    Section "Device"
    #VideoRam 131072
    # Insert Clocks lines here if appropriate
    Identifier "NVIDIA GeForce"
    Driver "nvidia"
    Option "NoLogo" "true"
    Option "TwinView" "true"
    Option "TwinViewOrientation" "LeftOf"
    Option "SecondMonitorHorizSync" "30-50"
    Option "SecondMonitorVertRefresh" "60"
    # Option "MetaModes" "1440x900, 1440x900; 1024x768, 1024x768"
    EndSection
    Section "Screen"
    Identifier "Screen 1"
    Device "NVIDIA GeForce"
    Monitor "NEC LCD1530V"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 8
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 16
    Modes "1024x768"
    EndSubSection
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1024x768"
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen 2"
    Device "NVIDIA GeForce"
    Monitor "Samsung SyncMaster"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 8
    Modes "1440x900"
    EndSubSection
    EndSection
    Anyone have an idea?
    EDIT:  Oh snaps.  I just did a pacman -Syu and it upgraded Arch Linux to 0.8 and the 2nd monitor stopped working.

  • Need help with dual drives on Mini

    I just replaced my main drive with a 750GB drive and installed a second drive a 64GB SSD on my 2011 Mac Mini. So when I booted it I installed Lion OS on the SSD and cloned my old 500GB to my new 750GB drive.  I only want to have the OS, Lightroom and Photoshop installed on the SSD.
    So here are some questions.
    1. Can I just drag and drop LR and PS to the SSD and they will work?
    2. How can I make everything I download or install go to the 750GB drive automaticly?
    3. How do I get all my apps to show up in the App file on the SSD drive but still keep them installed on the 750GB drive?
    4. How do I remove the OS off of my 750GB drive to free up space?
    I want to try to get most of these questions resolved before I install Mountain Lion.

    1. Likely, but they'll still be looking for & using the Drive they were installed on for other components & settings.
    2. You can set the Download folder in Safari>Preferences General, on Installs you'll have to choose the Install Disk.
    3. Find the Applications folder on the 750, drag it to the Right Side of the Dock.
    4. Not easy without erasing.
    Are you sure you want/need iOS8?

  • Need help with mobily slider CSS

    Hi there, I have found a really nice slider which you can see a demo here:
    http://playground.mobily.pl/jquery/mobily-slider/demo.html
    Basically, I am trying to get the bullets currently underneath the images to sit on top of the image, but whatever I try, I am not achieving what I want. I was wondering if you could give me some advice on where I on how to make it happen... please!
    I can get one bullet to move up and sit on top, but then I loose all but the one bullet.
    Here is the CSS:
    #content {
    width:900px;
    .slider {
    float:left;
    width:900px;
    height:305px;
    position:relative;
    padding-bottom:26px;
    .sliderContent {
    float:left;
    width:900px;
    height:305px;
    clear:both;
    position:relative;
    overflow:hidden;
    .sliderArrows a {
    display:block;
    text-indent:-9999px;
    outline:none;
    z-index:50;
    background-image:url(../gfx/prev_next.png);
    width:42px;
    height:42px;
    position:absolute;
    top:50%;
    margin-top:-34px;
    .prev {
    background-position:0 0;
    left:15px;
    .prev:hover {
    background-position:0 -44px;
    .next {
    right:15px;
    background-position:-44px 0;
    .next:hover {
    background-position:-44px -44px;
    .sliderContent .item {
    position:absolute;
    width:900px;
    height:305px;
    background:#fff;
    z-index:10;
    .sliderBullets {
    position:absolute;
    bottom:0;
    left:50%;
    z-index:50;
    margin-left:-45px;
    .sliderBullets a {
    display:block;
    float:left;
    text-indent:-9999px;
    outline:none;
    margin-left:5px;
    width:10px;
    height:11px;
    background:url(../gfx/bullets.png) no-repeat;
    .sliderBullets .active {
    background-position:0 -13px;
    .sliderContent a {
    outline:none;
    a {
    color:#fff;
    a img {
    border:none;
    Any guidance you could give is going to be appreciated.
    Thanks in advance
    Mat

    Add padding: 20px 0 0 0; to the css selector below, as shown.
    .sliderContent {
    padding: 20px 0 0 0;
    float:left;
    width:800px;
    height:350px;
    clear:both;
    position:relative;
    overflow:hidden;
    Amend bottom: 0; to top: 0; on the css selector below, as shown:
    .sliderBullets {
    position:absolute;
    top:0;
    left:50%;
    z-index:50;
    margin-left:-45px;
    That's it, Job done.

  • Need help with Volume Slider

    Hi All,
    I created a graphic to simulate a volume slider. Its working, but i want a movieclip graphic (vol_switch) to follow the mask. It is only following it after i release the mouse. i cannot figure out how to have it follow on the mouse drag without taking precedence over the mask and disabling that. any suggestions?
    I tried the code in bold, but not working.
    stop();
    maskee.cacheAsBitmap = true;
    vol_slider.cacheAsBitmap = true;
    maskee.mask = vol_slider;
    function startDragHandler(evt:MouseEvent):void
    vol_slider.startDrag(false, new Rectangle(2, 0, 298, 0));
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    vol_switch.x = vol_slider.x
    function stopDragHandler(evt:MouseEvent):void
    vol_slider.stopDrag();
    vol_switch.x = vol_slider.x
    stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    vol_slider.buttonMode = true;
    vol_slider.addEventListener(MouseEvent.MOUSE_DOWN, startDragHandler);
    thank you in advance!!
    - Pat

    Thanks NED!
    that was it... I got the code below working.
    stop();
    maskee.cacheAsBitmap = true;
    vol_slider.cacheAsBitmap = true;
    maskee.mask = vol_slider;
    stage.addEventListener(Event.ENTER_FRAME,myFunction);
    function myFunction(event:Event) {
    vol_switch.x = vol_slider.x;
    function startDragHandler(evt:MouseEvent):void {
    vol_slider.startDrag(false, new Rectangle(2, 0, 298, 0));
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    function stopDragHandler(evt:MouseEvent):void {
    vol_slider.stopDrag();
    stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragHandler);
    vol_switch.buttonMode = true;
    vol_switch.addEventListener(MouseEvent.MOUSE_DOWN, startDragHandler);

  • Need help with Flash Slide Show

    Hello, Flash friends.
    I recently put together a Flash photo album for a client of
    mine. She wants to be able to upload new images, so I created it
    with XML using the following action-script:
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    image = [];
    description = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    image
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    description
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    firstImage();
    } else {
    content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("images.xml");
    listen = new Object();
    listen.onKeyDown = function() {
    if (Key.getCode() == Key.LEFT) {
    prevImage();
    } else if (Key.getCode() == Key.RIGHT) {
    nextImage();
    Key.addListener(listen);
    previous_btn.onRelease = function() {
    prevImage();
    next_btn.onRelease = function() {
    nextImage();
    p = 0;
    this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
    preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
    preloader._visible = false;
    if (picture._alpha<100) {
    picture._alpha += 10;
    function nextImage() {
    if (p<(total-1)) {
    p++;
    if (loaded == filesize) {
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    desc_txt.text = description[p];
    picture_num();
    function prevImage() {
    if (p>0) {
    p--;
    picture._alpha = 0;
    picture.loadMovie(image[p], 1);
    desc_txt.text = description[p];
    picture_num();
    function firstImage() {
    if (loaded == filesize) {
    picture._alpha = 0;
    picture.loadMovie(image[0], 1);
    desc_txt.text = description[0];
    picture_num();
    function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
    As you can see, the images can only be viewed by clicking a
    "next" or "previous" button.
    Well, my client has since decided that she would like to drop
    the buttons and have the images automatically change from one to
    another while the user sits back and watches. This seems like such
    an easy code to add, but I am a novice at this, and I cannot find
    any forums or tutorials that give a proper code which I may copy
    and paste into this pre-existing code.
    Can anyone offer a suggestion?
    Thank you!!!!!

    Here's my quick suggestion:
    Add a <link> child element to your <pic> elements
    - each <link> would be a sibling of each <image>, like
    this:
    <pic>
    <image>filename.jpg</image>
    <link>
    http://www.example.com</link>
    </pic>
    Then, in your loadXML function, add this:
    link = []
    for(...){
    link
    = xmlNode.childNodes.childNode[2].firstChild.nodeValue
    Finally, in each function where you call picture.loadMovie(),
    add a line below it:
    picture.onRelease = function(){
    getURL(link
    Best,
    Brian Driscoll
    Owner
    Driscoll Web Development
    http://driscollwebdev.com

  • Need help with image slide show using xml

    I have a flash document that pulls up images using xml but I
    would like for the images to also link to different urls and to be
    able to change these links in the XML document. I have included my
    code
    Also my xml file looks simular to this
    <images>
    <pic>
    <image>images/1.jpg</image>
    </pic>
    <images>
    Please if anyone can help me that would be great. Once again
    I would like for these images to be able to link to a url and to
    read the url in my XML document.

    Here's my quick suggestion:
    Add a <link> child element to your <pic> elements
    - each <link> would be a sibling of each <image>, like
    this:
    <pic>
    <image>filename.jpg</image>
    <link>
    http://www.example.com</link>
    </pic>
    Then, in your loadXML function, add this:
    link = []
    for(...){
    link
    = xmlNode.childNodes.childNode[2].firstChild.nodeValue
    Finally, in each function where you call picture.loadMovie(),
    add a line below it:
    picture.onRelease = function(){
    getURL(link
    Best,
    Brian Driscoll
    Owner
    Driscoll Web Development
    http://driscollwebdev.com

  • Need help with Dual Channel DDR memory

    Hi, I have a msi nvidia MOBO, K7N2G and it supports dual channel memory. The manual says to put one in 1 and one in 3. I did then it wont start. System gives the old beep.........beep.........beep. I have to patriot 512 ddr sticks. They work fine in slot 1 and 2 but not in "dual channel" mode. Do i have to do anything else in order to get these to work?? Any assistance would be greatly appreciated. Thanks

    hi
    try slot 2&3.
    what brand of memory?
    what speed is the memory working in?
    there is no option to disable or enable dual channel.
    just put them in slot 1&3 or 2&3.
    bye

  • Need help with dual display configuration

    I have just connected a HD, widescreen monitor to my Mac tower and am having trouble getting video from FCP to show up on it. It's connected to the mini port and is displaying the same desktop image as my primary monitor but I can't seem to get it to display the video when editing. What am I missing?

    The "mirror" box was already unchecked. The best I could get after trying every conceivable combination was just one frame at a time whenever I stopped playing the timeline. The screen then refreshes to show whatever that last frame is, but it will not play the video, it just displays the very last frame.

  • Quick help with dual booting

    I have hopped around on different distros and I found that Archlinux would be the best solution for me.  However, I need help with dual booting Archlinux and Vista as I will need Vista around for one program and a game that do not work with any Linux distro that I have tried.  I have not done a text based install before, I have only used newbie distros but I want to move on to Archlinux. 
    I will only need one partition for Vista and one for Arch.  I believe I can achieve the goal of dual booting them by shrinking the vista partition, and then installing Arch in the remaining space and use GRUB to boot the necessary partitions when my laptop is powered on.  This works with Ubuntu, so I assume it shall be the same basic concept with Arch.  I can follow the instructions on installing, and the installation is easier than I had expected it to be.  I have one question, how would I go about using the above technique that I mentioned during the install?  I would like to know how to do it correctly, I cannot risk messing up Vista.  I'm fifteen and my dad would be very frustrated if I did mess up Vista.  I would appreciate some specific instructions, because I really like Arch from what I have read.  I also look forward to being an active member in the community as well if all goes well.

    Welcome!
    Another young one I see! I'm currently 17, however I started using linux when I was 13 (8th grade year).
    You can resize the vista partition by using gparted. You can download the gparted livecd from there website (http://gparted.sourceforge.net/download.php). I do not know specific directions, but it is pretty obvious how to resize, and if you need help you can probably google something like "resize partition gparted". I WARN YOU that you do risk data loss resizing the partition. I don't believe the risk is high, but it still there, so backup any important data that you may have in case something goes wrong!!
    Do you have your own computer that you can experiment on? That might be a safe option than using your dads. I am been fortunate to have hand-me-down systems, but when I was young I made my dad angry quite a few times "experimenting!"
    If your dad's system has enough juice, you may want to consider install arch in a virtual machine to get idea of however thing works. Following the Beginners Guide on the wiki will be you best bet for a successful and well configured machine (http://wiki.archlinux.org/index.php/Beginners_Guide). If you really want to play it safe you can even go as far as install windows in a virtual machine, resizing the partition, and installing arch in the same virtual machine.
    I hate to say this, but if you absolutely can not mess up vista, I would advice against installing any other OS and messing with the partition scheme. As whenever you mess with the partitions you run a risk of messing up Vista (or any other os for that matter). If you don't already have your own computer which you can tinker with, it might not be a bad idea to look at getting one. They are becoming cheap, you can build one for about $300-$400USD, or buy one for probably around $400.
    Hope this helps a bit...

  • HOW DO YOU GUYS DEAL WITH APPLE.. SO CONFUSING...NEED HELP WITH SPECS FOR PURCHASE OF IMAC 21.5

    Hi guys, been reading your forums, blogposts, etc and am getting more confused.  I'm just a video girl trying to produce meaningful content through web videos for small to mid sized businesses and want to come over from the dark side. 
    Good news,, I dont need a super giant system,  I do simple editing for web videos, minimal graphics, no motion graphics, no animation etc. currently using CS4, will probably end up with 5.5.
    I want to get imac 21.5 or 27 if i have to..  So here's the question we all have,,, what do I really need besides an Apple fairy godmother to figure this crazy stuff out?????
    I want to be able to have firewire add on, but the rest is what I need help with.   So i've been looking at cs6 specs, even though im not there yet, eventually will be,, so just need to run cs4 now and build from there.  I also want to eventually move to final cut down the road so I want imac able to upgrade to final cut.
    WHAT DO I REALLY NEED MINIMALLY FOR NOW?  WHAT CAN I GET LATER IF i CHOOSE TO DO MORE AND NEED MORE POWER?
    cs6:
    Multicore Intel processor with 64-bit support
    Mac OS X v10.6.8, v10.7, or v10.8**
    4GB of RAM (8GB recommended)
    4GB of available hard-disk space for installation; additional free space required during installation (cannot install on a volume that uses a case-sensitive file system or on removable flash storage devices)
    Additional disk space required for preview files and other working files (10GB recommended)
    1280x900 display
    7200 RPM hard drive (multiple fast disk drives, preferably RAID 0 configured, recommended)
    OpenGL 2.0–capable system
    DVD-ROM drive compatible with dual-layer DVDs (SuperDrive for burning DVDs; Blu-ray burner for creating Blu-ray Disc media)
    QuickTime 7.6.6 software required for QuickTime features
    Optional: Adobe-certified GPU card for GPU-accelerated performance
    Any responses would be great.  I know you guys are busy answering the really high end tech questions

    All the current iMac models (both 21.5" and 27" with OS X Mt. Lion 10.8) will run CS4, 5.5 and 6 just fine.  They will also run Final Cut Pro X just fine.  Ditto for most any application you may want to use.
    Below are some notes (specific to your apparent requirements) that may help you with your purchase decision:
    Notes on purchasing a 21.5" iMac
    All 21.5" iMacs come with 8GB RAM but you cannot add more later.  I strongly suggest getting the maximum RAM (16GB) when you order the iMac.
    The basic hard drive is a 1TB 5400rpm drive.  It will work fine with Adobe CS but you will probably want the added speed of the optional 1TB Fusion drive for better performance. Some people will recommend/argue for one of the optional SSD drives instead, but they are very expensive and still only come in relatively small capacities - I don't recommend the SSD drives.  Get the Fusion drive and spend any extra money on a good external hard drive for backup and/or extra storage instead of an SSD.
    Notes on purchasing a 27" iMac
    All 27" iMacs come with 8GB RAM and you can add more later, up to 32GB
    The basic hard drive is a 1TB 7200rpm drive - it will be fine with Adobe CS.  There are upgrade options to a 3TB 7200rpm drive or a 1TB or 3TB fusion drive - these will be fine also.  There are also SSD drive options, but I do not recommend them. (Same comments as above.)
    Notes on all the current iMacs
    iMacs no longer come with built-in CD/DVD drives.  If you need one, you will need to purchase the Apple Superdrive accessory drive ($79)
    All of the iMac graphic processors (GPU's) are compatible with Adobe CS 4, 5.5, 6
    It is very difficult to impossible to change or upgrade the hard drive later on, so don't buy low-end thinking you can add a better internal hard drive later.
    Be aware that Macs always come with the latest (most recent) version of OS X.  And OS X Mavericks (10.9) is due to be released soon (in the next month or two).  There is no guarantee that the older Adobe CS 4 or 5.5 versions will run on OS X Mavericks.  If you cannot upgrade to CS 6 in the near future, you may want to purchase now rather than after OS X Mavericks is released.
    For what it's worth, I'd recommend the 27" iMac if your budget can afford it.  You will appreciate the larger screen size and added capabilities over the years you will use the computer.

  • Need help with the Vibrance adjustment in Photoshop CC 2014.

    Need help with the Vibrance adjustment in Photoshop CC 2014.
    Anytime I select Vibrance to adjust the color of an image. The whole image turns Pink in the highlights when the slider is moved from "0" to - or + in value.  Can the Vibrance tool be reset to prevent this from happening? When this happens I cn not make adjustments...just turns Pink.
    Thanks,
    GD

    Thank you for your reply. 
    Yes, that does reset to “0” and the Pink does disappear.
    But as soon as I move the slider +1 or -1 or higher the image turns Pink in all of the highlights again, rather than adjusting the overall color.
    GD
    Guy Diehl  web: www.guydiehl.com | email: [email protected]

  • Need help with a query

    Hi,
    I need help with the following query. I want the balance (bal) with the latest exchange rate available.
    Sample table & data
    with
    FX_RATE as
    select 11 as id_date, 1 as id_curr, 47 as EXCH_rate from dual union
    select 12, 1, 48 from dual union
    select 13, 2, 54 from dual union
    select 14, 2, 55 from dual union
    select 15, 3, 56 from dual union
    select 15, 2, 49 from dual),
    TBL_NM as
    select 13 as p_date, 2 as p_curr, 200 as bal from dual union
    select 14, 2, 200 from dual union
    select 15, 2, 200 from dual union
    select 16, 2, 200 from dual union
    select 17, 2, 200 from dual union
    select 11, 5, 100 from dual
    select p_date, p_curr, bal * nvl(exch_rate,1) from TBL_NM T LEFT OUTER JOIN FX_RATE F1 on (id_curr = p_curr and F1.id_date = T.p_Date)In the above query for p_date 16 & 17 and p_curr 2 it returns just balance multiplied by exchange rate 1"default". But i want the balance to have data as per latest exchange rate which is of exchange rate 15.
    I tried this but returns error ORA-01799: a column may not be outer joined to a subquery ..
    with
    FX_RATE as
    select 11 as id_date, 1 as id_curr, 47 as EXCH_rate from dual union
    select 12, 1, 48 from dual union
    select 13, 2, 54 from dual union
    select 14, 2, 55 from dual union
    select 15, 3, 56 from dual union
    select 15, 2, 49 from dual),
    TBL_NM as
    select 13 as p_date, 2 as p_curr, 200 as bal from dual union
    select 14, 2, 200 from dual union
    select 15, 2, 200 from dual union
    select 16, 2, 200 from dual union
    select 17, 2, 200 from dual union
    select 11, 5, 100 from dual
    select p_date, p_curr, bal * nvl(exch_rate,1) from TBL_NM T LEFT OUTER JOIN FX_RATE F1
    on (id_curr = p_curr and F1.id_date = (select max(F2.id_date) from FX_RATE F2 where F2.id_curr = T.p_curr and F2.id_Date <=  T.p_date))Please advice on how i can achieve this ..

    The entire query wud be like this .. I've to incorporate in here
    CREATE MATERIALIZED VIEW MV_DUMMY
    BUILD IMMEDIATE
    REFRESH FORCE ON DEMAND
    AS
        SELECT T.ID_TSACTION_RELEASED                                                                                
        BAL.ID_CONTRACT_BALANCE                                                                                                                                                                                                                                                                           AS ID_CONTRACT_BALANCE,   
        T.N_REFERENCE_NUMBER                                                                                          
        T.INSTRUMENT_N_REFERENCE                                                                                      
        T.ITEM_NUMBER                                                                                                   
        T.EXTERNAL_SYSTEM_ID                                                                                            
        T.SEQUENCE_NUMBER                                                                                               
        T.ID_RELEASED_DATE                                                                                              
       ROUND(BAL.LC_AVAILABLE_BALANCE * NVL(FX1.EXCHANGE_RATE,1) / NVL(FX2.EXCHANGE_RATE,1) , 4)                           
        BAL.LIABILITY_BALANCE                                                                                              
        BAL.LIABILITY_BALANCE * NVL(FX3.EXCHANGE_RATE,1)                                                                   
        BAL.LIABILITY_CHANGE_USD                                                                                           
        BAL.MEMO_LIABILITY_BALANCE                                                                                         
        BAL.MEMO_LIABILITY_BALANCE * NVL(FX3.EXCHANGE_RATE,1)                                                              
        BAL.MEMO_LIABILITY_CHANGE_USD                                                                                      
        BAL.ORIGINAL_FACE_AMOUNT                                                                                           
        decode(T.TENOR_CODE,'Time','T','Sight','S','Split Sight Time','SST','Split Multiple Time','SMT',T.TENOR_CODE)
        CASE
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ILC','IB','AIR','STG','NLC','NP')
          THEN T.ID_LIABILITY_CIF
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ELC','EB','XLC','XP','EC','LN','SCF-AR')
          THEN T.Id_Beneficiary
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('TLC','IC','OA','SCF-AP')
          THEN T.ID_Applicant
        END PRIMARY_CUSTOMER_ID,
        CASE
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ILC','IB','AIR','STG','NLC','NP')
          THEN plbcif.EXTERNAL_SYSTEM_ID
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ELC','EB','XLC','XP','EC','LN','SCF-AR')
          THEN PBCIF.EXTERNAL_SYSTEM_ID
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('TLC','IC','OA','SCF-AP')
          THEN pappcif.EXTERNAL_SYSTEM_ID
        END PRIMARY_CUSTOMER_EXT_SYS_ID,
        CASE
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ILC','IB','AIR','STG','NLC','NP')
          THEN plbcif.CIF_NAME
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ELC','EB','XLC','XP','EC','LN','SCF-AR')
          THEN PBCIF.CIF_NAME
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('TLC','IC','OA','SCF-AP')
          THEN pappcif.CIF_NAME
        END PRIMARY_CUSTOMER_NAME,
        CASE
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ILC','IB','AIR','STG','NLC','NP')
          THEN plbbac.BAC
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ELC','EB','XLC','XP','EC','LN','SCF-AR')
          THEN pbbac.BAC
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('TLC','IC','OA','SCF-AP')
          THEN pappbac.BAC
        END PRIMARY_CUST_BAC_CODE,
        CASE
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ILC','IB','AIR','STG','NLC','NP')
          THEN nvl(plbmg.MARKET,'NOT APPLICABLE')
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ELC','EB','XLC','XP','EC','LN','SCF-AR')
          THEN nvl(pbmg.MARKET,'NOT APPLICABLE')
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('TLC','IC','OA','SCF-AP')
          THEN nvl(pappmg.MARKET,'NOT APPLICABLE')
        END PRIMARY_CUST_MARKET,
        CASE
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ILC','IB','AIR','STG','NLC','NP')
          THEN nvl(plbmg.SUB_MARKET,'NOT APPLICABLE')
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('ELC','EB','XLC','XP','EC','LN','SCF-AR')
          THEN nvl(pbmg.SUB_MARKET,'NOT APPLICABLE')
          WHEN GTSPROD.PRODUCT_CATEGORY IN ('TLC','IC','OA','SCF-AP')
          THEN nvl(pappmg.SUB_MARKET,'NOT APPLICABLE')
        END PRIMARY_CUST_SUB_MARKET
      FROM F_TSACTION_RELEASED T
      LEFT OUTER JOIN D_BAC_CODE BAC
      ON (T.BAC_CODE_LIABILITY = BAC.BAC_CODE)
      LEFT OUTER JOIN REF_BAC_SORT_CODE REF_BAC
      ON (T.BAC_CODE_LIABILITY = REF_BAC.BAC)
      LEFT OUTER JOIN F_CONTRACT_BALANCE BAL
      ON (T.ID_TSACTION_RELEASED = BAL.ID_TSACTION_RELEASED)
      LEFT OUTER JOIN D_MARKET_SEGMENT MG
      ON (T.ID_MARKET_SEGMENT = MG.ID_MARKET_SEGMENT)
      LEFT OUTER JOIN D_DATE DT
      ON (DT.ID_DATE = T.ID_RELEASED_DATE)
      LEFT OUTER JOIN D_DATE DB
      ON (DB.ID_DATE = BAL.ID_RELEASED_DATE)
      LEFT OUTER JOIN D_PROCESSING_UNIT PU
      ON (PU.ID_PROCESSING_UNIT = T.ID_PROCESSING_UNIT)
      LEFT OUTER JOIN D_BIR_PRODUCT BIRPROD
      ON (BIRPROD.ID_BIR_PRODUCT=T.ID_BIR_PRODUCT)
      LEFT OUTER JOIN D_GTS_PRODUCT_TYPE GTSPROD
      ON (GTSPROD.ID_GTS_PRODUCT_TYPE= T.ID_GTS_PRODUCT_TYPE)
      LEFT OUTER JOIN D_GTS_TSACTION_TYPE GTST
      ON (GTST.ID_GTS_TSACTION_TYPE = T.ID_GTS_TSACTION_TYPE)
      LEFT OUTER JOIN D_CURRENCY CCYT
      ON (CCYT.ID_CURRENCY = T.ID_TSACTION_CURRENCY)
      LEFT OUTER JOIN d_cif lcif
      ON (lcif.id_cif = T.id_liability_cif)
      LEFT OUTER JOIN d_cif lbcif
      ON (lbcif.id_cif = bal.id_liability_cif)
      LEFT OUTER JOIN d_cif bcif
      ON (bcif.id_cif = T.id_BENEFICIARY)
      LEFT OUTER JOIN d_cif icif
      ON (icif.id_cif = T.id_ISSUING_BANK)
      LEFT OUTER JOIN d_cif acif
      ON (acif.id_cif = T.id_ADVISING_BANK)
      LEFT OUTER JOIN d_cif appcif
      ON (appcif.id_cif = T.id_applicant)
      LEFT OUTER JOIN d_state astate
      ON (astate.id_state = acif.id_state)
      LEFT OUTER JOIN d_state bstate
      ON (bstate.id_state = bcif.id_state)
      LEFT OUTER JOIN d_state lstate
      ON (lstate.id_state = lcif.id_state)
      LEFT OUTER JOIN d_state lbstate
      ON (lbstate.id_state = lbcif.id_state)
      LEFT OUTER JOIN d_state istate
      ON (istate.id_state = icif.id_state)
      LEFT OUTER JOIN d_state appstate
      ON (appstate.id_state = appcif.id_state)
      LEFT OUTER JOIN D_TSACTION_SOURCE TSrc
      ON (T.ID_TSACTION_SOURCE = TSrc.ID_TSACTION_SOURCE)
      LEFT OUTER JOIN D_COUNTRY LCTRY
      ON (LCTRY.ID_COUNTRY = lcif.ID_COUNTRY)
      LEFT OUTER JOIN D_COUNTRY LBCTRY
      ON (LBCTRY.ID_COUNTRY = lbcif.ID_COUNTRY)
      LEFT OUTER JOIN D_COUNTRY BCTRY
      ON (BCTRY.ID_COUNTRY = bcif.ID_COUNTRY)
      LEFT OUTER JOIN D_COUNTRY ICTRY
      ON (ICTRY.ID_COUNTRY = icif.ID_COUNTRY)
      LEFT OUTER JOIN D_COUNTRY ACTRY
      ON (ACTRY.ID_COUNTRY = acif.ID_COUNTRY)
      LEFT OUTER JOIN D_COUNTRY APPCTRY
      ON (APPCTRY.ID_COUNTRY = appcif.ID_COUNTRY)
      LEFT OUTER JOIN D_COUNTRY PCTRY
      ON (PCTRY.ID_COUNTRY = T.ID_PRESENTER_COUNTRY)
      LEFT OUTER JOIN D_LOCATION LOC
      ON (LOC.ID_LOCATION = T.ID_PROCESSING_LOCATION)
      LEFT OUTER JOIN D_CURRENCY BCCYT
      ON (BCCYT.ID_CURRENCY = BAL.ID_LIABILITY_CURRENCY)
      LEFT OUTER JOIN D_CURRENCY BALCYT
      ON (BALCYT.ID_CURRENCY = BAL.ID_BALANCE_CURRENCY)
      LEFT OUTER JOIN d_liability_type li
      ON (li.id_liability_type = BAL.id_liability_type)
      LEFT OUTER JOIN d_cif plbcif
      ON (plbcif.id_cif = T.id_liability_cif)
      LEFT OUTER JOIN REF_BAC_SORT_CODE plbbac
      ON (plbcif.bac_code=plbbac.bac)
      LEFT OUTER JOIN D_MARKET_SEGMENT plbmg
      ON (plbbac.SORT_CODE=plbmg.MARKET_SEGMENT)
      LEFT OUTER JOIN d_cif pbcif
      ON (pbcif.id_cif = T.id_BENEFICIARY)
      LEFT OUTER JOIN REF_BAC_SORT_CODE pbbac
      ON (pbcif.bac_code=pbbac.bac)
      LEFT OUTER JOIN D_MARKET_SEGMENT pbmg
      ON (pbbac.SORT_CODE=pbmg.MARKET_SEGMENT)
      LEFT OUTER JOIN d_cif pappcif
      ON (pappcif.id_cif = T.id_applicant)
      LEFT OUTER JOIN REF_BAC_SORT_CODE pappbac
      ON (pappcif.bac_code=pappbac.bac)
      LEFT OUTER JOIN D_MARKET_SEGMENT pappmg
      ON (pappbac.SORT_CODE=pappmg.MARKET_SEGMENT)
      LEFT OUTER JOIN D_CURRENCY LOCALCYT
      ON (LOCALCYT.alpha_code = PU.local_ccy)
      LEFT OUTER JOIN D_BRANCH Branch              
      ON (T.ID_BRANCH  = Branch.ID_BRANCH )
      LEFT OUTER JOIN F_USD_FX_RATE_HISTORY FX1
      ON (BAL.ID_BALANCE_CURRENCY = FX1.ID_CURRENCY and FX1.ID_DATE = (select max(FX11.ID_DATE) from F_USD_FX_RATE_HISTORY FX11 where BAL.ID_BALANCE_CURRENCY = FX11.ID_CURRENCY and FX11.ID_DATE <= BAL.id_released_date))
      LEFT OUTER JOIN F_USD_FX_RATE_HISTORY FX2
      ON (LOCALCYT.ID_CURRENCY = FX2.ID_CURRENCY and FX2.ID_DATE = (select max(FX22.ID_DATE) from F_USD_FX_RATE_HISTORY FX22 where LOCALCYT.ID_CURRENCY = FX22.ID_CURRENCY and FX22.ID_DATE <= BAL.id_released_date))
      LEFT OUTER JOIN F_USD_FX_RATE_HISTORY FX3
      ON (BAL.ID_LIABILITY_CURRENCY = FX3.ID_CURRENCY and FX3.ID_DATE = (select max(FX33.ID_DATE) from F_USD_FX_RATE_HISTORY FX33 where BAL.ID_LIABILITY_CURRENCY = FX33.ID_CURRENCY and FX33.ID_DATE <= BAL.id_released_date))Note the lines
    ROUND(BAL.MN_AVAILABLE_BALANCE * NVL(FX1.EXCHANGE_RATE,1) / NVL(FX2.EXCHANGE_RATE,1) , 4)                           
    BAL.LIABILITY_BALANCE * NVL(FX3.EXCHANGE_RATE,1)                                                                   
    BAL.MEMO_LIABILITY_BALANCE * NVL(FX3.EXCHANGE_RATE,1)                 
    And
    LEFT OUTER JOIN F_USD_FX_RATE_HISTORY FX1
      ON (BAL.ID_BALANCE_CURRENCY = FX1.ID_CURRENCY and FX1.ID_DATE = (select max(FX11.ID_DATE) from F_USD_FX_RATE_HISTORY FX11 where BAL.ID_BALANCE_CURRENCY = FX11.ID_CURRENCY and FX11.ID_DATE <= BAL.id_released_date))
      LEFT OUTER JOIN F_USD_FX_RATE_HISTORY FX2
      ON (LOCAMNYT.ID_CURRENCY = FX2.ID_CURRENCY and FX2.ID_DATE = (select max(FX22.ID_DATE) from F_USD_FX_RATE_HISTORY FX22 where LOCAMNYT.ID_CURRENCY = FX22.ID_CURRENCY and FX22.ID_DATE <= BAL.id_released_date))
      LEFT OUTER JOIN F_USD_FX_RATE_HISTORY FX3
      ON (BAL.ID_LIABILITY_CURRENCY = FX3.ID_CURRENCY and FX3.ID_DATE = (select max(FX33.ID_DATE) from F_USD_FX_RATE_HISTORY FX33 where BAL.ID_LIABILITY_CURRENCY = FX33.ID_CURRENCY and FX33.ID_DATE <= BAL.id_released_date))Thsi is where I need to incorporate the change

  • Need help with compression rates with Sorenson Squeeze 6, Compressor3.5.2

    Hopefully somebody can help me with this...
    I am running Sorenson Squeeze 6 on a Mac to try and compress some Apple ProRes 422 videos into an MPEG-2 file. The file will be played in a DirectX application, running on a PC with Windows 7. When being played it looks to be heavily compressed, and I need help with some of the compression settings.
    Let me get more into detail...
    So I have received a Quicktime .mov that has been encoded with FCP using Apple ProRes 422 compression at 720x486 , 29.97 fps, 40.29 Mbit/s , and the file size is 515.7mb.
    So, this is the type of file I will have to compress into an MPEG-2, that will be playing on a...
    1.6 GHz Intel Atom 330 Dual Core
    NVIDIA GeForce 9400M Graphics
    1Gb DDR2 800 Ram
    32Gb SATA Solid State Drive
    Windows 7 Home
    Here is what I have done so far on my Mac using Sorenson Squeeze 6 :
    I have brought the original file in and created some presets.
    First off, I am encoding these MPEG-2 videos using an elementary stream type so I can mux the files using MPEG Streamclip...
    Here is a screenshot of the settings I am using in Sorenson :
    - I have changed many of the data rate settings as low as 3000 Kbps, and as high as 15,000 Kbps, and the end result looks essentially the same
    - The audio isn't a problem, so I'm not going to address that.
    - I have used the crop/deinterlace filter and also not used the filter, and it makes a big difference, so obviously it needs to be deinterlaced.
    From there I will get the .m2v file and the .m2a file, and then mux those with MPEG Streamclip.
    So, I have done 8 different Pre-sets all with various settings playing primarily with the data rate, and the method from 2-pass vbr all the way to 1-pass cbr.
    So again, my end result that is playing back on the windows 7 box (the specs that are listed above) looks to be heavily compressed and pixelation occurs.
    - I have also done the exact same with Apple's Compressor, and have gotten better results muxing while compressing, however the end result still tends to be the same, however the end result is much better. I have gone through 8 or so different compression export settings, and just overall still have the same issue.
    Any help would be greatly appreciated!
    Thanks,
    Crawford and Luke
    LKC Creative, LLC.
    [email protected]

    You are using a custom layout so my directions don't make any sense...
    For the future, you can set this up in DVD SP's Preferences:
    Using the Standard window layout the things to play with would be like the screenshot below:

  • Need help with effect!

    I need help with the following:
    I am currently making a Harry Potter short film and I'm doing a spell that hits my friend and my friend needs to be blown backwards (if you know what I mean, he needs to like kinda fly backwards because of the force from the spell).
    Can you in anyway help me with this or give me an idea on how to proceed?
    I've been thinking of setting a green screen up where the person jumps backwards on a mattress or similar.
    Thank you so much, I really hope you can help me.
    I have been searching the web for a long long time and didn't find any answer.
    Contact:
    Reply here
    Skype: asgerrockz

    Be careful here. Someone yanking on another person rigged with a professional harness can suffer permanent spinal injury. I have a home and a family and I wouldn't attempt even a simple version of this kind of stunt without a rider on my liability policy, a professional and therefore bondable stunt coordinator, and a trained stunt person. No offence Todd but I'd never yank someone backward by a wire or cord attached to their torso.
    You can do this very gently by having the actor just throw out their arms and jump backwards a bit then do the majority of the move in AE. Having the camera on a simple slider would also help. As the actor jumps back dolly the camera back on a slider.
    I've been shooting and producing films for more than 40 years when not one injury on the set except for me. Fractured my L2 and L3 vertebrae on a fall with a SetadyCam in 1975 because we didn't do a thorough enough safety briefing. Don't just try and do something you think you have seen on YouTube without some serious planning. There's no need for anyone to get hurt on a set.

Maybe you are looking for