Flash, HTML javascript help!

Hi all

I have 50 different images on my server, the images are loaded into the flash. and also, I created an HTML page that I will use to show the images. Now in flash when the user clicks on a particular image, this image should be loaded into the HTML code we already have on the server.

So I need to pass the name of flash to HTML to find the clicked image is displayed. I also want to hide the tool, the State... on the HTML toolbar.

If it is possible to load the HTML on full screen, that will be great.

Here, I did something...

btnClipMc.addEventListener (MouseEvent.CLICK, onBtnClicked);

var address: String = ("two.html");

var URL_var:URLVariables = new URLVariables();

function onBtnClicked(evt:MouseEvent):void

{

URL_var. Query = inpTxt.text;

var jscommand:String = "window.open (" "+ address +" win ',' ',' toolbar = no, scrollbars = no, location = no, status = no, menubar = no. ' ");"

urlReq:URLRequest = new URLRequest ("javascript:" + jscommand + "void (0);");

urlReq.data = URL_var;

navigateToURL (urlReq, "_self");

}

This displays an error message.

Can you help me fix this script?

I did...!

variable that you want to switch to HTML

imageName = "image_1".

do the restrictions of html with query

var address: String = "" largeView.html? query = "" + imageName;

var jscommand:String = "window.open (" + address + "win ',' ',' width = 1100, height is 600, resizable = yes, toolbar = no, scrollbars = yes, location = no, status = no, menubar = no, left = 0, right = 0');";

JS final to trigger the HTML code

var jscommand:String = "window.open (" + address + "',' victory ',' width =" + finalWidth + ", height =" + finalHeight + ", toolbar = no, scrollbars = yes, location = no, status = no, menubar = no, left = 0, top = 0');";

request URL

var urlReq:URLRequest = new URLRequest ("javascript:" + jscommand + "void (0);");

The HTML JS call

navigateToURL (urlReq, "_self");

Tags: Adobe Animate

