Importing scrollbar actions

My problem is I'm trying to play a function contained in an as. file. It's not the main function in the class file. When I downloaded the sample, the as. file was in the same file as the fla, and the only actionscript in the fla file was
sb.init(txt_mc, "easeOutBack",2,true,2);
I tried saving it in the same file just as the sample but when i tested it I get an output error stating init is not a function (I'm guessing because it's not in the first frame like in the sample). so i just moved the as file with to the rest of my class files, and i tried this
import com.mysite.mouse.Scrollbar;
var Scroll:init = new init();
sb.Scroll(txt_mc, "easeOutBack",2,true,2);
I'm not too sure of myself when it comes to importing class files, but here's how the as. file is set up
Package....
import statements...
public function Scrollbar():void {
scroller.addEventListener(MouseEvent.MOUSE_DOWN, dragScroll);
stage.addEventListener(MouseEvent.MOUSE_UP, stopScroll);
stage.addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheelHandler);
public function init(t:MovieClip, tr:String,tt:Number,sa:Boolean,b:Number):void {
target = t;
trans = tr;
timing = tt;
isArrow = sa;
sBuffer = b;
etc.....

If Scrollbar is the name of the package, then I believe that is what you need to declare...
var Scroll:Scrollbar = new Scrollbar();
Scroll.init(txt_mc, "easeOutBack",2,true,2);
I am not well versed in class/package matters, so a grain of salt might help, but I am pretty sure your class, Scrollbar, is what you assign as a new instance, and then you utilize the class methods/properties thru the instance created.

Similar Messages

  • Lightroom 3 importing photoshop actions

    hi guys,
    i'm quite new to lightroom, changing over from photoshop. I have set new actions in lightroom, and thats all working perfectly. However, i have actions in photoshop cs5, which i want to import to lightroom 3. the actions involve a blur and soft focus etc, so i can;t recreate it in lightroom.  Is this even possible? any help would be greatly recieved.
    thanks in advance
    kas

    You cannot import / use actions of CS5 in Lr.
    CS5 and Lr are fundamentally different in the way they work. CS5 is a pixel editoe whereas Lr does not touch the pixels of an image and stores everything in the catalog (= non-destructive editing).
    Also, CS5 and Lr have different tools.
    Since you are new to Lr I would recommend that you make yourself familiar with the completely different way in which LR does edit. Please make yourself familiar with the important concept of the "catalog".
    If you don't you will sooner or later (probably sooner) into serious trouble particularly if you are assuming that it works like CS5. Lr is not a program to just jump into; you have to learn it.
    I recomment that you watch some of the tutorials on Adobe's website:
    http://tv.adobe.com/product/lightroom/
    http://tv.adobe.com/show/adobe-evangelists-julieanne-kost/
    http://tv.adobe.com/show/learn-lightroom-3/
    A good source for info is Victoria Brampton's website: http://www.lightroomqueen.com/
    WW

  • [Photoshop] Comment assigner n'importe quel raccourci clavier à n'importe quelle action ?

    Bonjour,
    J'ai actuellement un problème des plus frustrants !
    En effet, cela fait 2 jours que je me suis mis à réfléchir sur des raccourcis personnalisés qui me permettrait d'aller beaucoup plus vite qu'avec les raccourcis clavier par défaut.
    Après avoir, enfin, fini de me faire un tableau avec 15 touches ayant chacune 3 possibilités (1x nue, 1x avec shift, 1x avec ctrl), j'ai la grande, et horrible, surprise de voir que Photoshop m'interdit de faire ce que je veux :
    - "Le raccourci [...] est incorrect. Les raccourcis des comandes de menu doivent inclure la touche Ctrl et/ou une touche F."
    Pourquoi ?!
    Enfin, ma vraie question à laquelle, j'espère, vous pourrez répondre est la suivante : comment faire pour contourner ce problème afin d'assigner n'importe quel raccourci à n'importe quelle action sans limitation ?
    D'avance, merci de vos réponses !
    Julien

    … Ou bien JRB s'est étouffé en essayant de tenir parole ! [et dans ce cas, merci de respecter une seconde de silence ! pas plus.]
    … Ou bien JRB a définitivement quitté le pays, piteux ! [et dans ce cas, merci de respecter également une seconde de silence ! quoique nous quitter pour une si mauvaise blague me semble difficilement justifiable !]
    … Ou bien JRB est toujours à table !………
    Bref !
    Pour en revenir à nos "chaussettes" (euh, moutons), effectivement, vous avez raison tous les 2 !
    … sauf que… !
    QuicKeys [ce n'est pas la première fois que je l'écris] permet de contourner la question :
    1/ Faire un RC "acceptable" dans Photoshop, pour une action donnée.
    2/ Faire une "substitution" de RC avec QuicKeys, soit un RC (interdit dans Photoshop - et qui sera le déclencheur dans QuicKeys) déclenchant le RC du point 1/.
    C'est simple, n'est-ce pas !

  • How do i import my actions from photoshop cc to phhotoshop cc 14?

    ?

    If Edit > Presets > Migrate Presets does not work out you can save the Photoshop CC Actions as atn files and load those in Photoshop CC 2014 from the Actions Panel’s fly out menu.

  • How do you import actions from an older version of elements to a newer one?

    I just upgraded from Elements 6 for a mac to Elements 9. I have about twenty or so actions  I've downloaded into Elements 6.  Does anyone know how I might import these actions into Elements 9?  I'm hoping there is an easier way than importing them each one by one from the original files.....Thanks!

    I was about to post to ask Paul what advantage there is in Exporting/Importing Projects over simply converting the Library as kbeat suggests.
    Then I reread the original post and realized that what you are trying to do is combine the two libraries.
    If that's the case, Paul has given you the answer.
    DLS
    Message was edited by: MacDLS

  • Importing Actions from PS-CS3 to CS4

    I recently upgraded from Photoshop CS3 to CS4
    I tried to import the "Actions" I used in CS3 into CS4, but they didn't work.
    Is there a converter or something?  Anyway to get those actions into CS4 without re-recording them?
    Thanks,
    --PS

    Ah,  restart the program! 
    I just loaded my actions set from wherever they're stored on my hard drive - a directory somewhere for Photoshop stuff.
    Restarted PS-CS4 and... voila, actions work.  Didn't think I needed to do that.
    Love simple solutions.
    Thanks,
    --PS

  • Action Script Import

    Hey Guys I love the idea and I know it is a daunting task to convert .fla into html5. I am working on removing any action script in any of my .fla files so that, 1: they may convert, but in doing so I realized that It may be possible to create a seperate stand alone action script...place it in the server, and the import said script into html5 the similar way you would when calling an image href, but the problem is... How if at all would I be able to import script into html5, and/or java for each individual scene related to a large .fla? My thoughts are I would need to create a new individual (Java class's) related to each individual action script scene and then import those into the html5 code! I am on track with the thought, or am I just crazy...
    In order to accheive this I would need to import the action script standalone into the root folder any recommendations?
    For example: stop(); frame 10 scene 1 layer Bck_Ground
    Then file name would be: layer 1 Bck_Ground.AS
    Java class  1Bckground. js
    .requires(
    bck_ground.as
    This only as an eample of thought not real code!
    and or the ssame ideal in HTML5?
    Could this work?
    Thanks James

    Then no offense to Adobe, but this to me is an intermediate way of creating an animated gif...Granted if I wanted to create a animated gif from.swf I have to go through several steps, but at least I don't get the annoyance of ".fla not supported"! My input to Adobe in your Wallaby creation is this...Please consider the creation of a re-write enging for pre-existing action script that will interpelate the data of each scene, and layer directly from the .fla, and then import it into several native languages that the user can select such as java, html5, possibly C, xml, and be compatible for Mobile Web, IOS, SDK, and Stand-Alone Java!, and export all media assets into a seperate file folder with the a fore mentioned extensions placed and housed with coresponding media...After-all none of us Flash Heads really want to re-write code the hours of code we spent developing for a product that can't or won't be seen by mobile applicatioins. If you can do that I would pay my top dollar for it...and I would think everybody else would agree with me! Thanks for your hard work...keep plugging along!
    James

  • How to programatically import action

    Hello,
    Is it possible to programmatically import an action or jsx?
    Thanks

    Please refer -
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/reporting.htm
    http://jvzoggel.wordpress.com/2012/01/18/osb_tracing_report_action/
    Regards,
    Anuj

  • Problem importing actions from CS3 to CS6

    Hi, I have just installed CS6 and need some actions that I made in CS3 and earlier.
    Info that I read on support sited said that I should be able to import them.
    I have tried the edit import actions menu.
    I have tried dragging the old action set to the new version.
    All to no avail.
    Tried the online live help and got no where.
    What I would like to try next is to instal CS4 and see if I can import the action set from CS3 and then onwards from CS4 to CS6
    However the support person could not give me a link to download CS4......
    Any help greatly appreciated as I really need my old actions and CS6 is a useless to me without them!

    You need to load them into Photoshop to use them. Their save files can be any where on your system. Once loaded they are copied into your user id Photoshop  preferences.  Photoshop load no action set on its one. The default set is in Adobe default set of preferences. This is the only set in the Photoshop default Actions Palette.  The action set listed in the action palette's fly-out menu are the one in Adobe Presets Actions and perhaps ones you copied into there or save into a folder Adobe set up for you user id for the current release of Photoshop your using.  My advice is do not save any of your actions sets into any Adobe folder.  Instead save them into a folder like "My Photoshop Actions" load them from there too or drag an drop them onto Photoshop.  Once loaded as  I wrote above they get copied into your user id Photoshop preferences. And will be in the Actions Palette when you shutdown Photoshop and re open Photoshop.
    Photoshop does not import actions you must load them one way or an other.

  • How can I save my actions from previous illustrator versions to import into CC

    I have a very good workflow with Illustrator CS6 and it bothers me that I have to re-record all my favourite actions in Illustrator CC.  How can I import my actions from CS 6 to CC version?

    Janet,
    I believe you can use do it in the same way as described in this recent thread (you may need to take the necessary time to locate the specific folder in the old CC):
    import settings into cc 2014

  • Exporting PS Save Actions for Mac and Windows

    Hello,
    I want to share a "Save for Web" action script that I created for other users in my group to ensure they use the same settings. Some users are Mac, some are Windows.
    How do you make the desktop location generic between both platforms? For instance the action script seems to record the path all the way up to the local root Macintosh HD and includes my user directory name. If another users imports that Action script, they will get a directory not found error. Is there some shortcut I can edit into the script with a text editor so the location is common between platforms?
    Something like ~Desktop?
    Guessing.
    Thanks for any help.

    If you are talking about an actionset .atn file then you can use a couple of Xbytors scripts from his xtools package.
    Convert the actionset to xml using actionFileFromXML.jsx
    You will then need an install script  to change the path(s) in the xml
    Then convert back to an atn file using ActionFileToXML.jsx
    Install the actionSet.

  • Exception in JSP during import roles from BO to SAP

    Good day,
    I have installed SAP Integration Kit but during Import Role action at Authentification - SAP I have error:
    Exception in JSP: /jsp/auth/sapsec_import_role.jsp:16 13: <%@ taglib prefix="b" uri="com.businessobjects.webutil.jsf.controls_1.0"%> 14: 15: 16: <jsp:useBean id="secSAPR3ImportRoleBean" 17: class="com.businessobjects.clientaction.sap.auth.importrole.SAPR3AuthImportRoleBean" 18: scope="session" /> 19: Stacktrace:
    OS - AIX 5.3 64 bit
    Java Connector 2.1.8 32 bit
    Best regards, Iurii Tiunov.

    Hi,
    BOBJ 12.0.1
    BOBJ INTGR. FOR SAP XI 3.1
    I Try to install FixPack 1.3 for BOBJ INTGR. FOR SAP XI 3.1 but error is the same:
    Exception in JSP: /jsp/auth/sapsec_import_role.jsp:16 13: <%@ taglib prefix="b" uri="com.businessobjects.webutil.jsf.controls_1.0"%> 14: 15: 16: <jsp:useBean id="secSAPR3ImportRoleBean" 17: class="com.businessobjects.clientaction.sap.auth.importrole.SAPR3AuthImportRoleBean" 18: scope="session" /> 19: Stacktrace:
    Best regards, Iurii Tiunov.

  • ITunes does not import certain files

    Hi everyone,
    I had to reinstall my WinXP system and therefore also reinstalled iTunes (v9.0.3.15). Now, when I imported my whole MP3 directory, iTunes did not import some albums without displaying any error message. When I realized that some albums are missing, I tried to import them using drag&drop from the Windows Explorer, using the "File-Import file", "File-Import directory" (or whatever these menu items are called in english...), but nothing works! iTunes simply does... NOTHING. No error, no file imported, no action at all.
    The files are fairly typical MP3 files: 192 kbps, 44kHz, ID3v1, ID3v2 both present, no DRM... And the most weird fact is: on my old WinXP system (same machine, but slightly older iTunes version) iTunes did import the files without problems!
    I have no clue why iTunes won't import them. Does anybody else have an idea?
    Many thanks in advance.
    Best regards,
    gehho.

    Hi ed2345,
    thanks a lot for proposing the MP3 Validator! This fixed my problem. For others having a similar problem: I used this software: http://www.gromkov.com/faq/repair/mp3_validator.html
    However, I must say that I am really annoyed about iTunes and Apple. I mean, what kind of design is it when you say: "We do not accept slightly invalid files, although every other player accepts them. And most important: We do not display an error message to the user, so that he/she has to find the problem him/herself! Ha!" This is really extremely bad user experience, and I always thought Apple was known for their innovative path, especially regarding user experience. Pfff...
    There are sooo many other things that annoy me; I think I will not buy any Apply product anymore. In my eyes, they have even overtaken Microsoft in being the most user-unfriendly company on the market:
    1) You HAVE to use iTunes to copy files on your iPod instead of just using the iPod as a USB drive. What is this for??? It's just to promote their stupid iTunes which again introduces new problems.
    2) iTunes obviously does not accept ID3v1 tags. It just displays all my MP3s which only have v1 tags as "Unknown". Come on, every other MP3 software supports ID3v1, why does not iTunes???
    3) The import process in iTunes is such a hassle. Instead of being able to observe a directory for new files, you have to add every single new album manually. Of course, only after you validated it... Moreover, you cannot add multiple directories at once using the menu options - you have to do it with drag&drop; and it took me some time to try that.
    4) EDIT: Another point just came to my mind: When importing a whole directory, iTunes is stupid enough to add all files once again, instead of just adding the new files. Therefore, you really have to know which album is missing in iTunes because otherwise you will have lots of files twice or three times or hundred times.
    OK, that's enough for now. I am just really pi**ed off because I was playing around with those "invalid" files for about 5 hours. Might also be that it's me who's the stupid one - if so, please tell me. But from a company like Apple, I expect a software which is easily handled even by absolute newbies, and I would not call me a newbie...
    Anyway, have a nice day everyone, and happy validating!
    Thanks again to ed2345! The comments above were not meant for you! It just came out of my fingers... Btw: As you asked my to pick my interpretation... I would pick "INCOMPETENT" - completely!
    gehho.
    Message was edited by: gehho

  • (Almost) No actions in the Library?

    I've had my iMac just about a year now, and as far as I can remember, the Automator library has always been mostly empty. When I installed Office 2008, the Office actions showed up under the Most Relevant folder, but the Library folder itself remains empty.
    If, following info I found on another forum, I delete the ~/Library/Caches/com.apple.Automator.ActionCache.plist and ~/Library/Preferences/com.apple.Automator.plist files, the next time I load Automator whopping three actions will show up, properly categorized, in the library view. Once I close and re-open Automator, however, even those three actions are no longer listed.
    I have 229 items in the ~/Library/Automator folder, which I assume are the default actions and workflows. Trying to re-import these actions within Automator has no apparent effect, although if I make a copy of that folder and try to import the copies, I do receive a message stating that the action was previously imported.
    I'm kind of at a loss and would appreciate any recommendations. Automator's just not that useful with no actions available.
    Thanks!

    I wish it was as simple as my stupidity Unless I go through the steps of deleting the aforementioned plist files, there is nothing listed in the Library to expand, only the Office 2008 actions in the Most Relevant smart folder.
    After seeing your response last night, I went through the additional steps of deleting everything except the Automator application file itself, including the /System/Library/Automator folder. No change in the results. After re-importing all those actions files, I still only see a few actions listed.
    I've examined the files on my wife's MacBook, which does display the Library contents correctly, and just don't see anything that she has that I am missing. Clearly I'm overlooking something, but I don't know what.

  • Action script though batch client

    While importing data using Action Script, if we have properties with same label name which belongs to different namespaces, DRM is not able to identify which property it should actually point to. Generally when we run the script from UI, we manually select the correct property in UI.
    Now, what can be done to achieve the same functionality when we run the script from batch client.
    Suppose we have two properties, with same label name as ACCOUNTCODE which are present in two different namespaces,
    ESSBASE.ACCOUNTCODE
    CUSTOM.ACCOUNTCODE
    Now while importing the action script, system is unable to determine to which ACCOUNTCODE property it should point. What changes in action script or any other places  can be done to make the system enable to point to the correct property.

    Our client wants it this way only (having same property labels across Namespaces). Is this possible to have Property Names or Fully qualified Property Names instead of Labels in hierarchy export of DRM?

