Very Very Strange Problem

I'm pretty good at action script, but this one is killing me,
it's a stupid problem to have.
I'm just gonna paste all my code, hope that's okay..
Sometimes the variable "CurrentImages" gets set using this
"CurrentImage = CurrentImage-(-1);" other times it gets set using
this "CurrentImage = CurrentImage-1;" And very few times, it gets
set using this "CurrentImage = this._name.toString().substring(4);"
When the last method is used to set the CurrentImage
variable, something strange happens to the if statement
"if (CurrentImage<Data.n) {" it says it's false for
numbers 5 to 9, and true of any other number that are less than
Data.n.
At this time, Data.n is 46, and 7 should be less than 46, it
should be true, but it gives false... and I don't know why.
If anyone could help me solve this, I will be very grateful

In your last method of calculating CurrentImage, CurrentImage
becomes a String and not a number. And so, it does the comparison
in an alphabetic manner, ie see which first digit is less, if same,
next digit, etc. So, "46" would be less than "7" because 4<7. To
remedy, use the Number conversion function:
CurrentImage = Number(this._name.toString().substring(4));
It gives the numerical value of the given expression.

Similar Messages

  • A very Strange Problem!!!help me!!

    i encounter a very strange problem, in EJB
    i write two EJB, one Stateless Session called A, and one Entity called B.
    i want to call B's findByPrimaryKey method in one A's Business, but failed!!!
    but when i remove the statement that performed the findByPrimaryKey method to A's setSessionContext method, It's Success!!!!!
    what the Problem, i am useing the Borland 's AppServer.
    who can help

    how u create the entity bean B from A?
    using proper lookup?
    can u try by write a small function inside bean A
    that contain proper lookup to Bean B...
    then try to call finbyPrimaryKey...
    now tell me is it working?
    or else can u give code or clear idea..
    if i can help u ,,,, sure i will
    do mail me
    [email protected]

  • A very strange problem in netbeans

    i debug a project in netbeans,a a very strange problem happens.
    a member variable was different between wtk20 and wtk22.and the variable was changed many places so it's hard to trace!
    but there hasn't the problem when i debug project in jbuilderx!

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • Nokia 3250:A very strange problem...

    hi..i'm facing a very strange problem in my handset 3250.. i've upgraded its os but still there is problem: http://discussions.europe.nokia.com/discussions/bo​ard/message?board.id=smartphones&;message.id=9102#M9102 any idea about such type of problem.....

    MR.,
    what is firmware?? How can i have its latest edition??
    Can you help me because i too have the same problem:
    Problem 1:
    1-I install any software (e.g:snake game) through Application manager (Pc Suit) in memory card.
    2-I launch that software (snake game) just after installation it works properly.
    3-Now i switch-off the hand set and than switch-on it.
    4-I try to launch that software (snake game) again but it doesn't response.
    Problem 2:
    1:There is a image in my Memory card.
    2: I set that image as a wallpaper.
    3-Now i switch-off the hand set and than switch-on it.
    4-Wallpaper reset to default one.
    Problem 3:
    1-I install a theme through Application manager (Pc Suit) in memory card.
    2: I apply that theme in my hand set.
    3-Now i switch-off the hand set and than switch-on it.
    4- Now theme reset to default one.

  • ALV Grid - Very Strange Problem

    I am facing a very strange problem in ALV Grid. Our’s is a ECC5 system on SAP_APPL SAPKH50011 and SAP_BASIS SAPKB64016.
    I have implemented the ALV grid in a screen using classes. This grid by default appears in display mode however it can be switched to change mode and back to display mode using a custom button on the ALV toolbar. When the user clicks the change button the grid appears in editable mode. During the back and forth switching of the ALV between Change/Display modes the ALV grid control is not destroyed however the toolbar, fieldcatalog and ALV contents are refreshed.
    The data which is entered in an editable cell is validated using the data_changed event which has been implemented locally. If the validation fails an error message is raised using the message statement which is being issued correctly. Now when I correct the data and then click on another cell in the ALV grid the program is being aborted. Any clue why this is happening??

    Please check this code
    In the PBO of the screen set the field catalog and layout , i think this will help not to refresh the field catalog every time swtich between display and change mode
        set titlebar sy-dynnr with p_netwk.
        call method g_grid->set_frontend_fieldcatalog
          exporting
            it_fieldcatalog = gt_fieldcat[].
        call method g_grid->set_frontend_layout
          exporting
            is_layout = gs_layout.
        call method g_grid->refresh_table_display.
    2. Regarding program abort, please paste the first page of system dump

  • 10.4.10 update and very strange problem with Mac Mini

    Dear All,
    I have just updated my Mac Mini Intel and I am having a strange problem.
    My Mac Mini has problems booting up. Sometimes I get through the login screen as normal but my wallpaper shows and there are no desktop icons, no dock, no top of screen finder menu bar. Some other times I get stuck in the progress bar of the booting up.
    I tried to run utilities from install disk and there were no problems detected.
    The VERY STRANGE thing is that several times now as I put my fingertip onto the power button laying it on the button but not pressing it yet (because I would like to shut down the system), the system kicks in and becomes unfrozen!!!
    Someone in the 123macmini.com forum says that this problem is related to the airport receiver which is near the power button.
    What do you think about it???
    MacBook and MacMini   Mac OS X (10.4.10)  

    ok, I have found a kind of fix for the problem, although may run a hardware test to check something!.
    I unplugged all USB and Firewire devices, I turned off Bluetooth and Airport, reinstalled the 10.4.10 combo update, when it restarted the starting mac osx screen took barely a second or 2 to load (my comment above is becuase from when I first got it on Sunday I noticed it was slow to boot up, also noticed that the screen resoulution I have set does not kick in until I log on, although this may be becuase this mac mini is an intel one). The computer booted up very quickly and I tuend on bluetooth and airport with no issues and plugged all the usb and fireware devices back in. I again turned the airport off and restarted and again it booted up very quickly logged on and swithced the airport back on. I decided to reboot with the sirport on and it got stuck at the end of the os x starting up screen, I waited a few mins switched it off and on again and it booted up fine although slower. I dont mind turning the airport off when I power down as the mac usually stays on anyway. I assume Apple will release a fix for this as a lot of people seem to have the problem so think I will stay put with this for the time being. It was taking a several goes to get to the login screen before but usually got there every few boots.

  • I have very strange problem with Iphone 3gs. Whenever it gets little hot or exposed to 30 degree temperature it losses signals (No service). Whenever it is cooled down the service is back. Please help!

    I have very strange problem with iphone 3gs. Whenever it gets little hot or exposed to 30 degree or above temperature it losses signals (No service). Whenever it is cooled down the service is back. Whenever I am using Skype or playing game for a while it losses carrier signals and wifi. When it is cooled down afer shutting down the carrier signals and wifi are back. It is for sure problem is with heating, but 30 degree tempeature in Oman is normal and some time it goes upto 50 degrees. I have noticed this has started after I started using substandard charger as I lost my original charger of the phone. Please help!! Thanx.

    The specifications define an operating range up to 35 degrees.

  • Very strange problem facing

    Hello All,
    I am facing very strange problem from last a week.
    I have made flex application using Flex3 and AMFphp.
    I was running very fine but just from before 7 days, my all images will not displayed in Mozilla Firefox browser.
    but it is running fine in Internet Explorer browser.
    any idea? I have tried to know what happen but i failed.
    Please help me to identify what's going wrong.
    Thank you.

    Have you tried emptying your cache?
    Dany

  • Very strange problem / Perpetual command key

    I've been using OS X since its inception, and have never had this problem before.
    Starting yesterday, I noticed a very strange problem that was happening randomly. When I clicked on an app in the dock, it would just reveal the app to me in Finder rather than opening it. Other problems including multiple selections when single-clicking on items with my mouse, and not being able to type. After some fidgeting, I realized that my iMac is acting like I'm always holding down the command (apple) key. If I have a window open, for instance, pressing the H (just by itself) key will hide the window. Pressing Q will quit whatever is active.
    I shut down, restarted, plugged in a different keyboard, used a different mouse, unplugged all my periphs, deleted all haxies and their attached files, and it still happened. I unplugged my 2nd monitor, and that seemed to fix it after another restart... but then I plugged in my 2nd monitor again and restarted, and now everything is fine. It's just happening randomly. I'm afraid to restart my Mac now. This is really bizarre!!!
    Someone please help!

    If it's any help, it started right after the following:
    When booted to Vista one night, I noticed ghosting on my nice new iMac screen which kinda irked me. I could see the menubar with the Spotlight menu icon burned into the screen.
    So when I got back into OS X I looked for a menubar hider. I tried Menushade and Menufela, both of which are quite old... probably before any mention of an Intel switch had ever occurred.
    But now I had a problem... no clock. So I went ahead and downloaded Yahoo! Widget Engine (aka Konfabulator). I know, I know... what a crazy workaround just to hide the menubar (this is why it would be GREAT if Apple would build in its own menubar hider option!)
    Anyway, this stuff started happening, so I deleted all of those apps (Menufela, Menushade, and Yahoo Widget Engine) with AppZapper (a great little app).
    Ugh... this is what you get for experimenting with homegrown apps, I guess.
    Anyway, hope that helps.

  • Very strange problem w/ iTunes PC

    Well, I have a very strange problem - I added some music to my iTunes and when I was changing the informations and cover, my iTunes crashed. When I restarted the program, the album is missing and when I found it on my hard drive, I am not able to import it back to the iTunes. This happens with both Import from the menu and the classic Drag/Drop method. So what to do? Is there any way to get it back?
    EDIT: Tried to move the files to another folder. Didn't work though.

    I just found the problem lies with iTunes 7.0.
    I ran the sames songs (ones with problem) into iTunes 4.7.1, with MSN messenger (same version)'s song display selected.....the song title/artist displayed and it did not get kicked out!!!!
    If it's not my 80gig iPod.......I would not have gotten iTunes 7.0!!!!!!!

  • Hibernate-very strange problem, help please

    Hi, i got such a strange problem that im sure you ll think im doin crazy talk :) , i dont see why this would happen at all, i have a class called "Package", mapped to a table "package". whenever i do a query on this table using hibernate, even the simplest "find all" kinda of query, hibernate does update on the table b4 doin the query! even more weird, it does the update when the first query on this table happens, it deletes all values of a column (yes only this column); then if i do the same query again, no update at all. however if now i mannuall add those missing values, it does the update again and deletes them! sry its confusing, heres my code and more of wat i done:
    The mapping Package.hbm.xml
    <hibernate-mapping package="tuition.bo">
    <class name="Package" table="package">
    <id name="id" column="study_package_id" type="long">
    <generator class="sequence"/>
    </id>
    <property name="name" column="name" not-null="true"/>
    <property name="satTiming" column="sat_timing" not-null="false"/>
    <property name="satSubjects" column="sat_subjects" not-null="false"/>
    <property name="sunTiming" column="sun_timing" not-null="false"/>
    <property name="sunSubjects" column="sun_subjects" not-null="false"/>
    <set name="classes" inverse="true" cascade="delete-orphan" lazy="true">
    <key column="package_id"/>
    <one-to-many class="Class"/>
    </set>
    </class>
    </hibernate-mapping>
    For example initialy i populated database using hibernate, like this:
    package_id, name, sat_timing, sat_subjects, sun_timing, sun_subjects
    1 no.1 9-12 business 9-12 law
    2 no.2 9-11 business 9-11 law
    Then after i populated this database, i did this query:
    <b>List res=getHibernateTemplate().find("FROM Package");</b>
    and you can see the log file as such: (excerpt)
    16:23:06,687 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
    16:23:06,703 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    16:23:09,968 DEBUG JDBCTransaction:46 - begin
    16:23:09,968 DEBUG JDBCTransaction:50 - current autocommit status: true
    16:23:09,968 DEBUG JDBCTransaction:52 - disabling autocommit
    <b>16:23:10,640 DEBUG SQL:324 - select</b> studypacka0_.study_package_id as study1_, studypacka0_.name as name12_, studypacka0_.description as descript3_12_, ....... from _3AT_package studypacka0_
    Hibernate: select studypacka0_.study_package_id as study1_, studypacka0_.name as name12_, studypacka0_.description as descript3_12_, studypacka0_.day as day12_, studypacka0_.sat_timing as sat5_12_, studypacka0_.sat_subjects as sat6_12_, .......
    16:23:10,734 DEBUG JDBCTransaction:83 - commit
    <b>16:23:10,796 DEBUG SQL:324 - update</b> _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    Hibernate: update _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    <b>16:23:10,812 DEBUG SQL:324 - update </b>_3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    Hibernate: update _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
    <b>16:23:10,812 DEBUG SQL:324 - update</b> _3AT_package set name=?, description=?,
    16:23:10,953 DEBUG JDBCTransaction:173 - re-enabling autocommit
    16:23:10,953 DEBUG JDBCTransaction:96 - committed JDBC Connection
    as you can see, it does update and changed table field values to this:
    package_id, name, sat_timing, sat_subjects, sun_timing, sun_subjects
    1 no.1 business law
    2 no.2 business law
    ---------- all tiimings are gone. and now if i re-do the same query, there are NO UPDATE operations....howver if i add some values to sat_timing, sun_timing, and re-do the query, very surprisingly, i saw those update operations which delete all timing values again!
    im totally lost... i havent changed any config, this doenst happen to my other classes at all but just this one.... any ideas please! even some thought of what may caused this would be great help! thank you!

    well i got the setters wrong.... being so stupid i am... sry for creating such a long and massy thread.

  • Very strange problem: Error for Overall result  due to a custom infocube?

    Hi,
    I have a strange problem:
    In my query the sumgt function doesn't work for the calculation of a percentage (es: 'KFA' %A SUMGT 'KFA').
    The coloumn of the formula is full of red X.
    Using Nodiv() the percentage are all zeroes.
    I use a custom infocube for this query that is a copy of an infocube standard with some other infoobject custom. In the infocube standard the formula work and the sumgt is correct!.
    It is possible that there are some parameter to be set at infocube level that make the SUMGT wrong?
    I'm sorry for my poor english,
    Alberto
    Message was edited by:
            Alberto Maggini

    Alberto,
                   Your problem might be a UNIT problem. If you are using key figures in a formula with different units, you will have the "red X" outcome.
                   Try using the NODIM() function in each formula element.
    Regards,
    L. Felipe

  • Please help me with Nokia E71 very strange problem...

    I have Nokia E71_v1, I got lots of strange problem like:
    1- The camera didnt save the images and create the images like this: Name of the image*jpg but I can take videos without a problem.
    2- when I put anything in the memory card or the phone memory it became currpted and then I couldnt open them at all, the message "can open the file" or "file is currpted" appears.
    3- I couldnt install any application to the phone, if I put any sis file on the memory I get "file currpted" message but if I sent it to the phone via bluetooth I could install it.
    4- The name of the folders usually change their name and currpted characters appeard in the folder naming.
    5- When I added any mp3 files to any memory the files are disappeared.
    410.21.010
    RM364
    Noka E71-1 (19)
    please help
    Attachments:
    090620091272.jpg ‏242 KB
    090620091273.jpg ‏299 KB

    You better reset the E71. Dial *#7370# 12345 reformat, you'll lose all data. Make a backup first and restore without the settings. Reformat the card in the phone and remove the card using the menu from the power button. Do not encrypt the card as a test.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • A very very strange issue on BlazeDS Deserializing

    Hi all,
    I run into a very very strange issue on BlazeDS Deserializing. Is there any hint or idea?  Thanks a lot!
    Scenario 1:
    Both the browser(firefox or IE) and the midtier (BlazeDS ,java) are on the same machine.
    Actual result:
    Everything works fine.  All the properties in the Flex Object could be mapped to the Java Class
    Scenario 2:
    The browser(firefox or IE) and the midtier (BlazeDS ,java) are on the different machine.
    Actual result:
    Sometimes it works fine.
    And most of the time it does not work fine. Only the data in List is mapped correctly. All the values of simple data type such as int are mapped to 0 .
    Let me simplify the problem.
    The objects of Class B is always stored in the ArrayCollection  assocItems of Class A
    Flex side:
    public class A {
    public var id: int;
    public var  name: String;
    public var assocItems: ArrayCollection=new ArrayCollection();
    public class B {
    public var id: int;
    public var  assocItems : ArrayCollection=new ArrayCollection();
    The id , name in Flex Class A and assocItems in Class B could be  deserialize to correct value .  But the id of Class B is always mapped to 0. This is not correct.
    The log level of BlazeDS is configured to Debug. From the log I can see that  each value is passed from Flex side to Java server side correctly.
    [BlazeDS][INFO] Channel endpoint my-amf received request.
    [BlazeDS][DEBUG] Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/18)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
    However, the Java object does not get the correct value of B.id.
    In conclusion,
    1. It’s an issue with only default types
    2. It does not occur every time
    3. It does not occur when the browser(firefox or IE) and the midtier (BlazeDS ,java) are on the same machine
    Have you ever run into the similar problems? And what’s your solution?

    I checked, when I hard-code the constant in linq, the generated sql is like this:
    SELECT "Extent1"."AA" AS "AA"
    FROM (SELECT "TBL"."AA" AS "AA"
    FROM "USERNAME"."TBL" "TBL") "Extent1"
    WHERE ('1062303212007000121' = "Extent1"."AA")
    if I pass a variable to the query with same value, the sql is like this:
    SELECT "Extent1"."AA" AS "AA"
    FROM (SELECT "TBL"."AA" AS "AA"
    FROM "USERNAME"."TBL" "TBL") "Extent1"
    WHERE ("Extent1"."AA" = '1062303212007000121' /* @p__linq__0 */) (@p__linq__0 is passed as parameter)
    The only difference is a paramter. I can't figure out why there is such a impact on performance.

  • When I phone people can hear me without any problem, but I hear very very bad. The sounds is metallic and it is very difficult to understand. Have anyone idea of what is it about. I guess is not a software problem but I am not an expert. Thanks in advance

    When I phone people can hear me without any problem, but I hear very very bad. The sounds is metallic and it is very difficult to understand. Have anyone idea of what is it about. I guess is not a software problem but I am not an expert. Thanks in advance

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Firefox > Preferences > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    See also:
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.org/kb/Images+or+animations+do+not+show

  • TS1398 since i have updated the latest software i am facing problem using wifi which is very very slow most of the time or wont connect at all was that update supposed to be for better or worse

    is apple product going down hill it seems their updates are creating a lot of problem now the wifi connection is really ******* me off it doesnt connect or even if it does its very very slow i used to love using iphone but i think its time to move on to something else they have taken everyone for granted

    Welcome to Apple Discussions, Mark.
    I've never come across your first problem on any of the Apple notebooks I currently own (or have owned in the past). Then again, perhaps I'm not looking close enough.
    Have you compared it with any other 12" PowerBook? If not, perhaps you might be able to try that at a local store with units on display.
    Otherwise you might want to give AppleCare a call. Alternatively, if you have an Apple Store or Apple Authorised Service Provider near you (I don't know where you are located) then you can take it in to be checked.
    As for your second problem (uneven illumination), that has been known to afflict other notebooks. My own 15" PB has had its screen replaced on two occasions because of this. Depending on the severity, you might be able to get it replaced. Mine became so bad that the screen was effectively unusable.
    To be honest, here in the UK, I would actually try for a replacement PowerBook - if the problems were severe enough and also because your PB is still very new. However the consumer laws in your country (wherever that may be) might be very different to mine.

Maybe you are looking for

  • Dreamweaver CS3 Scripting Youtube embedding Problems

    I use embeds from youtube on my site. They are usually no problem. Today I upgraded from Dreamweaver 8 to CS3. When saving my files and uploading to the host, CS3 created two scripts that it said were necessary for standards-based sites and applicati

  • HDMI black screen [SOLVED]

    I have a samsung ativ book 7 which I connected to a Panasonic TV via HDMI cable. The TV is recognised in gnome display properties and xrandr but the only thing I can see is black screen with no audio. xrandr output: Screen 0: minimum 8 x 8, current 1

  • BRF+ Heavy Context stoping Formula expressions to load

    HI Experts, I am developing a BRF+ App.(for CRM SS) Where the Complex structure holding the CRM-BT data is passed in the App. Because almost every field in that structure is used in decision making. As a result the context of app has become too heavy

  • Oracle forms 6i hangs while connection to database

    Hi, We are runing oracle forms 6i with patch 17 on windows xp and windows 7 with oracle database 10g(10.2.0.4) 64bits on window 2003 64bits every thing is fine but sometime all of the sudden connection get stuck and unable to get access to database b

  • I can I download a trial for Lightroom 5?

    I took images shot on a friends camera (Canon 5D mark iii) that I am not able to import into LR 3.  I thought about buying LR 5 but would like to try the trial.  Apparently all I could download was the creative cloud, which I do not want at this time