AS2 adjustment

I am using this code within a AS2 project:
for(var i:uint = 1; i<=3; i++){ 
     this["btn"+String(i)].addEventListener(MouseEvent.ROLL_OVER, bringToFront);
function bringToFront(evt:MouseEvent):void {
     this.setChildIndex(SimpleButton(evt.currentTarget), this.numChildren-1);
This was originally from a AS3 project. I have tried to change the syntax but i can't seem to figure out what to change it to.
I am getting compiler errors that say:
The class or interface 'uint' could not be loaded
The class or interface 'MouseEvent' could not be loaded.
How can i fix this?

for(var i:Number = 1; i<=3; i++){ 
     this["btn"+String(i)].onRollOut = bringToFront;
function bringToFront():Void{
    this.swapDepths(this._parent.getNextHighestDepth());

Similar Messages

  • Adjust sound volume with as2

    Hello,
    I am working on a project with background music.  Is there a way to adjust the sound volume?  My project is using AS2 and I would like to keep it an AS2 project.  Is there a script that I can put in my actions panel to adjust by percentage? 
    thanks,
    Mark.

    what timeline contains the code and what's the relationship between that timeline and the one that contains the sound?

  • How to deal Inhouse files using Seeburger AS2 adapter...!!!

    Hi all,
    Has anyone managed to configure the Seeburger AS2 adapter for XI successfully to process multiple inbound message types.
    We have an issue here with inbound messages being received by the AS2 adapter. We currently have it configured for inbound deliveries(Which deals with EDI files) which is working fine. The issue is that we would now like to send other messages as well. It seems the AS2 adapter only looks at the sender/receiver party combination to determine the correct sender agreement, but does not look at the message type which is a limitation. I have heard mention of a splitter module which can be used to distinguish between different messages and pass them to the correct sender agreement for processing, information on this is thin on the ground to non existent.
    I have few custom Inhouse files where i need to recieve through AS2 adapter.
    I need to differentiate the messages hitting to my communication channel.
    ex:
    1st message will be having
    HDR PICKS
    2nd message will be having
    HDR PURCH
    so based on the second field which has "PICKS" or "PURCH" , i need to pass the message to run the corresponding map.
    How i need to configure to acheive these kind of custom Inhouse files through AS2 adapter??
    Do i need to use splitter for these as well?? If yes how i need to use?
    Is there any setting we can make at Sender AS2 adapter to differentiate each message??
    Waiting for the answers.
    Kindly reply if anyone knows.
    Thanks&Regards
    Seema.

    Hi,
    i have setup a scenario with edifact (different message types) using as2.
    first i had to create a mapping using bic.
    edifact_xxxx
    in: edifact_service
    out: functional acknowledgement.
    in the mapping code i adjusted the called mapping, standard it will use see* changed it to e2x* (custom mapping)
    in your case using flatfiles maybe you should take a look at the VDA structure, these files are also defined under inhouse.
    when you define a input file adapter are you getting a classifier message?
    like
    <classifier><type>Edifact</type><classifierMappingID>XXXX</classifierMappingID><encoding>US-ASCII</encoding><additionalIdentifier></additionalIdentifier></classifier>

  • Need assistance converting some AS2 code to AS3

    Hi,
    I have some simple AS2 code that brings in a MovieClip when
    you click a button. This is currently AS2, and I would rather
    convert it to AS3. I also have some code which closes the MovieClip
    upon button Click.
    The code I am currently using is below:

    addMC is the name of one of the event handler functions, not
    the button(s). the button instance names are: addButton and
    removeButton.
    To have three of them, duplicate what you see and have new
    variables, functions, and button names for all three sets, adjusted
    appropriately.
    I'm pretty sure this isn't over yet, I'm just giving you code
    per your defined scenario, which may have a hole or two in it. Try
    it out and see what you really want to do, then come back when you
    find out things need to be tamed in some way or aren't working as
    you want. There are more complicated ways to deal with a situation
    depending on what you really want, and I'm one who prefers to see
    some work done at your end that shows you've tried something (I'm
    not mean, much, I just have this thing about learning by doing).

  • Seeburger AS2 - DECRYPTION_ERROR - Could not retrieve certificate

    Hi
    Can anyone suggest a reason why I am getting this error regarding failed Decryption:
    Error while parsing AS2 message: DECRYPTION_ERROR # Error while loading decryption certificate: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: java.security.PrivilegedActionException: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: Could not retrieve certificate TRUSTED\STEVEB\XX.com.seeburger.ediint.edi.EDIMessageException: cannot decrypt message (certificate or private key missing)
    I am pretty sure that the configuration is correct...
    Configuration:
    [View Creator Role|http://i1111.photobucket.com/albums/h469/SBentley2011/ViewCreatorRole.png]
    [JCA Connection Factory |http://i1111.photobucket.com/albums/h469/SBentley2011/connectionFactory.png]
    [Keystore View|http://i1111.photobucket.com/albums/h469/SBentley2011/keystore.png]
    [PI7.1 Config|http://i1111.photobucket.com/albums/h469/SBentley2011/config.png]
    BTW I am using PI7.1 ENH 1 and Seeburger 2.5.1
    Thanks for looking.
    Edited by: Andy Cliff on May 25, 2011 12:40 AM

    Hi
    Really strange, but no joy at all. Even going for the alternative 'Code Based Access' option described below, I continually get  Error:
    java.security.PrivilegedActionException: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: Could not retrieve certificate
    _Code Based Access to the SAP Keystore_
    Creating/Inserting a New Certificate
    1. Create a personalized key store view. Certificates and private key entries should be stored in this
    view.
    2. Using the Security tab of the key storage service web interface, assign the following list of
    permissions to the codebase of the adapter in use:
    4. Note that permissions that are view based only need to be set once per view and
    codebase/domain combination, but entry based permissions need to be set for each entry in the
    view to the codebase/domain!
    5. Open the NetWeaver Administrator - Application Resources and select the JCA Connection
    Factory for the respective adapter. In the lower pane, select the Configuration Properties and
    adjust the adapterUser to an empty String (delete the previously entered name). This disables the
    user based access and enables code based access. Do not forget to Save your changes.
    The following table lists the adapters and the corresponding codebases/domains:
    SEEBURGER Adapter Configuration for SAP NW Process Integration 19
    In case you experience errors which read as "Reauthentication failed" or "Error
    construction implementation" you might need to restart the J2EE server
    u2022 VIEW_ALIASES
    u2022 GET_VIEW
    u2022 LIST_VIEW
    u2022 IS_VIEW_EXISTS
    u2022 FIND_ALIAS
    u2022 LIST_ENTRY
    u2022 READ_ENTRY
    u2022 IS_ENTRY_A_KEY
    u2022 IS_ENTRY_EXISTS
    u2022 CREATE_ENTRY_AT_VIEW (for pending keystores)
    4. Note that permissions that are view based only need to be set once per view and
    codebase/domain combination, but entry based permissions need to be set for each entry in the
    view to the codebase/domain!
    5. Open the NetWeaver Administrator - Application Resources and select the JCA Connection
    Factory for the respective adapter. In the lower pane, select the Configuration Properties and
    adjust the adapterUser to an empty String (delete the previously entered name). This disables the
    user based access and enables code based access. Do not forget to Save your changes.

  • Adjust Y pos of Flash video control strip (skin)

    Hi
    I am in need to move the video control strip upwards so it clears my caption in the video shown below.
    The skin is a swf, and normally if I import a swf to to another fla as an outside source I can adjust xpos and ypos with action script.
    I am using AS2 and would think this can be controlled in the flv playback component. But I can not find out how.
    Can you help?
    Thank you on beforehand!
    ggaarde2

    Hi Again!
    Is there anybody out there?
    Meanwhile I have looked into creating a dublicate skin and tried to edit that.
    There is not much code for the fla. Here it is:
    // a lot of the code below is commented out.  This is because the
    // we are just setting those values to the default values anyways.
    // This gives you an idea of how little code you might have to write
    // if you did your own skin!  But we leave the commented code in
    // to give you an idea of what you would need to do if you wanted
    // to customize the skin.
    // Defaults:
    // * layout_mc.foo_mc.mc defaults to foo_mc
    // * for seek bar, layout_mc.foo_mc.handle_mc defaults to handle_mc
    // * layout_mc.foo_mc.anchorLeft defaults to true, unless anchorRight
    //   is explicitly set to true and then it defaults to false
    // * layout_mc.foo_mc.anchorRight defaults to false
    // * layout_mc.foo_mc.anchorTop defaults to false
    // * layout_mc.foo_mc.anchorBottom defaults to true, unless anchorTop
    //   is explicitly set to true and then it defaults to false
    // minimum width and height of video recommended to use this skin,
    // leave as undefined or <= 0 if there is no minimum
    layout_mc.minWidth = 155;
    layout_mc.minHeight = 60;
    // background for controls, some commented out because are defaults
    layout_mc.bg1_mc.mc = chrome_mc;
    layout_mc.bg1_mc.anchorLeft = true;
    layout_mc.bg1_mc.anchorRight = true;
    //layout_mc.bg1_mc.anchorBottom = true;
    // playpause_mc just using all defaults, so no code needed
    //layout_mc.playpause_mc.mc = playpause_mc;
    //layout_mc.playpause_mc.anchorLeft = true;
    //layout_mc.playpause_mc.anchorBottom = true;
    // volumeMute_mc just using all defaults, so no code needed
    //layout_mc.volumeMute_mc.mc = volumeMute_mc;
    layout_mc.volumeMute_mc.anchorRight = true;
    //layout_mc.volumeMute_mc.anchorBottom = true;
    // seekBar_mc using mostly defaults, but setting
    // anchorRight to true
    //layout_mc.seekBar_mc.mc = seekBar_mc;
    layout_mc.seekBar_mc.anchorLeft = true;
    layout_mc.seekBar_mc.anchorRight = true;
    //layout_mc.seekBar_mc.handle_mc = seekBarHandle_mc;
    //layout_mc.seekBar_mc.progress_mc = _parent.seekBarProgress_mc;
    // bufferingBar_mc using mostly defaults, but setting both anchorLeft
    // and anchorRight to true and setting fill_mc
    //layout_mc.bufferingBar_mc.mc = bufferingBar_mc;
    layout_mc.bufferingBar_mc.anchorLeft = true;
    layout_mc.bufferingBar_mc.anchorRight = true;
    //layout_mc.bufferingBar_mc.fill_mc = _parent.bufferingBarFill_mc;
    I have tried to add:
    layout_mc.ypos = -100;   and layout_mc._y = -100;
    to my ClearOverPlaySeekMute_GG_1.fla
    Did not work.
    Also tried inside Fla with the flv playback component to add
    _y=-100
    That moved the whole component up.
    Then I tried to address the swf from there:
    layout_mc._y = -100;
    Did not work.
    Then I tried to address the swf from there:
    ClearOverPlaySeekMute_GG_1.swf._y = -100;
    Also did not work.
    What is it that decides the default position of the componet?
    I am out of ideas.
    ANYONE?
    kglad or Ned Murphy?
    Thanks on beforehand
    ggaarde2

  • AS2 Error 403 Forbidden

    Hello,
    We have a change in IP at our end and hence asked our partners to adjust the same at their end.
    They have confirmed that they are using the new IP now (URL is same) and it is activated on their firewall.(Only one partner has this problem,others can send messages to us using new IP)
    Still,they are not able to send anything to us and get 403 forbidden error.
    They are able to receive messages from us.
    We have confirmed,there is no change in AS2 IDs,Message subjects at their end and XI configuration(sender agreement,etc) at our end.
    This scenario used to work fine till we had this IP change at our end.
    Kindly let me know what could be wrong ?
    Thanks.
    Regards,
    Shweta

    Hello Prateek,
    Please find below the reply from them:
    Yesterday we received a mail from you asking us to change your IP address
    abc.com  123.45.67.89   to the new address 123.45.67.87
    We changed this IP address in our system but we were not able to connect to your AS2 system via this IP
    After that we received a mail from you that we are still sending via the old IP address.
    We checked our system again and tried to send with the new IP address.
    We received an error from the your AS2 system.
    Error sending document over http to host [http://abc.com/SeeburgerAS2/AS2Server], status code [403], reason [Forbidden], response from server [<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    *<head>                *
    After checking our firewall and  trying to send the data again we received the same error
    We decided to switch back to the old situation but we received the same error again.
    So currently we are not able to sent any data to you
    However we are able to receive data from you
    What can we check further?
    Thanks.
    Regards,
    Shweta

  • How far in the Future will AS2 be supported?

    Hi
    I've been developing Flash stuffs for almost a decade, i consider myself advanced in AS2 .. i am also very advanced in PHP..
    Throughout all my projects I've always used Flash, AS2, mySQL and PHP, and have made tons of applications , some mission critical, w/ that combo..
    When AS3 got introduced, i was excited, till i tried to learn it, and tried to develop under it. it's really not a BIG LEAP from AS2 to AS3, it's more of A COMPLETE CHANGE.. in the habits, in attaching code, etc.. While i tried to embraced that , and i really did.. for months.. i just can't seem to adjust to it in a practical/efficient way.. I do understand for large and scalable projects AS3 has a leading advantage.. but for small-med projects, AS3 just makes things more complicated than it as to be... and it takes me so much more time and effort to achieve the simple things i wana do.. even just the ESC+KEY shortcuts that made my coding RAPID (esc+st = stop() ) was a something i missed so much..  So I redide my project, and i simply went back to AS2 and still happy w/ it.. as long as I know the limitations, specially in performance, i'm ok.
    I continued to build lots of systems, from accounting to inventory using FLASH/AS2 interface and PHP MYSQL backened.. it's robust, secure, and all I need and to do I can achieve.. I never had any complaints (well except for some minor stuffs here and there the datagrid limitations but that's ok)
    Now i'm embarking on another project, w/c will require a long term support for.. as the software will be used for 3-4 years atleast and I will continue to upgrade its features and interface..
    that being said, as per my EXPERIENCE w/ these type of projects, I AM COMPLETELY CONFIDENT that EVERYTHING I NEED TO BUILD and MAINTAIN for the said software is all ACHIEVABLE/AVAILABLE w/ my current working environment, the AS2/PHP/MySQL .. but thing I'm uncertain of is ADOBE's FLASH PLAYER SUPPORT for AS2 specially since lots of the GUI of my software will be running on browsers to be cross compatible (Windows/Ubuntu desktops)
    So that is my question..
    I read the 2008 blog from ADobe
    http://www.adobe.com/devnet/actionscript/articles/six_reasons_as3.html
    quote;
    [img]Backwards compatibility and future technologies
    If, after reading all of these benefits, you still don't want to learn ActionScript 3.0, then you can continue writing ActionScript 2.0 code to develop your projects. But as the Flash platform evolves, many of the cool new technologies will only be available in ActionScript 3.0. For example, technologies like Adobe Flex 3 and Adobe AIR require ActionScript 3.0, so if you want to work with those technologies, then working in an older version of ActionScript isn't much of an option.[/img]
    SO it says here that backwards compatibility will be maintained, and i dont care about the new features.. i have everything i need in AS2..
    BUT.. this is a 2008 article and I'm not sure if he meant the backwards compatibility to stay till say 2020? lol
    Anyone got insights on this?
    Thanks
    TJ

    I doubt they will do any more than they already have... provided a table in the help documentation identifying what AS2 elements became what in AS3.
    I doubt such a tool would be a practical investment, and possibly would leave alot of holes where there would be no translation... some processing does not translate on a line for line basis and requires knowledgeable decisions and adjustments on a case by case basis.
    Anyways, I don't see how a translator will help someone master AS3... it would seem such a tool would do the opposite... provide a crutch for those who don't want to take the time and effort to learn.

  • AS2: how do i...

    Hello
    how do i make Flash AS2 speak to dreamweaver ( or any html ) to tell him " hey im done, do X action" ?
    Idea is to have the flash set to hidden on his Div, then made visible to play the flash, and once the flash is done, tell the Html, " im done, hide me again"
    Thanks !

    Your best bet will be to get a simpler version of what you are trying to do working and understood (ExternalInterface can be hard to understand--it confuses me).  You might also try searching Google for other tutorials about ExternalInterface using AS2.
    Here's a simplified example for AS2 that I copied from somewhere and adjusted slightly for you.  I don't know if it is missing anything:
    1) Create a javascript function (say hideFlash() ) in the embedding html that processes hiding your Flash
    2) In the Flash file...
    import flash.external.*;
    ExternalInterface.call("hideFlash");
    Beyond that, I can't help you with with any anger you might have, but you should celebrate that you got this far and still have an opportunity to learn something instead of getting angry for not knowing how to do something.

  • FileName in the AS2 receiver?

    Hi Guys,
    we are sending a file to the partner with the AS2 and we want to maintain the same file name as the sender. I dont see any adapter specific attributes in the AS2 adapter.
    How can i maintain the same file in the AS2 receiver adapter. any help or suggestions would be appreciated
    Thanks,
    Srini

    Hi sarvesh,
    The problem is resolved using the seeburger AttributeMapper module.
    Thanks,
    Srini

  • After Drive Replacement, iTunes Points To Wrong Folder Even After Adjusting Settings

    I moved my music to a new hard drive. I then adjusted settings within iTunes to "point" to the folder on the new drive. The folder name is identical as are all the files within it. I did this a few months back and had no issues once iTunes "located" my files. All files played, playlists remained intact. This time however only a small portion of my files successfully "located" and the remaining 75% are unplayable. When "shown in finder", the unplayable tracks point to a completely random folder within my mail folder of obviously non-music files. I've been searching for weeks how to fix this to no avail. I definitely do not want to lose my playlists, play counts, etc. so starting from scratch with iTunes is not an option for me. Please advise how to fix this very odd issue!
    iMac 3.4 Ghz i7
    OSX 10.8.5
    iTunes 12.0.1.26 (just updated)

    To resolve this we will need details.  I don't know exactly what is where.  Even though it "worked last time" I see people post with that and almost invariably there is something different in the scenario this time.
    The iTunes application alone has no idea where media files are.  You could drag all the media folders you like to the Media folder and it won't know.  You could "point" iTunes to that folder in preferences and it still will never look there.  iTunes knows where files are because as you add them to iTunes it puts them in the Media folder and makes a note in that .itl file where the files are located.  When you try to play a track iTunes looks up in the .itl file which media file it should try to play when you request the track and goes to that location to play the file.  If there file isn't there you get !  You have to mend the links one by one, or iTunes might try, based on you repairing links. to repair other links, but it doesn't usually work that way and is only partly successful at times (as we have already discussed).  If you have ever walked into a store and see an empty shelf but their web site says they have 3 in stock and the sales person says all their stock is out on the shelf, iTunes is like that.
    Here's a bunch of links on how iTunes works.  As you can see, an entire library is a whole bunch of files and support folders working in concert and when they get split up iTunes starts misbehaving.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391
    iTunes 9 [and later]: Understanding iTunes Media Organization - http://support.apple.com/kb/ht3847 - plus supplemental information about organizing to new structure https://discussions.apple.com/message/26404702#26404702
    Image of folder structure and explanation of different iTunes versions (turingtest2 post) - https://discussions.apple.com/docs/DOC-7392 and making an iTunes library portable.

  • Problem with Preloader in my Flash AS2 Game

    I have been using this tutorial to make a preloader:
    http://www.republicofcode.com/tutori.../preloader_bc/
    I have run into one problem though.
    When I simulate the download, it just shows the background color of the game while it loads, and when it finished loading, it shows the loading screen fully loaded. I have followed the tutorial exactly, except added my file names into the AS2 code.
    Here is the ActionScript in Frame 1 I have for the preloader:
    if (_root.getBytesTotal() != _root.getBytesLoaded()){
    stopAndGoto(1);
    preloaderBar._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    loaderTxt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";
    Any hints or answers to what i'm doing wrong?
    Thanks, MrA615.

    Your description of what you've done and the code you show does not match what the tutorial says to do and what code to use... (there is no stopAndGoTo() function in Flash).
    Right-click the second frame on the upper layer labeled Actions and select Actions. Copy and paste the code below to make our preloader functional.
    if (_root.getBytesTotal() != _root.getBytesLoaded()){
    gotoAndPlay(1);
    bar_mc._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    loader_txt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";

  • Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously?

    Hi Apple community,
    This is my first go at this so be kind,
    My question concerns launchpad. Coming from Snow Leopard I had been using spaces. I like to keep certain bundles of programs on separate desktops, for example all word processing related tasks in one place. I have set up the equivalent on Yosemite.
    My problem is concerns the loss of exposé. Now I know when you swipe into launch pad you get a very similar effect but the issue I am having concerns the "zoom out" effect when you swipe into launchpad. With exposé all open apps/pages etc would be fully exposed - in my case several (sometimes as many as 9 word documents). What I am running into is when I do this in / into launch pad the "pile" of docs is exposed but they are still overlapping so I can't get a good look at which is which and visually identify where I want to navigate to.
    My question is this; Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously? If so, instructions on how to do so would be greatly appreciated. Any alternative suggestions to doing this outside of launchpad are also welcome. If there is an exposé app for example, I would be quite willing to go that route.
    My main concern is being able to quickly (ie a touchpad gesture) expand all the open pages so I can bounce between them.
    Much thanks from a loyal Apple friend.

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • Laptop-mode-tools no longer adjusts LCD brightness

    I just discovered that laptop-mode-tools no longer adjusts the brightness of the LCD when switched to battery. This is not a general issue. laptop-mode is active on battery (as well as being enabled via the systemd service), the computer knows it is on battery (checking with on_ac_power and reading from /sys/class/power_supply/*/* give the expected results) and other things are correctly adjusted e.g. bluetooth is blocked with rfkill. Moreover, as root I can adjust the brightness in the usual way by hand:
    echo 10 >| /sys/class/backlight/acpi_video0/brightness
    works just fine. The >| is needed because for interactive shell's, root's .bashrc sets noclobber. This obviously doesn't affect laptop-mode tools because it doesn't run an interactive shell. In contrast:
    $ cat /etc/laptop-mode/conf.d/lcd-brightness.conf | grep -v "^#"
    DEBUG=1
    CONTROL_BRIGHTNESS=1
    BATT_BRIGHTNESS_COMMAND="echo 7"
    LM_AC_BRIGHTNESS_COMMAND="echo 10"
    NOLM_AC_BRIGHTNESS_COMMAND="echo 12"
    BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"
    DEBUG wasn't 1 when the problem started. I tried setting it to get more info but haven't found anything more in the journal/logs.
    KDE is set to not touch the default brightness at all. All it does is (further) dim the display after so many minutes depending on the power supply and status.
    This did work fine but I haven't been on battery for a while so I'm not sure when exactly it stopped working. My brightness is set by default to 12 on boot or wake from sleep which suggests laptop-mode tools does something or something else is now handling this which I'm not aware of. But the switch to battery does not trigger any alteration in the brightness and laptop-mode status does not even mention LCD brightness as one of the things laptop-mode tools controls.
    Have I missed a change in how this is handled somewhere?

    I doubt this is related but it is currently my only lead so here goes. I set the LCD brightness control for debug so I've been trying to watch it. However, so far it is all smiles e.g. on boot it all works fine and says so.
    However, I found I'm getting another error on boot which is
    /usr/share/laptop-mode-tools/modules/pcie-aspm: line 10: write error: Operation not permitted
    Note that I copied that by eye from VT1 so if a colon is out of place, that's why.
    The contents of that file is:
    #! /bin/sh
    # Laptop mode tools module: PCIe Active State Power Management
    if [ x$CONTROL_PCIE_ASPM = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_PCIE_ASPM = xauto ]; then
    if [ $ON_AC -eq 1 ]; then
    log "VERBOSE" "On AC power: setting pcie_aspm to default"
    if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
    echo default > /sys/module/pcie_aspm/parameters/policy
    if [ $? -eq 0 ]; then
    log "VERBOSE" "PCIe ASPM set to 'default'"
    else
    log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel"
    fi
    else
    log "VERBOSE" "PCIe ASPM is not available"
    fi
    else
    log "VERBOSE" "On battery: setting pcie_aspm to powersave"
    if [ -f /sys/module/pcie_aspm/parameters/policy ]; then
    echo powersave > /sys/module/pcie_aspm/parameters/policy
    if [ $? -eq 0 ]; then
    log "VERBOSE" "PCIe ASPM set to 'powersave'"
    else
    log "VERBOSE" "PCIe ASPM tweaking is prohibited by the kernel"
    fi
    else
    log "VERBOSE" "PCIe ASPM is not available"
    fi
    fi
    else
    log "VERBOSE" "PCIe ASPM power savings module is disabled"
    fi
    So I assume it is saying it cannot write to /sys/module/pcie_aspm/parameters/policy but the permissions etc. on that, at least, don't look strange:
    l /sys/module/pcie_aspm/parameters/
    total 0
    drwxr-xr-x 2 root root 0 Gor 25 21:24 ./
    drwxr-xr-x 3 root root 0 Gor 25 21:23 ../
    -rw-r--r-- 1 root root 4.0K Gor 25 21:24 policy
    Last edited by cfr (2013-07-25 20:47:13)

  • Excise duty adjustment in case of customer sales return

    Hi Frnds,
    While my customer return the finished goods I am making sales return order ,done the PGR & make the credit note.
    Now I want to adjust the excise duty through J1IH
    In j1ih which option I have to choose <other adjustemnet> or <add. excise>
    In Add. Excise tab.  the Gl account detremine are :
    C   0013113920     115.00               CENVAT clearing
    D   0024822000     5.00               CENVAT Input SECess
    D   0024820000     100.00               CENVAT Input BED
    D   0024821000     10.00               CENVAT Input ECess
    Whereas In case of Other adjustment tab GL account determine are
    C  0024822000     5.00               CENVAT Input SECess
    C  0024820000     100.00               CENVAT Input BED
    C  0024821000     10.00               CENVAT Input ECess
    D  0013113920     115.00               CENVAT clearing
    Please suggest me which option is correct.......Other adj or Add excise tab.
    In my opinion it should be Add. Excise where Clearing account is credited.
    Please Give me the solution & logic.
    Regards
    Sunil

    Please help me

Maybe you are looking for