Flash game scrolling background
I am creating a flash game where the character stays in the
centre of the screen and the background image scrolls past as keys
are pressed. The scrolling works fine, and the background image
won't scroll of the screen to the left or the right. It is with the
up and down where I am having a problem. The image will scroll
upwards off the screen and won't scroll downwards as it should...
here's my code:
it would indirectly solve your problem because knowing that
is key to knowing the code required to prevent your background from
scrolling off-stage.
if you double click your background you should be taken that
the background's timeline. in the viewing area the stage center
(marked by a plus) is where? the upper left of your bg graphic? the
center of your bg graphic? elsewhere?
Similar Messages
-
Help with scrolling background
i am following a tutorial and in it, when the Hero hits a
wall he respawns somewhere on the screen. The problem with that
was, that i didnt know where he would respawn. And In order to make
the maze bigger i used a scrolling background and I couldnt figure
out how to change the respawn location either. Here is the site
that I am following the tutorial from
http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/
Below is the code that I'm using
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
wind = 0.00;
power = 0.65;
gravity = 0.1;
upconstant = 0.75;
friction = 0.99;
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
xspeed = xspeed-power;
if (Key.isDown(Key.RIGHT)) {
xspeed = xspeed+power;
if (Key.isDown(Key.UP)) {
yspeed = yspeed-power*upconstant;
if (Key.isDown(Key.DOWN)) {
yspeed = yspeed+power*upconstant;
xspeed = (xspeed+wind)*friction;
yspeed = yspeed+gravity;
_root.wall._y -=yspeed;
_root.wall._x -=xspeed;
_rotation = _rotation+xspeed;
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_root.wall._x = 2500;
_root.wall._y = 1681;
Can anyone help me?there's no width property in a2. use _width:
animator = createEmptyMovieClip('animator',1);
bg_1 = animator.attachMovie('bg_mc','bg_1',1);
bg_2 = animator.attachMovie('bg_mc','bg_2',2);
bg_1._x = -bg_1._width/2;
bg_2._x = bg_2._width/2;
speed = 1;
cloudWidth = 380;
animator.onEnterFrame = function () {
bg_1._x -= speed;
bg_2._x -= speed;
if (bg_1._x <= -bg_1._width) bg_1._x = cloudWidth;
if (bg_2._x <= -bg_2._width) bg_2._x = cloudWidth; -
Memory Leak with Flash Game - video of incident - Fix?
My hypothesis:
There is a memory leak in Flash Player that leads to Flash crashing, predictably and repeatedly, when used.
My question:
When will this problem be fixed?
Evidence:
Observe the progression in the following single-take video of me playing my favorite Flash game, posted to Youtube. Skip to the times indicated in the "About" description for the video to observe the increase in use of physical memory, as observed in Windows Task Manager, until there isn't anything left.
http://www.youtube.com/watch?v=gNIJvTuUitU
My computer gets bogged down, the game stalls out, and Flash needs to be closed to enable my computer to function once more. It makes it impossible to play this specific game for very long, and is an insidious problem lurking in the background every time I watch a video, play a game, or use Flash Player for any purpose. My computer always slows down, with the problem worsening as time passes until I need to close everything and start again.
Details:
Flash Player Version: 11.7.700.224
Operating System: Windows Vista (32-bit)
Browser: Mozilla Firefox
(Also happens when using Google Chrome)
Conclusion:
If you need further information about my specific computer, please feel free to ask.
If this problem is specific to my computer, I would appreciate knowing this and determining a way to solve the problem. My suspicion is that the problem originates in Flash Player itself and is experienced by many people in a variety of circumstances. It is my hope that an articulate response indicating how long it will take to correct this bug in Flash Player can be provided.
Thanks in advance for your help.My hypothesis:
There is a memory leak in Flash Player that leads to Flash crashing, predictably and repeatedly, when used.
My question:
When will this problem be fixed?
Evidence:
Observe the progression in the following single-take video of me playing my favorite Flash game, posted to Youtube. Skip to the times indicated in the "About" description for the video to observe the increase in use of physical memory, as observed in Windows Task Manager, until there isn't anything left.
http://www.youtube.com/watch?v=gNIJvTuUitU
My computer gets bogged down, the game stalls out, and Flash needs to be closed to enable my computer to function once more. It makes it impossible to play this specific game for very long, and is an insidious problem lurking in the background every time I watch a video, play a game, or use Flash Player for any purpose. My computer always slows down, with the problem worsening as time passes until I need to close everything and start again.
Details:
Flash Player Version: 11.7.700.224
Operating System: Windows Vista (32-bit)
Browser: Mozilla Firefox
(Also happens when using Google Chrome)
Conclusion:
If you need further information about my specific computer, please feel free to ask.
If this problem is specific to my computer, I would appreciate knowing this and determining a way to solve the problem. My suspicion is that the problem originates in Flash Player itself and is experienced by many people in a variety of circumstances. It is my hope that an articulate response indicating how long it will take to correct this bug in Flash Player can be provided.
Thanks in advance for your help. -
Best way to embed an Mov file into interactive flash game?
Hey,
just a quick query. I'm creating an interactive flash game for a university project. It's along the lines of Guitar Hero, Tap Tap Revolution, Boom Boom Rocket etc..
At the moment the game comprises of streaks of notes generated by Actionscript which the user much hit the corresponding key when notes are in the receptor. The background at the moment is an audio spectrum analyser created using AS based on the music playing.
I want to add loop movie file as the very background of the stage and was just wondering what was the best way to place it there with the least ammount of overheads. At the moment I have it in a child movie clip placed on the stage, in which I use File -> Import and embeded the FLV file into the time line. This works, however lags out quite badly.
Any help would be appriciated.
Thanks in advance,
John MinnsHave you tried this method?
1. Save as new file.
2. With your usual color management preferences selected, run Xtras>Color>'Name all colors'.
3. In color swatches list, select all colors. From swatches pop-up menu 'Make RGB'.
4. In Preferences>Color, set color management settings to 'None'. The RGB colors should look about the same as they did with color management on.
Now you should be able to export to Flash with RGB colors that look quite close to your CMYK version of the file.
This should work the same in FH9 or FHMX. I hope it does the trick for you. -
Scrolling background will not stop
I am trying to make a horzontial flash scrolling background and I cant seem to get it to stop at the last frame.
animator=createEmptyMovieClip('animator',1);
bg_1=animator.attachMovie('bg_mc','bg_1',1);
bg_2=animator.attachMovie('bg_mc','bg_2',1);
bg_1._x=-bg_1.width/2;
bg_1._x=-bg_2.width/2;
speed=1;
lockerWidth=550;
animator.onEnterFrame=function(){
bg_1._x-=speed;
bg_2._x-=speed;
if(bg_1._x<=-bg_1._width)bg_1._x=lockerWidth;
if(bg_2._x<=-bg_2._width)bg_2._x=lockerWidth;
I have a attached a ms doc showing how it looks in flashare you trying to stop if from looping (if so, attach a screen shot that shows its timeline and the actions panel with the stop() in frame 30) or are you trying to stop it from moving?
and, fix the code you showed:
animator=createEmptyMovieClip('animator',1);
bg_2=animator.attachMovie('bg_mc','bg_2',1);
speed=1;
lockerWidth=550;
animator.onEnterFrame=function(){
bg_2._x-=speed;
if(bg_2._x<=-bg_2._width){
bg_2._x=lockerWidth; -
My arrow keys are not working inside flash games
Hello,
Whenever I play any flash game, my arrow keys are not working. They work perfectly fine when I am scrolling the site with them, but not in flash games.
I am using Google Chrome, flash player version 10,3,181,36 and my operating system is Win7 64 bit.
Solutions I've already tried:
Use another webbrowser
Re-install Flash player
Restart PC
Try another keyboard
I have this problem ever since the last Flash Player update.Hey there Questionair1.
It sounds like your arrow keys are not working correctly. I would start with these steps from the following article named:
OS X Mavericks: If keys on your keyboard don’t work
http://support.apple.com/kb/PH13809
You may have accidentally set an option that changes how your keyboard operates.
Choose Apple menu > System Preferences, click Dictation & Speech, then click “Text to Speech.” If “Speak selected text when the key is pressed” is selected, deselect it or click Change Key to select another key.
Choose Apple menu > System Preferences, click Accessibility, then click Keyboard. Make sure Slow Keys is turned off. If Slow Keys is on, you must hold down a key longer than usual before it’s recognized.
Thank you for using Apple Support Communities.
All the best,
Sterling -
XNA - Scrolling background problem
Hi!
I'm making a C# XNA Game in Visual Studio 2010 and I've got a problem. My scrolling background does not appear all the time, only in the beginning. Here is my code in the background class:
class BackgroundGameScreen
public Texture2D texture;
public Rectangle rectangle;
public void Draw(SpriteBatch spriteBatch)
spriteBatch.Draw(texture, rectangle, Color.White);
class Scrolling : BackgroundGameScreen
public Scrolling(Texture2D newTexture, Rectangle newRectangle)
texture = newTexture;
rectangle = newRectangle;
public void Update()
rectangle.Y += 3;
Here is my code in the Game1 class:
class Game1 : Microsoft.Xna.Framework.Game
//Some other stuff
Scrolling scrolling1;
Scrolling scrolling2;
protected override void LoadContent()
//Some other stuff
scrolling1 = new Scrolling(Content.Load<Texture2D> ("AirplaneGameScreen"), new Rectangle(0, 0, 700, 630));
scrolling2 = new Scrolling(Content.Load<Texture2D>("AirplaneGameScreen1"), new Rectangle(0, -630, 700, 630));
protected override void Update(GameTime gameTime)
//Some other stuff
if (scrolling1.rectangle.Y + scrolling1.texture.Height <= 0)
scrolling1.rectangle.Y = scrolling2.rectangle.Y + scrolling2.texture.Height;
if (scrolling2.rectangle.Y + scrolling2.texture.Height <= 0)
scrolling2.rectangle.Y = scrolling1.rectangle.Y + scrolling1.texture.Height;
scrolling1.Update();
scrolling2.Update();
protected override void Draw(SpriteBatch spriteBatch)
//Some other stuff like spriteBatch.Draw(...)
scrolling1.Draw(spriteBatch);
scrolling2.Draw(spriteBatch);
I'm glad for all help I can get! :)
//BeginnerHi friend,
Like your title mentioned, your case related to XNA. I am afraid this is out of our support. You can consider posting it in XNA forum for more efficient responses. This is the link
http://xboxforums.create.msdn.com/forums/. Thanks for your understanding.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
MSI R9 270X GAMING OC crashing when leaved alone with 3D games in background
Hello,
Sometimes when leaved alone with 3D games in background the screen get lost with vertical and horizontal green lines that I think indicate hardware failure. The system become unrecoverable and need an hard reset. I haven't touched absolutely nothing since I'm not an overclocking guy having had bad experiences in the past.
Can a BIOS update help the situation? I found a BIOS over the net (from TechPowerUp):
Filename: MSI.R9270X.2048.131105.rom
Version: 015.041.000.000.002887
Build date: 2013-11-05 03:50:00
Date added: 2013-11-22 04:25
MD5 Hash: d8ff128cbaf4865d9efe299e0a9af0a0
Is it really compatible with mine card? Moreover the utility ATIWinflash indicates that the old BIOS image size is 0x10000 when the new one is 0x20000.
Other informations available on mine hardware:
DeviceID - 0x6810
Tipo di flash - W25X20
VBIOS corrente CRC - 0X5D00Quote from: Svet on 03-February-14, 23:12:59
tell S/N of the card [you can skip last 3 digits]
also save and upload your current vbios somewhere and give a link to it
and list full and detailed system specifications, read >>Posting Guide<<
Thanks, info below, I'm not allowed to post links:
S/N: 602-V303-03SB1310010353
1 / RAM DDR3 Corsair XMS3 CMX8GX3M2A1600C9 1600MHz 8GB (2X4GB) CL9
1 / Microsoft Windows 7 Home Premium 64bit Service Pack 1 IT OEM DVD
1 / Scheda Madre MSI B75MA-P45 Socket 1155 DDR3 SATA3 PCIe3 USB3 MicroATX
1 / CPU Intel Core i5-3470 3,2GHz Socket 1155 con GPU Ivy Bridge Boxed
1 / Hard Disk Interno 3.5" Western Digital Caviar Blu 1TB 7200RPM 64MB SATA3
1 / SSD Kingston V300 120GB Lettura 450MB/s Scrittura 450MB/s SATA3
1 / Alimentatore PC Modulare Corsair CX500M 500W 80+ Bronze ATX -
How to let the character in my flash game make a jump using AS3?
i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.Hope somebody will give me some advice, Thank you so much!!!
what's the problem?
-
== Issue
==
I have a problem with my bookmarks, cookies, history or settings
== Description
==
A flash game was accidentally blocked on the website http://www.oyunlar1.com Now I can't access any of the games there. Is there anyway to unblock the flash settings for that website?
== Troubleshooting information
==
Application Basics
Name Firefox
Version 3.6.7
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
1-ClickWeather 1.1.9.1 true
Adblock Plus 1.2.1 true
Adobe Contribute Toolbar 5.0 true {01A8CA0A-4C96-465b-A49B-65C46FAD54F9}
AIM Toolbar 5.96.5.1 true
Ask Toolbar for Firefox 2.1.0.5 true
BatchDownload 1.2.4 false [email protected]
Big Fish Games Toolbar 2.0.0 true {6847DFAE-037A-400c-A524-27F0A281B692}
CheckPlaces 2.2.2 false [email protected]
Cooliris 1.12.0.36949 true [email protected]
DownloadHelper 4.7.4 true
DownThemAll! 1.1.10 true
Fast Video Download (with SearchMenu) 3.1.1 true
Fast Youtube Downloader 1.2.2 true [email protected]
Firefox ImageGrabber 1.0.6 false {546d2a00-2bbf-11dc-8314-0800200c9a66}
Flashblock 1.5.13 false {3d7eb24f-2740-49df-8937-200b1cc08f8a}
FlashGot 1.2.1.27 true {19503e42-ca3c-4c27-b1e2-9cdb2170ee34}
FoxyProxy Standard 2.21.3 true [email protected]
Google Toolbar for Firefox 7.0.20100326W true {3112ca9c-de6d-4884-a869-9855de68056c}
Googlepedia 0.6.3 true {1ABADB6E-DC4B-11DA-9F70-791A9CD9513E}
HP Smart Web Printing 4.60 false [email protected]
ImageHost Grabber 1.6.4 true
InvisibleHand 2.4 true [email protected]
iWinGames Plugin 1.0 false {98e34367-8df7-42b4-837b-20b892ff0847}
Java Console 6.0.07 true
Java Console 6.0.04 true
Java Console 6.0.10 true
Java Console 6.0.12 true
Java Console 6.0.13 true
Java Console 6.0.14 true
Java Console 6.0.15 true
Java Console 6.0.17 true
Java Console 6.0.16 true
Java Console 6.0.19 true
Java Console 6.0.20 true
Java Quick Starter 1.0 true [email protected]
MegaUpload DownloadHelper 1.0.2 true [email protected]
Microsoft .NET Framework Assistant 1.2.1 true {20a82645-c095-46ed-80e3-08825760534b}
MSN Toolbar 4.0 false [email protected]
myBabylon English Toolbar 2.6.0.15 true
myibay Firefox extension 1.1.7 true [email protected]
NoScript 1.10 false {73a6fe31-595d-460b-a920-fcc0f8843232}
Ookong 1.5 true {95969329-aa35-473a-b537-3f6f62c0ba23}
Rapidlibrary Search ToolBar 1.0.0 true {2832ABCD-4444-1012-2D45-132D5447C445}
RapidShare DownloadHelper 1.0 false [email protected]
RDown - Rapidshare Downloader 0.6.0 true dave2x@download
Remove It Permanently 1.0.6.7 true {1dbc4a33-ea62-4330-966c-7bdad3455322}
RSFind! 1.1.2 false [email protected]
Search Helper Extension 1.0 true {27182e60-b5f3-411c-b545-b44205977502}
Shareaholic 1.9.9.5 true [email protected]
SkipScreen 0.4.12s false SkipScreen@SkipScreen
Skype extension for Firefox 2.2.0.102 false
Status-bar Scientific Calculator 4.9.2 true ststusscicalc@sunny
StumbleUpon 3.64 true
The Browser Highlighter 1.0.19126 false [email protected]
UnPlug 2.026 true unplug@compunach
Xmarks 3.7.9 true [email protected]
Yahoo! Toolbar 2.1.3.20100310105313 true {635abd67-4fe9-1b23-4f01-e679fa7484c1}
Adobe DLM (powered by getPlus(R)) 1.6.2.63 true
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar 0
browser.fixup.alternate.enabled false
browser.history_expire_days.mirror 180
browser.places.smartBookmarksVersion 2
browser.startup.homepage http://www.refdesk.com/
browser.startup.homepage_override.mstone rv:1.9.2.7
extensions.lastAppVersion 3.6.7
general.useragent.extra.microsoftdotnet ( .NET CLR 3.5.30729; .NET4.0E)
javascript.options.showInConsole true
keyword.URL http://slirsredirect.search.aol.com/slirs_http/sredir?sredir=2706&invocationType=tb50-ff-aim-ab-en-us&query=
network.protocol-handler.warn-external.aim false
network.protocol-handler.warn-external.dnupdate false
places.last_vacuum 1279652142
privacy.sanitize.migrateFx3Prefs true
security.warn_viewing_mixed false
== Firefox version
==
3.6.7
== Operating system
==
Windows XP
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Firefox/3.6.7 GTB7.0 ( .NET CLR 3.5.30729; .NET4.0E)
== Plugins installed
==
*-Cooliris embedded in a tab
*getplusplusadobe16263
*np-mswmp
*Contribute Firefox IBE Plugin DLL
*6.0.12.69
*RealPlayer(tm) LiveConnect-Enabled Plug-In
*1.9.0009.1
*npdnu
*npdnupdater2
*NPTURNMED
*The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
*NPRuntime Script Plug-in Library for Java(TM) Deploy
*Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
*Default Plug-in
*Shockwave Flash 10.1 r53
*BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
*Adobe Shockwave for Director Netscape plug-in, version 11.5
*Delivery Network Acceleration by BitTorrent™
*GEPlugin
*Picasa plugin
*4.0.50524.0
*MSN® Toolbar
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Google Updater pluginhttp://pack.google.com/
*Google Update
*Java(TM) Platform SE binary
*Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
*Npdsplay dll
*DRM Store Netscape Plugin
*DRM Netscape Network ObjectThanks, Eric. I'm not sure what I should be checking using your suggestion--as I said, I'm an utter novice with the iMac. However, I saw a reference to problems with the Library entries, so I checked mine and the iWork files were missing, something confirmed when I checked the crash log. In desperation, I did another software update, and that seems to have fixed the problem completely. Now wondering if I dare upgrade to Lion!
-
How Can I Learn To Develop Flash Games For Under $50.00 USD?
I am completely new to anything Flash. I have never written a
single line of Actionscript. I don't know the difference between
Flash and Flex. I don't know in what forums Flash developers hang
out. I don't even know what kind of coffee they drink, or if they
drink tea instead.
However, I have developed games and have been thinking about
developing some casual games and have heard rumors that Adobe is
"pushing" causal game development with Actionscript 3 and their
latest releases. So I went to adobe.com expecting to see a link for
something like "learn how to develop games in flash" or some such.
I poked around the developer related pages and didn't find anything
I thought useful.
What I did find were plenty of stuff for *existing* flash
developers. Links to articles and HowTos for specific topics and
information about products that cost a minimum of several hundred
dollars. I can't learn how to develop games and create a prototype
with a 30-day trial, and I am not going to buy a $1000 pro-grade
tool when I am an indie developer without a budget or a pre-funded
project that would justify such expenditures.
I have seen some open source stuff, but don't know if it can
do anything more than build some annoying shaking banner ads.
So let me introduce myself as a possible use-case for Adobe
Marketing and the Flash (Game) Developer community.
I am an educated experience software developer who has a day
job doing "enterprise" software stuff. I want to *play* in my free
time (evenings and weekends) with "Flash Stuff" and learn enough to
be able to build a simple game that I can put on my personal
website and have my friends download. I am not a student, so I
can't get student discounts. The money I have goes toward
toys^H^H^H^H tools for my other coding habits^H^H^H^H^H projects. I
am not interested in 30-day trials, as I may go 45-days or more
between the first and second weekends I get to play with this. I
know OOP so I want to start out learning how to do the "advanced"
stuff from day one and not have to start with dragging and dropping
PNGs w/o any coding and then "relearn" how to do it in code so I
can do anything beyond having the image appear and rotate.
I *am* willing to put time into this endeavor, but only after
I have a few things spoon-fed to me by "advocates" who's job is to
get me "hooked" and willing to invest my time to go beyond Hello
World. At the same time I am download and playing with GarageGames,
TGE/TGB, Game Maker, Dark Basic, Blitz Basic, etc. and many
complete development environments that are full-featured and
completely free if I limit myself to releasing only freeware games,
or cost me less than $50 for the "professional" version with all
the bells and whistles.
I have heard rumors and rumblings about some open source
tools being available and Adobe maybe open sourcing some of their
previously pay-to-play tools, but also understand that Adobe can
probably provide a better "comprehensive" package of tools,
documentation, tutorials, and support, *if I can find the right
place to ask/start.*
And, most of all, I don't know where to start my search as I
have no personal contacts to bug about stuff like this.
So, where can I find the big red button to push and get
everything I want handed to me on a silver-platter.
[please understand I have written this with some attempt at
self-mocking humor and am not some clueless n00b]
Thank you for taking the time to read my lengthy posting. I
hope to find some helpful replies and start down an interesting
learning path.
--ChaimJust saw your post. Better late than never. You may want to
consider GameBrix.com, where you can create Flash based, casual
games using your web browser. No downloads are required. You can
create a game from scratch using a library of images, sounds and
game mechanics. You can also upload your own. The online script
editor will allow you to view and edit the ActionScripts associated
with each game mechanic. In short, a great way to ramp up on game
design and build your own game without investing a lot of $
upfront.
BTW I am associated with GameBrix so any feedback is
appreciated. -
Flash games problem with Mozilla Firefox
Ok so, I'm trying to play one great flash game, I'm actually Texas hold'em addict :D so, as soon as I open it, firefox just crashes and that's it, nothing appears, no crash report or anything like that..
I'm trying to play this game: [http://www.4yahoo.com/board-card/play-governor-of-poker-2 Governor of Poker 2] and this one [http://www.4yahoo.com/puzzle/play-the-forest-temple The Forest Temple]
What to do? Should I reinstall it or it could be my windows problem?
I don't really want to re-install it, because I have tons of bookmars there and got no idea how to save them, also I'm afraid that it will be waste of time.
So I'm asking you guys, maybe someone faced this problem.
Thanks in advance.I mean, it's ok when I run other games, but those two are the problem :(
-
Mouse & trackpad is not working properly in flash games
I thought the problem was with my mouse. But even my trackpad behaves weird.
When I try to click this game (http://jayisgames.com/games/red-remover-player-pack-2/) or any other games before, single clicking any clickable spots in the flash game works. But in that game, I could single click on "Play Game," "Ok." "the red face," "Play" & box 1. But from that on, I must double click to make anything work. It's not that game that requires double clicks. I've been playing it for a long time, all only single clicks. From there on, I single click on a red box, nothing happens. Then I click on another spot, that previous click happens.
Not just on that flash game, I've tried many others ones, all gave me this click delaying problem.
When I try to click on spot A, nothing happen. Then I click on spot B, the click on spot A happens. So I must double click on everything to work.
I realize I couldn't single click on anything to work on any flash websites (sample:http://www.mono-1.com/monoface/main.html). Clicking once just highlights the link, must click again to make it work.
Please try out that game to see what I'm talking about. I'm not promoting anything here. I got a serious mouse problem.
Thanks.
macbook pro, Mac OS X (10.6.4)
Model Identifier:
MacBookPro7,1
Processor Name:
Intel Core 2 Duo
Processor Speed:
2.4 GHzSame problem on Windows 7 in Chrome browser...
My Windows 7 one at work works fine though..... -
Please help me with a simple flash game problem
I am trying to learn how to make flash games with Adobe flash 5.5. I am doing a tutorial from a book and am stuck.
The game is called concentration and you are suppose to match 2 tiles of the same shape. there are 10 shape tiles
and 1 question mark tile. These tiles are held in an array. 20 tiles are suppose to be displayed 5 to a row with 4 rows
and the question mark is suppose to be up on all 20. My problem is I get a blank screen when I test the movie. I
think the code is good but I beleive I have not uploaded the tiles right. I did upload the 11 tiles to the library and have
those 11 tiles and tile_movieclip in the library. Here is the code:
package {
// importing classes
import flash.display.Sprite;
// end of importing classes
public class Main extends Sprite {
public function Main() {
// variables and constants
const NUMBER_OF_TILES:uint=20;
const TILES_PER_ROW:uint=5;
var tiles:Array=new Array();
var tile:tile_movieclip;
// end of variables and constants
// tiles creation loop
for (var i:uint=0; i<NUMBER_OF_TILES; i++) {
tiles.push(Math.floor(i/2));
trace("My tiles: "+tiles);
// end of tiles creation loop
// shuffling loop
var swap,tmp:uint;
for (i=NUMBER_OF_TILES-1; i>0; i--) {
swap=Math.floor(Math.random()*i);
tmp=tiles[i];
tiles[i]=tiles[swap];
tiles[swap]=tmp;
trace("My shuffled tiles: "+tiles);
// end of shuffling loop
// tile placing loop
for (i=0; i<NUMBER_OF_TILES; i++) {
tile=new tile_movieclip();
addChild(tile);
tile.cardType=tiles[i];
tile.x=5+(tile.width+5)*(i%TILES_PER_ROW);
tile.y=5+(tile.height+5)*(Math.floor(i/TILES_PER_ROW));
tile.gotoAndStop(NUMBER_OF_TILES/2+1);
// end of tile placing loop
Can someone please explain to me what I am suppose to do to make the this work? I beleive the problem is it doesnt know where the tiles are.
Thanks.To create the tiles, draw 10 distinct shapes in the first 10 frames of your symbol, and
the back of the tile in the 11th frame. You are free to draw them as you want, but I suggest you make them as 90 pixels squares with registration point (starting x and y position) at 0, because these are the properties of the tiles used in this chapter's
examples. At least, they should all be the same size.
It didnt say put in a library. It is saying to draw them in frames of symbol but it didnt walk me through that. Can you guide me through this? I also was looking at how to add the link identifier but it said I need a popup window but I cant see one. I thought that was done
when I went to insert new symbol. It said something about actionscript linkage. I am familliar with perl, java and c++ so I can follow the code so far but I dont have much understanding of the flash interface. I made the 10 shape tiles and the 1 question mark tile
in paint. They are .jpeg images. -
Flash games, serious problem with windows 7 bootcamp
when you open a webpage that has a flash game, windows 7 bootcamp stucks from time to time, with no reason! why is this happening? using firefox. tried safari the same thing, and tried latest flash player on both. try facebook games or google random flash games most of them cause windows 7 to stuck or go slow! suggestions please, does anyone else have the same problem?
sorry the whole win 7 freezee on mbp 13", wait for apple update (i hope they notice)! now running XP SP3 and runs great!!! "laptop 2 go drivers" and runs games perfect!
Maybe you are looking for
-
10.2.1.1 crappy issues
if i try to close itunes, it keeps restarting. when i'm in the itunes store, if i type a character into the search field, i get an "accessing itunes store pop-up," after EVERY CHARACTER. anybody else with these issues or know of a fix? tia.
-
Process Scheduler start very slowly
Hi, Fscm90, tools 8.50 on Win 2003 DB Oracle 10 g PS takes about one hour to start : from Tuxedo log 113150.MYSERVER!BBL.5624.2452.0: 10-29-2010: Tuxedo Version 10.3.0.0 with VS2005, 32-bit, Patch Level (none) 113150.MYSERVER!BBL.5624.2452.0: LIBTUX_
-
I have just puchased the Nikon D7000 and Lightroom 2 does not seem to recognise it - I cannot import photos on my powerbook G4. Anyone have any ideas??
-
Multiple Exposure (LIve View overlay) on 5D MKIII
Not sure if someone can spread any light on this issue.....Trying to follow the video shown http://www.dylandsara.com/canon-5d-mark-iii-double-exposure-tutorial/ And when i switch to the Live View mode to see the overlay there is nothing there.....li
-
(Photoshop): Fondo transparente
Hola: Estaba armando im�genes con fondo transparente que guardaba en formato GIF (para web). Por razones que no interesan ahora, tengo que trabajar con el formato JPG y veo que en ese formato al guardar me pone un fondo blanco en vez de dejarme el fo