Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8442151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:46:23+00:00 2026-06-10T08:46:23+00:00

I downloaded flixel and photonstorm in order to their perfect collision stuff (FlxCollision); in

  • 0

I downloaded flixel and photonstorm in order to their perfect collision stuff (FlxCollision);
in my root folder I have the flixel org folder and inside org/plugin I extracted photostorm as instructed at their site; I’m importing it here:

import org.flixel.*;
import org.flixel.plugin.photonstorm.*;

The problem is that when I call the function that will detect the collision (if statement to be precise) I get this error:

if (FlxCollision.pixelPerfectCheck (ball, goalkeeper)){
      ball.y=portero.x-ball.height- ball.width;
     trace ("Tomela");

}

Scene 1, Layer 'action', Frame 1, Line 72   1067: Implicit coercion of a value of type flash.display:MovieClip to an unrelated type org.flixel:FlxSprite.

I’ll really appreciate if you guide me a little bit, I’m using Flash Professional CS5.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:46:25+00:00Added an answer on June 10, 2026 at 8:46 am

    FlxCollision.pixelPerfectCheck takes FlxSprite objects as parameters. You are passing in MovieClips as your arguments (either one or both), hence the error.

    Either change your objects to be FlxSprites or use a pixel perfect collision library that works on MovieClips.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded the http://wiki.netbeans.org/Scala Scala IDE Netbeans Plugin, and it works great. I then
Just downloaded Quartz.Net, read the documentation which is out of date and have ended
I downloaded the Jquery Data Table and the Jquery DataTable.Filter Plugin. Here is the
I downloaded apache-tomcat-6.0.35 & put it in tomcat folder. I did accroding to to
I downloaded their emoticons and it is a silly question maybe but can I
I downloaded MobileTerminal sources from http://mobileterminal.googlecode.com/svn . I compiled it and it works perfect
Downloaded Qt 4.8 beta, unzipped, changed into the folder and clicked ./configure as required.
Downloaded: Java EE Eclipse Indigo EE mySQL 5.5 From this point I have no
I downloaded the yelp github for python and there's three files inside the python
Just downloaded highstock 1.1.6. The js directory includes a modules folder, which has a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.