Help, please! New flash making memory game

To make this memory flash game and im a complete noob so need for help. I need to turn over the cards to 10. I think the card is totalchildren = 10 or something but I don't know. Get errors 1119 and 1120.

Scene 1, Layer 'layer 1', frame 1, line 179. '1120: access of undefined property reset.
Scene 1, Layer 'layer 1', frame 1, line 180 '.1119: access of property may not set buttonMode through a reference with static type flash.display:SimpleButton.

Away3d.cameras import. *;

Away3d.containers import. *;

Away3d.materials import. *;

import away3d.primitives.Plane

import away3d.primitives.Cube

Import away3d.containers.ObjectContainer3D;

Import away3d.core.math.Number3D;

import caurina.transitions. *.

Import fl.motion.MotionEvent;

var scene: Scene3D;

var camera: Camera3D.

var view: View3D.

var totalchildren:int = 10

maps: Array, var

var texture: Array = [new texture0 (0,0)]

new texture1 (0,0).

new texture2 (0,0).

new texture3 (0,0).

[new texture4 (0,0)]

var backtexture:BitmapData = new textureback (0,0)

var woodtexture:BitmapData = new texturewood (0,0)

var cardwidth:Number = 110

var cardheight:Number = 150

var xoffset:Number = 10

var yoffset:Number = 10

var cardsholder:ObjectContainer3D

var selectedCard1:Plane

var selectedCard2:Plane

var disableMouseEvents:Boolean = false

function initAway3D (): void {}

scene = new Scene3D();

camera = new Camera3D();

Camera.y = 700

Camera.z = 500

camera.lookAt (new Number3D (0,0,0))

view = new View3D ({: scene, camera: camera});

View.x = stage.stageWidth/2

View.y = stage.stageHeight/2

addChild (view);

}

function createGround (): void {}

var cube: Cube = new Cube ({width: 680, depth: 400, height: 20, a slowdown: true, ownCanvas:true, material: new BitmapMaterial (woodtexture)})

Cube.y =-20

scene.addChild (cube)

}

function createCard(texture:BitmapData,id:int):ObjectContainer3D {}

var map: ObjectContainer3D = new ObjectContainer3D()

var: plan face = new plane ({width: cardwidth, height: cardheight, material: new BitmapMaterial (texture, {smooth: true})})

var: back plan = new plane ({width: cardwidth, height: cardheight, material: new BitmapMaterial (backtexture, {smooth: true})})

front.rotationY = 180

back.rotationZ = 180

back.rotationY = 180

Back.extra = {}

Back.extra.ID = id

back.extra.targetCard = map

back.addOnMouseDown (onBackClicked)

card.rotationZ = 180

card.addChild (front)

card.addChild (back)

card.ownCanvas = true

return to map

}

function initCards (): void {}

cards = new Array()

for (var i: int = 0; i < textures.length; i ++) {}

var card1:ObjectContainer3D = createCard (textures [i], i)

var card2:ObjectContainer3D = createCard (textures [i], i)

Cards.push (card1)

Cards.push (map 2)

}

}

function randomizeCards (): void {}

var newArray:Array = new Array();

While (cards.length > 0) {}

newArray.push (cards.splice (Math.floor (Math.random () * cards.length), 1) [0]);

}

the cards = newArray

}

function addCardsToScene (): void {}

cardsholder = new ObjectContainer3D()

var currentindex:int = 0

for (var i: int = 0; i < 2; i ++) {}

for (var b:int = 0; b < 5; b ++) {}

maps [currentindex] .x = b * (cardwidth + xoffset) + cardwidth/2

maps [currentindex] .z = i * (cardheight + decalage_y) + cardheight/2

cardsholder.addChild (cards [currentindex])

currentIndex ++

}

}

var cardswidth:Number = (5 * cardwidth) + (4 * xoffset)

var cardsheight:Number = (2 * cardheight) + (1 * decalage_y)

cardsholder.x =-cardswidth/2

