Adding setTimeout function to CS3 ?

Dear Forum
I am migrating a project from Flash 8 to CS3. I am keeping it
in actionscript 2. The complier says there's no setTimeout
function. I have added the following line to the toplevel.as class
wich in flash 8 has worked fine for me:
intrinsic function setTimeout():Number;
Is there something else that needs to be done to make this
hack work in the CS3 envirnoment?
Thanks
Stephank

so adding the intrinsic line to the toplevel.as file doesn't
do it anymore? I remember that the _global version always worked
but I'd rather not have to dig through all my files to rewrite that
setTimeout function... I had a feeling 3 years ago that this might
come back and haunt me...
or is there another file that needs to be modified so the
compiler doesn't complain?

Similar Messages

  • Adding setTimeout function to toplevel.as file in CS3?

    Hello Forum
    I am moving my actionscript 2 files to the CS3 environment. I
    have used in flash 8 the setTimeout function quite frequently. I
    added the following line to the toplevel.as file:
    intrinsic function setTimeout():Number;
    And this would make the compiler happy... in flash 8 at
    least... Flash CS3 gives me the old "no method with setTimeout"
    error...
    Is there another file that I need to modify so that the
    compiler accepts the regular setTimeout() function?
    Thanks
    stephank

    so adding the intrinsic line to the toplevel.as file doesn't
    do it anymore? I remember that the _global version always worked
    but I'd rather not have to dig through all my files to rewrite that
    setTimeout function... I had a feeling 3 years ago that this might
    come back and haunt me...
    or is there another file that needs to be modified so the
    compiler doesn't complain?

  • Adding subtitle functionality to my custom flv player

    Hey all,
    I have a custom flv player and i'm slowly adding more functionality to it as I go along but i've hit a wall.
    I want to add a subtitle button that toggles between show/hide. I've seen on the internet that the best way is to use an XML file (holding the script, times etc.), which I have no problem writing.
    I'm having problems trying to replicate the 'FLVPlaybackCaptioning' component (in Flash CS3) in to my custom flv player. I.E. Adding the right actionscript to my toggle button.
    Can anybody help me as I just can't find anything on the internet.
    Any advice is welcome!
    Thanks
    egr103

    Well the problem is that I can't find any tutorials or help about getting a subtitle toggle button into my custom flv player, an example of which can be found here: http://idl.newport.ac.uk/dev/customplayer.html
    I don't like using the FLVPlayback component built into flash as it is too clunky but at the moment that is the only way I can get subtitles to toggle on and off (using the FLVPlaybackCaption component).
    Ideally I would like to use an XML file to do the subtitles. Any ideas?

  • Question on adding one function to a submenu

    hi,dear all.
    I added one function to a menu.
    my question is I can find it from the forms navigator page but why I can not find it from the initial navigation web page ??
    thanks in advance.

    What is the application release?
    I added one function to a menu.
    my question is I can find it from the forms navigator page but why I can not find it from the initial navigation web page ??Please mention the steps and the navigation path you follow to reproduce the issue.
    Thanks,
    Hussein

  • Adding MP3 in Dreamweaver CS3

    Hi,
    I am new to this forum but I really need some help.
    I am trying to link some mp3s onto my website using Dreamweaver CS3. I have tried two options:
    Using a Flash button
    For example: <a href="../music/track.mp3">Services</a>
    Both instances do play the mp3 but they both open in a new window. They both open Windows Media Player.
    Is there anyway I can press the play button without opening a new windows? I just want to be able to stop, play, pause, etc. just from that button.
    Didn't consider embedding the files because I'll have a number of them a page.
    Any help?

    Thanks a million.
    Date: Tue, 9 Mar 2010 11:40:18 -0700
    From: [email protected]
    To: [email protected]
    Subject: Adding MP3 in Dreamweaver CS3
    Get Wimpy MP3 Player.  A single, Flash based, streaming media player can handle all your audio files from a playlist. Easy to set-up, dirt simple to add or remove media files later.
    http://www.wimpyplayer.com/affiliates/idevaffiliate.php?id=836
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com
    >

  • Help in setTimeout function

    I want to pass the argument in the function called in
    setTimeout function.
    Below is the code snippet.
    public function
    histogramDataPointClick(dataPointObj:Event):void
    var duration:Number = 5000;
    setTimeout(executeEvent(dataPointObj),duration);
    public function executeEvent(dataPointObj:Event ):void
    var index:int;
    var message:String;
    message="";
    selectedDataPoint1=dataPointObject.currentTarget.series;
    for(var i:int = 0; i<
    selectedDataPoint1[0].selectedIndices.length; i++)
    index=selectedDataPoint1[0].selectedIndices
    message = message+"
    "+protocolTrendData[index].valueOf().trialPhase;
    Alert.show("Selected Trial Phase"+message);
    dispatchEvent(new Event("histogramDataPointClick"));
    If I am trying to do that then I am facing error
    1067:Implicit coercion of a value of type void to an unrelated type
    Function.
    error 1067
    can anybody help me in that?
    Thanks

    try:
    setTimeout(executeEvent, duration, dataPointObject);
    setTimeout () function
    public function setTimeout(closure:Function, delay:Number,
    ... arguments):uint
    Runs a specified function after a specified delay (in
    milliseconds).
    Instead of using this method, consider creating a Timer
    object, with the specified interval, using 1 as the repeatCount
    parameter (which sets the timer to run only once).
    If you intend to use the clearTimeout() method to cancel the
    setTimeout() call, be sure to assign the setTimeout() call to a
    variable (which the clearTimeout() method will later reference)
    Parameters closure:Function — The name of the function
    to execute. Do not include quotation marks or parentheses, and do
    not specify parameters of the function to call. For example, use
    functionName, not functionName() or functionName(param).
    delay:Number — The delay, in milliseconds, until the
    function is executed.
    ... arguments — An optional list of arguments that are
    passed to the closure function.

  • Error adding partner function

    I am a newbie. I am trying to configure SD on my IDES.
    I am at the point of adding partner function (Z9) to the partner procedure (ZAG)
    but I am getting an error message:
    "Partner function Z9 cannot be used for partner procedures"
    I cannot find the answer in google.  please help.
    [click for image|http://i1181.photobucket.com/albums/x421/darkmatter1/196235/pfunction.jpg]

    Hi Anwar,
    Please check the parner function-account group and partner determination  procedure-account groups are assigned properly or not from
    SD >> basic functions >> partner determination >> set up partner determination >> Set Up Partner Determination for Customer Master,sales doc. header etc. which type partner determination you want to maintain if you want to maintain them for customer.
    In that screen, you need to maintain (Z9) to the partner procedure (ZAG) after doing Partner Determination Procedure Assignment and Account Groups - Function Assignment.
    I hope these will solve your problem.
    Regards,

  • Adding a function once a scrollpane has loaded

    Hi
    I have a scrollpane but need to put the scrollbar on the left. I've used the code:
    _root.scrollPane.vScroller._x = 0;
    This only works once the scrollpane has loaded. Could anyone help me with setting up a function/listener? I'm useless with listeners so any help would be appreciated. I've tried on(complete) with no success. I've also heard an "added" event listener may be the answer, but I've not managed to succesfully set that up.
    Thanks
    Simon

    in as3 you should use the added event and then position using the verticalScrollBar property of your scroll pane:
    sp.addEventListener(Event.ADDED,f);
    function f(e:Event){
    sp.verticalScrollBar.x=0;
    oops.  wrong forum.  delay by some time and then change your scrollpane's vScroller (or vSB) property.  if you're loading content into your scrollpane you can use the complete event.

  • Adding a function module into a SQ01 Query

    Hi ABAP Gurus,
    I was trying to extract few dates from TSEGE Table, by linking the VTTK - HANDLE. We are trying to look at maintaining dates of shipment that were not previously used in our company.
    When I tried extracting the dates from TSEGE, they come as timestamped UTC. I was told to use the function module IB_CONVERT_FROM_TIMESTAMP with CET in a query by an external consultant we use for our services. I am familiar with creating simple queries in SQVI and convert them to SQ01, also I know to create queries in SQ01 itself. But do not know how to add a function module into an SQ01 Query.
    After checking a few threads, I realise that I should be creating a field and entering the code of the function module.
    Is there any way, anybody could instruct me in simple terms how do I go about adding a function module.
    Your help will be greatly appreciated.
    Thanks in advance!

    Dear Jogeswara,
    I have after reading a few threads, understood this small code and changed to my specification
    To convert UTC Start time from TSEGE
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        I_TIMESTAMP = TSEGE-EVEN_TSTFR
        I_TZONE = CET
      IMPORTING
        e_datlo = date
        e_timlo = time
    To convert UTC Start End from TSEGE
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        i_timestamp = TSEGE-EVEN_TSTTO
        i_tzone = CET
      IMPORTING
        e_datlo = date
        e_timlo = time
    I hope the above codes are correct. If yes, I have a doubt: TSEGE-EVEN_TSTFR & TSEGE-EVEN_TSTTO have different time in the same field, "Actual" & "Forecast", which is determined by TSEGE-EVEN_VERTY wherein 1 is Actual and 0 is Forecast. Is this something I would have to put in the code, or something that would work in the query "Selection Fields"?
    Thanks again!

  • Best / most popular software or scripts for adding search function to website?

    I'm trying to find a good piece of software or script for implementing a site search function into our website.  I am relatively knowledgeable in Dreamweaver and can write CSS and XHTML at the fairly intermediate to advanced level, as well as work with JavaScript and js files, but I don't really know much ASP or "by hand" Java coding.  Their are so many scripts and software out there for adding a site search that it's hard to sort through and narrow down.  I was hoping to find reviews of the popular ones or "top 10 lists" of some sort that would help me pinpoint a good one, but can't find anything like that.  These are the primary needs of the website:
    --Has under 50 searchable pages that won't change much and probably won't exceed 50. There are product part numbers and descriptions for some 250-300 part numbers, spread across only 24 of those pages.  The remaining pages are important but no part numbers-- About Us, News, Where to Buy, History, Featured Products, etc.  The product pages are very much like an online store but we don't sell directly on the site (only thru distributors/reps).
    --We are trying to keep the price under about $50, or use a free solution
    --The pages are all static XHTML+CSS pages, but our server can run ASP (we have another website for one of our other product line divisions, on the same server, with many more products beyond 1000, which was programmed completely in ASP by an outside company about 4 years ago).  We self-host both sites.
    --Our server can't run PHP
    --The search capabilities need only be rather basic-- a keyword search with a results page that uses the same design template as the rest of the site.  It would be nice, but not mandatory, to have a search filter and/or a drop down menu to enable selectively searching only certain parts of the site, or only product/part number search vs. general search, etc. (but again, not mandatory).
    --I do have a sitemap page already on it, if that matters or helps
    Some of the ones I've found so far that looked the most promising include:  Zoom Search Engine (http://www.wrensoft.com/zoom/), Site Search Pro (http://www.site-search-pro.com/), and FX Site Search which is a DW Extension I found in the exchange (http://www.felixone.it/extensions/prod/mxssen.asp)-- (that one looks possibly technically challenging or requiring more ASP skill, though)
    Forgive me if there is a better area to post this, if so let me know.

    For a static site, your options are:
    Google ~  http://www.google.com/sitesearch/
    Freefind ~ http://www.freefind.com/
    Zoom from Wrensoft ~ http://www.wrensoft.com/zoom/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Error adding new function in order template

    Hi,
    When i am trying to add a new function to order Template under /contolData/Functions/ form data dictonary
    I am getting error :
    Element with same name exist.The following nodes can not be added to the order.
    (no namespace):/ControlData/Functions/MyNewFunction
    (no namespace):/ControlData/Functions/MyNewFunction/componentKey
    Thanks
    Harman

    Hi Harman,
    You might need to be more specific before I can help you. What have you done, and which step you run into the error? I supopse you have created a new "function" Order Component, and created the required Control Data nodes in Data Dictionary (what have you added?), right? So, when you go into the Order Template tab of the new Order Component (which would be empty since it was newly created), and you try to "select from Dictionary" the corresponding ControlData for the function (e.g. /ControlData/Functions/MyNewFunction), that such an error occurs?
    Have you assigned a process for this Order Component? Studio does not allow adding control data to it unless a process is assigned.
    Btw, you should define a namespace for your Order Components (and other orchestration entities). The OSM server uses namespace to locate these entities among cartridges.
    Cheers,
    Daniel Ho
    Product Management -- OSM

  • Using setTimeout function in APEX

    Hi,
    I am trying to show a print dialog box after which I need to take confirmation from the user whether the printout has come fine or not. For acheving this I am trying to use setTimeout in javascript which is not working. The confirmation box is coming before print dialog box which I do not want to happen.
    Below is the code I am writing in APEX
    <html>
    <head>
    <script language="JavaScript1.1" type="text/javascript">
    function updatePrintFlag()
    var print_flag = confirm("Has the printout come fine?");
    if(print_flag==true)
    alert('Printout has come fine. Updating in the database');
    function callPrint()
    window.print();
    var sleep = setTimeout(updatePrintFlag(),2000);
    alert(print_flag);
    </script>
    </head>
    <body onload='callPrint()'>
    <font size=2>Asking confirm after 2 Secs of print dialog box</font>
    </body>
    </html>
    Please help me in this issue. Thank you.
    Regards
    Dev
    Edited by: [email protected] on 18-Mar-2009 03:17

    Hi -
    Change this line (note quotes):
    var sleep = setTimeout("updatePrintFlag()",2000);Edited by: cmcneil on Mar 26, 2009 1:38 PM

  • How to use the "Fade Wave" function in CS3?

    I have found old tutorials which reference a "Fade Wave" either filter or function under edit back in PS6, but I can't seem to find it in CS3.  Is there any way to enable this, or an add-on which includes it?

    Control-shift-f will fade the most recent filter. A lot of smoke tutorials involve fading the wave filter. Fade... is under the Edit menu, and is only selectable directly after a filter or fade-able action has occurred (such as painting with a brush or filling with pixels).

  • Adding new function & menu to apps

    Hi i am newbie to apps
    i am working with forms and reports and having access to apps ,I like to know how can register my function with specific menu and to specific responsibility.I searched this forum but didnt found a clear steps.I also like to know create and register menu in apps
    thnks
    ramya

    Ramya
    I will give you a brief explanation, but you will find more details in the document Oracle Applcations System Administrators Guide, whcih can be found on MetaLink.
    Functions are used to associate a form or procedure with a menu item. The seeded forms and self service functions all have functions pre-defined. If you create new forms or self service procedures, you will want to create a new function to associate your versions to.
    Once you have defined a function, you need to associate the function to a menu. If the function can be accessed directly from the menu, you need to have a menu prompt which the user can use.
    Then you associate your menu (with its functions) to responsibility. You can control which menu items you want the user to access by adding 'menu or function exclusions' to the responsibility. In this way, you can have one menu, but with different variations used in different responsibilities.
    There are manyu variations on this theme, but I hope this basic explanation points you int he right direction.
    Regards
    Tim

  • Quicktime movies corrupted by adding metadata in Adobe CS3

    Recently I happened to switch from using Adobe CS2 to CS3 (don't ask me why, I know they're old versions).  I use Adobe Bridge to manage/organize my digital photos and movie files from my digital camera.  In CS2, whenever I attempted to select multiple files to annotate with metadata such as description, location, etc., the program would warn me that "some files" in the selection (i.e., the Quicktime .MOV files) could not contain metadata.  So I would click OK, continue to annotate the batch, and Bridge would simply exclude the .MOV files and only add the metadata to the photos.  When I started using Bridge CS3, I noticed that the warning dialogue box no longer came up.  At first I was pleased, and thought, Great, now it's OK to add metadata to my movies as well!  But not long after, I started noticing a problem where some of my .MOV files were no longer playable, even though they had been fine immediately after download.  Since I only add metadata to about a quarter of my files, it took me a while to see the pattern:  Adding metadata to the .MOV files does in fact corrupt them and make them unplayable in Quicktime.  CS3 was not doing me any favors by suppressing the old warning!  I knew the movies were fine since I had already played them before, but the moment they were assigned metadata, Quicktime refused to recognize the files. 
    Now that I know the problem I am very vigilant about not adding metadata to movies anymore, of course, but I need to salvage the already corrupted movies, since some of them are precious to me, such as my daughter's birthday videos.  I have tried various workarounds such as attempting to convert them to another format with video conversion software, but the conversion software also can't recognize the files now.  The best luck I have had is that I can still play the movies using a program called VLC, so I know the essential data is not ruined, it's all still there.  And when I have tried a couple of diagnostic tools, they are able to extract the images and recognize the file -- but not able to restore it to its original form.  I have also tried deleting the metadata, in Bridge, but that doesn't help.  Does anyone know of a method or a program that can help me restore these as Quicktime files?  It appears that there are services out there that will charge a lot of money to repair corrupted files, but I really think this should not be so hard or expensive.  The integrity of the movies is still there, everything is intact, there's just been a line of code inserted somewhere that shouldn't be there I suppose.  I wish I could get in there and delete it myself.  It's great that VLC has no problem playing them, but as long as these are unusuable as Quicktime files, I can't send them to my family, upload them to video-sharing sites, etc.
    Thanks, anyone, for your help.

    I don't know how to fix what was already modified, but in Premiere Preferences, there is a box that is checked by default, something about "Write XMP data" or similar, you'll want to uncheck that.
    Thanks
    Jeff Pulera
    Safe Harbor Computers

Maybe you are looking for

  • Slow/Fast/Reverse DOES NOT WORK

    I have read other posts on this issue. When I attempt to apply this effect, it does not work. This is a new project in iMovie HD 6. Clips will not take this effect. It shows up in the preview fine but will not apply. Below is what I sent Apple. Any a

  • IPhone cannot be synced - an unknown error occurred (13019)

    I have the blues. My iPhone cannot be synced and is rejected in iTunes with the message: "The iPhone "my iPhone name" cannot be synced. An unknown error occurred (13019)." Can someone here help me. TIA, Ken

  • Aperture 2.1.3 crashes after install of 10.5.7 when creating MobileMe Album

    Looks like I'll have to archive and install 10.5.6 I repaired permissions and trashed the user/library/com.aperture.plist but no joy. Totally reproducible. Kernel exception crashes Aperture. I sent in the log to Apple. Computer is new MP (early 09) w

  • Reduce the execution time of catproc.sql

    how can i reduce the time of execution of catproc.sql, I have increased the size of redo log files from 5m to 40m, but still performance hasn't improved much, any suggestion regards asif

  • Using Developer Workplace Without Network Connection

    Hi, I have just installed the NW04s SR2 Developer Workplace. Without connecting to any network, I tried to start up the J2EE Engine in the SAPMMC but it cannot start up saying <b>Error occurred: Secure Store lib Dir does not exist MLEE20-1\sapmnt\J2E