How do I mix javascript with actionscript?

I have an HTMLLoader object instance inside an .mxml class.
I specifically want to call jquery functions from inside an .mxml or .as file and have the jquery execute on the content inside the HTMLLoader.
here is some non-working code that will maybe explain more of what i want to do:
[as]
<fx:Script>
<![CDATA[
ldr = new HTMLLoader();
//...load page and add to stage
<script src="js/jquery-1.3.1.min.js" type="text/javascript" charset="utf-8"></script>
$(ldr.window.document.getChildById("id")).performJQueryFunc{
     //stuff i want to do.
]]>
</fx:Script>
[/as]
I don't know if this is even possible but I really hope I can do such a thing.

Hi,
I already answered this question, you can check this out here : http://forums.adobe.com/thread/712194?tstart=30

Similar Messages

  • How can I use LCCS with ActionScript 3 and Flash CS4?

    Hi,
    Using Stratus I was able to create an an application using Action Script 3 and Flash CS4.  The sample code on the Adobe site was quite straight forward and easy to understand.  I now want to switch over to  LCCS but can't find anything any where on how to use Action Script 3 and Flash CS4 with LCCS.  Do I need to know Flex to be able to use LCCS?  Everything was quite simple and easy to understand with Stratus and makes complete sense.  But LCCS is really confusing.  Is there any sample code on how to establish a connection in Action Script 3 and then stream from a webcam to a client.  There is nothing in the  LCCS SDK that covers Flash and Action Script 3.  Please help!  I found the link below on some forum but it takes me nowhere.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=75 9&threadid=1407833&enterthread=y

    Thanks Arun!
    Date: Thu, 29 Apr 2010 11:44:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I use LCCS with ActionScript 3 and Flash CS4?
    Hi,
    Welcome to the LCCS world.
    Please refer to the SDK's sampleApps folder. There would be an app called FlashUserList. The app demonstrates how LCCS can be used with Flash CS4. Its a  pretty basic app, but should help you moving.
    We are trying to improve our efforts to help developers in understanding our samples. Please do let us know if we can add something that would help others.
    Thanks
    Arun
    >

  • How do you mix channels with premobile USB & GB?

    ok, admitted recording newbie here, and i'm stumped, is there a way to get stereo on mixed vocal/guitar using a 2006 model M Audio Premobile USB with Garage band 3.04 (on Intel G5 iMac, OS 10.4.11)?
    I am trying to record vocal from a dynamic AKG mic, and guitar from a regular 1/4" guitar cord. As the M audio manual suggests, i have the mic to the Channel 1 mic input and the guitar cord to the Channel 2 instrument input (which is the only 1/4" input on this model).
    But all this does is give me vocal on the left channel and guitar on the right, in one track in GB. Natch, that sounds odd on playback- only vocal comes out of one speaker, only guitar comes out of the other.
    How the heck do i work with two inputs and get stereo/both channels? And/or have the guitar going to one track in GB and the vocal to another, both in stereo?
    Or do i need a multi-track interface and/or a more pro program than GB? (i do have GB '08 i could install)
    the only stereo 1/8th" input mic i have really isn't good enuf quality to use for what i have in mind, & room mic doesn't do well with my vocal.
    help....

    What hardware/software setup do i need to record {...} just vocal and pickup-equipped acoustic guitar, with guitar and vocal recorded at same time? Preferably as separate tracks, which it appears this premobile does not do (?).
    the mobile pre will work fine, assign one channel to one track, and the other channel to another track
    I do also have what i think is a condenser-type mic (marshall mxl 990) around here somewhere.
    find it, a condenser is always my choice for studio vocal work (it would also be my choice for recording an acoustic, actually)
    What's the best bet?
    equipment-wise, you're all set, the rest is up to you learning recording and mixing technique to make it all sound good. i would suggest doing some web searches on things like "recording technique", "mixing and mastering", etc. there are many (as in more than one would want to count) pages of information on recording.

  • Triggering javascript with actionscript

    I have created a movie clip that, upon completion, I want to
    shake the browser window using the following javascript that I've
    embedded in my HTML ...
    function shake_xy(n) {
    if (self.moveBy) {
    for (i = 10; i > 0; i--) {
    for (j = n; j > 0; j--) {
    self.moveBy(0,i);
    self.moveBy(i,0);
    self.moveBy(0,-i);
    self.moveBy(-i,0);
    function shake_x(n) {
    if (self.moveBy) {
    for (i = 10; i > 0; i--) {
    for (j = n; j > 0; j--) {
    self.moveBy(i,0);
    self.moveBy(-i,0);
    function shake_y(n) {
    if (self.moveBy) {
    for (i = 10; i > 0; i--) {
    for (j = n; j > 0; j--) {
    self.moveBy(0,i);
    self.moveBy(0,-i);
    //-->
    What would I write in my actionscript to make this happen?
    I've tried getURL("javascript:shake_x(10)"), but that didn't work.
    Thanks in advance -

    Thank you for the suggestions. I tried the getURL method, and
    that didn't work. I've never used the externalInterface class
    before. I have Flash v8. How would I reference the javascript
    function "shake_xy(10)" using the externalInterface class assuming
    that I want the browser window to shake upon completion of a movie
    clip?

  • How can I mix landscape with portrait pages in InDesign CS3?

    I want to put together a very simple four-page document with images and accompanying captions, to be inserted as plates into the middle of a book. Unfortunately, I don't seem to be able to find a way of mixing portrait and landscape images. The first page is a recto, and the will contain a single landscape image, so the caption needs to run vertically along the page edge (away from the margin); the second page will have two "landscaped" images, but one above the other, so the captions will run horizontally on the page (so that page isn't a problem at all); and then another page resembling the initial recto; and then a final page (verso) with the caption running along the left-hand edge (so it's landscape, but the other way around).
    I can't help feeling I've made a bit of a meal of explaining what I mean... but I hope it's clear enough! And not that unusual a requirement for a series of illustrations or tables within a text - so I'm sure I'm just being dim; but I have googled this quite extensively, and it seems not to be as obvious as I thought it might...

    Thanks for the quick reply! Rather than mock it up, I think I can explain it much more simply (sorry - it's 5.30 am where I am, and I've been working all night, so probably not very coherent... !). Basically, it's just the very familiar thing of having a group of plates in the middle of a book (not part of the pagination of the book itself, so I'm putting them together in a separate and - I hope! - single indd file). Where you have images that are landscape in their proportions, they need to be rotated 90 degrees, so that you then turn the book sideways to read the caption beneath the image. If it's a recto page, you turn it clockwise, if it's verso, anti-clockwise. Does that make sense? I have two of the former and one of the latter, plus a page with two images that will be set together on a single page, one above the other, which don't pose a problem, as "up" will remain "up", as it were...
    Is that any clearer? (!!?)

  • How does one use JavaScript with the Windows Media Player Plugin?

    Hi there.
    According to this old [http://msdn.microsoft.com/en-us/library/dd564570%28v=VS.85%29.aspx MSDN Article] it is possible to control the windows media player plugin using javascript.
    It provides a series of objects off the object that should perform certain funtions, such as play stop and seek.
    It states very clearly in the article that some are not supported; however, none of them seem to be working with the latest version(s?) of Firefox.
    I have Firefox 5 installed currently and have not tested in any other version, so I'm not sure when it stopped working.
    The video does load and will display properly -- the ability to control it through javascript however, does not work.
    i.e.:
    var mplay = document.getElementById('myplayer');
    mplay.controls.play(); // mplay.controls is undefined
    This same code works in Internet Explorer.

    You need to place the URL in a data attribute for Firefox.
    <pre><nowiki>document.write(' <OBJECT id="Player" data="http://87.117.197.189:16229" width="320" height="45" type="application/x-ms-wmp">');
    document.write(' <param name="AudioStream" value="true">');
    document.write(' <param name="Enabled" value="True">');
    document.write(' <param name="ClickToPlay" value="false">');
    document.write(' <param name="BufferingTime" value="5">');
    document.write(' <param name="ShowDisplay" value="False">');
    document.write(' <param name="Volume" value="70">');
    document.write(' <param name="autoStart" value="true">');
    document.write(' </OBJECT>');</nowiki></pre>

  • How to access via javascript with Oracle Maps to a external Geometry Cache

    If i've defined CTR_10000 as a Web map cache in mapviewer 10.1.3, what is Oracle Maps javascript code to access that
    Layer?
    I've tried:
    vat ctr10kLayer = new MVThemeBasedFOI('ctr10kLayer','CTR_10000');
    ctr10kLayer.enableAutoWholeImage(true);
    ctr10kLayer.setVisible(false);
    mapview.addThemeBasedFOI(ctr10kLayer);
    but dowsn't works,
    Any Suggestion?

    Here's an example (on 10133P5) using demis.nl's wms reference demo site.
    You will have to change the adapter class if you're using 10.1.3
    and use a proxy if necessary and set the tile_storage path
    for your environment
    map tile layer definition
    SQL> select name, is_internal, definition, base_map from user_sdo_cached_maps where name='DEMIS_
    NAME IS_I
    DEFINITION
    BASE_MAP
    DEMIS_WMS NO
    <map_tile_layer name="DEMIS_WMS" image_format="PNG" http_header_expires="168.0"
    concurrent_fetching_threads="3">
    <external_map_source url="http://www2.demis.nl/mapserver/wms.asp" request_met
    hod="GET" timeout="15000" adapter_class="mcsadapter.WMSAdapter" transparent="tru
    e" clipping_buffer="0">
    <properties>
    <property name="service" value="WMS"/>
    <property name="srs" value="EPSG:4326"/>
    <property name="format" value="image/png"/>
    <property name="layers" value="Countries,Borders,Coastlines"/>
    <property name="transparent" value="true"/>
    </properties>
    </external_map_source>
    <tile_storage root_path="/tilecache/"/>
    <coordinate_system srid="8307" minX="-180.0" minY="-90.0" maxX="180.0" maxY="
    90.0"/>
    <tile_image width="256" height="256"/>
    <zoom_levels levels="10" min_scale="5000.0" max_scale="5.0E7" min_tile_width=
    "0.003057205631621593" min_tile_height="30.572056316215935">
    <zoom_level level="0" name="" description="" scale="5.0E7" tile_width="30.
    572056316215935" tile_height="30.572056316215935"/>
    <zoom_level level="1" name="" description="" scale="1.7969068E7" tile_widt
    h="10.98702717691827" tile_height="10.98702717691827"/>
    <zoom_level level="2" name="" description="" scale="6457748.0" tile_width=
    "3.948532710638615" tile_height="3.948532710638615"/>
    <zoom_level level="3" name="" description="" scale="2320794.0" tile_width=
    "1.4190288973267207" tile_height="1.4190288973267207"/>
    <zoom_level level="4" name="" description="" scale="834050.0" tile_width="
    0.5099724714107979" tile_height="0.5099724714107979"/>
    <zoom_level level="5" name="" description="" scale="299742.0" tile_width="
    0.1832745860867039" tile_height="0.1832745860867039"/>
    <zoom_level level="6" name="" description="" scale="107721.0" tile_width="
    0.06586504956878192" tile_height="0.06586504956878192"/>
    <zoom_level level="7" name="" description="" scale="38713.0" tile_width="0
    .023670720323393343" tile_height="0.023670720323393343"/>
    <zoom_level level="8" name="" description="" scale="13912.0" tile_width="0
    .00850636894942392" tile_height="0.00850636894942392"/>
    <zoom_level level="9" name="" description="" scale="5000.0" tile_width="0.
    003057205631621593" tile_height="0.003057205631621593"/>
    </zoom_levels>
    </map_tile_layer>
    SQL>
    Html code to use it. Modify it for your installation and MV version
    <html>
    <head>
    <script language=javascript src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    <script language=javascript>
    var mapview;
    function showMap()
    var baseURL = "http://localhost:8888/mapviewer";
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("mvdemo.demis_wms"));
    var mapCenterLon = -100.45;
    var mapCenterLat = 39.6706;
    var mapZoom = 0;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("EAST");
    var markerFOI = new MVFOI('markerfoi', mpoint, 'mvdemo.m.star',null,15,15);
    mapview.addFOI(markerFOI);
    mapview.display();
    </script>
    </head>
    <body onload="javascript:showMap();">
    <h2>WMS map tile example</h2>
    <div id="map" style="width: 100%; height: 70%"></div>
    </body>
    </html>

  • Javascript with applet

    Hi!
    Can anyone tell me (or just give me a relative URL) how I can interact Javascript with an applet? For example when I press a link within the html page something to happen within the applet.
    Thanx
    Athan

    Hello,
    Give something like this a try.
    If you have something similar to the following embedded
    in your html page:
    function idBtnConnect_onclick() {
         returned = document.CA.CallFromScript(x, y);
    <body>
    <APPLET id="CA" codeBase=".\jar" height="200"
    archive="entappletbase.jar, entappletuser.jar,
    entappletp7.jar" width="200"
    code="ClientApplet.class" MAYSCRIPT="true" >
    </APPLET>
    </body>
    You should be able to reference a function in your
    applet as follows:
         public String CallFromScript(int x, int y)
              return "Your call was successful!!";
    The function in the applet is invoked by calling the function through referencing the applet ID (CA) from inside the document. document.CA.CallFromScript(x, y);
    Note that we not only pass information into the function, but we are also able to have a string returned.
    Leslie

  • Mix JavaScript and JSP

    Hi.
    I have jsp and javascript mixed when I click a check call a function javascript for example:
    //JavaScript
    function Hola(numerop) {
              idRol = Number(numerop)
              <%nombreRol = roles.get(numerop)%> }
    //Form
    <input type="checkbox" name="<%=roles.get(sum)%>" value="<%=roles.get(sum)%>" onClick="Hola('<%=roles.get(sum)%>')">
    In the function numerop is a number but in the jsp code numerop is undefined.
    How I can mixed javaScript and jsp??
    Please I need help you.

    Remember that the JSP runs on the server and generates the HTML, including Javascript. The Javascript runs on the browser after the JSP is finished. So you cannot do whatever it is you expected that to do.

  • How do I create a separate Address Book? I'm not asking about a mailing list but an address book where the addresses are not mixed in with my regular address b

    How do I create a separate Address Book? I'm not asking about a mailing list but an address book where the addresses are not mixed in with my regular address book. I already have three address books created for me by Thunderbird. I add all new addresses to one of those but am afraid to delete the other address books because some of their addresses are not repeated in my "main" address book. So if I don't delete all the names in one of the existing books, I need to create an empty book that will not mix the addresses with those in another address book. HOW DO I CREATE A NEW, EMPTY ADDRESS BOOK? I want to be able to create various mailing LISTS using the addresses in this new book so I will eventually have a special address book with a variety of mailing lists I can use as I wish.

    In 24.4.0 there is no File|New|Address Book. There is File|New|Address Book Contact. How do I create a new address book ?

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • Help me!! How to use JavaScript with JSP ??

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
    The page has a ListBox where list items are populated from the database.My requirement is
    whenever the list is changed the page shuold be refreshed with the selected item info.
    I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
    Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
    I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
    I have also gone through the 'readme' but I don't know how to extract .jar file.
    I would be great if you could help me in this.
    Thanks!!
    Geeta
    null

    We have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
    Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
    Do you know of any way to dynamically query the the Oracle database in Javascript

  • Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8

    Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8 as a control surface ?

    In YAMAHA01v96i:
    Go to DIO/SETUP select Generic DAW. Go to MIDI settings page and set the desired port (personally I use Number 1), Select the same audio frequency you use in your DAW (I use 44.1KhZ)...at this point You should save a scene in you 01V96i to avoid to repeat all the procedure again.
    Open studio manager, go to patch and set the input port from 17 to 32 respectively to USB1-USB16 (this will give you the return from you DAW to the 01v96i
    Save again the scene overwriting the old one.
    in LOGIC
    Click on preferences, select Audio then select 01v96i, then click on control surface and select Mackie design Baby HUI and in the midi session set the same port that you've been setting on the Yamaha 01V96i (Port 1 if you follow this example).
    That's more or less it.
    It worked for me...so far

  • My iphone5s head phones got mixed up with my room mates headphones and i really want to know witch one is mine how can i know that

    my iphone5s head phones got mixed up with my room mates headphones and i really want to know witch one is mine how can i know that please help !

    I doubt there is you dropped it and broken the screen
    try holding the top button and the round button at bottom of screen
    hold both until maybe an Apple logo appears if nothing after 20 secs
    the iPad is toast
    It can be exchanged at an apple store for around $249 to $219 depending on model
    Apple do not do repairs
    I would own up now before it gets more complicated

  • How to call java function with parameter from javascript in adf mobile?

    how to call java function with parameter from javascript in adf mobile?

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

Maybe you are looking for

  • IMessage automatically sending as regular SMS after a while.

    I have been having an issue with iMessage and it's now starting to get really annoying.  When I sometimes send an iMessage text it shows up that its sent (meaning no read exclamation point) and makes the sent noise but does not say delivered.  Later

  • Creating Formula Key Figure in BEx 3.5 Query

    Hello,   I'm trying to create a formula key figures that gives me the Absolute Value of the Difference of two quantities.  The calculation needs to happen at each plant/material level.  It works great as long as you drill down by plant/material.  The

  • Why are my iCloud Pages documents showing as "zero bytes" in Pages on my MacBookPro?

    Many of my Pages documents that are stored in iCloud can not be opened in Pages on my MacBookPro.  They show "zero bytes".  Is there something I can do to have them showing their full size and be accessible from Pages on my MacBookPro?

  • Take permission for folder and contents

    Is there a way to take permissions for a whole folder and its contents all at once? I transfered hundereds of photos from my old MBP (Snow Leopord) to my new MBP (now Lion) I know how to change permission for a single file, but I'm tired of doing it

  • WSUS update stopped working on MDT Task

    Hi I've been using MDT for a while now, and had no problems.  FOr some reason WSUS update has stopped during the MDT Task Sequence. I have specified in my customsettings.ini WSUSServer=http://phdc03 It used to install the last few updates that i didn