cardsholder.z =-cardsheight/2

scene.addChild (cardsholder)

}

function onBackClicked(e:Event):void {}

{if(disableMouseEvents==false)}

{if(selectedCard1==null)}

selectedCard1 = e.currentTarget as aircraft

} else {}

{if(selectedCard2==null)}

selectedCard2 = e.currentTarget as aircraft

waitForDecision()

disableMouseEvents = true

}

}

Tweener.addTween (e.currentTarget.extra.targetCard, {y: 50, rotationZ:0, time: 1})

}

}

function waitForDecision (): void {}

var: timer = new Timer (1000,1)

timer.addEventListener (TimerEvent.TIMER, makeDecision)

Timer.Start)

}

function makeDecision(e:Event):void {}

if(selectedCard1.extra.ID == selectedCard2.extra.ID) {}

Tweener.addTween (selectedCard1.extra.targetCard, {alpha: 0 hours: 0.2, onComplete:re moveCard, onCompleteParams: [selectedCard1.extra.targetCard]})

Tweener.addTween (selectedCard2.extra.targetCard, {alpha: 0 hours: 0.2, onComplete:re moveCard, onCompleteParams: [selectedCard2.extra.targetCard]})

} else {}

Tweener.addTween (selectedCard1.extra.targetCard, {y: 0, rotationZ:180, time: 1})

Tweener.addTween (selectedCard2.extra.targetCard, {y: 0, rotationZ:180, time: 1})

}

disableMouseEvents = false

selectedCard1 = null

selectedCard2 = null

}

function removeCard(e:ObjectContainer3D):void {}

cardsholder.removeChild (e)

totalchildren-

{if(totalchildren==0)}

trace ("Win")

}

}

function startToRender (): void {}

addEventListener (Event.ENTER_FRAME, render);

}

function render (e: Event): void {}

View.Render ();

}

initAway3D()

createGround()

initCards()

randomizeCards()

addCardsToScene()

startToRender()

reset_btn.addEventListener (MouseEvent.CLICK, reset);

reset_btn.buttonMode = true;

If you have not defined a function named "reset", you need to.

If the reset_btn object is a button (SimpleButton) there no a buttonMode property... it's basically buttonMode permanently.

Tags: Adobe Animate

Similar Questions

  • Help please with flash CS4!

    Hello, I'm at school and I have a mission to fulfil on flash, but when I try to make an object, a little boring box appears around my object instead of having nothing around him, I spend it for nothing and tried to use the selection tool, but then it didn't go all graph as it should be, and instead This box is back.  Ignored, even once, I tried to use the BONE tool, but it only works on a single shape, and he's not going to others to link!  untitled.JPG This is what looks like the box on the object and it's really frustrating me.  Help, please!

    You have selected the tool "object drawing". In your toolbar to the bottom, there is a button that is just a circle (go over it and it will say "drawing object" (it's under your color palette paint COP and above the fill lock button.) Provide your sounds like mine! Just click on this issue and it will switch the drawing of the object on and outside. You can break apart objects that you have already established as objects by selecting the form and pressing 'cmd' + 'B' (ctrl + b on a pc)

  • help please former flash player does not work on the game apps

    Adobe Flash Player does not work how to fix it

    depends on the problem and if you use a browser plugin (and browser) or a stand-alone.

    but it is generally useful to:

    uninstall, http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html

    can manually download and install, http://www.adobe.com/products/flashplayer/distribution3.html

  • Need help please graphics Flash - Urgent

    Hello

    I have a couple of flash cards in my application. the card works fine in my local environment, but when I downloaded the application to the host environment the charts generate an error (error XML loading failed).

    can you please find the link below and see if the same error appear? use of the connection

    Username: aligazala
    password: perfume

    http://www.e-oncologist.com/pls/Apex/f?p=234:58:1275529256310994:no:P58_TUMOR_ID, F140_SITE_ID, P58_SITE_ID:2% 2 C 1 %2 C 1

    Thanks in advance
    AL

    Hello

    Take a look at your chart region: XMLFile = #HOST #apex_util.flash? p = & APP_ID.: 10: & APP_SESSION.: FLOW_FLASH_CHART_R #REGION_ID #.
    The bit #HOST # is the problem.
    This will not work: https://www.e-oncologist.com/pls/apex/apex_util.flash?p=234:58:49430674803444:FLOW_FLASH_CHART_R400807525302524038_en - us
    But it does not work: http://www.e-oncologist.com/pls/apex/apex_util.flash?p=234:58:49430674803444:FLOW_FLASH_CHART_R400807525302524038_en - us
    So, if you replace #HOST # by http://www.e-oncologist.com/pls/apex/ it should work.

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.sumneva.com/

  • Problems with the old game; Total Annihlation. Display a horizontal bars, turns into a rainbow of colors. Help, please. I love this game.

    I have display problems with a game that I just downloaded. The game is Annihlation Total; the game does not appear correctly. He works for a few seconds, all the graphics turn Rainbow and I can't seem to stop. Tried to run in compatibility mode; did not work. I hope there is a solution because this is one of my favorite games...

    Hi razorbladeapple,

    (a) what operating system do you have? And also to indicate the version?
     
    There is currently no information on the compatibility of the game with Windows 7.
     
    (b) is the display horizontal bar change only whem you play the game?
     
    (c) you have installed the updated display drivers?
     
    Some devices have drivers you need to install yourself. If you download a driver that is not self-installable, follow these steps:
     
    You must be logged on as administrator to perform these steps.
     
     
    Contact GT Interactive and check what they have to say about the compatibility of the game with Windows 7 because they are the best people to offer support.

    Aziz Nadeem - Microsoft Support
  • I tried to update flash player and when I put my password, it is rejected.  I recently updated my email address and changed my password, but adobe will not accept.  Can I get help, please, update flash player?

    I tried to update flash player and when I put my password, it is rejected.  I changed my e-mail and password and notice to adobe, but I am still unable to install the flash player update.  How can I update adobe flash?

    This password is presented by your operating system and is designed to prevent you from accidentally installing the software.

    If it comes to your personal computer and you don't need a password to connect to the computer when it first starts, you can probably leave the password blank and click OK to go to this prompt.  If it comes to your personal computer and your normal password does not work, make sure that CAPS LOCK SHIFT is off, and then type the password carefully.

    If this is your work machine and he asks an administrator password, well, you will need to have a conversation with your computer friendly.

  • My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    Question

    I have another type of problem with Firefox

    Description

    My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    This has happened

    Each time Firefox opened

    Only a few weeks ago, (tried everything)

    Troubleshooting information

    ?

    Version of Firefox

    3.6.3

    Operating system

    Windows XP

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en - us; RV:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

    Plugins installed

    • -Adobe PDF plugin for Firefox and Netscape
    • Default plugin
    • Shockwave Flash 10.0 r45
    • Windows Presentation Foundation (WPF) plugin for Mozilla browsers
    • Java plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
    • Npdsplay dll
    • DRM Netscape Plugin store
    • DRM Netscape Object network

    Read about virtual memory here: http://www.ehow.com/windows-xp-virtual-memory/

  • I want to buy a new flash drive, help me choose please :(

    Hello guys! ))

    I am looking to buy a new flash drive, I transfer a lot of files and folders that exceed the limit of 4 GB to fat32

    I liked the Extreme Sandisk 64 GB, but I did some research and apparently has two versions, one that reads 190 MB/s and writing 170 MB / s... and another who reads 245 MB/s and writing 190 MB/s...
    I want the 245 MB/s one, 55 MB/s in the difference between "two versions".
    "I don't know if this may be a false drive * 170 MB/s, one ', but these speeds are written in the same package, and the products are the same...

    And another thing, the 64 GB flash drives is already formatted in exFAT, correct?

    in any case, thanks guys and sorry for my bad English im from South America.

    Hello

    its always recommended to format the drive after some use to track the performance of the car and sustainability. in this case, for formatting options, you can select the standard of formatting options with ExFat.

  • How to encapsulate two games in a new flash document

    Hello comrades!
    Now that I have my first two games, I want to encapsulate it in a new document.

    Here's my idea:

    Create a new document with 4 key frames in the main timeline.

    • One will greet the title and the 'play' buttons (each to play a game).
    • The second will contain the first game.
    • The third will contain the second game.
    • The last keyframe will contain the scores.

    Each game contains a movieclip that is controlled by a main class that I wrote using as3.0. Imagine, for example, that one of the games is a simple rectangle that the user is moving with the arrow keys. The movement code is inside the main document class. The second game is something similar.

    So, how 'import' games (which have been developed completely independent of each other) for my new flash document keyframes?

    Could you help me?

    Thanks in advance

    Import the swf file will destroy any actionscript that they have.  You will need to copy games in movieclips times in your other files.

    You may want to instead consider just dynamically loading the games, making the main file more of a platform for loading/summary that you use to communicate with the responsible games.  This approach would probably allows you to easily add games still more as long as you have a similar communication system established.

  • My new helmet from QY8 does not connect to my iPad. Help, please.

    MY new QY8 is not tapered to my iPad. Help, please.

    Note:

    1before using the headset, please use the USB charging cable to charge everything first.

    2.pairing, press the power button on the headphones, you will see the flashing light blue-red, it will automatically switch mode pairing.

    3. If still cannot contact, please pluging in the charger cable to the headset Bluetooth, then connect to the USB port on the computer. To the loaded state, press the power button on the headphones until the red and blue lights flashing, remove the name of Bluetooth pairing. Finally, please contact your headset with headphones.

    4. make sure you turned on the bluetooth on your phone, model of research on this helmet.

    5. Select the Bluetooth model and click on connect. Enter the password or code 0000 if necessary.

    http://www.coulax.com/product/COULAX_V4_1_Bluetooth_Headphone_E257-4.html

  • When I answer a mail, or want to send an e-mail, a new empty email opens. It started a few weeks ago. No idea how to stop what is happening. Help, please.

    I use an iMac with El Capitan 10.11.3 in my email software, a problem started a few weeks ago. When I answer a mail, or want to send an e-mail, a new empty email opens. No idea how to stop what is happening.

    E-mail programs must close and restart. Empty mails are stored under Concepts and should be deleted.

    Then a mail can be answered, but with the 2nd mail, the same thing happens again, and an empty mailpage appears again.

    Very annoying. Help, please.

    Please remove "Report", also known as the 'Trusteer Endpoint Protection', following the instructions on this page.

    Back up all data before making any changes.

  • New Win 7 computer cannot access the IP address of the network printer. Help, please.

    Greetings,

    -----------------------------------------------------------------------------------------------------------------------

    UPDATE: we have found the solution to this problem, we, and that I posted an explanation as well as two ways to solve the problem in my 2nd post on May 5, 2015. Scroll down to it for the solution. Unfortunately, Microsoft does not allow the OP to mark one of their own messages as 'the Answer' so this thread continues to be listed as "no answer" when he actually answered me.

    -----------------------------------------------------------------------------------------------------------------------

    The original message follows...

    We cannot sign a new Win 7 (64-bit) computer to a printer ethernet established in our local network of 'working '. We have reached the limit of our troubleshooting skills and expertise assistance.

    Our Local network
    ------------------------
    The printer is a Dell 5100cn workgroup laser that is connected via an ethernet cable to a 10/100 workgroup switch 5-port Cisco/Linksys. The switch is connected to the built-in cable Motorola modem / 4 port gigabit router / WiFi access point. There is no server between the printer and the network.

    Other computers on the network run also Win 7 and have no trouble seeing and using the printer. Some computers are connected via a gigabit ethernet cable to the router Motorola. Other computers connect wireless WiFi (once again, by the same Motorola device). All computers, including the new ones, are attributed to the same workgroup.

    The printer has a static IP address. It also has an integrated Web page accessible within the network via a browser to view the status of the printer. All previous computers can view the status of the printer Web page by entering its IP address in a browser.

    The new Win 7 computer
    --------------------------------
    At the Windows command prompt, we successfully ping the IP address of the printer and received a return signal. However, we are unable to connect to the IP address of the printer (and status Web page) with a browser. And we cannot find the printer when install us the printer driver. We have tried to turn off the Windows Firewall and it did not help.

    When we install the driver, move us as a 'local' printer and create a new "Standard TCP/IP Port" for her. We enter the static IP address of the printer and name the port. Define us the Protocol to "LPR", enter the name of the queue ("lp") and activate SNMP State with name of the 'public' community and the index "1". These settings have worked very well with our previous computers.

    When the time comes to 'choose printer', we select 'have disk... '. ' and use the Dell 64-bit for this printer driver. But it does not work and do not print a test page. We even tried to install the printer as a 'network' printer driver, but it does not, either. In addition, the 'local' method always seemed to work best in the past.

    The new computer has no harm to see other computers and devices on the network. For example, there is a NAS connected to the same switch Cisco/Linksys like the printer and the computer can access the NAS via its static IP address. The new computer can also access the internet. He can't use the IP address of the printer. We even tried to change the address IP of the printer, but that did not help either.

    Despite the fact that the work - the network troubleshooter Windows command prompt ping indicates that the printer is not responding. What do we lack? Help, please.

    Greetings,

    I hope that this will be our last post on this subject. We have discovered the source of the problem and can offer two 'fixed' in case someone else runs into the same situation.

    With the help of MSConfig and a process of elimination, we have disabled non-Microsoft services that were running on the computer until we discovered that "Qualcomm Atheros Killer Service V2" was the source of the problem.

    Explanation

    ----------------

    Our new Win 7 computer contains a communication module ethernet/WiFi/Bluetooth e2200 Qualcomm Atheros. The manufacturer provides a '' Killer Network Manager '' for this system. Its purpose is to monitor and control the flow of data over a network connection in order to optimize for. For example, the user can choose to give the program A high priority and program-B low priority. This ensures that the program-A is less lag in the network traffic.

    The primary market for this function, so far, has been the online game (where the name of 'Killer'). It allows players to channel the bulk of the bandwidth available to their game and away from other programs and services that are running at the same time. A response faster online gives the player the advantage it needs to get "kill him" before someone else.

    This system of control of bandwidth has interfered with data packets of return of our network, clearing communication between our computer and our printer printer.

    Difficulty 1

    --------------

    The simplest solution for us was to disable 'Qualcomm Atheros bandwidth control' for the ethernet NIC that has been accomplished by going to: Windows Control Panel > network and Internet > Network and Sharing Center > change the settings of the card (in the sidebar). Then we clicked on our connection to the LAN (our NETWORK ethernet card) and select the 'Properties' command Finally, on the Networking tab, we have disabled 'Qualcomm Atheros control bandwidth' and clicked 'OK' button to close.

    All that was needed after that was a quick restart and we were able to access our printer even with the killer Network Manager and functioning of Qualcomm Atheros Killer Service V2.

    Either way, we left the control function of bandwidth enabled for wireless (our) network connection because we do not plan on using this network printer when the computer is untethered to ethernet.

    Difficulty 2

    --------------

    If you don't want the killer running Network Manager on your computer, you may be tempted to uninstall. Do not! Uninstall will also uninstall the drivers needed for your ethernet, WiFi and possibly your Bluetooth as well. We heard that some users have communicated with Qualcomm and were able to coax, on their part, the necessary drivers comm without luggage "Killer". But you don't need to do it, either.

    All you need to do is: (1) remove the 'Killer Network Manager' of the '"start up" folder of the start menu of Windows (under "programs") and (2) using MSConfig, uncheck "Qualcomm Atheros Killer Service V2" under the ' Services ' section. Then reboot and you're good to go. The killer Network Manager and his service will not work.

    Moreover, the reason for which we did not chose this method, ourselves, is because we see one deserves that available Killer Network Manager so that we can block network traffic to select programs. Solution 1 converts this easy thing because the Ethernet bandwidth control can be quickly activated again if she is ever desired. And we're leaving it enabled for our WiFi.

    Best regards, David-EH

  • New computer with Win 7 and I'm drowned in ads, pop ups and constant redirects. Help, please!

    I just got a new computer with Windows 7, and I had nothing else that problems with redirections constants, pop up windows, ads pasted on top of advertising.  It's really driving me crazy.  Any time I click on what (in Facebook, or my website, or Twitter or whatever it is!) I am redirected to a new tab with an advertisement trying to make me spend it, or download that.

    When I'm on Facebook, I brilliantly flashing ads covering my groups and pages.  When I opened my site, I have flashing ads to the bottom of the left and the right of my blog and all my pages.

    I tried everything I know to stop this, and nothing works.  I ran Malwarebytes, and they found pieces of adware 2029!  I quarantined and deleted and ran two additional scans that came clean, but ads and redirects are always there, drive me to madness.

    Then someone please help me, I can't use this computer as it is, it takes twice as much time to my work, and that rebounds, flashing ads are too distracting for me to even write in my blog.

    Help, please

    Check out this free removal guide: http://malwaretips.com/blogs/remove-adware-popup-ads/

  • Help please Gamer with problem

    Hello my name is Karim

    I play League Of Legends, World Of Warcraft, Multi Theft Auto and use Skype to communicate.

    All these programs and much more may not work for some reason that I tried the firewall to fix and avg and mcafee that I found that it wasn't on avg, or mcafee

    but always on the firewall I allowed it is set by default and re has done and all games still won't work he was working in the morning, then when I restarded suddenly, he started first: some microsoft.net little box came with some stuff, and then, after that Skype was online but I was not, and everyone is offline now

    Secondly: All the games weren't all im firewall or internet using lan, and this is not of net and firewall is permitted and all but still

    help please ASAP

    Skype error:

    Unavailable Skype home

    Skype home is not available at this time. Check back later to see your news and alerts.

    It's easy to start a conversation on Skype:

    • Choose a contact and start talking
    • Call a phone or a mobile from the keypad, or send an SMS.

    League Of Legends error: ERROR of thrusters

    Could not connect to the HTTP server. Please check that your Internet connection is enabled and that your firewall is not blocking access.

    World Of Warcraft error:

    Battle.NET error #2: unable to connect. Please try again later. If the problem persists, please contact technical support.

    The computer could not connect to the login server because a security program blocking the connection or the connection is unstable.

    Sorry if I posted this topic in a neighborhood hurt my first post and I really need help please help me as soon as possible thank you.

    PS: im using Alienware m18xr2

    Cheers, legend #.

    Hello

    Please follow the methods.

    Method 1:

    Disable the anti-virus software and check if it works very well.

    See the link.

    Disable the anti-virus software

    http://Windows.Microsoft.com/is-is/Windows7/disable-antivirus-software

    Method 2:

    If you have changed the proxy settings in Internet Explorer, please disable proxy and check if it works very well.

    a. open Internet Explorer.

    b. click on tools.

    c. click on Internet Options.

    d. click on connections.

    e. click on LAN settings.

    f. remove the checkmark next to Proxy Server.

    g. click OK.

    h. restart the browser.

    Please check the event viewer for any error message related to the issue.

    See the link.

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-in/Windows7/what-information-appears-in-event-logs-Event-Viewer

  • Password is not impossible to download the new flash player, help?

    Hi there my it wont except my password even tho he allows me to connect with her when I go to download the new flash is just won't let me someone can help please?

    Yes I found out, it's the password of it administration, they don't need no password Adobe!

    Sent from my iPhone

Maybe you are looking for