ActionScript 2.0 :: Key Combination Using Class From MichaelxxOA - ALT Key

Mar 22, 2007

I was using the class from Michael there nice class btw I was wondering is it possible to use the ALT key in flash for trigger events? I tried using the class from Michael but didnt work for me or maybe I was doing something wrong. When I tried when this class it open the menu on top of the flash player or html page.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: MichaelxxOA And Kirupa Content Scrollbar?

Aug 26, 2007

I have been reading through the Source/Experiments threads and trying to implement suggestions in the Content Scrollbar (Revised) [URL].. thread. I'm using Flash MX 2004, Actionscript 2.0 and throughout the course of this great thread the suggestions seem to shift and become geared for Flash 8. There are a few hints that MichaelxxOA kindly left for MX 2004 people loading content dynamically but I haven't been able to get to work. It's been a long work in progress but I feel like I am getting closer. At the moment I have been able to get the xml content to load into flash but I had to create a kind of dummy cell in the contentMain that is approximately the length of the combined images in the xml document. Is there a way to change the code so that it can read and load the content of the xml document so that when it varies flash loads into contentMain what ever combined height the xml includes? Here is the zip including .xml, .fla, .swf, .as and image with progress so far.

View 2 Replies

ActionScript 3.0 :: Use ALT Key Combination (ex: ALT + A ...) ?

Jul 24, 2009

I have used a trick which has worked fine so far in our company's project.here how it works:
 
NOTE:
 
If you want to use AS1, ignore my soloution and just use isDown("18") with combination of othjer keys.

if you want to use AS2, you can not use isDown("18") in AS2.

if you want to use AS3 read the following:
 
1) Trap Alt keys using .isDown("18") in a SWF published as ActionScript 1.0;

3) In a SWF (AS 1.0) defined your keys like (All the letters you need, ex: A,B,...) with combination with Alt

4) Create a SWF published as Action Script 3.0.

5) Create an instance of the  Local Connection Class available in SWF(AS 3.0)

6) Create an instance of the  Local Connection Class available in SWF (AS1.0)

7) Talk between AS1 and AS3 using the local connection 
 
 NOTE: In order for your key combination to happen only once but not continusly, you need to do a trick like the following: THIS IS Action Script 1.0 SWF

stop();
 
var lastKey            = 0; var keyListener      = new Object(); var sending_lc       = new LocalConnection(); var resetFromAS3  = new LocalConnection();[code].........

View 3 Replies

Video And Slideshow Combination?

Oct 5, 2009

I need to create a flash file with video but at specific frames/times in the video I need an image to appear next to the video. This is the result of a research conference where the speakers were filmed as they talked through their presentation. The flash file needs to show this video alongside the slides from the speakers powerpoint presentation.

I already have the video converted using the media encoder and the slides from powerpoint converted to jpegs.I just need to know how I select a time/frame in the video and presumable generate some actionscript code to load an image at that playback time in the flash file.
 
A rather clunky version of what I am trying to di can be found at: http:[url]....

View 2 Replies

ActionScript 2.0 :: Player XML Combination?

Dec 15, 2011

Attached is a fla and it requires one xml file to load but the same has been missing. The name o the xml is playlist.xml. how the xml file to be write so that the player easily load the data from xml and will display

View 5 Replies

Professional :: Random Name Combination Generator?

Feb 19, 2010

I am currently putting together a simple game where people have to pass my tests to join a club. At the end I would like them to be given a unique name. I imagine this could be done if I make 3 lists of 50 words, and right a piece of code that randomly selects one word from each list to create a unique combination almost every time. I am using actionscript 2 because I am fairly novice and this is about as complicated as my code is going to be, but is this to bigger job for action script 2?

View 4 Replies

Flash :: Professional - Rhinoceros 4.0 In Combination

Oct 18, 2011

I would like to build a website in flash and use 3D models that I have made in Rhinoceros 4.0. Is it possible somehow to import Rhino 3D models into flash?

View 2 Replies

