Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COI see where you getting at. I should use that. But looking at my code, I surely didnt design it to be used that way. Im creating a game like BreakOut. Where you must hit the blocks with the ball. I gave the brick class the repsponsiblity of detecting the collision with the ball, removing itself when it is hit. putting points to the score board before doing so. all I have to do is call on it. But there will be other classes that inherit from it. stronger bricks that take more hits before it removes itself. Of course I will over ride those methods.But what about when it comes time to adding them
      singulars
    2. COIn order for me to add those new bricks, I could either create another method that generates those different types of bricks, plus the old ones. but that would be tedious. So I would use the same method to generate different types of bricks depending on the values given in my array. so say array number 4 is a new brick.How would I would I use interfaces to supply that different type of brick or any type of brick, given the value from the array ?
      singulars
    3. COWell, first, I typed in what you had above into Flex Builder and it compiled. So my guess is that it will work. So you can probably go with that. However, I would suggest taking a close look at your code to see if there's a clean way to redesign it so you don't have to instantiate objects based on the contents of an array. There are probably a couple fundamental, high-level design changes you could make to clean things up so it works without having to do that. Or not... only a deep understanding of what you're doing can answer that. If it turns out that you need the array then...
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload