AudioElement causes an error in Flex 4

Greetings,
A few days ago Ryan and Brian helped me to patch the problem wtih importing video into Flex by using the 'loadForCompatibility' flag.
This morning I ran into similar problem with audio: the SWF that uses simplest OSMF player plays fine in the Flash CS5 and in the standalone FlashPlayer. Once I import the SWF into Flex 4, even with the SWFLoader flag 'loadForCompatibility' set to 'true', I get this error:
Here is the code for the simplest audio player class (by the way, for some unclear reasons getter/setter didn't work, so for the test case I had to set the variable as 'public' ):
package
import flash.display.Sprite;
import org.osmf.media.MediaPlayer;
import org.osmf.media.URLResource;
import org.osmf.elements.AudioElement;
public class LightAudioElement extends Sprite
public var audioPlayer:MediaPlayer;
public function LightAudioElement(aSource:String)
var resource:URLResource = new URLResource(aSource);
var audioElement:AudioElement = new AudioElement(resource);
audioPlayer = new MediaPlayer();
audioPlayer.media = audioElement;
audioPlayer.autoRewind = true;
And here is the code for the SWF:
import LightAudioElement;
import flash.events.MouseEvent;
var snd:LightAudioElement = new LightAudioElement('assets/Test.mp3');
snd.audioPlayer.autoPlay = false;
//Standard Button component dragged on the stage for this quick test
sndBtn.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void
if(snd.audioPlayer.playing)
snd.audioPlayer.stop();
else
snd.audioPlayer.play();
Once again, it works fine in both Flash CS5 and standalone FlashPlayer, but produces an error in Flex 4. I'm on OS X 10.6.3, the Flex SDK 4.0
Thanks in advance for any suggestions,
FTQuest

Hi,
First, and foremost. As Brian Riggs - who is ultimate authority on the subject - has said:
I'd advise against replacing Flex's OSMF.swc with the latest one.  The reason is that the Flex SDK integrates with OSMF APIs from a much earlier sprint, and in the latest OSMF SWC many of these APIs don't exist anymore (due to renaming).
And that's what I take seriously.
Yet, out of curiosity, and for the sake of exploration I took my chances and did replace the version of the OSMF that is shipped with the Flex 4.0 release with the latest - 0.95.
So far, all the functionality that I need - single player, multiple players, compiled in Flash, compiled in Flex, playing in synch, or alternating - seems working fine, including access to various events.
Let me repeat: this is NOT a suggestion; just mere sharing of experience, and it comes at a cost - you should use your versions of video player, i.e. built in that latest version of OSMF. The Spark VideoPlayer (or VideoDisplay) give you compile time error I mentioned before - TimeDimension.
Just FYI,
FTQuest

Similar Messages

  • [svn:fx-trunk] 11999: Fixed: ASC-3889 - Using setting in a for loop causes Verify error

    Revision: 11999
    Revision: 11999
    Author:   [email protected]
    Date:     2009-11-19 11:37:09 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Fixed: ASC-3889 - Using setting in a for loop causes Verify error
    Notes: emit pop after callstatic to a void function to balance the stack.
    Reviewer: jodyer+
    Testing: asc,tamarin,flex checkin tests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/ASC-3889
    Modified Paths:
        flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/CodeGenerator.java

    Blacklisting the ahci module does indeed get rid of the error. Would be nice to figure out why it was conflicting with the ahci module though.
    I have not yet tried the 173xx drivers, but the latest drivers for the Quadro FX 580 are the 256.53 drivers according to nvidia.
    Posted at the nV forums (http://www.nvnews.net/vbulletin/showthread.php?t=155282), so we'll see what they suggest.

  • [svn:fx-trunk] 11530: Fix ASC-3790 ( conditional expression in for loop causes verifier error) r=jodyer

    Revision: 11530
    Author:   [email protected]
    Date:     2009-11-06 13:23:05 -0800 (Fri, 06 Nov 2009)
    Log Message:
    Fix ASC-3790 (conditional expression in for loop causes verifier error) r=jodyer
    Ticket Links:
        http://bugs.adobe.com/jira/browse/ASC-3790
    Modified Paths:
        flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/ConditionalExpressionNode.java

  • What could cause "Internal error: java.lang.NullPointerException: can't not add null to SWF frame" when using compc?

    using flex sdk 4.6, and air sdk 15.0.0.356
    we get the following error when using compc in our ant build:
    [java] Internal error: java.lang.NullPointerException: can't not add null to SWF frame
    [java] at com.adobe.flash.swf.SWFFrame.addTag(SWFFrame.java:77)
    [java] at com.adobe.flash.compiler.internal.units.requests.SWFTagsRequestResult.addToFrame(SWFTagsR equestResult.java:114)
    [java] at com.adobe.flash.compiler.internal.targets.SWFTarget.addCompilationUnitsAndDependenciesToF rame(SWFTarget.java:398)
    [java] at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation.createFrame(SWFTarg et.java:838)
    [java] at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation.createFrames(SWFTar get.java:875)
    [java] at com.adobe.flash.compiler.internal.targets.SWFTarget.build(SWFTarget.java:243)
    [java] at com.adobe.flash.compiler.internal.targets.SWCTarget.buildLibrarySWF(SWCTarget.java:348)
    [java] at com.adobe.flash.compiler.internal.targets.SWCTarget.build(SWCTarget.java:128)
    [java] at com.adobe.flash.compiler.clients.COMPC.buildArtifact(COMPC.java:144)
    [java] at com.adobe.flash.compiler.clients.MXMLC.compile(MXMLC.java:541)
    [java] at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:230)
    [java] at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:184)
    [java] at com.adobe.flash.compiler.clients.COMPC.staticMainNoExit(COMPC.java:75)
    [java] at com.adobe.flash.compiler.clients.COMPC.main(COMPC.java:62)
    which seems to be rather vague, and offers no clue as to what caused the problem. so, my question is, what could cause this error?
    these are the compiler options we use in the build file:
    <java jar="${flex.compc.jar}" dir="." fork="true" failonerror="true">
          <jvmarg value="-Xmx512m" />
          <arg line="@{options} ${_compc.libpath} ${_compc.externspath} ${_compc.includespath}" />
          <arg value="+flexlib=${flex.frameworks.dir}" />
          <arg value="-load-config=@{config}" />
          <arg value="-source-path=@{src.dir}" />
          <arg value="-include-sources=@{src.dir}" />
          <arg value="-output=@{dest}" />
          <arg value="-swf-version=@{swf.version}"/>
          <arg value="-debug=${flash.debug}"/>
          <arg value="-advanced-telemetry"/>
    </java>
    assume that the properties resolve to correct values, since all projects (except one) call this task and compile successfully. the error must come from this one project that fails, but we don't know why.
    any ideas?

    You could be running out of memory, try increasing the -Xmx512m value to -Xmx1024m or another value that you prefer

  • I am trying to install current Firefox 3.6, as I am currently running an older Firefox on my Windows ME, but I keep getting this error message: "Setup has caused an error in SETUP.EXE Setup will now close."--Please help?

    I have downloaded all IP changer Privacy software I have purchased and am trying to install it, and although it is made to work with WindowsME that I am currently using on my computer, it now says it requires Firefox 3 or above to be able to install the software. Therefore, I am trying to update my Firefox to current 3.6 but once Firefox 3.6 downloads it doesn't install. Instead I just keep getting the same error message: Setup has caused an error in SETUP.EXE. Set up will now close. Several times, I have also tried restarting the computer as the error message also recommended But I just still keep getting the same error message when I try to update/install Firefox 3.5. Please help/advise on how I can fix this problem. Many thanks in advance!

    Firefox 2.0.0.20 is the last ever version of Firefox for Win98 / SE / ME.
    You can get it from here, but you are better off using K-Meleon (derived from Firefox) or Opera instead an old version of Firefox:
    [ftp://ftp.mozilla.org/pub/firefox/releases/2.0.0.20/win32/en-US/]
    You can try KernelEx to get Firefox 3+ to work, but it would be very slow with an old PC of less than 750Mhz. 3.5 and later supposedly doesn't work.
    http://sourceforge.net/projects/kernelex/

  • A view, function and TO_DATE causing an error.

    I have the following statement which calls a view, VW_DIST_RPT_WORK_LIST which in turn calls a function which returns either 'Null' or a date string e.g. '07 Oct 2003' as a VARCHAR2 (alias PROJECTED_DELIVERY_DATE).
    Statement:
    SELECT CUSTOMER_NAME, PROTOCOL_REFERENCE, SHIPPING_REFERENCE, CUSTOMER_REFERENCE, COUNTRY, PROJECTED_DELIVERY_DATE, STATUS, NOTES,
    TO_DATE(PROJECTED_DELIVERY_DATE)
    FROM VW_DIST_RPT_WORK_LIST
    WHERE EXPECTED_DESP_DT IS NOT NULL
    AND UPPER(PROJECTED_DELIVERY_DATE) NOT LIKE('NULL%')
    AND EXPECTED_DESP_DT <= TO_DATE('07/10/2003', 'DD/MM/YYYY')
    AND TO_DATE(PROJECTED_DELIVERY_DATE) <= TO_DATE('31/12/2003', 'DD/MM/YYYY') --< Problem here
    I need to be able to specify a date filter on the PROJECTED_DELIVERY_DATE field and hence used the TO_DATE(PROJECTED_DELIVERY_DATE) <= TO_DATE('31/12/2003', 'DD/MM/YYYY') but this is generating an ORA-01858: a non-numeric character was found where a numeric character was expected.
    I think the problem lies with the fact that this field can contain 'Null' which cannot be converted to a date using TO_DATE. I've tried adding a NOT LIKE ('NULL%') statement to catch any nulls which may be creeping in bu this doesn't solve the problem.
    I've added TO_DATE(PROJECTED_DELIVERY_DATE) to the select above to determine if the nulls are being caught and if the TO_DATE in performing the conversion correctly which it is on both counts.
    Any ideas anyone ?

    The answer provided above by Monika will work for this situation. However, you should seriously think whether you should be using a string for date datatype. Ideally, you should rewrite the function that returns PROJECTED_DELIVERY_DATE and change the return type to DATE. The least you should do is to return NULL (instead of the string 'NULL') from the function. Oracle handles nulls perfectly, there is no reason you should write code to handle nulls;
    One more thing. Looking at the type of error you are receiving, it seems that you are using rule based optimizer. Why do I think so? Because, in rule based optimizer, the conditions are evaluated in a specific order (viz, bottoms-up for AND clauses). To show this, look at the following simple demonstration. I did this in Oracle 8.1.6 (also in 9.2.0.4.0 on Windows).
    -- Check the database version
    select * from v$version;
    BANNER
    Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
    PL/SQL Release 8.1.6.1.0 - Production
    CORE 8.1.6.0.0 Production
    TNS for Solaris: Version 8.1.6.0.0 - Production
    NLSRTL Version 3.4.0.0.0 - Production
    -- Create the test table
    create table test (a number(2));
    insert into test(a) values (0);
    insert into test(a) values (1);
    insert into test(a) values (2);
    insert into test(a) values (3);
    insert into test(a) values (4);
    insert into test(a) values (5);
    insert into test(a) values (6);
    insert into test(a) values (7);
    commit;
    -- See that I have not analyzed the table. This will make use of RULE based optimizer
    select * from test
    where a > 0
    and 1/a < .25;
    and 1/a < .25
    ERROR at line 3:
    ORA-01476: divisor is equal to zero
    -- Look at the query clause. Even though I specifically asked for records where a is positive
    -- the evaluation path of rule based optimizer started at the bottom and as it evaluated the
    -- first row with a=0, and caused an error.
    -- Now look at the query below. I just re-arranged the conditions so that a > 0 is evaluated
    -- first. As a result, the row with a=0 is ignored and the query executes without any problem.
    select * from test
    where 1/a < .25
    and a > 0;
    A
    5
    6
    7
    -- Now I analyze the table to create statistics. This will make the query use the
    -- cost based optimizer (since optimizer goal is set to CHOOSE)
    analyze table test compute statistics;
    Table analyzed.
    -- Now I issue the erring query. See it executes without any problem. This indicates that
    -- the cost based optimizer was intelligent enough to evaluate the proper path instead of
    -- looking only at the syntax.
    select * from test
    where a > 0
    and 1/a < .25;
    A
    5
    6
    7
    Does the above example seem familiar to your case? Even though you had the AND UPPER(PROJECTED_DELIVERY_DATE) NOT LIKE('NULL%') in your query, a record with PROJECTED_DELIVERY_DATE = 'NULL' was evaluated first and that caused the error.
    Summary
    1. Use dates for dates and strings for strings
    2. Use cost based optimizer
    Thanks
    Suman

  • Photoshop CS4 for Mac What can cause the error: Plug-in failed to load - NO VERSION

    With Photoshop CS4 for Mac I install the Kodak Plug-in DIGITAL GEM Airbrush Professional v2.1.0. When Photoshop starts I get an error:
    Plug-ins that failed to load:
       DIGITAL GEM Airbrush Professional v2.1.0 NO VERSION -  - from the file “DigitalAIRProv2.plugin”Flash:
       Connections
       Kuler
    This plug-in works fine on my Mac Pro with Photoshop CS4 and OS 10.6 but fails on a new Macbook Air.
    Reinstalling the plug-in did not make any difference. What can cause this error?

    Thanks Chris, That was my first thought too but this same plug-in works on another installation of CS4. This is a Mac installation and the plug-in is Universal so it should work. Is there any other possible cause for this error? Would Photoshop refuse to load a plug-in in a low memory situation?
    Also, The Flash extensions:Connections and Kuler are working OK, I just copied a little more out of the System Info report than I needed to.

  • DESADV01 E1EDP07 segment per line item causes EDIFACT error

    When a Sales Order has the PO Number + Date populated, the subsequent outbound Delivery IDoc (DESADV01) contains a parent E1EDP07 segment for every child line item segment (E1EDP09).  For a SO without PO Date, the IDoc is created with a single E1EDP07 with multiple child E1EDP09 segments.  This is standard SAP - do you need to code around this?
    The first scenario causes an error in EDIFACT mapping, as a limit of 9 RFF segments is allowed (E1EDP07 is a level 1 segment).  Partner systems reject this.

    Hi,
    Segment field should be optional, so check the posting keys in OB41, check the GL account which hit this posting and check the FIeld status in OBC4 and make the segment field as optional.
    while posting the transactions you can check in more then Profit center and segment details will be updated in the postings.
    try out, this might help. check the new ledger document types also.
    Regards,
    Padma

  • Does anyone know what is causing this error please?

    I recently ran sfc /scannow. It completed without giving me any notifications other than a number of:
    "Files that are required for Windows to run properly must be copied to the DLL cache."
    I was prompted to insert my XP SP3 installation CD and click on 'retry'.
    The scan lasted for around 40 minutes then closed.......at no stage was I advised that it had been unsuccessful.
    When I restarted my computer directly afterwards, half way through booting a 'please wait' appeared, as if something was taking place.
    I thought all had gone well until I looked in Event Viewer later. There are approximately 90 Windows File Protection entries there mostly with the following information:
    The system file ........ could not be copied into the DLL cache. The specific error code is 0x800b0100 [No signature was present in the subject]. This file is necessary to maintain system stability.
    Does anyone know what causes that error and what I need to do to resolve it please?

    Thank you very much for helping.
    I have already tried to run the Microsoft Fix it from there for XP SP3, the os I have>>>>>>>"This troubleshooter does not apply to your system. We're sorry, but this troubleshooter is not compatible with your current system's configuration."
    That was the only Microsoft information I could find on the specific error code I received: 0x800b0100......although the article applies to Microsoft Updates, I thought it might cover this too.
    I have now run SFC three times, but errors still showed in Event Viewer.
    I regularly run Chkdsk, last few times no errors.
    I am actually having my computer checked for malware right now by specialist malware removers......all the malware scans I regularly run have given me the all clear for some time (McAfee Stinger, Hitman Pro, Malwarebytes - MBAM, TDSSKiller) but there has
    been malware on my computer in the past, which was removed (not serious I was told).
    In two of the scans the techs asked me to carry out there are
    hundreds of dll cache entries under
    Files/Folders - Created Within 30 Days on the date I run SFC.
    I am waiting for this to be confirmed, but it looks to me as if SFC was actually successful to a large extent and the entries in Event Viewer are some failures (not all as I previously thought)?
    I also have a serious problem in relation to Microsoft Updates (please see my other question).

  • How to find the cause ofan error at runtime in forms (10g)

    hi
    can u please tell me how to find the cause ofan error at runtime.
    in forms 6i, the shortcut key is shift+f1
    i needthe shotcut key in 10g forms.
    thanx

    or just look in you menu help, -- last error or you can find the list of shortcut keys there ...
    \Erwin

  • The query against the database caused an error in https: site

    Hi
    I have created a new Data source and External content type in sharePoint 2013
    I have also given all the permission to this Content type (including "Users(Windows)")
    I also having edit permission in the Sql-database.
    I have tied almost all the possibilities given in the net for this error.
    still the error("the query against the database caused an error") is there.
    Is this because of "https:/ " in the url?
    Can any one give a suggestion / solution for this?
    Thanks
    S H A J A N

    Hi,
    Can you please check ULS Log as well as event viewer, to see if there's any related error reported?
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • What has caused "data error count"  under execution detail on Audit browser

    Hi,
    I have a simple mapping that load data from external table to target fact table. From OWB Runtime Audit browser, the Execution Details page show the status= Complete + <Red error sign>. And the value under Data error count is 2563. Where can I look for information about what has caused this errors or what the data error are? The SQL*Loader log file looks OK and no bad file generated. And I don't see suspecious under WB_RT_AUDIT*, WB_RT_ERROR tables It's owb9ir2 on 9iDB Thanks.

    Solved. I set the audit level to the highest and re-executed and can see the error msg now. It would be nice if audit broser can show the report for all the rejected rows.

  • Getting the error : ERROR:   FND FLEX-DSQL EXCEPTION  : An unexpected error

    Hi Gurus,
    I have setup one WebADI solution to upload the Direct Deposit information in the system and it is assigned to one responsibility called "US HR Payroll User", user is trying to upload the multiple accounts for one employee and getting the following error:
    ERROR: FND FLEX-DSQL EXCEPTION : An unexpected error has occurred. Please inform your system administrator that the error: &MSG occurred when the FND_FLEX_SERVER package tried to execute the SQL statement below. If tables or sequences do not exist this may indicate a problem with your installation. Make sure grants and synonyms exist so that all tables, views, and sequences in the SQL statement are visible from the database account in which the FND_FLEX_SERVER package resides (usually APPLSYS). If this is a select statement and the last portion of the where clause is in incorrect, then an invalid where clause may have been supplied in the flexfield definition. The error is probably either in the form, or in a server-side package that calls the flexfield validation routine. SQL statement (first 1000 bytes): &SQLST
    When I try to upload using my pc it works fine I have excel 2000 on my system. Then I tried on my friends computer who is having Excel 2003 and there also it gave the same error. So I thought Excel Version is a problem but when we try to upload the same data on some other instances it worked fine.
    Has anybody faced such kind of issue or can throw some lights as what other options I can try ?
    Thanks
    Rahul

    Hi ,
    Thanks for your help.
    Application Release : R12.1
    DB Version: 11g
    Browser: IE : 6.0.2900....
    I tried to take the TRACE but I am not able to generate the log/trace. I set the following profile as per the given note:
    BNE Server Log Filename --> MISPAY_DD_UPLD.log
    BNE Server Log Level --> TRACE
    BNE Server Log Path --> /u04/oraout_db/gsiau_rgts/gsi2au/trace
    but it does not generate any trace or log. Could you please help how we can get the trace.
    Thanks
    Rahul

  • How to cause of error ID:M7 Msg.:021 in COGI

    Hi, all!
    I often see the error ID:M7 Msg.:021 "Deficit of BA XX PC: Material code,Plant,Storage location,Batch" in Tr-cd:COGI.
    I tried to cause the same error for test, but I couldn't.
    <My test condition>
    Requirement quantity of production order : 12,000PC
    Inventory in storage location: 800PC
    <Plan>
    Storage
    <Result>
    Best regards,
    Mei

    I'm SO sorry I sent the mail by mistake.
    I sent my problem, again.
    I often see the error ID:M7 Msg.:021 "Deficit of BA XX PC: Material code,Plant,Storage location,Batch" in Tr-cd:COGI.
    I tried to cause the same error for test, but I couldn't.
    <My test condition>
    Requirement quantity of production order : 12,000PC
    Inventory in storage location: 800PC
    <Assumed message>
    800 PC is issued.
    The error message "Deficit of BA 11,200 PC: Material code,Plant,Storage location,Batch" is displayed.
    <Actual message>
    800 PC is issued.
    The error message "Enter Batch".
    How can I cause the error "Deficit~"?
    I've already read the past discussion in SCN,
    All cause seems to relate to inspection status of inventory.
    However, I don't use the inspection status of inventory.
    Thank you for your cooperation in advance.
    Mei

  • Form debugging - Which line is causing the error?

    I have a form that I'm working on, and when I run the form like normal, just as the end user would, I keep getting an error, "FRM-41039: Invalid Alert ID 0." I can't figure out where this error is coming from in my code. It seems that it must have something to do with timing, because in trying to track down the error, when I run the form in debug mode, obviously the timing is slower as I go line-by-line in the code to see which line may be causing the error, but when I do that, I don't get the same error. I'm not close to being an expert when it comes to design-time debugging in forms, and I was wondering if someone with more experience could point me in the right direction. Is there any way that I can somehow determine which line of code is causing this error to raise? If I could identify the line of code, I could maybe find out which alert it's looking for, right? Then I could maybe narrow down the problem a bit more. Anyone have any ideas? Thanks in advance.
    YEX
    <)))><

    Like it says :"FRM-41039: Invalid Alert ID 0." Alert does not exist. So try to find line in your code which contain something like:
    Show_Alert("<name of alert>")
    Or Alert with this name dows not exist or you are misspelling the name of existing Alert.

Maybe you are looking for