ActionScript 2.0 :: Wiimote D-pad Works In Javascript Or Flash Games
Dec 27, 2006Here follows a key -> unicode table of the Wii Remotes keys. Have in mind that some of those keys are reserved though.
[Code]....
Here follows a key -> unicode table of the Wii Remotes keys. Have in mind that some of those keys are reserved though.
[Code]....
Most flash-based browser games don't seem to resize properly when the user resizes their browser window (i.e. ctrl+mousewheel). Example of bad resizing: Boxhead The Zombie Wars. Please refrain from playing for a moment, lest you forget about my question.
Some (surprisingly very few) actually do resize properly. Example (at least in Chrome): D.N.8
Is there a simple or standard technique to accomplish proper resizing? How do you do it?
I'm playing a flash game on facebook. I know I can decompile it to find out all the commands and would like to make scripts to automate the game by calling procedures in the actionscript of the game. So I guess I would like to make a plugin also that would insert this console into any flash app and this would be handy for a lot of things. Then if anyone wants to hack a new game, u just decompile it and make a handbook of methods for people to make scripts with. So how would I go about making this console? I don't know if I could make a swf interact with the game or if it has to be compiled into the game's swf. Or if it is easier with javascript, that is cool too. maybe we can make a javascript library just for this. anyone can tell me more?
View 2 RepliesI am setting up a Flash based MP3 player control (The standalone version of WordPress Standalone Player). I have a situation of multiple windows with players open. One window opens the other, so I have the window.opener property available. When the child window is opened, I want to programmatically mute the audio player in the parent window.
This works in Firefox, but not in IE 7 and 8. I know little about Flash/Javascript interaction and I'm stuck. I am not getting any error messages. To do this, the player SWF object has a setVolume() and close() function. These functions are not defined anywhere in Javascript so I guess that those are provided by the Flash object. This is supported by the following lines I found in the Flash source code of the player:
[Code]...
I want to check for a proper flash version installed, if the user does not has it, prompt him/her to do so. My code works fine in Windows platform, but not on mac. explain me what should I do to fix the issue. My code for html is given below:
[Code]...
The "modern" updated way to embed a flash object, according to Adobe:
[Code]...
Then it works on Firefox and Chrome (the AS function is called and works properly) - (it doesn't work in IE though). How come it doesn't work with an object tag? How "safe" it is to use the embed tag instead of the object tag? Is it not obsolete? Note, that it is definitely not a timing issue - If I call the AS function from JS from an onclick function - then the results are the same.
Can anyone give me a clue as to why this markup works fine in Safari, but not in Firefox?This should load an ugly blue placeholder (which I get in safari) but in Firefox, swfobject just gives me the alternative content.[code]
View 1 Repliesdiving into Wii + Flash and trying to get a movieclip to rotate with the Wiimote.It works, but the pitch is very fussy even when sitting on a flat surface. I found some code that uses a threshold, but it still is pretty jittery.[code]
View 2 RepliesI'm using the method described in the link to implement a crossbrowser tracking with flash.Everything is working fine when all pieces are together in the same server, but for deploy, i really need to add the swf from our central server, to another different one. Just to simplify this is my html in :
<html>
<head>
<script src="http://dom1/control_cookie.js" type="application/javascript"></script>
[code]......
I am using this script for a centered popup-window:
<SCRIPT LANGUAGE="JavaScript">
function Copyright()
{
� �var padding;
[Code].....
When I preview it out of Dreamweaver it works great in all browsers except IE; when I upload the .html file it is not working at all in no browsers.
Whenever I use ExternalInterface to call a Javascript function in Firefox, the Javascript successfully returns a value to Flash. However, in IE, I always get 'null' for the return.
I know Flash is successfully calling the JS because i have an alert in the JS function that is firing. It's just the return that is null.
My Flex application is successfully calling functions in a JavaScript file through the ExternalInterface class when these are in the bin-debug folder and the JS file is located in the same directory as the Flex app.But when I test the Flex app on the server, it is not interacting with the JavaScript. The only difference I can find is that on the remote server the JS file is being pulled in from a URL, instead of locally. The JS file URL is in the same domain as the Flex application, therefore I don't think this is a cross-domain issue. What am I missing?
View 2 RepliesMainly because I have it ALWAYS working locally, when I test in a browser, but the moment I deploy to a server it stops working.
I've added trace commands and confirmed that ExternalInterface is in fact available before adding the callback, and an alert command in the javascript method correctly identifies the flash object. I also checked and allowscriptaccess is set to 'always'.
Could it have something to do with the flash being served on a remote server?
I am building a video player web-app that uses flash for playback and jquery/javascript for UI. By design of the person who wrote the flash component I need to use setVariable to communicate between the javascript and the flash player. I've read all over the internet that a lot of people have had problems gettin setVariable to work in FireFox. I designed my app in firefox because i wanted to use firebug to help me in development. Now that the whole thing has been built, i find that setVariable is not working in IE. The error i get is:Object doesn't support property or method 'SetVariable';Here's a bit of the pertinent code:I construct my html through javascript, so this is how I construct the player:
var player =
'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16
[code].....
I know there have been other questions on getting JavaScript / Flex ExternalInterface to play nicely, but I've what I think is a weird one. It works perfectly in every browser except Safari (on a Mac). Chrome, IE, Firefox - all ok, but Safari, nope it just wont fire.I've copied my code below, can anyone see why it doesn't work in Safari pls ?(the 'are you sure' dialog window appears in Safari but the method in the Flex app just doesn't get called)
Flex code :
if(ExternalInterface.available){
ExternalInterface.addCallback("flexShutdownHandler",flexShutdownHandler);
[code].....
I have a flash-based ad that displays/hides based on some javascript. It works in Firefox, Safari, Chrome ... but not in Internet Explorer 8. This is for donations to a non-profit during the holiday season,
<div class="grid_12 alpha omega">
<script type="text/javascript">
GA_googleFillSlot("360_dropdown");
[code]......
I'm looking to create a new website with flash games, most of which need to be multiplayer.The games I had in mind are a battleship-type game, a pirate's dice game, and a texas holdem game.I'd also like to have a single player "wheel" that you can spin and win points off.I'd also like to have a points system where members wager their points over games.
View 6 RepliesI am have a web site in Flex. And i want to add a few flash games in it.
I know [url]... has its games on facebook. Can I also add there games on my website?
Background: I've been coding in VIM/C++/OpenGL for a long time.I've come to realize that this (VIM/C++/OpenGL) isn't the way to learn about programming fancy/cool-looking/futuristic UIs; and that the design of such UIs belongs more so in the artistic/designer world of Flash.
Anyway, I currently have a machine with MacOSX. What software should I install? What book should I read to learn about the artistic/design side of these futuristic UIs? [It's okay if the tools to design them are mouse clicking + graphical rather than coding based].
Question: what software packages + books to read to learn about creating fancy-looking / futuristic UIs in flash?
On my venture for quick rendering within Flash, I've worked out that the only solution is to create sprite sheets on the fly. Sprite sheets are created from a MovieClip using BitmapData.draw().
I have a graphics manager class which has a method that accepts a MovieClip and an int. The MovieClip is the target to capture graphics from, and the int represents how many different angles the image can be rendered at within 360 degrees.
[Code]...
Any advice around this would be extremely helpful. Note: I have made sure to utilize BitmapData.dispose() within my own dispose() method defined by SpriteSheet to clear up RAM, I am more concerned about how much RAM I can use at one given time (all game assets that will render ready to be used).
What is the best program to make flash games?
View 1 RepliesI am new to actionscript. I am following a tutorial on lynda. I am trying to learn how to create flash games. I am using flash cs4. The tutorial uses flash cs3 and and actionscript 3.0. I added a movie clip to my library and enabled export for actionscript. I got a dialog box that says "a definition for this class could not be found in the classpath, so one will automatically be generated in the swf file upon export." I click ok. Then when I try to test it, I get an error that says "call to possibly undefined method". What exactly am I doing wrong?
View 7 RepliesI'm developing a Risk like game in flash and I want to use an AI I developed using Prolog language.How can I use the Prolog code in actionscript? do I have to translate it to anther language? is there any automatic way of doing this?
View 1 RepliesI hope I am in the right forum with my question - I am playing at [URL}.. and there is a Flash Application for Live Games - Link "Live" at the website.
My problem is that I can't open the Flash games because I if I click at "Live" in the main navigation nothing happens!!!
Other flash applications at other websites I can't open or see without problems - I really don't know what the problem is.
What are the best (considered by professionals) approaches while creating a platformer based game for Creating game levels & background (static ones).Create a single background and scale it?or Display it on-the-fly by loading objects (probably repeating them often).
If the first one is the choice then it would become essential to create each level manually of the game & putting level editors difficult.
Also if the later is the choice I find it too processor intensive....my frame rate almost breaks into half, while trying to manage so many objects together on screen.
Is there any way to play flash games in a java application? I saw jflashplayer, but it is commercial.
View 1 RepliesI have an idea to create a multiplayer online card game and I prefer to use flash, like yahoo chess(it is not a card game), zynga poker etc.
View 2 RepliesI dont have any experiencie using this pattern when developing a game, except on a data driven website made mostly in Flex.The question is, are there any drawbacks of this pattern?, let say, performance for example?If anyone implemented a game using this framework.
View 1 RepliesI am planning to create a flash game on my own.Is there an opensource tool for making flash games?
View 5 RepliesI just wanted to know how people code buildings so that the character doesn't bump into them. I tried to do it, but somehow it didn't work. Attached is a sample FLA (Flash 8) explaining my problem. Just move the blue circle with the arrow keys and try to see what happens when you bump into the gray block.The code I have for the circle is:
Code:
onClipEvent (load) {
moveSpeed = 3;
[code].....