Maybe you are looking for

  • I am using acrobat 9 pro. Using the optimise pdf. File size increases?

    I am trying to clean up some previously scanned images containing mainly text. The original file sizes are 80K. I use the optimise pdf tool to 'despeckle' with all the other option set to off. When I save and then check the new file size it has incre

  • Can't Install New Apps

    I can't install new applications to my iPod Touch. I've restored the iPod, reset both it and the computer but it still won't work. The unknown error code is 0xE8000050.

  • Radio buttons & Parameters in Selection Screen...

    Hi all, I have a case in Selection Screen : There are 2 radio buttons(R1 & R2) and 4 parameters (P1, P2, P3, P4). WHen i select R1 then P1 and P2 should become mandatory when i select R2 then P1, P2, P3 & P4 should become mandatory. I have coded it u

  • Bug in code HELP!!! please

    When i put a term that isnt in my dictionary it says it isnt in dictionary which is what i want it to do but when i type one that works and it asks to do another one and i click yes or no it says it cant be found, and i cant find what i did wrong. do

  • NSP (nw04sSP9) installed OK, but SAPgui fails on start

    Hi I installed NSP Ok and it starts OK in sap console. When I login using SAPGUi I get the following error even before sap login screen. Runtime Error: DBIF_RSQL_INVALID_REQUEST Error Analysis: an invalid request was made to the SAP database interfac