Why var file:File = new File(); is not working in Background Worker?

Hi All,
While working on Background Workers for Air for Desktop platform. I am facing a problem.
I want to unzip a file in the background, which contains 14126 files in it because not using the worker is hanging my system.
When I am using "new File()" or "File.desktopDirectory.nativePath;" I am getting following error:
SecurityError: file
at UnzipWorker/onMainToBack()[C:\Users\red5\Adobe Flash Builder 4.7\Downloader_air\src\UnzipWorker.as:45]
at flash.system::MessageChannel/internalAddEventListener()
at flash.system::MessageChannel/addEventListener()
at UnzipWorker()[C:\Users\red5\Adobe Flash Builder 4.7\Downloader_air\src\UnzipWorker.as:33]
I am not sure why I am getting above error.
Someone please help me in this.

Brijesh,
Aloha.
I implemented:
var worker:Worker = WorkerDomain.current.createWorker( new ThreadByteClass(), true ) ;
However, my background thread is still running with its Security.sandboxType set to remote, even though my primordial thread is running with Security.sandboxType set to localTrusted.
Do you know how to resolve this?
Have a great day.
Take care,
Darwin

Similar Messages

  • SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    Can you post a link?
    Does that only happen on that website or do you have that problem with all Flash content?
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • .jar file is not working properly :developed in NETBEANS

    Hi Gurus,
    i am using NETBEANS IDE 7.2.
    i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
    but when i run executable .jar  file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
    this is how i call the .bat file...
      String filePath = "D:/pms/Libraries/portlib.bat";  
            try { 
              Process p = Runtime.getRuntime().exec(filePath); 
            } catch (Exception e) { 
                e.printStackTrace(); 
    and below is the contents of portlib.bat file
    java -jar "D:\SMS\SMS\dist\SMS.jar" 
    you must probably ask why i am calling a .jar file using .bat file .
    reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
    if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
    that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
    Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working  ,
    thanks.

    Thanks Sir ,
    You need to first test an example that works like the one in the article.
    There are plenty of other examples on the web - find one you like:
    http://javapapers.com/core-java/os-processes-using-java-processbuilder/
    I tried this one.
      try {
                ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
                 File commands = new File("D:/SMS/SMS/Send_message.bat");
                 File dirOut = new File("C:/process/out.txt");
                 File dirErr = new File("C:/process/err.txt");
               dirProcess.redirectInput(commands);
                 dirProcess.redirectOutput(dirOut);
               dirProcess.redirectError(dirErr);
                 dirProcess.start();
            } catch (IOException ex) {
                Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
    as instructed in the article i compiled  both the projects at same version or sources and libraries which is 1.7
    here is my version details
    C:\>javac -version
    javac 1.7.0_07
    C:\>java -version
    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
    Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
    inside the NETBEANS IDE c:\process\err.txt  remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
    here is the error text
    java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Exception in thread "main"
    here is /SMS/SMS
    unknown source ?

  • File- Export not working after upgrade from 11i to R12

    Hi,
    File -> Export not working after upgrade from 11i to R12.1.3 in few systems. Can you please let me know what could be the issue.
    If export record count more than 200 it is working fine in all the systems and if change the profile option "Export MIME type” value to ‘text/tab-separated-values’ from application/excel also it is wokring.
    Thanks and Regards,
    Jagadeesha

    Enabled the FRD. Below are few last lines. Can you please let me know what i can in this log file contents.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing GET_ITEM_PROPERTY/FIELD_CHARACTERISTIC Built-in:
    In Argument 0 - Type: Integer Value: 196613
    In Argument 1 - Type: Number Value: 54
    Out Argument 0 - Type: String Value: 12
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_MENU_ITEM Built-in:
    In Argument 0 - Type: String Value: FILE.EXPORT
    Out Argument 0 - Type: Integer Value: 19
    Executing GET_MENU_ITEM_PROPERTY Built-in:
    In Argument 0 - Type: Integer Value: 19
    In Argument 1 - Type: Number Value: 79
    Out Argument 0 - Type: String Value: TRUE
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_synch.menu_toolbar_sync. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: NULL
    In Argument 1 - Type: String Value: GLOBAL.OUT
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND GETPROFILE NAME="UPK_RECORDING_ENABLED" FIELD="GLOBAL.OUT" N
    FNDCPVCM, 11, Built-In, Entry, 316509814, USER_EXIT
    FNDCPVCM, 11, Built-In, Exit, 316509814, USER_EXIT
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.OUT
    Out Argument 0 - Type: String Value: N
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing GET_APPLICATION_PROPERTY Built-in:
    In Argument 0 - Type: Number Value: 75
    Out Argument 0 - Type: String Value: IHR40P
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed call_all_libraries. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_standard.event. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    FNDCPVCM, 10, Prog Unit, Exit, 316509814, /FNDCPVCM-3/P45_30_DEC_201223_28_33
    FNDCPVCM, 9, Trigger, Exit, 316509814, WHEN-NEW-ITEM-INSTANCE
    FNDCPVCM, 8, Prog Unit, Exit, 316509814, /DMU-4/P8_30_DEC_201223_23_12
    # 15 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301498413820
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3
    # 16 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301512613925
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3

  • File collaboration not working

    This is still an issue for me and has been for over a week. Latest Safari and the latest Chrome, different emails, they all produce the same result for me.
    Sounds like the same issue that @Quaetapo reported.
    Mac OS X 10.10.3

    I have forked the discussion (from Library collaboration not working to a new forum thread and updated the topic to File collaboration not working.
    Two things to try:
    Clear the browser cache and cookies and see if the error goes away.
    Open the browser's Developer Tools and go to the Network tab. Do you see any 4xx or 5xx errors (usually the call will be colored red).

  • Browse for file/img not working - Win 7

    Browse for file/img not working still - Win 7
    I have tried "run as Admin" and in "XP Compatibility mode" but still no luck fixing this issue in Win 7. Anyone have a potential fix so I can stop wasting time double checking every link/img on new work?
    Thanks!

    Are you referring to this issue?
    Problem selecting local root folder in Vista & Windows 7
    http://forums.adobe.com/thread/478327
    If so, there's no fix yet and not likely to be one.

  • File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13

    File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
    I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
    Thanks

    I hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
    Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
    I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print

  • File sharing not working 10.6

    file sharing not working on 10.6

    Rather more information is needed!
    With what are (not) sharing?
    Other computers on a network? (if so, are they all Macs or some Windows?)
    Other Users on the same Mac?

  • Flash file, clicks not working in one environment

    Hi everyone,
    I have produced files using Captivate 2, that have output as .exe. These work perfectly across all of our sites, except one.
    The only issue with the site where the files are not working is:
    - Click box within the Flash file do not progress to the next page
    I have output with 'Playback control' and the users at the site in question are able to progress through along the Playback bar. However, I only placed this in for the purposes of testing the file. The final files need to not have the 'Playback control'.
    Does anyone know what I can do differently, to ensure the click boxes work on this site in question?
    I look forward to hearing from you.
    Ravi Sandhu

    Hi Ravi
    I'm not sure I fully understand your question. You seem to be saying a Click Box isn't working. But you say the "Click Box within the Flash File". I'm not sure if this means you have used Flash to create a button or something that you are trying to use with Captivate or if you simply mean that you have used Captivate to create a SWF, and inside that SWF the Click Box doesn't seem to work.
    What would be helpful is if we could see the project first hand. Are you able to post the .CP file for us to download and view? If that's not possible, what about posting a screen capture of the slide with the issue where we can see the entire timeline and all objects.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • CsrAttachmentUploadDiv part attachment is not rendered SP 2013(Attach file in not working for all the list forms)?

    csrAttachmentUploadDiv partattachment  is not rendered SP 2013(Attach file in not working for all the list forms)?
    Ravi
    function ShowPartAttachment() {
    ULSopi:
        if (document.getElementById("part1") == null || typeof document.getElementById("part1") == "undefined") {
            alert(Strings.STS.L_FormMissingPart1_Text);
            return;
        (document.getElementById("part1")).style.display = "none";
        (document.getElementById("partAttachment")).style.display = "block"; //problem here

    Am also facing the similar problem....any iputs are highly appriciated.
    Issue..
    1) Defined the attachment type in IMG.
    2) Added the attachment type "SFREEATTM" by selecting other attributes---> Attachment Types.
    3) Attached the excel file in the design.
    See the screen shot below:
    The Issue is when testing through tcode nwbc in the inbox the attachment tab is not visible after selecting the particular form.
    Please see the screen shot below:
    Did i miss any Configuration?? Please suggest...
    Regards,
    Naveen

  • I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data is not.) but

    I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data does not.)

    HI Dave,
    I'm surprised you get no message when you attempt opening the Excel document in Numbers.
    I'm assuming Numbers 3.1, since you are running Mavericks.
    Does the Numbers file that opens show any content?
    Does it contain a table?
    How large?
    Does it contain more than one tab (indicating more than one sheet)?
    Do those other tabs contain a table?
    Have you checked those tables for data content?
    There have been cases in the past of imported documents opening with white text on a white background, giving the appearance of containing nothing. Check for this by selecting a block of cells, then applying a Fill colour or a Text colour using the Format button (paintbrush).
    I'd also suggest attempting to open the Excel files using LibreOffice, which can be downloaded from the linked website.
    Regards,
    Barry

  • input type="file" multiple / not working in IE 10.

    < input type="file" multiple /> not working in IE 10.
    I am trying to use the HTML 5 multi-file upload capability in a MVC 4 app.
    The control allows me to select multiple files when running under localhost but does not work when trying it from the web server.
    Is there some web server configuration I need to do? Web server is running IIS 7.

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

  • Hp file manager not working

    after updating hp slate 7voice tab from jellybean to kitkat the hp file manager not working.

    Hello, and Welcome to the HP Support Community!
    This is not HP's fault - this change was caused by Google.
    Perhaps this article can help explain how Google changed Android KitKat 4.4:
    KitKat and SD cards — what's fixed, what's broken and what's misunderstood.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Why does right clinking on link and selecting open in new tab does not work?

    Why does right clinking on link and selecting open in new tab does not work?
    It opens up a blank page. The only way to make the link work is to click on the navigation bar in the new tab and press enter to reload the link.

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Why does the internet on my new macbook pro not work when my old macbook's does?

    Why does the internet on my new macbook pro not work when my old macbook's does? I'll have to turn the wifi off and back on multiple times to get the internet to continue to work on my Macbook Pro (running mountain lion but did it on lion also) when it runs fine on my old white Macbook (running lion). Is there something I can do to fix it or do I just have to deal with it?

    Here is your fix .. I have uploaded my properly calibrated profile get it here :
    http://www.megaupload.com/?d=YAJL6A9X
    And it should go to your user folder/Library/ColorSync/Profiles
    if you have one already you can rename either one ..
    and then go to system preferences - displays - color to select the profile .
    you will get rid of the blue tint while keeping correct color and gamma
    This is for the newer 2010 MBP's altho if same display was used might also give good results in the previous models as well . .

  • Fox news slideshows are not working in Vista Home 64 bit.

    All fox news slideshows are not working since firefox 3.6 started. I can't get them to work in Internet explorer either.
    == URL of affected sites ==
    http://

    Error: $.ad is undefined
    Source File: http://www.foxnews.com/static/all/js/slideshows-pack.js
    Line: 850
    // Slideshows - updated: 04/30/2010
    // Dependencies: jQuery, jfoxCarousel plugin
    (function($){
    function SlideShows() {
    this._data = {}; // slideshow data
    this._info = {}; // current slideshow info
    this._relatedMedia = {}; // related media data
    this._trackData = false;
    this.initialized = false;
    this.toolTipId = "carousel-tooltip";
    this.defaultTrackFrequency = 1; // tracker trigger
    this._preloaderSrc = "/static/all/img/slideshow/slideshow-preloader.gif";
    this._timer = { // timers
    main: { fadeIn:800 },
    carousel: { fadeIn:300 },
    overlay: { onLast:10000,fadeIn:300,fadeOut:300 }
    this.currentFocus = 1; // current item in focus
    this.holderObj = {}; // holder for elements
    this.hashObj = {}; // hash location holder
    this.imgPreloadObj = {}; // holder for preloaded images
    // carousel object controllers
    this.carouselControlObj = {};
    this.overlayControlObj = {};
    this.trigger = { // listeners
    main: false,
    carousel: false,
    overlay: false
    this.overlayTimeout = false; // overlay timeout holder
    SlideShows.prototype = {
    init: function(config) {
    for (i in config) { this['_'+i] = config[i]; }
    this.main.root = this.carousel.root = this.overlay.root = this;
    this.hashObj = this.helper.getHash();
    if (typeof $.fn.jfoxCarousel<u>'undefined') {
    showToConsole("[init] Error: carousel plugin not found!");
    if (this._trackData) { // set tracking data
    sTracker.set(this._trackData);
    sTracker.track("pageLoad"); // page load tracker
    this.preload();
    this.setHolders();
    this.initialized = true;
    preload: function() {
    var preloadImg = new Image();
    preloadImg.src = this.preloadSrc;
    setHolders: function() {
    var SH = this;
    var slideshowElm = $("#slideshow");
    this.holderObj = {
    doc: $(document),
    body: $("body"),
    intro: $("#section-intro"),
    main: slideshowElm.find("#main-img"),
    mainHolder: slideshowElm.find(".slideshow-placeholder"),
    mainControl: slideshowElm.find(".slideshow-controller"),
    description: slideshowElm.find(".slideshow-desc"),
    relatedMedia: slideshowElm.find(".slideshow-related"),
    carousel: slideshowElm.find(".slideshow-feature .slideshow")
    this.holderObj.intro.each(function(){
    var intro = $(this);
    intro.find("h1:first").html(SH._info.title);
    intro.find("p:first").html(SH._info.dek);
    if (this.holderObj.main.size()>0) {
    this.main.properties.minHeight = this.holderObj.mainHolder.innerHeight(); // get set height as "min-height"
    this.main.build();
    if (this.holderObj.carousel.size()>0) {
    this.carousel.build();
    $(document).ready(function(){ // wait for page load for the overlay
    SH.holderObj.overlay = $("#slideshow-overlay");
    var set = (SH.holderObj.overlay.size()>0) ? (typeof $.fn.jfoxCarousel!=='undefined') ? SH.overlay.set() : false : false;
    SH.setDocReadyListeners();
    this.setListeners();
    setListeners: function() {
    var SH = this;
    var control = this.holderObj.mainControl;
    // main image controls
    control.find(".prev").click(function(){
    SH.main.prev();
    return false;
    control.find(".next").click(function(){
    SH.main.next();
    return false;
    if (typeof touchEventListener!=="undefined") {
    var listenerConfig = {
    elm: SH.holderObj.mainHolder,
    moveSensitivity: 15,
    eventsCallback: {
    touchmoveMoveOnce: function(direction,moveProperties,rawEvent) {
    // move callback - sensitivity
    var directions = direction.join("|");
    if (directions.indexOf("left")>-1) {
    control.find(".next").trigger("click");
    if (directions.indexOf("right")>-1) {
    control.find(".prev").trigger("click");
    touchEventListener.append(listenerConfig);
    setDocReadyListeners: function() {
    var SH = this;
    // browse slideshow overlay
    $(document).ready(function(){
    $("#section-intro .additional-slides a").click(function() {
    SH.overlay.show();
    return false;
    SH.holderObj.overlay.find(".close a").click(function(){
    SH.overlay.hide();
    return false;
    replaySlideshow: function() {
    var SH = this;
    //TODO: build replay
    this.overlay.hide(); // hide overlay
    this.main.build(this.currentFocus = 1); // reset focus
    sTracker.track("replaySlideshow");
    // main image holder
    SlideShows.prototype.main = {
    properties: {},
    build: function(slide,origin) {
    var SH = this;
    var root = this.root;
    if (root.trigger.main) { return false; }
    root.trigger.main = true;
    slide = slide || false;
    origin = origin || "main";
    var control = root.holderObj.mainControl;
    var data = root._data;
    var initData = false;
    var desc = [];
    var helper = root.helper;
    if (slide) {
    if (slide 0) { desc.push('Source: ' + data.items[slide].source + ''); }
    root.holderObj.description.html(desc.join(""));
    // load related media
    if (root._relatedMedia.items) {
    var rmItems = root._relatedMedia.items;
    if (rmItems.length>0) {
    var rel = [];
    rel.push('Related Articles');
    for (var x=0; x 0) {
    root.currentFocus--;
    SH.build(root.currentFocus);
    sTracker.track("clickPrevMain"); // tracker
    if (!SH.isLast() && root.overlayTimeout) { clearTimeout(root.overlayTimeout); } // clear overlay timeout
    isLast: function() {
    var root = this.root;
    return (root.currentFocus+1 > root._data.items.length) ? true : false;
    // carousel
    SlideShows.prototype.carousel = {
    build: function() {
    var SH = this;
    var root = this.root;
    var carousel = root.holderObj.carousel;
    var data = root._data;
    var list = [];
    for (var x=0;x 0) {
    var li = $(".slideshow > ul",carousel).children();
    li.each(function(i){
    var el = $(this);
    var setClass = (i == eventObj.target-1) ? el.addClass("active") : el.removeClass("active");
    controlsCallback: function(control) { // callback to set up controls
    root.carouselControlObj = control;
    carousel.find(".prev").click(function(){ // previous link
    control.stopAutoScroll();
    control.slide('prev');
    sTracker.track("clickPrevCarousel"); // tracker
    return false;
    carousel.find(".next").click(function(){ // next link
    // show overlay on last carousel link
    //var lastLink = (!currentEventObj) ? false : (currentEventObj.batch.current+1 > currentEventObj.batch.max) ? $(document).ready(function(){ root.overlay.show(false,true); }) : false;
    control.stopAutoScroll();
    control.slide('next');
    sTracker.track("clickNextCarousel"); // tracker
    return false;
    carousel.jfoxCarousel(config);
    if (typeof touchEventListener!=="undefined") {
    var listenerConfig = {
    elm: carousel,
    moveSensitivity: 15,
    eventsCallback: {
    touchmoveMoveOnce: function(direction,moveProperties,rawEvent) {
    // move callback - sensitivity
    var directions = direction.join("|");
    if (directions.indexOf("left")>-1) {
    carousel.find(".next").click();
    if (directions.indexOf("right")>-1) {
    carousel.find(".prev").click();
    touchEventListener.append(listenerConfig);
    // overlay
    SlideShows.prototype.overlay = {
    set: function() {
    var root = this.root;
    var overlay = root.holderObj.overlay;
    overlay.find(".slideshow-feature").each(function(){
    var carousel = $(this);
    var allItems = carousel.find(".slideshow ul").children().children();
    allItems.each(function(){
    var div = $(this);
    var link = div.find("a:first").attr("href");
    div.hover(function(){
    div.css("cursor","pointer");
    },function(){
    div.css("cursor","");
    }).unbind("click").click(function(){
    window.location.replace(window.location.hostname + link);
    var config = {
    auto: { set:false,speed:3000 }, // auto scroll
    slide: "horizontal", // horizontal or vertical
    scroll: 3, // number of items to scroll per event
    show: 3, // items shown
    speed: "slow", // scroll speed
    rotate: false, // rotate back to star if end
    //focus: { item:0,animate:false }, // focus to target item on load
    eventCallback: function(eventObj) {
    if (eventObj.batch.current</u>1) {
    carousel.find(".prev").addClass("inactive");
    } else {
    carousel.find(".prev").removeClass("inactive");
    if (eventObj.batch.current<u>eventObj.batch.max) {
    carousel.find(".next").addClass("inactive");
    } else {
    carousel.find(".next").removeClass("inactive");
    controlsCallback: function(control) { // callback to set up controls
    root.overlayControlObj = control;
    carousel.find(".prev").click(function(){ // previous link
    control.stopAutoScroll();
    control.slide('prev');
    sTracker.track("clickPrevOverlay"); // tracker
    return false;
    carousel.find(".next").click(function(){ // next link
    control.stopAutoScroll();
    control.slide('next');
    sTracker.track("clickNextOverlay"); // tracker
    return false;
    carousel.jfoxCarousel(config);
    if (typeof touchEventListener!=="undefined") {
    var listenerConfig = {
    elm: carousel,
    moveSensitivity: 15,
    eventsCallback: {
    touchmoveMoveOnce: function(direction,moveProperties,rawEvent) {
    // move callback - sensitivity
    var directions = direction.join("|");
    if (directions.indexOf("left")>-1) {
    carousel.find(".next").click();
    if (directions.indexOf("right")>-1) {
    carousel.find(".prev").click();
    touchEventListener.append(listenerConfig);
    show: function(delay,isReplay) {
    isReplay = isReplay || false;
    delay = delay || false;
    var root = this.root;
    if (root.trigger.overlay) { return false; } // if already open
    var SH = this;
    delay = (isNaN(delay)) ? 0 : delay; // delayed show
    root.overlayTimeout = setTimeout(function(){
    SH.setReplay(isReplay);
    if (root.main.isLast()) {
    root.holderObj.overlay.fadeIn(root._timer.overlay.fadeIn,function(){ root.trigger.overlay = true; });
    sTracker.track("showOverlay"); // tracker
    else {
    root.holderObj.overlay.fadeIn(function(){ root.trigger.overlay = true; });
    },delay);
    hide: function(delay) {
    delay = delay || false;
    var root = this.root;
    if (!root.trigger.overlay) { return false; } // if already closed
    delay = (isNaN(delay)) ? 0 : delay; // delayed hide
    setTimeout(function(){
    root.holderObj.overlay.fadeOut(root._timer.overlay.fadeOut,function(){ root.trigger.overlay = false; });
    sTracker.track("hideOverlay"); // tracker
    },delay);
    setReplay: function(isReplay) {
    var root = this.root;
    var overlay = root.holderObj.overlay;
    var firstList = overlay.find(".slideshow-feature .slideshow ul").children().filter(":first");
    var divs = firstList.children();
    var replayDiv = divs.filter(":first");
    var cloneDiv = replayDiv.next();
    function configInfo(elm) {
    var currentSS = root._data.items;
    var info = root._info;
    var count = currentSS.length;
    var first = currentSS[0];
    var slideshowTitle = (info.title.length > 16) ? info.title.substring(0,16) + "..." : info.title;
    var slideshowImg = first.media.tm;
    var slideshowDate = info.title.date;
    function replay() {
    root.replaySlideshow();
    var items = elm.children();
    items.filter("p.photo-count").html(count + " image" + [[count>1) ? "s" : ""]];
    items.filter("p.date").html(slideshowDate);
    items.filter("p.photo").each(function(){
    var item = $(this);
    item.find("a").attr({ href: "#", title: slideshowTitle });
    item.find("img").attr({ alt: slideshowTitle, src: slideshowImg });
    items.filter("h4").each(function(){
    var item = $(this);
    item.find("a").attr("href","#").html(slideshowTitle);
    items.find("a").unbind("click").click(function(){
    replay();
    return false;
    elm.hover(function(){
    elm.css("cursor","pointer");
    },function(){
    elm.css("cursor","");
    }).unbind("click").click(function(){
    replay();
    return false;
    if (replayDiv.children().size()</u>0) {
    replayDiv.html(cloneDiv.html());
    configInfo(replayDiv);
    if (isReplay) {
    replayDiv.addClass("active").show();
    cloneDiv.hide();
    } else {
    replayDiv.hide();
    cloneDiv.show();
    SlideShows.prototype.helper = {
    toNum: function(item) {
    item = (isNaN(item)) ? parseInt(item.replace(/[a-zA-z]/gi,""),10) : item;
    return isNaN(item)?0:item;
    imgLoad: function(obj,fn) {
    var SH = this;
    obj.alt = obj.alt || "";
    if (obj.preload && !$.browser.opera) { // opera =/= img.onload
    if (obj.mainHolder) { obj.mainHolder.css({ background:"url("+obj.preloaderSrc+") no-repeat center" }); }
    var img = new Image();
    obj.holder.css({ display:"inline", opacity:"0" });
    img.onload = function() {
    if (obj.outer) {
    if (img.height > SH.toNum(obj.outer.minHeight)) { obj.outer.holder.css("height","auto"); }
    else { obj.outer.holder.css("height",obj.outer.minHeight); }
    obj.holder.attr("src",obj.src).animate({ opacity:"1"},obj.speed,"linear",function(){
    if (obj.mainHolder) { obj.mainHolder.css({ backgroundImage:"none" }); }
    $(this).attr("alt",obj.alt);
    fn();
    img.src = obj.src;
    } else {
    if (obj.mainHolder) { obj.mainHolder.css({ backgroundImage:"none" }); }
    obj.holder.css({ display:"inline", opacity:"0" });
    obj.holder.attr({
    src: obj.src,
    alt: obj.alt
    }).animate({ opacity:"1"},obj.speed,"linear",function(){ fn(); });
    getHash: function() {
    var hash = (window.location.hash).substr(1);
    if (hash) {
    var pairs = hash.split('&');
    var valuePair = {};
    for (var x=0;x 1 && callback && count%freq<u>0) {
    callback(data);
    var sTracker = new Trackers(); // private
    function showToConsole(str) {
    if (typeof window.console</u>'object') { console.log(str); }
    var slideShowsPack = window.slideShowsPack = new SlideShows();
    })(jQuery);
    // Tracking Data Here
    var trackData = {
    ads: {
    buildSlide: {
    frequency: 1,
    callback: function() {
    $(document).ready(function(){
    if (typeof $.ad.dc.load!=="undefined") {
    $.ad.dc.load();
    omni: {
    buildSlide: {
    frequency: 1,
    callback: function(data) {
    data = data || false;
    if (!data) { return false; }
    if (!data.slideNumber) { return false; }
    if (typeof $.ad.omni.load!=="undefined") {
    $.ad.omni.load({ "slide": data.slideNumber });
    var initializeSlideShow = window.initializeSlideshow = function() {
    if (typeof slideshowData!=="undefined") {
    if (!slideShowsPack.initialized) {
    slideShowsPack.init({
    data: slideshowData,
    info: slideshowInfo,
    relatedMedia: relatedsData,
    trackData: trackData
    } else {
    if (typeof window.console==='object') { console.log("[error] No Data found for: slideshowData"); }
    This the line highlighted:
    if (typeof $.ad.dc.load!=="undefined") {

Maybe you are looking for

  • FireFox is not playing sound on any video files. Youtube, Hulu, etc. I am not having this problem with the other web browsers on my computer.

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/908837]]</blockquote> I think it is related to a babylon add on that my son installed. I don't know how to get rid of it.

  • AR Invoice + Payment won't allow negative

    When using AR Invoice + Payment the screen calls Payment Means (moneybag) when you save the Invoice. The Payment Means window is only configured for Incoming Payments, and rejects a negative (ie Outgoing) value. Some user companies have POS software

  • Templates

    I watched several template tutorials and they seem to stop short on how to manage a website so that Contribute users can edit the website easily and web developers adding menu items without the need to update every page. So as I understand one create

  • To_Date Slow in Where Clause

    Hi, I have Simple Oraclae query.. Table: testTable Field: timestamp Data Type: Date timestamp filed date like '2/2/2012 10:15:11 AM' format. Index : No index On this table i want fetch the records between dates.. while execution the query its take lo

  • No columns in default template

    I just installed Pages '09 on a new system, and somehow the default template blank doesn't have any columns and won't allow me to create one. It's blanked out. So the only way I can actually type is by making a text box. Anyone have this problem? Sol