Multi Pop Up Window?
hey guys,i have one stubborn problem that i can't fix. i want to have a diffenrent pop up window to every buttons. i have 3 buttons that that shared the same pop window and another button to have its own pop up window. however, for some reason the button that i want to have its own button still shared with the other three buttons.i tried giving the pop up window a different name but it's not doing anything.here is the code for the three buttonsCode: on (release) {getURL ("javascript:Window2=window.open('futura continue.html',' newWin','width=624,height=441,left=325,top=180,too lbar=No,location=No,scrollbars=No,status=No,resiza ble=No,fullscreen=No'); NewWindow.focus();void(0);");}here is the code i want to have a diffrent pop up windowCode: on (release) {getURL ("javascript:Window=window.open('sane.html',' newWin','width=1134,height=401,left=70,top=190,too lbar=No,location=No,scrollbars=No,status=No,resiza ble=No,fullscreen=No'); NewWindow.focus();void(0);");}as you can see the last code for the size of the window is much largercheers,redrooster
General Flash
Posted on: Fri Jun 02, 2006 10:23 am
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Multi Menu Flash Window Opener
I'm a noob when it comes to flash design, but here's my thing:
http://fppl.dyndns.org/fppl_header.swf
Ive got this header that I'm trying to setup where the windows open and close on click. I cant figure out an easy way to code this without having 25*5 scenes. If you can help or you can think of an easy way to do this, please let me know.
Multi Loaded Vars To Multi MC's...Banging My Head Against The Wall
OK I'm banging my head against the wall because this is probably too simple, and I've been working on too many things lately *L*
OK so I've loaded a bunch of vars... let's say var1, var2, var3...var6 from a txt file.
Now I want to send each var to a MC whit similar names - but1, but2, but3...but6
code:
varsFile.onLoad = function(success:Boolean) {
trace("loaded");
for (i=0;i<=6; i++) {
buttonClip.but[i].htmlText = varsFile.var[i];
}
};
I've tried a bunch of different syntaxes, but can't seem to get it to work... HELP!!!!!! LOL
Thanks!!!!
Creating Multi-buttons To Open Multi-jpegs
I am a newbie to action-script and flash. I have Flash 6.
I am using a template built in flash and there is a sub page that has numerous
buttons with roll-over effects that were pre-built. BUT they don't point to anything yet.
I want the viewer to be able to click on a button and have each one open a different Jpg in a window next to the rows of labeled buttons.
I imagine this is pretty simple...Perhaps you know of a specific tutorial within this flash help site that addresses this?
Or if there are a few things that you can communicate to help me...that would be awesome!
Thank you!
Specifying The FLV In A Multi-channel Multi-title Player
Hello,
I have Flash 8 Pro that I use to publish an Earth Sciences Agency version 5.1 multi-channel multi-title FLV player on my website. The FLV player is populated using an XML playlist. I'm going through the account setup process at Truveo, which is a search engine dedicated to video, that uses an RSS feed to enter your videos into their search engine. I've set up the RSS feed and it validates.
However, a listing of one of my videos in the search results only points to my site as a whole, rather than to the specific FLV file on a specific channel in the FLV player. I suspect that there is some need in the RSS file to specify the FLV video and also fire an event, plus some type of event listener in my SWF to respond with the correct FLV.
In other words, when the search engine(s) return one of my videos in a search list, and provides a hyperlink to my site, how do I make it open the FLV player at that specific video, rather than just open my site as a whole?
Can anyone point me to a tutorial for how to set that up? Is it even possible?
Thanks,
Tom Wood
Edited: 07/13/2008 at 09:35:46 AM by tomwood2
Multi-multi-dimensional Array?
Can you have an array structured like this?
The idea being that'd we'd have a whole bunch of stores with the same data
School[0] = Store's full name
School[1] = Number of store employees
School[1][0] = Employee 1
School[1][0][0] = Janitor (Title)
School[1][0][1] = Employee 1's hire date
School[1][1] = Employee 2
School[1][1][0] = Sales person (Title)
School[1][1][1] = Employee 2's hire date
And on and on and on
[CS3] Multi Level Drop-down Menu. Trouble With The Multi Level Bit
Hi,
I'm creating a multi-level drop down menu for a college project. So far I have 2 main menu items, one of which (products) contains 3 sub menus (line 1, 2 and 3). Line 1 should also have 3 sub menu items (product 1, 2 and 3).
I'm putting the actions for the line1_mc roll over and roll out on the main timeline but it doesn't seem to be working because it is trying to call a movie clip from within another movie clip!
Any ideas would be greatly appreciated!
HELP Multi SWF?
I want to create a main swf that will load several different swf files, for example my main window which will load is blank it will then load say a menu swf file and then another swf file in the same window. How can I do this?
If anyone can post a example file or possible know of a tutorial or post a detailed description of how to do this, I would very much appreciate it.
Thanks in advance for your help, just one last thing I will need the swf to be displayed in a certain area of the main blank swf and other swf files will also be placed in certain places.
Thanks
0rlando
Multi Mc At Once
Hey,
Is it possible to creat a invisible mc with in 2 other invisible mc's and if so would there be any complications. Im trying to do something similar and it gets to the second layer but then doesnt want to load the third inv-mc. Like loading an external swf to a container mc then in that same mc have another external load and then another.
What do ya think.
Cloak
Multi Mc At Once
Hey,
Is it possible to creat a invisible mc with in 2 other invisible mc's and if so would there be any complications. Im trying to do something similar and it gets to the second layer but then doesnt want to load the third inv-mc. Like loading an external swf to a container mc then in that same mc have another external load and then another.
What do ya think.
Cloak
Multi User ?
Hello,
http://www.*****hotel.com
I have lookied into creating something similar with Flash, but little time to mess with it at the moment. I haven't got too far. I started out just learning to create a chat.....
http://caveart.tv/fc/Chatcave.swf
Kind of amateurish, but a working PHP chat with animations and sound.
Then I looked into creating an interactive character chat. The way I have this test set up is the character is controlled by mouse movement and zooms in on mouseover. There is a chat textfield and an auto resizing textfield (based on the amount of text entered by the user(Thx ericlin)).The textfields are not scripted to anything, but could easily be scripted with PHP for a fuctional chat. The problem I am facing is making it all global. How to "add" a character when another person enters the room. I am assuming it is with a system of arrays and something along the lines of the localtoGlobal command. Any ideas on how best to approach this would be appreciated. Would a log in be helpful or necessary to accomplish seperate characters? I have also looked into Flashnexus a bit with little success. I know this will need an xmlSocket connection to achieve multi user functionality. Any suggestions for that? I use windows mellinium OS. I have the "Virtual Cave" incorporated into another movie right now, but I also have a stand alone version. Any thoughts or ideas as to what approach to take to get this further along would be appreciated.
"Virtual Cave" (On the left side of this room, bottom buttons control scroll, mouseover will show the entrance)
http://caveart.tv/kingdom/Flashcave.swf
Regards
~GD~
Multi MC Control...
Hey all,
I am trying to make a preloader for the backgrounds of my content areas on my site. All i want to do is make a bunch of circles(Actually just one MC duplicated) and have them move in patterns around the screen. One of the FK01 banners has this effect and i have seen others. It shouldn'r be too hard but i'm not sure where to start with the math.
Any help is appreciated,
Thanks,
James
Adding Multi Swf's
hi friends,
i'm trying to use 3 stand alone swf's in one flash movie. i
also need to display them on different places. i would be
greatful if someone help.
thanks.
Multi Swf Comms W/ Js Or Other
issue: i am trying to load movies in other swf's on the HTML page. I tried a few thisgs; GetUrl.javascript:
command works on PC but not on mac.
Is there a simpler way to do this? a tut would be helpful.
K!
Multi Animation
I am working on a site on FMX and I was wondering how you can make two animations animate independently. One that loops constantly and the other that just animates for the first couple of frames.
For example I would like to make a fade in and fade out text loop for the whole scene, as well as a circle that passes through the movie. The fade in - fadout text would loop forever while the circle would pass through once. I would like those two animate independently. The problems I have are that those two animations would do their animation then stop. Or it will just repeat it’s self. It would be appreciated if someone would help me on this.
Thanks
Multi Arrays
how yould you initialise a multidimensional array , cos i cant seem to get it to work:-
i have tried myArray=[[],[]];
and myArray=(100,100);
but the arrays need to be global.
Multi Masks
I am trying to duplicate this effect:
http://www.deepblue.com/augustus_smiles/
I want to fade in bits of the picture as in the above movie. What is the best way to achieve this method? Do I make a mask layer for each square and fade it in or?.... What is the best way to mock this effect? I am a noob so details are appreciated! Thanks in advance
Multi Player
Does anyone have or know of a place where I can get a online multi player game like coke music or rune scape for flash wher like you can choose a little character or somthing like that, that I can mod to put on my site www.xtreme-flash.com ?
Multi-part Help Please
Ok, I'm experimenting with making a menu like what is in the attached file (azienda.fla).
Where, when you click on the image, it enlarges,as well as clears the other images off the screen, then when you click again, it goes back to the small version. I guess this was created in an older version of flash, and partly in another language (Italian?). First off, when making my own version on a new .fla, I've been copying and pasting from (azienda) to my new file. Then replacing the picture. I was hoping I could get some help as to how to do this myself, rather than snaking it off of someone else's file.
The other thing is, in (azienda.fla), the movie clip that has the tween in it that makes the picture enlarge, on the last frame, I want to add a scrollbar, like the one I attached-(scrollbar.fla). But when I do this, it disables the function to close movie (make it small again and go back to the main scene). How can I add this scrollbar to the enlarged picture in the last frame of that movie, still use the close button, then dissapear when I click on the picture again?
Lots of questions, I know.
Multi Keypress' ?
I am trying to make a file that the user can press different keys and get different colour background.
So far i have managed to do single letter keypress' i.e. press n to get a light blue background and b for a black background.
But i would like to change the n to the letter bl for (blue) so when the user holds down keys b+l they would get that color.
Is it possible to have two keys to press in a keypress?
This is what i have entered into my movie clip so far.
on (keyPress "n") {
changeColor = new Color("change");
changeColor.setRGB( 0x0066FF);
}
on (keyPress "b") {
changeColor = new Color("change");
changeColor.setRGB( 0x000000);
}
thanks for any help
dan r
Multi-Media CDs
OK, my band (www.mylifesworth.com)just finished its demo and I want to make a Flash movie that runs when you insert the demo CD into the computer drive. I can make multi-media CDs and I've already scripted the autorun. Are there any Flash templates on this site or anywhere else that can help me out?
The Flash movie will just have our pic, stream in one song and links to our website and booking email. Nothing fancy. But a nice template that I can configure for our uses would make life much easier for this Flash noob.
Thanks, y'all.
Multi Timer Help
Can anyone offer any help with the attached timer application. The application has 4 timers which can be paused etc. Each timer will automatically pause when another is started. I hope to use it to time different tasks during the day.
I can't get the timers to interact which each correctly.
Any ideas how this could be achieved would be much appreciated.
Multi Scroller
I am very new to actionscripting so please bear with me, as I hope this is a fairly easy task.
I need a scrollbar that controls three layers in different directions. that is, one scrollbar that controls a layer that moves vertically and 2 layers that move in opposite horizontal directions... simultaneously....
does that make any sense? I hope it does. does anyone have some pointers of what to do, sample codes I can play around with. anything would be great!
Multi Hittests
there is probaly a realy simple answer to these questions but here goes. by the way these hittests are all about making the background stop moving when the charecter hits my hittests objects.
1.) when you make a movie clip a blue rectangle apears around it and that counts as the hittest right. Anyway is there a way to make the hittest work when it hits the actual drawing and not the blue rectangle?
2.) i have checked the hittest tutorials in the games section and so on and all the hittest tutorials have just one hittest movieclip for each direction. I tried to make more than one of the hittest movieclip for a direction and i put the same instance in and it didnt work so i tried putting in a different instance and putting that in the actions aswell and that didnt work then finaly i tried making the actions inside the hittest object so if it hit the character the background would stop moving but that didnt work. so does anyone have any idea of what im doing wrong here?
Multi Preloader
Hi!!
I have the main file named "default" in which are loaded
three .swf in three different clips on the main file.
First I load clip1 and when it's loadeded i stop it ang go to the next frame on main file's _root and load clip2 and then stop it; then go to frame 3 and load clip 3 and stop it.
Every time a load a clip I see its own preloader..
So now the 3 clips are loaded and I play them as I want..
Wow!! Never been I a situation like this!!
Please look at the attachment if omething is wrong!!
Thxs a lot!!
Multi User
Hellow,
I want to make a site where you can see another user, if there is one at the same time off course. Once there was a site calles jump-tomorrow and they did that kind of stuff, but now I want to make it myself, but I'll need some help.
Can someone give me a little help
thx
kilikMC
Multi Arrays
I am trying to make an array that has more than one paramater.
Code:
var testA:Array = new Array();
testA[1, 1, 1] = "Blah blah blah";
testA[1, 2, 2] = "Blah again..."
(I tried it w/o the spaces). The problem is when I try to use it it will use the bottom one instead of the top one. Here is my call script:
Code:
text_txt.text = testA[1, 1, 1];
//Or
text_txt.text = testA[radioGroup1.selectedData, radioGroup2.selectedData, radioGroup3.selectedData];
It just wont work. Am I doing something wrong?
Multi Buttons?
k i know that you can tell flash to do something holding down whatever buttons you program but can you make so that if you press 1 button you can let go of it and press another and then flash well do something?? otherwise i'll just make it one button but i would like to do that to make it harder thanks in advance
how do you put if key.isdown(key.1)
when i put that it shows red and tells me to put a ) but i did do i type it out or ...
thanks in advance
Multi User App
hey ive created a small app that plays soudns on keyprress but want it to be live in the way that if i put it online users can interact in realtime and see and hear each others actions
any ideas?
cheers
Multi-play
I am willing to create a Flash game where you can talk with other players using the client. How would I do so? Thanks so much,
-dtfnet
Multi Preloader
Hello, I am a bit mad about this problem, because I finished my website 14 days ago and I am not able to make right preloader for it.
During whole website I am loading a lot of (about 35) .swfs into levels. I dont want to preload each .swf when it has to start - I want to preload for example 10 .swfs in the beginning, but run it in the right time .... For example, I have page "materials" and when I will show on wood - wood.swf will start. When I will show on iron - iron.swf will start. I want to preload these wood.swf and iron.swf in the beginning but I dont know how.
Please help me....
One more think, it is neccesary to put wood.swf and iron.swf into different level or not (they will never be visible together)...
I know that if client will not go on material called water.swf - preloading will be wasting of time, but I want to do this way.
Thank you very much.
Kanister
Multi Log In System
Hi guys,
Just need a little help with MySql in Flash,
Would someone be able to help me getting a register and log in system happening in flash connecting to a mysql databse?
Would someone be kind enough to past me a link to a website that will teach me as i cant find one.
Or if i have to ill pay someone to do it. its needed pretty urgent.
Thanks heaps
Peter
[F8] Multi Use Preloader
I have the two functions below working on there own, but i need to get the random load image to have a preloader aswell!
// preloader function
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
holder1._alpha = 0;
progress1._visible=true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
progress1.pText.text = Math.round((lBytes/tBytes)*100)+"%";
};
preload.onLoadComplete = function(targetMC) {
fadeInImage(holder1);
progress1._visible=false;
trace(targetMC+" finished");
};
//works with:
my_mc.loadClip("images/port01.jpg", "holder1");
//random load function
function loadRandom(clipname)
{
choice = Math.round(Math.random()*4+1);
switch (choice) {
case 1 :
clipname.loadMovie("images/intro01.jpg");
break;
case 2 :
clipname.loadMovie("images/intro02.jpg");
break;
case 3 :
clipname.loadMovie("images/intro03.jpg");
break;
case 4 :
clipname.loadMovie("images/intro04.jpg");
break;
case 5 :
clipname.loadMovie("images/intro05.jpg");
}
}
//works with:
loadRandom(holder1);
can i get the preloader to work in this format, is it just a simple syntax problem? I need the loadRandom(holder1); to be replaced!
cheers
Rat
Multi Loading In AS3?
Hi,
I have previously created a preloader that loads multiple images and individually tracks their loading process in AS2.
I want to do this now in AS3 but am having a bit of trouble figuring out the migration seeing as MovieClipLoader() is now not available.
specifically I want to know how to create the new equivalent of the MovieClipLoader() and then create a child object within this and then a further child array as well?
here is the old AS2 code that i used to do this before
_global.MultiLoad = new MovieClipLoader();
_global.MultiLoad.multiObject = new Object();
_global.MultiLoad.multiObject.loadedClipArr = new Array();
any one fancy getting me started in the right direction with this?
(obviously there is a lot more to my code but this is the main stumbling block for me)
thanks
rob
Multi If Statments
something that has been bothering me for sometime that no book or teacher has told me, is what to do when i need a condition higher than another.
example: if value great 10 then something, but if value is also great than 20 then do something else.
example:
function healthbaranimtion(){
if (value>=10){bar animation speed = 10};
if (value>=20){bar animation speed = 20};
if (value>=30){bar animation speed = 30};
}
so how do i get the bar animation speed to equal 30 if value is ++30?
Multi Histest
hello
i want main moiveclip response to any object hittest it .
i have many objects on my stage
i want main moiveclip trace the instance name any object hittest it ?
i try to use hittest() but it need to write every objects on the stage
can you help me?
thanks
[F8] Multi Audio
Hello,
I've been using the following script to control the volume level of a WAV file. I have another WAV file that begins playing at the same time as the first.
// initiate sound
music = new Sound();
music.attachSound("bsound");
music.start(0, 999999);
// set the volume of the sound to zero
music"bsound".setVolume(10);
Is there a way to set the volume level of one WAV different to the other?
Many thanks in advance.
Andy
Vars Multi Swf
I have one main swf file where I creat a input textbox to save a var playerName, but then I click the button Play and with this I load another swf file with the game part, but with this action I lose my playerName var.
There is anyway to retain my var on multiple swf files?
Thank you all!
Multi Dim Array And Xml
Trying to parse this xml doc into an array that i can use Im totally lost.
http://www.wisc-online.com/objects/stc206/stc1062.xml
Each of the 19 questions has 4 answers one is correct.
Do i need a 3 dim array to hold this info? is there an easier way to do this please advise.
Code:
stop();
qst = new Array(19);
ans = new Array(19);
val = new Array(19);
for (i=0; i<=4; i++) {
qst[i] = new Array(4);
ans[i] = new Array(4);
val[i] = new Array(4);
}
for (i=0; i<=4; i++) {
for (j=0; j<=4; j++) {
qst[i][j] = new Array(1);
ans[i][j] = new Array(1);
val[i][j] = new Array(1);
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("stc1062.xml");
var questionXML:Array = new Array();
function loadXML(loaded) {
if (loaded) {
questionXML2 = this.firstChild;
//will grab each question
strQuestion1 = questionXML2.childNodes[1].attributes.txt;
//will grab the first vallue of the first child
strQuestion2 = questionXML2.childNodes[1].firstChild.firstChild;
// will grab the second answer in the questions strQuestion1 = questionXML2.childNodes[2].childNodes[1].firstChild
//strQuestion2 = questionXML2.firstChild.firstChild.firstChild;
strQuestion = questionXML2.firstChild.attributes.txt;
for (i=0; i<19; i++) {
//qst[i][j][t] = questionXML2.childNodes[1].attributes.txt;
for (j=1; j<5; j++) {
qst[i][j][j] = questionXML2.childNodes[i].attributes.txt;
ans[i][j][j] = questionXML2.childNodes[j].firstChild.firstChild;
val[i][j][j] = questionXML2.childNodes[j].firstChild.attributes.correct;
trace(i+" "+j+" "+j+" "+"ans[i][j][j] = "+ans[i][j][j]);
trace(i+" "+j+" "+j+" "+"val[i][j][j] = "+val[i][j][j]);
trace(i+" "+j+" "+j+" "+"qst[i][j][j] = "+qst[i][j][j]);
//trace(questionXML2.childNodes[j].firstChild.firstChild);trace("qst[i][j][j] = "+qst[i][j][j]);
}
}
} else {
content = "file not loaded!";
}
}
Multi Key Detection
I'm aware that detecting multiple key presses is going to be tricky.
I want to make a game where two players are controlling characters on the same keyboard. I've looked at
http://www.actionscript.org/forums/s...d.php3?t=56652
and
http://www.actionscript.org/dev/arti...ons/Page1.html
What are my options? Can anyone offer me any advice before I run into trouble?
Multi Dim Arrays
This is killing me.
I have a quiz program that draws questions and answers from a text file. All that works fine. I can even put each question into an array using:
ActionScript Code:
ranQues.onLoad = function(success) {
if (success) {
do {
howMany = eval("ranQues.word"+i);
wordArray[i] = eval("ranQues.word"+i);
That works fine. But what I am working towards is putting all the questions and answers into a multi dimensional array to keep track of which ones the uses have passed/missed and so on.
I have tried:
ActionScript Code:
wordArray[i][0] = eval("ranQues.word"+i);
wordArray[i][1] = eval("ranQues.answer"+i);
wordArray[i][2] = eval("ranQues.wrong"+i);
but that ends up with undefined.
Any leads or help on this would be great. I only recently learned arrays and new dimensions are beyond me.
AS 3 - Multi Pre Loader
This is giving me a #1010 error, any ideas?
stop();
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
import flash.text.*;
var nextFrameTimerTwo:Timer = new Timer(10000, 1); // 10 seconds & occours once
nextFrameTimerTwo.addEventListener(TimerEvent.TIME R, nextFrameRunTwo);
nextFrameTimerTwo.start();
function nextFrameRunTwo(event:TimerEvent):void {
removeChild (containerTwo);
gotoAndStop(2);
}
var fTwo:String = "2007_11_20_conc_flash_panel2.swf";
var tfTwo:TextField = new TextField();
var loaderTwo:Loader = new Loader();
var containerTwo= new MovieClip();
function preloaderTwo() {
loaderTwo.contentLoaderInfo.addEventListener(Progr essEvent.PROGRESS, onLoadProgressTwo);
loaderTwo.contentLoaderInfo.addEventListener(Event .COMPLETE, completeHandlerTwo);
var requestTwo:URLRequest = new URLRequest(fTwo);
loaderTwo.load(requestTwo);
addChild(containerTwo);
tfTwo.textColor = 0xFFFFFF;
}
function onLoadProgressTwo (event:ProgressEvent):void {
var loadedTwo:int = event.bytesLoaded;
var totalTwo:int = event.bytesTotal;
var percentTwo:int = loadedTwo/totalTwo*100;
progloaderTwo.progbarTwo.scaleX = percentTwo/100;
tfTwo.text = String(percentTwo)+"%";
tfTwo.x = -50;
tfTwo.y = -50;
}
function completeHandlerTwo(event:Event):void {
containerTwo.addChild(loaderTwo)
}
preloaderTwo();
Getting Multi Movieclips Into One Jpg.
I have a project right now that ask for mutli different layer movie clips to be exported into jpg's.
What I have is a flash project were you click multi buttons that will release certain movie clips to form a image. When you click these buttons it displays symbol move clips in set cords and certain layers. Now I want to have it where the user can click a button and have a separate image pop up with all the movie clips in the correct order and correct cords, as displayed as one single image, hopefully as a jpg.
If anyone can give me a clue on how to do this, I would be very greatful!
Multi Language?
Hey
I have a multi language option to allow German, Spanish etc, but also Korean, Chinese, Japanese. These are accesed through dynamic text boxes from .xml files. When the .xml file opens in a browser, the characters appear fine, although within Flash, a few random numbers come up, but with none of the text. I've done a search to see what I'd done wrong. I've placed the "encoding="utf-8" ?> " at the top of the .xml, although still not joy.
Does anyone know of a solution to this, as Macromedias website says it should work?
Thanks
(has been tested on two computers, still doesn't work)
Dave
Multi Key Detection
A project I was recently assigned for a company requires that the application detect specific key presses. I took the opportunity to write a very simple Multi Key class, this has suited my needs so far. I'm currently in the process of updating some minor glitches, but I feel that this is something many people could enjoy. Take Care.
ActionScript Code:
class MultiKey {
// code list
private var codeList : Array;
// the objects listening for events from this object
private var listeners : Array;
public function MultiKey( keyCodes : Array )
{
Key.addListener(this);
codeList = keyCodes;
listeners = new Array();
}
private function onKeyDown() : Void
{
for (var i:Number=0; i<codeList.length; i++)
{
if (!Key.isDown(codeList[i])) {
return;
}
}
invokeOnKeyCombination();
}
//////////////////
/* BROADCASTING SPECIFIC */
//////////////////
private function invokeOnKeyCombination()
{
for (var i:Number = 0; i<listeners.length; i++)
{
listeners[i].onKeyCombination();
}
}
// adds a listener if it is not already in the list
public function addListener( o : Object ) : Boolean
{
// cannot add a null value
if (o == null) return false;
for (var i:Number = 0; i<listeners.length; i++)
{
if (o == listeners[i]) return false;
}
// object does not in exist in array
listeners.push(o);
return true;
}
// removes a listener if it exists in the list
public function removeListener( o : Object ) : Boolean
{
// cannot remove a null value
if (o == null) return false;
for (var i:Number = 0; i<listeners.length; i++)
{
if (o == listeners[i])
{
listeners.splice(i, 1);
return true;
}
}
// object does not exist in array
return false;
}
}
IMPLEMENTATION IN FLA
detects if you press CTRL and SHIFT at the same time.
ActionScript Code:
var mk = new MultiKey([17, 32]);
mk.addListener(this);
function onKeyCombination() {
trace("Combination Pressed");
}
This sample suited MY needs, but like I said I'm working out some kinks. Take Care.
-Michael
Loading Multi MC's Into SP
Can I use contentPath to attach multiple instances of a movieclip?
At the moment, I can attach without using contentPath but this does not help me at all. If I cannot use contentPath the scrollPane is useless - meaning none of the features of the scroll pane work - hence a static, unscrollable box.
I know some of you hate components but I do not have another option.
Multi Stages
Hi, please can someone help me I have upgraded CS3:
Main Stage
Stage 2
Stage 3
Stage 4
How can i call stages 2 - 4 into the main stage
Thank you in advance.
Edited: 10/09/2008 at 07:26:42 AM by interVoIP
Multi-functions
in this example why the values of (12) and (21,39) are lost at the geo and geo1 functions
PHP Code:
geomag(12); geomag1(21,39); function geomag(deg){ E0(0,deg,null,null);}function geomag1(lat,lon){E0(1,null,lat,lon);}function E0(ref,deg,lat,lon){ switch (ref){case 0:geo();break;case 1:geo1();break;}}function geo(){trace(deg);trace("deg= "+deg); }function geo1(){trace("deg= "+deg+" lat= "+lat+" lon= "+lon);}
Multi-level?
I'm creating something similar to this (re-size, bounce and colour change) and am just wondering if it would be constructed using levels or not?
Any ideas
www.braingiants.com
Thanks
|