Similar Questions

  • Peripheral input MIDI CC Flash / Html Canvas

    Hello world

    First of all, if this isn't the right place for my question, would you please tell me where I can ask questions about CC Flash / actionscript 3.

    I'm building a game (with CC Flash / Html Canvas / AS3, on a Mac) for players to help them play it by ear. The app plays a few notes (.wav or Mp3 files) and the user has to play on a piano.
    Here is an example of level 3. (Sorry it's a french version for the moment).

    For now, it works fine with the included virtual piano but as I want to add the ability to play more than one note at a time (ex: agreements), I want users to use their keyboard as input device.
    The only information I found on the Internet about the midi input/output are too old, and I have not found anything on the use of this feature with Flash.

    So, how to set a midi piano keyboard as input device and collect the notes?

    Can I use the W3org WebMidiApi? If yes how?

    Thanks for any help or idea.

    F.

    It works!

    I tried with ExternalInterface, but I was getting a lot of errors.
    Looking forward for an example using this method, I found another solution simpler. So simple I don't know why I didn't try it before.

    I just need to add 2 lines on my html page:

    event.data = playednote [1] / / this is the value of the note played on the keyboard this line replaces the alert.

    document.myFunction (playednote); MyFunc is a function in Flash/AS

    Your last tip about unchecking the output HTML is very useful! I have a lot of time.

    Thanks for your help, now I can continue. I am happy

    Here's the script in my html page:

  • Mix ADF Faces with HTML, JavaScript, CSS, JSTL question

    Dear all,

    The project is now starting to deploy to the production server. When we try to deploy to the production server who made a lot of mistake. As this used widely used project mix ADF faces with
    HTML/JavaScript/CSS/JSTL. I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?
    There is in the project

    1 mix of tags html with ADF Faces components
    2. the use of JavaScript/CSS inline
    3. mix the JSF/ADF Faces and JSTL tags

    Help me how to address this issues as well as links to useful blog.

    JDeveloper IDE version: 11.1.1.5.0 with Webcenter
    WebLogic version: 10.3



    Best regards
    KT

    Published by: KT on May 16, 2013 21:23

    Hello

    In addition to this project widely used mixture ADF faces with HTML, JavaScript, CSS, JSTL.

    JavaScript, CSS, and JSTL is not a problem, whereas - according to the JSF version - HTML is. JSF 2 is the first version of the JSF, which allows you to mix HTML with less side effects, if you use Facelets as view declaration language.

    I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?

    There is in the project

    + 1. mixture of html with ADF Faces components tags +.

    This could ruin your pages, lead to update issues and - in case of frequent use in the trees - even destroy the functionality

    + 2. online use of JavaScript / CSS +.

    Poor performance because of heavy weight pages. If you were using ADF Faces and your JS addresses the DOM instead of the architecture of client cJavaScript ADF Faces then chances are JS will fail for the components that have changed their HTML output (which has an impact on the DOM structure) or changes are not submitted to the server.

    For CSS, CSS inlineStyle not applay to the DOM element that is external, which means for example af:input the background text color will color the lavel

    + 3. mix JSTL and JSF/ADF Faces tags +.

    Dependa on how you do. JSF has postponed EL syntax, which means that EL resolves at run time, whereas JSTL resolves at compile time. So the race conditions could become a problem

    Overall, it is difficult to say if things were coded wrong in the project (although for the use of HTML you can be sure) without seeing the code. It seems that the team that built the application however did not dare to the suite of recommended practices

    Frank

  • HTML Loader Help

    I can't get my Flex program to work. I'm trying to load a pdf in HTML loader help file. I use Flash Builder and I get errors. The errors I get are:

    Access of undefined property htmlLoad

    Access of undefined property urlReq

    Calling a method perhaps undefined addChild.

    Can someone please tell me what I'm doing wrong?

    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                                xmlns:s="library://ns.adobe.com/flex/spark" 
                                xmlns:mx="library://ns.adobe.com/flex/halo">
    <fx:Script>
         <![CDATA[
              import flash.display.*;
              import flash.net.URLRequest;
              if(HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK) 
              {
                   var htmlLoad:HTMLLoader = new HTMLLoader();
                   var urlReq:URLRequest = new URLRequest("http://www.evilfishsolutions.com/test.pdf");
                        
              
                   
                   
                   htmlLoad.width = 800;
                   htmlLoad.Height = 800;
                   htmlLoad.load(urlReq); 
                   addChild(htmlLoad);
                   
                   
              }
              else 
              {
                   trace("PDF cannot be displayed. Error code:", HTMLLoader.pdfCapability);
              }
    
         ]]>
    </fx:Script>
    </s:WindowedApplication>
    

    Hello

    I think you should include your code in the function.

    Try this.

    import flash.display. *;
    import flash.net.URLRequest;
    public function addHTML (): void {}
    if(HTMLLoader.pdfCapability == HTMLPDFCapability.STATUS_OK)
    {
    var htmlLoad: HTMLLoader = new HTMLLoader();
    var urlReq:URLRequest = new URLRequest ("http://www.evilfishsolutions.com/test.pdf");
    htmlLoad.width = 800;
    htmlLoad.height = 800;
    htmlLoad.load (urlReq);
    addChild (htmlLoad);
    }
    on the other
    {
    trace ("PDF cannot be displayed. Error code: "(, HTMLLoader.pdfCapability);"
    }
    }

    Thank you

    Vikram

  • Calling a function in Flash via JavaScript

    My project is in Flash CS3 ActionScript 2. I use the elements of JavaScript in my project that are called in Flash. The following code, placed on frame 1 of the main screenplay goes to frame 2 and displays the = JavaScript that works. Here's the code;

    HS_Film_Button.onRelease = function)
    {
    gotoAndStop (2);
    flash.external.ExternalInterface.call ("firehs");
    };

    Now, when the frame 2, I want JavaScript code 'close' in the element to go to frame 1 on my Flash main scenario. From now what he's doing is closing itself in part 2 of my Flash page, so I added a button flash in there to go to section 1. Hence the need to double-click to finally finish on frame 1. But I want the JavaScript element to do it in the first place!

    The real problem here is that the JavaScript element was formerly on my main unique calendar, but its performance (speed display and other) was strongly influenced by my calculations of Flash Time, Date and Frame rate. This JavaScript element comes from the milliseconds and I suspect that my Flash file is based in a few seconds and that my Flash calculations are captured by the browser and run my JavaScript element... Hey I'm lost you kind of see what I mean, I hope. Anyway, if I could just get rid of the frame 2 all together and I have a kind of coding that would be eighther having Flash calculate in milliseconds instead of seconds? to match my JavaScript one... Or codify so-called JavaScript that when he would take charge and tell the browser to change its calculations rates?

    If you want to take a look at the messages of the Forum topic where this evolves with sample questions and answers... This link gets you right in the display.
    Highslide JS Forum

    This is where Flash meets JavaScript! I need help please.
    Kind regards
    Stone

    allowScriptAccess is not related to the js as communication.

    and I'm not sure what you're trying to describe your incorporate the method. but when you publish an as2 file, AC_FL_RunContent is a function in AC_RunActiveContent.js

  • WebWorks is made from a non index.html / javascript

    Hello

    I tried to create a webworks app that relies mainly on the coast server. This means that my

    points to

    Now, if I run a script on a local html javascript, I get the entire webworks library to work properly.

    If I try with my application on the side server, cordova.js works but all the blackberry.xx (blackberry.io.shared in my case) api not working and going out as undefined. Is it possible to load webwoks from a remote script?

    My access is:

    I also have permissions defined rim

    access_shared

    Thank you

    Al

    Ok.. I spent a lot of time to test the various features...

    Now, as of March 23, 2015 with Blackberry 10.3.1 it is possible to start a Download / Upload in a Web view using stunts in designing an application using Momentic.

    The design is staright before examples available on GitHub https://github.com/blackberry/BES10-Cascades/tree/master/WebView

    Most of my code is located on the side Server and the Blackberry application becomes a simple interface to access.

  • app calls html/javascript kernel written in c / c ++

    Wonder if I can use html/javascript to call core application written in c / c++.

    I hope to put some entensive of calculation for the module written in c / c ++

    Is this possible?

    Welcome to any comment

    Hello. WebWorks for BB10 extensions are on the road ahead, and for now, there is an example of how to write a native extension with a JS source that will be used to the WebWorks app. See the discussion on the extension BB10 WebWorks, I've referenced the example in there.

  • Why make a 'met while loading HTML javascript error' when I insert a google map into indesign?

    In the past I have integrated a google map in my DPS projects very well. Now, I get this error "error while loading HTML javascript" how to solve this?

    Here's a thread on the InDesign forum where the issue has been resolved: Indesign HTML does not

  • Convert HTML/javascript AIR app AIR flex application?

    Hi all

    I have already built an AIR with HTML/javascript application I want to monetize.

    I would use the O2app e-Commerce Framework, which supports only this time created Flex AIR apps.

    My question: is there a simple way to "convert" an AIR of HTML/javascript app in Flex 3? I don't want to rebuild from scratch in Flex 3 application if I have to. :)

    Thank you

    Al

    Thank you very much for this information.

    Initially, I asked the question because, at the time, I thought that AIR Flex applications could be protected against copying, but it seems that they too can not be protected against copying (the exe file is created AFTER the installation).

    Thanks again,
    Al

  • Flash HTML document read does not correctly... HELP Please

    Basically, I have a lot of text that contain underscores and everything good put things in form that the flash text cannot do. So I created a dynamic scrolling text box, loaded externally document txt containing all the right HTML tags for flash. But for some reason any flash cut the text. It will not show all the text that I have. I noticed that it seems to be cut off in SOME areas (not all) where I have a hyperlink. Someone at - it never deals with this before? He drives me crazy and I can't find ANY help online about it. If you have any suggestions, I'd be super grateful! Thanks in advance

    the ampersand is used by flash to indicate the beginning and end or a text variable/value pair charged.  for example, when you use an ampersand in text loaded you should encode.  26% is the correct encoding and that's the difference between your code and the code that I have proposed.

    p.s. Please mark this thread as answered, if you can.

  • Pleeeeease help (question Flash HTML)

    Hi all
    I wonder, how do I add things like the identification label, or tags META HTML Flash document. Only way I know to date is to take together over Flash animation and incorporate it into the new HTML document created for example with TACO or some other HTML editors. This way I can add ID, META tags, etc. But I can go to the original HTML document created by Flash and add it?
    Thank you very much for any information or input.
    Janek

    Yes - just edit the html published from flash.

    ******************************************
    --> * Adobe Certified Expert *.
    --> www.mudbubble.com
    --> www.keyframer.com

    Janek Mohavlec wrote:
    > Hello all,.
    > I wonder, how do I add things like the identification label, or tags META HTML Flash
    > document. Only I know to date is to take together over Flash animation and
    > incorporate into the new HTML document created for example with TACO or some other HTML
    > publishers. This way I can add ID, META tags, etc. But then I go to original HTML
    > document created by Flash and he add?
    > Thanks a lot for any advice or input.
    > Janek
    >

  • Canvas of HTML, Javascript, coding for movement forward/backward a frame w / buttons?

    Hi everyone, I am super new Flash/Animate and know very very little about AS2 and AS3 (or any other coding besides language)

    I am trying to build a simple "module" to animate, somewhat like a PowerPoint where you can move the slide to the slide (or image in image) with help of the arrow keys. In the previous "modules" I built using AS2, I did this through the creation of buttons and their assignment of code that was something like -

    {We (Release)}

    nextFrame():

    }

    and

    {We (Release)}

    prevFrame();

    }

    and it was super easy.

    However, now I'm working with canvas of HTML, because I need the modules to work on mobile devices, so I will try to write code in JavaScript.

    I managed to achieve a code (after long hours searching through forums) which kind of accomplished what I try to do, but after the move an image forward my 'next' button stops working. The "previous" button works, but I can only test it after I went from an image in advance.

    So here's my setup.

    I have created a form that I've then nestled inside a movieclip and button I up this movieclip on the stage to create my buttons. I gave only one instance of the name of "prevBtn" and the other the name of the instance "nextBtn.

    The layers are simply a background layer, my navigation layer (where the buttons) the image only key on my nav layer is the first image, then the buttons remain the same with the same instance for remaining executives names, a text layer (where I wrote a text on each image to say if she moves forward and backward) and a framework of actions.

    On a frame of my layer actions, I put the following code.

    This.Stop ();

    var frameNumber = this.currentFrame;

    nextFrame var = frameNumber + 1;

    prevFrame var frameNumber = - 1;

    this.nextBtn.addEventListener ("click", navNext.bind (this));

    function navNext() {}

    this.gotoAndStop (nextFrame);

    }

    this.prevBtn.addEventListener ("click", navPrev.bind (this));

    function navPrev() {}

    this.gotoAndStop (prevFrame);

    }

    If someone could please tell me why it does that to move to the front of a picture and then my "nextBtn' no longer works I would be VERY happy! Or is there another way to code this simple interactivity, THANKS!

    You define frameNumber outside the service. So, you set the frameNumber only once, and so it won't give you the same number, chassis number following if ever this code exists. You have really no need create this variable for what you want to do. This should do what you want:

    this.nextBtn.addEventListener ("click", navNext.bind (this));

    function navNext() {}

    this.gotoAndStop (this.currentFrame + 1);

    }

    this.prevBtn.addEventListener ("click", navPrev.bind (this));

    function navPrev() {}

    this.gotoAndStop (this.currentFrame-1);

    }

  • Try to download adobe flash player, please help me.

    Recently, I removed Adobe flash player of my programs.  Now I'm trying to re - install on my computer.  Every time I make an error message appears.  I searched through my files and adobe flash player does not exist.  I don't know if I'm missing something because I have videos that I need to display and I cannot.  Can someone help me please.

    Sincerely,

    Nicole

    Installation problems | Flash Player | Windows:

    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Install the latest version of Flash:
    http://get.Adobe.com/flashplayer/

  • banner ad in HTML/Javascript

    Hello

    I develop my application using Phonegap in Eclipse (with Blackberry Plugin) using HTML and Javascript.

    It is a free app and I want to integrate online advertising.

    Have no method to integrate the AdMob with HTML for Blackberry?

    or can someone help me how to integrate advertising online for blackberry?

    Thank you

    Perhaps this can serve you

    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.advertising.banner.html

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/advertising-service-for-PlayBook...

  • JavaScript help: get the current line inside tabular

    Hello world

    I hit a roadblock for a simple JS code: to get a current line for my tabular form. My environment is: Apex 4.2.6 on Oracle 11.2 with 3 Bootstrap for styling.

    The query in tabular form is as simple as this:

    Select

    "REF #"

    «INV #»

    "MANUFACTURER."

    "DISCOUNT."

    'PRICE ',.

    "UPC",

    "DESCRIPTION."

    quantity,

    "LINE NO.",.

    "" step by step

    of Order_items

    Now the emphasis here is "stepper", it is defined as "text save any State", in the expression of the HTML, I added this:

    < div class = "btn-group" >

    < button type = "button" class = "btn, btn - lg" onclick = "plusClicked ()" > + < / button >

    < button type = "button" class = "btn, btn - lg" onclick = "minusClicked (); ">-< / button >

    < / div > <!-/-> button

    The screen is as follows:

    Screen Shot 2015-02-06 at 9.44.49 AM.png

    In the header of the Page Javascript section:

    function plusClicked() {}

    var line, qty;

    Row = $(this). Closest ("TR");

    I tried row = $(this) .parent () .closest ("tr");

    same undefined result

    Qty = Row.Find ('input [Name = F09]'). Val();  F09 is the entry for the qty column name

    Alert ('most clicked qty =' + Qty);

    }

    The result is always: 'most clicked qty = undefined ".  Inspect the code says this:

    Screen Shot 2015-02-06 at 9.57.49 AM.png

    Any help and suggestions are greatly appreciated.

    The few I tested it seems solid to me.  I think you have to pass 'this' to plusClicked and minusClicked.

    onclick = "plusClicked (this)" "

    Then, the function can do:

    function plusClicked (btn) {}

    var line, qty;

    Row = $(BTN). Closest ("TR");

    Qty = Row.Find ('input [Name = F09]'). Val();  F09 is the entry for the qty column name

    Alert ('most clicked qty =' + Qty);

    }

    The other approach, I like it for it's with a DA.  I would like to add a class to the buttons instead of the onclick.

    DA would be during the click on jQuery selector .btnPlus

    and the JS to run would be:

    var $row = $(this.triggeringElement) .closest ("tr");

    var qty = $row.find('input[name=f09]').val ();

    Alert ('most clicked qty =' + Qty);

    I hope this helps.

    Thank you

    -Jorge

Maybe you are looking for

  • symbol ban 2008 iMac

    On Friday, I was with my iMac and it started to go very slowly. I tried to stop but interfered application and the computer appears to be frozen. I forced the closing down. I tried to start up and I get the prohibitive symbol. Safe mode does not nor

  • Lenovo G580 - Battery Charge stops at 60%

    Lenovo g560. "60% of the battery is connected does not load. Win7 x 64. When you connect the charger blinks yellow and immediately becomes the white light. The battery does not work. Immediately.

  • 00000643 update is not installed

    I get an error when you try to update to the bottom

  • HP 4630e AIO

    I just bought and installed 4630e HPOJ AIO 3 days ago, I do not keep it turned on all the time but when I power off and on again the next day, he always asks an alignment page in order to move forward. Has anyone found a way to bypass this procedure?

  • Too many proccesors

    I have Windows 7 and I, uh... I don't know too many processors O_O (in Task Manager) is normal, but here it is = P http://screencast.com/t/uuU6DeRXQkMU http://screencast.com/t/oPc984AqJQq http://screencast.com/t/jeHaKaEvnzl http://screencast.com/t/Lg