Random Selected .swf On Mac
I'm having a problem with showing a random selected .swf in my mac browser. It works on PC (see: http://cremefine.fabeldyr.dk) but the animations can't be seen on my mac IE 5.2.7 or in any other browser for that matter.
(The random selection should work so that when you press "refresh" or re-enters the site a new .swf is shown in the index page)
Any ideas?
PS: This is something I need to fix for a deadline in about 24 hours from now...
PLEASE HELP, Thanx!
FlashKit > Flash Help > Flash MX
Posted on: 09-29-2003, 09:18 AM
View Complete Forum Thread with Replies
Sponsored Links:
Continuous Random Ly Selected Audio
Please can anybody help!
I am trying to have continuous randomly selected audio streaming onto my site. Below is the code on the first frame of my site.
As you will see I have a randomised array and (hopefully) the right code for choosing a new song when the first is finished.
When I test I get an output panel listing the title of one of the songs, but no actual sound.
Any ideas what I've got wrong
many thanks
m
myList=["summersongedit.mp3","Fascination.mp3","wkol.m p3"];
myRandom=random(myList.length);
trace(myList[myRandom]);
mySound.loadSound(myList[myRandom]);
mySound.onSoundComplete=function(){
mySound.load(myList[myRandom])
}
View Replies !
View Related
Random Array, Array Name Selected Randomly
Random Array, Array Name selected Randomly
Here is the code:
var RDNumber2x:Array = [2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36, 38,40];
var RDNumber3x:Array = [3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54 ,57,60];
var RDNumber4x:Array = [4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,7 2,76,80];
var RDNumber5x:Array = [5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85, 90,95,100];
var RDNumber6x:Array = [6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102 ,108,114,120];
var RDNumber7x:Array = [7,14,21,28,35,42,49,56,63,70,77,84,91,98,105,112,1 19,126,133,140];
var RDNumber8x:Array = [8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128 ,136,144,152,160];
var RDNumber9x:Array = [9,18,27,36,45,54,63,72,81,90,99,108,117,126,135,14 4,153,162,171,180];
var RDNumber10x:Array = [10,20,30,40,50,60,70,80,90,100,110,120,130,140,150 ,160,170,180,190,200];
var RArray:Array = ["RDNumber2x","RDNumber3x","RDNumber4x","RDNumber5x ","RDNumber6x","RDNumber7x","RDNumber8x","RDNumber 9x","RDNumber10x"];
var RArrayBox:String;
var RArrayBoxS = 0;
RArrayBox = RArray[Math.floor(Math.random() * RArray.length)];
RArrayBoxS = RArrayBox[Math.floor(Math.random() * RArrayBox.length)];
trace(RArrayBoxS);
Heres The error:
ReferenceError: Error #1069: Property 6 not found on String and there is no default value.
at randomarray_fla::MainTimeline/randomarray_fla::frame1()
What I am trying to atchieve is randomly selecting the array name and then randomly selecting something from that array.
So I am randomly selecting from a randomly selected array
Can anyone help with my problem?
View Replies !
View Related
Navigation (Selected/De Selected) Script
Hi
I have created my navigation within a mc... what i would like to happen is when a button is selected it remains highlighted and then when another button is selected the first returns to its original state and button that is clicked becomes selected... I understand the principles of doing this just not sure exactly how to do it. If anyone can help or send me in the right direction of a good net tutorial (or even better, a flash file I could actually have a look at and try and understand it) It would be really really appreciated.
Thanks for any help
Adam
View Replies !
View Related
Navigation (Selected/De Selected) Script
Hi
I have created my navigation within a mc... what i would like to happen is when a button is selected it remains highlighted and then when another button is selected the first returns to its original state and button that is clicked becomes selected... I understand the principles of doing this just not sure exactly how to do it. If anyone can help or send me in the right direction of a good net tutorial (or even better, a flash file I could actually have a look at and try and understand it) It would be really really appreciated.
Thanks for any help
Adam
View Replies !
View Related
[F8] If None Is Selected
This would be part 2 of a recent post about multi-radio buttons.
Current situation:[br /]
I have made conditional statements for certain totals for the buttons.
Issue:
I couldn't figure out how to alert user to continue selection if none of the other buttons or no buttons have been selected upon clicking on the submit.
Any suggestion(s)?
Thanks!
code:
//thanks to dawsonk
var score01:Number;
var score02:Number;
var score03:Number;
var score04:Number;
var score05:Number;
var scoreTotal:Number;
function clearGroup(group) {
for (var score = 1; score <= 3; score++) {
this["btn0" + group + "_0" + score].gotoAndStop(1);
}
}
for (var group = 1; group <= 5; group++) {
for (var score = 1; score <= 3; score++) {
var myBtn = this["btn0" + group + "_0" + score];
myBtn.group = group;
myBtn.score = score;
myBtn.onRelease = function() {
clearGroup(this.group);
_root["score0" + this.group] = this.score;
trace("score0" + this.group + " = " + this.score);
this.gotoAndStop(2);
};
}
}
submitBtn.onRelease = function() {
var scoreTotal = score01 + score02 + score03 + score04 + score05;
if (scoreTotal <= 5) {
trace(scoreTotal + "less than 5");
} else if (scoreTotal == 5) {
trace (scoreTotal + "total is 5");
} else if (scoreTotal >5 && scoreTotal <= 10) {
trace (scoreTotal + "total is between 6 and 10");
} else if (scoreTotal == 11 && scoreTotal <= 15) {
trace (scoreTotal + "total is between 11 and 15");
}
};
stop();
View Replies !
View Related
Selected Help?
I need you to be able to push a button and that button turns into something else. It's like, if you have a poll, you click on your selection and a dot appears in the middle of the circle.
View Replies !
View Related
Tekst Which Can Be Selected
Hello Everybody, I need some help.
I making an flash-site which contains info about certain things. Now when I get to a site which has good info I want to copy that info. Well its easy, select it and copy it. But how can I get that in my flashmovie. I want to make the tekst inside my movie selectable and so being able to copy it.
I dont wether I need to make a script or do some others actions to achieve this.
Hope you guys can help me with this!
Thnx Henke!
View Replies !
View Related
Combo Box Selected
Dumb question but I just can't figure it out.
I have a combo box with 20 listings
#'s 1 through 20
How do I set it to select one particular # on load?
Like make #7 be selected when the movie loads.
Thanks.....Rob
View Replies !
View Related
Getting Selected Value From Scroll Box?
hello,
I am prefilling the a list box with the below code, which works fine. I need the code to fine the value of what is selected.
Also, how can I make the movie clip move a frame when a user has selected a opition within the listbox?
Thanks!
var_array = this.var_array.split(",");
while (i<var_array.length) {
my_box.addItem(var_array[i]);
i++;
}
View Replies !
View Related
How Can A Button Be Selected?
Hi All,
I have to provide 5 buttons to the user to select the options. The buttons are working fine.
But I would like to remember the selected button when the next time i display all 5 buttons with the last selected one should remain pressed or selected.
Any idea how to sort out this issue? Time is ticking....
View Replies !
View Related
Tween All But Selected.
hi Guys and Gals.
Im trying to get a menu system sorted but am having a mare.
have designed a menu to work similarly to this
http://www.firstbornmultimedia.com/flashLarge.htm
if you go to the portfolio page when you rollOver an item all the rest move to the right.
i cant for the life of me figure out where to start.
i can duplicate the clips and move the clip that you select but not the others.
heres my code
-------------------------------------------------------------------------
//duplicate
for (i=0; i<=20; i++) {
duplicateMovieClip("but_mc", "but_mc"+i, i);
this["but_mc"+i].id = i;
this["but_mc"+i]._x = 25*i;
this["but_mc"+i].onRollOver = function() {
select = this.id;
trace(select);
tweenMc(this, 100, 150, 100, 150);
tweenAllMc(this._x, this._x+10);
};
this["but_mc"+i].onRollOut = function() {
trace(this.id);
tweenMc(this, 150, 100, 150, 100);
tweenAllMc(this._x, this._x-10);
};
}
///////////////////////////////////////////////////////////////////
function tweenMc(t_mc, startX, finishX, startY, finishY) {
easeType = mx.transitions.easing.Strong.easeInOut;
beginx = startX;
endx = finishX;
beginy = startY;
endy = finishY;
time = 5;
mc = t_mc;
mcTween = new mx.transitions.Tween(mc, "_xscale", easeType, beginx, endx, time);
mcTween = new mx.transitions.Tween(mc, "_yscale", easeType, beginy, endy, time);
mcTween.onMotionFinished = function() {
//this.yoyo();
};
}
-------------------------------------------------------------------------
what i cant do is make all the ones i havent selected move.
i would really appreciate any help
Thanks
O
View Replies !
View Related
Selected Index
Hi!
How do you refer to the first child of the selected index?
The application contains two xml-driven list components. By clicking an item on the first list the child items should be added to the other list. Is it possible/easy?
Thanks
View Replies !
View Related
FLV Selected By XML Menu
I have a menu driven by xml that when clicked load flv into the player. However, sometimes on the click the video won't load. Second i am using the video 8 components and on some occasions the scrub bar & Play Pause Buttons won't activate when a new video is selected, the video will contiue to play without them activating.
Do i need to do something different than assign: _root.myVideo.play(this.myUrl); to each chapter button loaded from the xml.
Code:
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {
item = attachMovie("itemClip", "itemClip" + i, i);
item._x = 0;
item._y = 25*i;
item.selectedFLV = i;
item.itemLabel.text = menuItem[i].attributes.title;
item.myUrl = menuItem[i].attributes.url;
//set relase function of each chapter button
item.onRelease = function() {
clearInterval(_root.subTimer);
_root.subTimer = setInterval(_root.timeOut, 100);
_root.chapterMenu.chapTitle.text = this.itemLabel.text;
_root.myVideo.play(this.myUrl);
//sets the chapter selected flv to the current flv playing
_root.currentFLV = this.selectedFLV;
trace(_root.currentFLV);
}
//set on rollover state of chapter buttons
item.onRollOver = function() {
this.gotoAndStop(2);
clearInterval(_root.subTimer);
}
//set on rollout state of chapter buttons
item.onRollOut = function() {
clearInterval(_root.subTimer);
this.gotoAndPlay(3);
_root.subTimer = setInterval(_root.timeOut, 750);
}
}
}
menuXml.load("chapters.xml");
_root.menuXml.onLoad = function(success){
if (success){
trace("success");
}else{
//if it doesn't find the file look in the folder above this one
_root.menu.load("../chapters.xml");
}
}
View Replies !
View Related
See If A Button Is Selected
I have a gray Oval shape that I have create a button and have done so when someone push the button or hover it change text color.
But have anyone any idea how I can change the Oval shape from gray to red?
Do I have to have two button above each other??
I like when someone have push the button it change to red until he push another button and that get red and the other change to gray again.
View Replies !
View Related
See If A Button Is Selected
I have a gray Oval shape that I have create a button and have done so when someone push the button or hover it change text color.
But have anyone any idea how I can change the Oval shape from gray to red?
Do I have to have two button above each other??
I like when someone have push the button it change to red until he push another button and that get red and the other change to gray again.
View Replies !
View Related
Set Value From DataGrid When Selected
Hi guys,
can anyone help with a problem i'm having .. i want to set a variable to hold a value from the datagrid when selected. At the moment i'm using .cellPress , when each row is clicked i want to capture one of the column values to a variable
i have a listener on th dg telling me which one is clicked, but not capturing the value within. Any help greatly appreciated!!
View Replies !
View Related
If Selected, Then Do This (function)
Hello everyone. I'm trying to write a function (or class?) that will say "do this to the last movie clip clicked on". I posted this earlier as "basic gui problem". Ex: if I have 20 clips on the stage, I want the function to run on whatever clip was last selected. I also have a drag class attached to each clip. My brain is stuck here. (designer -- not a programmer). Ideas? I'm assuming I need something like "if this clip is at the highest depth, then do this". (clips selected are at highest depth as they are draggable????)
View Replies !
View Related
Text Not Getting Selected
Hi
I am using textSnapshot to highlight text, but it is not working. Can any one please help what I am missing. Here is my code
ActionScript Code:
import fl.controls.ScrollBar;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.system.System;
import flash.text.TextSnapshot;
import flash.ui.Mouse;
stop();
var request:URLRequest;
var loader:Loader;
request = new URLRequest("list1.swf");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
var mc:MovieClip;
var snapShot:TextSnapshot;
var cursor : MovieClip;
function loadComplete(event:Event):void {
trace("Complete");
}
loader.load(request);
var temp_mc:MovieClip=new MovieClip();
temp_mc.addChild(loader);
emptyMovie.addChildAt(temp_mc,0);
snapShot = temp_mc.textSnapshot;
snapShot.setSelectColor(0xffff00);
snapShot.setSelected(0, snapShot.charCount, true);
trace(snapShot.charCount);
trace(snapShot.getText(0, 10000, true));
trace(snapShot.getSelectedText());
View Replies !
View Related
How To Get Selected Data From Xml
i have 1 XML file it's structure is
structure is origional but data is dummy
`````````````````````````````````````````````````
<Main>
<Category CatId="5" CatName="SPORTS" CatImage="image1.jpg" CatTitle="SPORTS TIT" CatType="SPORTS TYP">
<Question QuestionId="1" Text="Which Asian city was once called Edo?" Answer="1" Points="1000" TimeOut="60" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="2" Text="Which Asian city was once called Edo?" Answer="2" Points="3000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="5" Text="Which Asian city was once called Edo?" Answer="4" Points="4000" TimeOut="10" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="4" Text="Which Asian city was once called Edo?" Answer="2" Points="5000" TimeOut="20" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="7" Text="Which Asian city was once called Edo?" Answer="3" Points="6000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="0" Text="Which Asian city was once called Edo?" Answer="3" Points="7000" TimeOut="40" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
</category>
<Category CatId="3" CatName="SPORTS" CatImage="image2.jpg" CatTitle="SPORTS TIT" CatType="SPORTS TYP">
<Question QuestionId="1" Text="Which Asian city was once called Edo?" Answer="1" Points="1000" TimeOut="60" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="2" Text="Which Asian city was once called Edo?" Answer="2" Points="3000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="5" Text="Which Asian city was once called Edo?" Answer="4" Points="4000" TimeOut="10" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="4" Text="Which Asian city was once called Edo?" Answer="2" Points="5000" TimeOut="20" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="7" Text="Which Asian city was once called Edo?" Answer="3" Points="6000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="0" Text="Which Asian city was once called Edo?" Answer="3" Points="7000" TimeOut="40" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
</category>
<Category CatId="2" CatName="SPORTS" CatImage="image3.jpg" CatTitle="SPORTS TIT" CatType="SPORTS TYP">
<Question QuestionId="1" Text="Which Asian city was once called Edo?" Answer="1" Points="1000" TimeOut="60" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="2" Text="Which Asian city was once called Edo?" Answer="2" Points="3000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="5" Text="Which Asian city was once called Edo?" Answer="4" Points="4000" TimeOut="10" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="4" Text="Which Asian city was once called Edo?" Answer="2" Points="5000" TimeOut="20" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="7" Text="Which Asian city was once called Edo?" Answer="3" Points="6000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="0" Text="Which Asian city was once called Edo?" Answer="3" Points="7000" TimeOut="40" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
</category>
<Category CatId="4" CatName="SPORTS" CatImage="image4.jpg" CatTitle="SPORTS TIT" CatType="SPORTS TYP">
<Question QuestionId="1" Text="Which Asian city was once called Edo?" Answer="1" Points="1000" TimeOut="60" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="2" Text="Which Asian city was once called Edo?" Answer="2" Points="3000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="5" Text="Which Asian city was once called Edo?" Answer="4" Points="4000" TimeOut="10" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="4" Text="Which Asian city was once called Edo?" Answer="2" Points="5000" TimeOut="20" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="7" Text="Which Asian city was once called Edo?" Answer="3" Points="6000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="0" Text="Which Asian city was once called Edo?" Answer="3" Points="7000" TimeOut="40" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
</category>
<Category CatId="6" CatName="SPORTS" CatImage="image5.jpg" CatTitle="SPORTS TIT" CatType="SPORTS TYP">
<Question QuestionId="1" Text="Which Asian city was once called Edo?" Answer="1" Points="1000" TimeOut="60" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="2" Text="Which Asian city was once called Edo?" Answer="2" Points="3000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="5" Text="Which Asian city was once called Edo?" Answer="4" Points="4000" TimeOut="10" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="4" Text="Which Asian city was once called Edo?" Answer="2" Points="5000" TimeOut="20" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="7" Text="Which Asian city was once called Edo?" Answer="3" Points="6000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="0" Text="Which Asian city was once called Edo?" Answer="3" Points="7000" TimeOut="40" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
</category>
<Category CatId="8" CatName="SPORTS" CatImage="image6.jpg" CatTitle="SPORTS TIT" CatType="SPORTS TYP">
<Question QuestionId="1" Text="Which Asian city was once called Edo?" Answer="1" Points="1000" TimeOut="60" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="2" Text="Which Asian city was once called Edo?" Answer="2" Points="3000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="5" Text="Which Asian city was once called Edo?" Answer="4" Points="4000" TimeOut="10" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="4" Text="Which Asian city was once called Edo?" Answer="2" Points="5000" TimeOut="20" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="7" Text="Which Asian city was once called Edo?" Answer="3" Points="6000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="0" Text="Which Asian city was once called Edo?" Answer="3" Points="7000" TimeOut="40" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
</category>
<Category CatId="7" CatName="SPORTS" CatImage="image7.jpg" CatTitle="SPORTS TIT" CatType="SPORTS TYP">
<Question QuestionId="1" Text="Which Asian city was once called Edo?" Answer="1" Points="1000" TimeOut="60" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="2" Text="Which Asian city was once called Edo?" Answer="2" Points="3000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="5" Text="Which Asian city was once called Edo?" Answer="4" Points="4000" TimeOut="10" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="4" Text="Which Asian city was once called Edo?" Answer="2" Points="5000" TimeOut="20" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="7" Text="Which Asian city was once called Edo?" Answer="3" Points="6000" TimeOut="30" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
<Question QuestionId="0" Text="Which Asian city was once called Edo?" Answer="3" Points="7000" TimeOut="40" Option1="Beijing" Option2="Calcutta" Option3="Hanoi" Option4="Tokyo"/>
</category>
</Main>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~``
question is :
how to 3 diffrent category ? and it's question who dose not match that's same points.
for Example :
i want this type of data
category Id : 5, 7, 2
Question Id : 2, 5, 1
Points : 3000,4000,1000
~~~~~~~~~~~~~~~
not this type of data
-------
no same category at a time
no same question at a time
no same points at a time
~~~~~~~~~~~~~~~~~~~~~~~~~
Pls. Forword me Replay as soon as posible
Thanks's
Priyesh
Flash Programmer
View Replies !
View Related
Selected Field
I made an email form that works flawlessly yay! And I added a little spice to make it interesting however when i added it, it took away the ability to click on field to type in information. You can only go through fields using TAB. The spice I added was when users type information into the fields it appears all over the screen different sizes and fades out. This took away the ability to click on a field as soon as the keyboard is pressed. Is there anyway to re enable?
Here is my example:
http://http://www.narrativerecordings.com/form2.swf
Any help would be appreciated.
Here is mi code:
var kl:Object = new Object();
kl.onKeyUp = function() {
var t = _root.attachMovie("lc","lc"+_root.getNextHighestDe pth,_root.getNextHighestDepth());
t._x = Math.random()*500;
t._y = Math.random()*400;
t._xscale = t._yscale = Math.random()*500+90;
t.onEnterFrame = function() {
this._alpha -= 7;
if(this._alpha < 1) {
this.removeMovieClip();
}
}
t.theLetter.text = String.fromCharCode(Key.getAscii());
}
Key.addListener(kl);
Selection.setFocus(fname);
_global.style.setStyle("themeColor", "haloBlue");
_global.style.setStyle("fontFamily", "tahoma");
fname.tabIndex = 1;
lname.tabIndex = 2;
email.tabIndex = 3;
phone.tabIndex = 4;
address.tabIndex = 5;
questionorcomment.tabIndex = 6;
sender.tabIndex = 7;
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function() {
senderLoad.fname = fname.text;
senderLoad.fname = lname.text;
senderLoad.fname = email.text;
senderLoad.fname = phone.text;
senderLoad.fname = address.text;
senderLoad.fname = questionorcomment.text;
senderLoad.sendAndLoad("form.php",receiveLoad);
}
View Replies !
View Related
How To Highlight Selected Btn?
Ok, I will try to explain my problem (I'm swedish...); If you look at the fla posted here and the trace information in the output panel when published, you see what the button is called. What I need is a way to use this info to create a code that makes the button blacked when clicked on and back to grey when some other btn is clicked. I've tried everything it seems... please, someone who knows this? Thank you.
View Replies !
View Related
Getting Selected Text
Hi,
Is there any way to make flash return what text you have selected?
Say I have a textbox, with a bunch of text in it. I want to be able to highlight a word, and click a button and make the highlighted text capitals? I know there is a replace selected text function, but how can I work out what text is actually selected?
Any ideas anyone?
View Replies !
View Related
How To Use Button.selected?
I'm trying
Code:
import fl.controls.Button;
var b1:Button = new Button();
this.addChild(b1);
b1.selected = true;
And it doesn't work.
Should the Button be supposed to 'select'.. ?
Where is the error?
Tanks in advance.
View Replies !
View Related
Selected Button In AS 3
greetings all
hopefully a short question
i have a batch of buttons.
now in the past (as 2) i had this very simple check to see if the button was clicked, meanwhile the other buttons got back to its original state, via this simple code
Code:
var selectedM:MovieClip;
BUTTON.onRelease = function() {
if (selectedM != this) {
selectedM.enabled = true;
}
//if an item is selected we make sure the item can't be triggered again.
selectedM = this;
selectedM.enabled = false;
now in AS 3. it seems to be a different story
i tried:
Code:
var selectedM:MovieClip;
function clicker(e:Event){
if (selectedM != e.target)
{
selectedM.enabled = true;
}
selectedM = e.target;
e.target.enabled = false;
}
//for loop has BUTTON.addEventListener(MouseEvent.CLICK,clicker)
or where e.target is i tried to replace it with "this" but all to no avail
i am probally looking over something but if anyone could give me a go, i'd be very thankfull
cheers
View Replies !
View Related
Set Selected Index
I would like to use the flistbox command "set selected index", to "my current index +1." I am performing this command to select a song automaticly after a song stops in a music player.
View Replies !
View Related
Button Selected
Hi
Im tryong to make 4 button but when the web is started the 1st button must be selected and the other thrre buttons must be enabled , if the user clicked the other button the button that was selected must come enabled!
can somebody help me please??
Best wishesh
View Replies !
View Related
AS3 - How To Use Button.selected?
Last edited by ad.sign : 2008-08-06 at 18:34.
I'm trying
ActionScript Code:
import fl.controls.Button;
var b1:Button = new Button();
this.addChild(b1);
b1.selected = true;
And it doesn't work.
Should the Button be supposed to 'select'.. ?
Where is the error?
Tanks in advance.
View Replies !
View Related
[AS] Get Selected Text
Hi guys,
Does anyone know how to get the selected text from an input text?
I need this to do a form and to be able to put the text i'm writing between <b> </b> by just selecting the text and clicking the BOLD button, just like a text editor.
Please help
thanks in advance
View Replies !
View Related
How To Use Button.selected?
I'm trying
Code:
import fl.controls.Button;
var b1:Button = new Button();
this.addChild(b1);
b1.selected = true;
And it doesn't work.
Should the Button be supposed to 'select'.. ?
Where is the error?
Tanks in advance.
View Replies !
View Related
How Highlight Selected Btn?
Ok, I will try to explain my problem (I'm swedish...); If you look at the fla posted here and the trace information in the output panel when published, you see what the button is called. What I need is a way to use this info to create a code that makes the button blacked when clicked on and back to grey when some other btn is clicked. I've tried everything it seems... please, someone who knows this? Thank you.
View Replies !
View Related
Var = (whats Selected From List)
Hiya Flashers, I have a form that is being emailed with 2 drop down lists var group = and var hole =
how do I get the variables when sent to read what is selected and send that info. The form sends the other input boxes but not the drop downs.
PT
View Replies !
View Related
Printing Selected Area
Hey Everyone,
I'm working on a colouring book for a client and I want a print button to print the end result. I know the regular features of printing with flash however my knowledge of this feature doesn't run very deep.
The colouring book is based on tell target and different instances of a movie clip filled in already. I know not a true colouring book but It's all I could come up with. I would love a tutorial on building a true colouring book if anyone knows where to find one! Sorry, no to get back on track. I can print specific movie clips i.e.
on (release) {
getURL ("print:", "/picture/legs");
}
however their are 8 frames in legs representing the eight possible colours and it wants to print all eight. I could go further as to predefine the frame however that defeats the purpose of printing what the kid coloured in.
Basically the perfect solution would be to print the main timeline but only a portion of it because I don't want the tools to print out!
You can see what I'm talking about here
http://www.snugasabug.com/test/colour.html
Any help would be greatly appreciated.
[Edited by PM Hopper on 08-24-2001 at 07:52 AM]
View Replies !
View Related
Comparing Selected Coordinates
When I drop the crosshair on the map, the x and y coordinates are displayed in the output window.
The map starts with a value of (0, 0) in the top left corner and (400, 400) in the bottom right corner.
If the crosshair is dropped on the (266, 259) coordinate, then the user should receive a message saying "Congratulations, you have chosen the optimal point"
else the user should receive a message saying "This is not the optimal point"
How can you do this?
Are there any tutorials available on this subject?
View Replies !
View Related
Printing Selected Frames
I have two scenes. First scene is a normal animation with 30 frames on loop. It starts on frame 1 and on frame 30 a go to action start the anim again on frame 1. On this first scene, I have one button that will print Second scene.
Second scenes has 10 frames. The problem is when I use Label #p on Second Scene I only print 1 frame and if I change to #b I print all frames from scene 1 and 2.
There is a way or an action to tell the print button that he has to print frames 1 to 10 on scene 2??? I just find this way:
On scene 2, create a layer and inser 10 labes with #p. The problem is that debugger tells me that my label is duplicated. It is good or bad???
View Replies !
View Related
Movielevel Selected By Variable
Hi - im trying to use this script
eval("_level"+n).gotoAndStop("end");
to make a movie go to a frame according to what the variable is - but it doesnt seem to be working :-(
am I missing something obvioius?!
basically what I want to do is tell a section.swf to fadeout at the same time as I fade in a new section - so to know which movie to fade out im using this variable
thanks alot for your help
View Replies !
View Related
How To Hide A Loaded Swf When A Different One Is Selected
I am having a problem with being able to still see a swf file when a different one is active. What I have is a frame action that loads 3 swf files into 3 different blank MCs on the stage. One is visible after the preloader while the other two are hidden. I have a menu on the main timeline made up of 3 MCs each containing buttons that when pressed go to the frame label of it's corresponding swf. Now say I press a button in menu MC 1 which takes me to that frame label in swf 1. I then want to press a button in MC 3 which takes me to that frame label in swf 3 but MC 1 is still visible underneath MC 3.
What I need to be able to do is hide or turn the visibility off of an inactive swf off when a different one is loaded. I am guessing this would need to be something I included in the button action but not sure as to what. Any suggestions?
Thanks
View Replies !
View Related
Text Box Clears When Selected?
Is there a way to code a input box in flash 5 or MX that makes it clear of the default text once the user clicks on the text feild to input their info?
I have an email feild, with default text of "Type Your Email Address" that I would like to clear blank automatically when someone selects the text box, rather than them having to highlight and delete it.
Thanks in advance.
View Replies !
View Related
Selected Item Cannot Add Actions..
I am having trouble creating new buttons. Whenever I create the button and attempt to add actions to it I get the messege "Current selection cannot have actions applied to it"
I have made several buttons before and all worked fine. Suddenly I keep getting this messege and have no idea why?
Any help would be greatly appreciated.
View Replies !
View Related
Submenu / How Do I Highlight It When Selected?
I have a newbie question:
Here's a link to the flash movie I've created so far:
Shopping Site
Once the user makes a choice from the main scene (1st scene), the second scene will load up.
Within the second scene, I have a menu/submenu system. What I am trying to do is to figure out a way to have the first item of the submenu already 'pressed'. For example, under "Exhibition Information", I would like "Background" already highlighted.
In other words, for each submenu selection, I would like the text for it to be automatically highlighted. I was able to get this to work with the main menu, but haven't been able to apply the same concept to the sub-menu.
help!
View Replies !
View Related
Transistion To Selected Scene
Hey guys. Im working on a movie that has a mulitple scenes, and that when you click a menu option, it plays the remainder of the frames in that scene then goes to the appropriate one. Im stumped on the script to use, although it seems like it should be easy. Im quite possibly a moron Included is the .fla. Thanks!
View Replies !
View Related
Loading Only Selected Parts Of A SWF
Hey,
I was wondering if it is possible, with a preloader - to only load one scene at a time, so if i click on the menu - it will go to Scene 2 and preload only Scene 2, and Scene 1 will only preload Scene 1, etc.
If this is possible, please help me out!
This is my current load script:
Code:
onClipEvent (enterFrame) {
a = Math.floor (_root.getBytesTotal() / _root.getBytesLoaded * 100);
this.gotoAndStop (a);
}
(this is for a movie clip which has 100 frames)
View Replies !
View Related
Making Selected Frames A MC
Is there a way to select a bunch of frames and then make them a Movie Clip? I've tried it, but it seems to only select the first frame of the sequence. please let me know if there's another way. Thanks you guys are great!
View Replies !
View Related
Determine Which Object Is Selected
How can i determine which object is selected?
for example the stage has 5 objects and a butoon for flipping objects, when the user clicks and object and it's selected then clicks the button the selected object is flipped while other objects stay unaffected by the action
View Replies !
View Related
|