ActionScript 3.0 :: Why Doesn't The Keyboard Combination Work

Feb 4, 2009

Im in the very start of trying to make a little game. he problem is when you hold down the up arrow(speed) + left arrow(left turn) + space bar(brake). But the same combination, just changing the left turn with a right turn(right arrow), that works. he code is boat badly written and partly in Norwegian, sorry, but here it is:

Code:
package {
import flash.display.*;

[code].....

View 5 Replies

ActionScript 3.0 :: Action Be Initiated Through Pressing A Key Combination?

Sep 11, 2008

Can an action be initiated through pressing a key combination? Here's a snippet instructing a MovieClip to move right when SHIFT+Z are pressed...

Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, testFn);
function testFn(event:KeyboardEvent){
if(event.keyCode == 16 && 90){
dot.x += 5;
}
}

Only the first key is recognized, i.e. the dot moves when SHIFT only or SHIFT+Z together are pressed; the swf's ignoring the second key.

View 4 Replies

ActionScript 3.0 :: Boolean Tests Combination Of Values

Nov 12, 2011

The objective is when user clicks on any combination of 2 buttons you would then gotoAndPlay a new page based onthe two specific buttons you have selected? Ideally user would be able to intermix the button combinations. Code below only works for two specific buttons, but doesn't allow to intermix button clicks.

[Code]...

View 5 Replies

ActionScript 2.0 :: Detect When Keys Are Pressed In Combination?

Aug 15, 2006

I've followed the thread there: [URL]

I understand that this class allow the script to detect when keys are pressed in combination.

But what is exactly the implementation when a key is used both in single and combination states. Let's say that you've the "q" key used alone and "shift-q"...how would one proceed to achieve this detection?

View 2 Replies

ActionScript 3.0 :: Boolean That Tests Combination Of Values?

Nov 11, 2011

The objective is when user clicks on any combination of 2 buttons you would then gotoAndPlay a new page based onthe two specific buttons you have selected? Ideally user would be able to intermix the button combinations.

I've attached a simple diagram that visually explains objective of actionscript.

Code below only works for two specific buttons, but doesn't allow to intermix button clicks.

[Code]...

View 4 Replies

Flex 3 - Key Press Combination To Trigger An Event/function?

Jun 1, 2011

Within a specific canvas, I would like a user to be able to press a combination of keys which will trigger an event.(a bit like a cheat in an old megadrive game). Not sure where to start though. Anyone know if it is possible and if so could you give me a clue with how to start?

View 2 Replies

ActionScript 3.0 :: Capturing Keyboard Input For Specific Key Combination's?

Jun 15, 2010

capturing any of the keyboard combinations below in the Flash Player. I am building this as a stand alone .swf file, so there won't be any conflicts with a internet browser, though my concern is reserved operating system shortcut keys.

F3
Press
Alt + X
Alt + X + .

[code]....

View 1 Replies

ActionScript 2.0 :: Determining If Data Is A Number Or Word Combination?

Aug 4, 2002

I am running an if statement to determing whether the data entered by a user is a number or a combination of letters and/or numbers. How could I determine whether the data is just numbers? Like:

PHP Code:

