Cannot convert a clip simple targeting AS3 to HTML5 (really new to HTML5 Flash CC)

Please, I beg you! A good soul can convert this to HTML5? I've tried everything! I need to see where I am going wrong... It works perfect in as3, but every time I tried to convert it into js, it stops... Someone? :/

buttonOne.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayAtFrame);

function fl_ClickToGoToAndPlayAtFrame(event:MouseEvent):void
{mc.gotoAndPlay (2) ;}}

Stop();

I already tried this:

var _this = this;
this.buttonOne.addEventListener("click", fl_ClickToGoToAndPlayAtFrame);
function fl_ClickToGoToAndPlayAtFrame(event) { // Note: Types are not supported either.
  _this.mc.gotoAndPlay(2);
}

It works in a empty fla, but not on the i'm working:

I just want to call the mc (with effect) and at the same time, go to section 348 and play... I'm downloading the original fla that I am working on... Please, help me find what's the problem?

www.agenciacreh.com.br/downloads/Home.fla (here the fla file!)

Thank you!

Hello

This could be a problem do not specify an instance name on the first image where this instance is placed at providing the instance name to a frame later. Flash takes the instance name what is the setting in which the instance is named but CreateJS it does not bind this way.

Joined the work file.

Thank you!

Mohan

Tags: Adobe Animate

Similar Questions

  • Embedding a SWF Movieclip gives the error: "cannot convert box_swf to flash.display.MovieClip.

    Hello, I am getting a weird error on a very simple code.

    I have a swf containing a clip with the Linkage name "Box". The movieclip has an animation of 30 images, still Flash Builder keeps mistake saying: this isn't a clip!

    SerializableAttribute public class Main extends Sprite

    {

    [Embed (source = "... / assets/box.swf", symbol = "Box")] public static A_Box: Class const;

    public void Main()

    {

    var box: MovieClip = new A_Box();

    }

    }

    #1034: constraint type failed: cannot convert box_swf$161b93e3bc30cfa0cb18e1d734943c6f-1063626660@53720a1 to flash.display.MovieClip.

    If I try to bring it as a leprechaun, it works very well (var box: Sprite = new A_Box();), but then it does not animate, because it is considered as a sprite.

    I looked around 20 examples online, the code is very simple and I can't seem to find anything wrong with my code. I also rechecked 300

    time and the Movieclip is correctly set up inside the Swf. (name of the link, several frames, export for actionscript Framework 1, etc.)

    Then... Why does is not the only work of Sprite and MovieClip?

    I'm doing something wrong or is this maybe a problem of FlashBuilder/Air13.0?

    Thank you!

    I opened my project again today to see if it suddenly works perfectly... Something must have been in cache because I got hurt with her for six hours yesterday, and now without changing it works immediately the bat.

    I find that there are problems cache as such in FB. Sometimes the changes I have made do not appear in the project at all (including the removal of the top classes) until I restart FB. Really wish that Adobe get their act together and release a patch to fix some of the bugs all.

  • Cannot convert System.Object]

    I have a simple function, it is block param is defined as follows:

    param (

    [parameter (Position0, =

    Mandatory,=$true

    ValueFromPipeline=$true

    ( HelpMessage="VMHost Object")]

    [ValidateNotNullOrEmpty()]

    [VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl] $VMHost )

    The feature works as expected when it is called in this way:

    Get-VMHost | Test-VMHostOverCommitment

    Test-VMHostOverCommitment-VMHost (Get-VMHost MyHost)

    $MyHost = get-VMHost MyHost

    Test-VMHostOverCommitment-VMHost $MyHost

    But fails when invking as follows:

    Test-VMHostOverCommitment-VMHost (Get-VMHost)

    $AllHosts = get-VMHost

    Test-VMHostOverCommitment-VMHost $AllHosts

    This is the error:

    Test-VMHostOverCommitment: cannot process the transformation parameter argument '$vmhost '. Cannot convert value "System.Object []" type "System.Object []" type 'VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl '.

    Whence the System.Object []? The output of Get-VMhost is VMHostImpl objects. I can change the type of input of object as a solution, but then I lose the type of automatic type detection. I'm doing something wrong?

    See you soon,.

    Mike

    Hi Dimitar,

    Welcome to the VMware communities.

    Your explanation of the problem is right. I only would set it a little different. Like this:

    function Output-VMHost {
      param (
        [parameter(Position=0,
           Mandatory=$true,
           ValueFromPipeline=$true,
           HelpMessage="VMHost Object")]
        [ValidateNotNullOrEmpty()]
        [VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl[]]$VMHost)
    
      process {
        foreach ($ThisVMHost in $VMHost) {
          Write-Output $ThisVMHost.Name
        }
      }
    }
    

    Best regards, Robert

  • Cannot convert the SWF into a MovieClip

    I have a problem when I have a project as3 loading in an AS3 SWF that contains an another AS3 SWF containing a videoplayer, and I am getting error of failure of type coercian as above.

    TypeError: Error #1034: Type coercion failed: cannot convert work_client_overlay@39e9e0b1 to flash.display.MovieClip.
    to WorkClient / externalLoadComplete)
    function / http://adobe.com/AS3/2006/builtin::apply()
    to MethodInfo-(37)

    usually, when I load in a SWF file I put something like

    mc:MovieClip - new MovieClip() var;
    MC = MovieClip (ev.currentTarget.content) //where ev.currentTarget is a charger

    Then, I find that I can trigger functions in the SWF file that is loaded using the
    MC. SomeFunction();

    but this does not work in this case and the only reason I see is that there is a videoplayer loaded inside the SWf I am loading in...

    Any help would be greatly appreciated.

    Greg

    I solved it. The main class of my loaded SWF needed to extend the MovieClip and it prolonged only Sprite.

  • Cannot convert RichInputNumberSlider to int

    Hi all
    I have tried the panelDashboard component.
    I want to make a simple page with two components: an inputNumberSlider and a panelDashboard.
    I would like that the panelDashboard has the number of columns selected in the inputNumberSlider.

    I read the post of thi: < af:panelDashboard > component not made
    so I put in the "columns" of the panelDashboard of the value property: #{backingBeanScope.ins1.value}

    but I have this error:

    java.lang.IllegalArgumentException: cannot convert RichInputNumberSlider [UIXEditableFacesBeanImpl, id = ins1] of type class oracle.adf.view.rich.component.rich.input.RichInputNumberSlider in int
    at com.sun.el.lang.ELSupport.coerceToNumber(ELSupport.java:293)
    at com.sun.el.lang.ELSupport.coerceToType(ELSupport.java:373)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:194)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelDashboardRenderer.getColumns(PanelDashboardRenderer.java:384)
    Truncated. check the log file full stacktrace

    I want to convert to int, because if I set the 'columns' property # {backingBeanScope.ins1.value} without converting them, I do not see the panelDashboard.

    Why?

    I use Jdeveloper 11.1.1.0

    I do something similar. In my grain of support for dashboard, I just have a property of type string called 'prefNumCols' with the getters and setters.

    
    

    Then the dashboard is refers to this value simply and watches the foregoing as a partialTrigger

     
    

    Works for me :-)

    Published by: cafelatte, Sep 22, 2009 15:24

  • 4.2 compressor can convert PRORES Clips?

    Hello

    then the compressor 4.2 convert video clips into proresHQ?

    Greetings

    Ralf

    Yes.

    Russ

  • error C2440: '=': cannot convert from 'unsigned short [70]' to ' char *'__Code: UNICOD problem__ MapiMessage message; __message.lpszSubject = _T ("International Translation package Attached"); Error at this stage. ___

    Project is in UNICODE format in VC6.0 MFC on windows XP

    error C2440: '=': cannot convert from 'unsigned short [70]' to ' char *'
    Code:

    MapiMessage message;
    message.lpszSubject = _T ("International Translation package Attached"); Error at this stage.

    I would know how can I use MapiMessgae in my program using Unicode.

    Suggest me any change in

    Thank you and best regards,

    Sanjay.

    Hello Sanjay

    The question you have posted is better suited to the MSDN forums. You can ask your question in the help link.

    http://social.msdn.Microsoft.com/forums/en/category/vsexpress

    Hope the helps of information.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I converted a clip video .mov .avi and inserted in Windows Movie Maker, but it's only playing as sound and no video

    Original title: Windows Media Player
    I converted a clip video .mov .avi and inserted in Windows Movie Maker, but it's only playing as sound and no video, why?

    There may be some compatibility issues with .avi files...
    try to convert the .mov file to .wmv format before
    import into Movie Maker.

    There are many programs that can do conversions...
    The following freeware is an example...:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup260.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)

    First, you will need to decompress the file or just open the
    Drag FFSetup260.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your clips on the main screen .mov...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • Cannot convert 'Double room' to 'double '.

    Update a variable 'amount', including the difficulty is twofold, to a BasicEditField which is a String:

        //Values
        private double amount = 100000;
    
        //Fields for data entry
        private BasicEditField amountField;
    
    amount = Double.valueOf(amountField.getText());
    

    I get this error message: cannot convert from 'Double' to 'double'

    Think that I thought about it:

    amount = Double. parseDouble (amountField.getText ());

  • 'Cannot convert FAT32 to NTFS disk.

    When I try to convert an order to my D drive, I get the following response cannot convert volume on this disk

    Hello

    I suggest you check out the following link.

    Convert a hard disk or partition to NTFS format

  • Cannot convert abcd of the type class java.lang.String interface java.util.List

    Hello

    I get an error of "cannot convert the class type abcd java.lang.String interface java.util.List" where "abcd" is a string in a listbox.

    and my code is something like this

    < af:selectOneListbox id = "lstcatg" label = 'List of categories' partialTriggers = 'proud '.

    value = "#{viewScope.RegWoComp.lstboxcatg}" >

    < f: selectItems id = value="#{viewScope.RegWoComp.customList}"/ "lstselect1" >

    < / af:selectOneListbox >


    bean

    private list < String > lstboxcatg;

    {} public void setLstboxcatg (List < String > lstboxcatg)

    This.lstboxcatg = lstboxcatg;

    }

    public List < String > getLstboxcatg() {}

    Return lstboxcatg;

    }

    public BindingContainer {} getBindings()

    Return BindingContext.getCurrent () .getCurrentBindingsEntry ();

    }

    Private Sub button (ActionEvent actionEvent)
    {
    JUCtrlListBinding listBindings = (JUCtrlListBinding) getBindings () .get (lstboxcatg);
    Object [] str = listBindings.getSelectedValues ();

    for (int i = 0; i < str.length; i ++)

    {

    System.out.println (STR [i]);

    }
    }

    I tried to use this fact.

    object str = listBindings.getSelectedValue ();

    System.out.println (STR);

    and here, if I change the data type of lstBoxcatg

    private String lstboxcatg;

    {} public void setLstboxcatg (String lstboxcatg)

    This.lstboxcatg = lstboxcatg;

    }

    public String getLstboxcatg() {}

    Return lstboxcatg;

    }

    can I get a nullpointerexception on line object str = listBindings.getSelectedValue ();

    No you can use this code you don't use link layer

    remove this code. You will get the selected value in this string variable

    Just write this about you button action and verification.

    System.out.println (selectedVal);

    Ashish

  • EPMFDM-140301: cannot retrieve members. The target is not available or you do not have permissions to access the target application

    Dear friends,

    I have this error when clicking on the value target in the loading map.

    EPMFDM-140301: cannot retrieve members. The target is not available or you do not have permissions to access the target application.

    But my HFM application is running and I can show members in the application of HFM. Through the mapping of FDM, I'm not able to view the list of members in target value.

    Please give me the perfect solution for this.

    Thanks in advance

    Concerning

    Satheesh.S

    Thanks for your quick response

    Again added my application target, include membership lists.

    Concerning

    SS

  • Cannot convert pdf to word

    Has always been able to convert PDF documents to word until today?

    Hi michellem99872918,

    Could if it you please let me know how you convert pdf document to word - in Adobe Reader or via https://cloud.acrobat.com

    You see an error message?

    You are not able to convert a single PDF or all PDFs?

    You can try the steps below:

    Cannot convert PDF to word

    I still cannot convert a pdf file to a word doc.  Need help!

    I'm unable to convert a pdf file to word, I get the error message indicates that it contains XFA forms

    Let me know if it worked.

    Thank you

    Shivam

  • Cannot convert native table error

    I try to run the following code to the will a bunch of VmfsVolumes:

    var specs = new Array();
    for each (var unres in unresolved)
    {
      var resolutionSpec = new VcHostUnresolvedVmfsResignatureSpec([unres]);
      specs.push(resolutionSpec);
    }
    
    
    var unresVmfsResults = u_host.configManager.storageSystem.resolveMultipleUnresolvedVmfsVolumes(specs);
    for each (var res in unresVmfsResults)
    {
      System.log(res.vmfs.name);
      System.log(res.fault.localizedMessage);
    }
    
    

    I get this error message:

    Cannot convert org.mozilla.javascript.NativeArray@53a11a66 to [com.vmware.vim.vi4.HostUnresolvedVmfsResolutionSpec]


    I have no idea how to do to create a strongly typed array in Javascript, and I'm not even sure its possible.  Anyone know how to get around this problem?  I tried to use the form var = [];  I also tried to feed the first resolutionSpec in manually as: form var = [resolutionSpec].


    form var = new Array(); and form var = []; are roughly equivalent.

    What is the content of the unresolved variable that you iterate in the first loop?

    An obvious error is that resolveMultipleUnresolvedVmfsVolumes() accepts an array of VcHostUnresolvedVmfsResolutionSpec, but you claim with VcHostUnresolvedVmfsResignatureSpectable.

    Also, you are passing [unres] as an argument in the constructor, but according to the API Explorer this constructor has no arguments. Instead, you need to instantiate the script using its constructor with no arguments object and then just set its properties.

  • Was to convert AS3 document HTML5 Canvas dropped?

    I can't find it under orders >AS3 convert document HTML5 Canvas more. Therefore, it is possible to convert AS3 to HTML5? Thanks in advance.

    He said now convert other Formats of documents... and you can choose between as many other formats that you have installed at the moment.

Maybe you are looking for