if (textbox == notanumber) {
do something


I have tried using NaN and "undefined" without much success.

View 7 Replies

ActionScript 2.0 :: Call A Functionname That Is A Combination Of A Variable And Set Text?

Aug 13, 2007

I have a variable in the _root called section.Now I want to call hemmaAnimation(); within a the global function (see below).So I set the section variable to hemma & tried these:

_global.sectionAnimation = function(){
this[section+"Animation"]();
};

[code]...

but no luck.

View 1 Replies

ActionScript 3.0 :: Flash BitmapData In Combination With AddChild Animation

Mar 29, 2011

I've created a fly in of 40 boxes which will form a block of 800x500 with a picture in it. On my site [URL] I've actually done the background image with 40 actual 100x100 pictures cut out of the original image. Then (on these forums) I learned how to cut up an image using bitmapData. To have dynamic backgrounds I would like to figure out how to combine these two.

Code:
//Import of greensock TweenLite
import com.greensock.*;
import com.greensock.easing.*;

[Code]....

View 7 Replies

ActionScript 2.0 :: Combination - Copy/Drag&Drop/Delete And MC Count?

Jun 21, 2003

I have a movie clip = circle

When the user clicks the circle I want the user to be able to drag and drop a new instance ie circle1.This whole process needs to be repeatable.......ie next time user clicks the original circle ie circle the code must know the last instance number ie circle1 exists and when the user clicks circle that circle2 is created dragged and dropped.....so on and so on.

This is easy you may say - duplicatemovie and startdrag etc........the problem is that when the user clicks on the original circle the mouse focus is on the original circle and not the new instance just created ie circle1 which then needs to be dragged and dropped.Just to complicate things the user needs to be able to delete a circle at any time by using the keyboard 'del' key.

View 14 Replies

Flex :: Fill A List With A Combination Of Database Entries And Meta-values?

Aug 31, 2009

I am acquiring the contents of a table to fill a dropdown box in a Flex 3 application:

<mx:ComboBox dataSource="{myList}" />

The list is populated by the contents of a database table of persons:

Public, John Q
Doe, Jane
...

The combo box, however, also needs to have some other meta-entries in it that do not come from the database:

ALL
ALL MEN
ALL WOMEN
Public, John Q
Doe, Jane
...

View 1 Replies

Javascript :: Protecting Websites From Outdated Browsers / Plugins Via Whitelist / Blacklist Combination?

Feb 6, 2011

Aside from using browser headers, I want to blacklist/whitelist browser and plugins from my site so that I can prevent these older unpatched systems from (1) being a general user of my site (2) removing those 'targets' from would-be-attackers reach.Is there a standard way to use Whitelisting or Blacklisting to control browser access to my site? For example, I want to prevent any browser that has outdated Flash, but I want to permit them if they have no Flash at all.

View 1 Replies

ActionScript 2.0 :: CS3 : Make A Combination Of Keys Make A Movie Clip Visible?

Aug 11, 2009

How can i make a combination of keys make a movie clip visible? Basically i want something like this to work:

if(Key.isDown(Key.Alt && Key.A)){
reminder._visible = true;
}

So when someone presses the Alt and A keys down at the same time the 'reminder' mc becomes visible?

View 2 Replies

Flex :: Make Chart Which Is Combination Of Bar And Line Chart Using Charting API

Jan 10, 2011

I'm trying to make chart which is combination of bar and line chart using Flex Charting API . Here x axis would be common and y axis would be different. note that y axis got different range of value one is % and other is amount. Any one got idea how to make this chart. Here line chart would be staked on top of bar chart . The line chart and never over laid or drawn on top of bar chart.

View 1 Replies

Service - Flash Builder: 4.5-1 : Combination "Localazation Compiler Optons" + "Generated PHP Webservice"?

Aug 18, 2011

I've created a GUI in Flash Builder 4.5-1 with localization (copylocal as admin, created the files, implemented in he GUI...) and all works fluid and very well.I now want to generate a PHP service from my DB and that also works ok.When I try to run the application I get the error he doesn't find: Unable to open 'c:Program Files(x86)AdobeAdobe Flash Builder

4.5eclipsepluginscom.adboe.flexbuilder.project.nl1_4.5.1.313231
len_US nl_BE fr_BE de_DEdcradSwcs4.5locale'

When I retrieve the compiler options (additional languages) it works without errors.Do I need additional steps to be able to use "Locale" and "Services" combined?I used to work with Flex Builder 3 and didn't have the issues....

update, still having the issue, isn't there nobody out there? This is the error i get...unable to open 'C:Program Files (x86)AdobeAdobe Flash Builder 4.5eclipsepluginscom.adobe.flexbuilder.project.nl1_4.5.1.313231

len_US de_DE nl_NL
fr_FRdcradSwcs4.5locale' XofferSales Unknown Flex Problem

it happens from the moment I want to use localization + php services....

View 1 Replies

ActionScript 2.0 :: Importing Class - The Class Being Compiled - 'ImageLoader' Does Not Match The Class

Jun 25, 2007

I'm having some problems importing a class, the message that Flash gives me is this; The class being compiled, 'ImageLoader', does not match the class that was imported, '[URL]'. The only line of code in my flash movie is this: import com.martijndevisser.*; And yes, the class is in that folder The class is from here: [URL] I've used the class before and it works fine, I just dont know what to do?

View 4 Replies

Flash :: Create A Separate Class Then Create An Object Of That Class Within The Main Class?

May 17, 2011

I'm new to Flash AS3. I started making a game and I am a bit confused. Let's assume that I want to create a game that has multiple levels/modes, how can I do this in an object orientated way?

When i create games in other languages e.g. XNA C#, i create a separate class then create an object of that class within the main class and run the game based on a simple statement.

[Code]...

View 2 Replies

ActionScript :: Python - Using Dynamic Python Class Definition And Amfast Dynamic Class Mapping And Code Generation To Generate Class

Dec 19, 2011

I have an xml snippet that contains an object hierarchy:

doc = """
<RootObj val1="ValueOne" stat1="Stat1" stat2="Stat2">
<internalarray type="array">
<InternalObject val1="12" val2="12" />
<InternalObject val1="13" val2="13" />

[Code]...

View 1 Replies

Actionscript 3 :: Calling A Method, Which Is Defined In Another Class, From Main Class Gives Error 1120?

Aug 16, 2010

I have two classes. The Main class calls a function, which is defined in a Second class.I'm getting the following error:Error 1120: Access of undefined property myFunctionBasically, I am creating buttons in the Main class that will add a corresponding Child to an Object in the Second class (if you click one button, child x1 will be added, if you click another button, child x2 will be added, and so forth).Here's the relevant code for the Main.as file:

package
{
import flash.display.MovieClip;

[code].....

View 3 Replies

Flash :: Access Object Property Or Function On Extended Class That Isn't In The Super Class?

Jan 29, 2012

If I have three classes:

public class Example {
public function Example () {
}[code]............

You can see that the two last classes extend the first one, and both have the 'variable' property. In case that I have an instance of Example and I am sure it is also an ExtendedExample OR AnotherExtendedExample instance, is there some way to access the 'variable' property? Something like

function functionThatReceivesAnExtendedExample (ex:Example):void {
if(some condition that I may need) {
ex.func()

View 3 Replies

ActionScript 3.0 :: Calling A Function From An Extended Class Inside A Top Level Class

Sep 23, 2009

package{
public class Character{
protected var _hp:uint = 50; //Character Health Points
protected var _power:uint = 5; //Damage dealt

[Code].....

I`m instancing a Character and a Player in the Main Timeline, all in frame 1.
When I use: ""player.attack(character)"" it works fine by itself.

So I added the if (defender._hp <= 0) this.win() which gives me the following error:

1061: Call to a possibly undefined method win through a reference with static type Character.

"defender" is a Character instance, "this" is a Player instance and "win()" is a Player method. I try to call the Player method inside a Character method using the Player instance adding the "." and his method name

Do I really need to define the win() function in the Character class? Is there a bypass to use a subclass method in a parent class method if it`s called from an instance of the subclass?

View 6 Replies

ActionScript 3.0 :: Removing Instantiated Objects - VideoPlayer Class From Main Class

Nov 8, 2009

I have question regarding removing instantiated objects. Let's say i have a main class in which i instantiate a custom video player (or whatever) class:

Code:
...
var videoPlayer = new VideoPlayer(...);
addChild(videoPlayer);
...

And inside VideoPlayer class i have of course dozens of objects (movie clips, sprites representing different parts of VideoPlayer) and dozens of event listeners attached to them. My question is, if i want to remove this VideoPlayer class from my main class is it enough to just do:

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved