ActionScript 2.0 :: Using Input Fields With Randomly Loaded .FLVs Or .SWFs?
Apr 7, 2011
I am making a movie quiz game, where a movie clip plays and the user must enter an answer into an Input Field.
My question is:
Can I write/include some actionscript that will allow the Enter/Answer button that I have coded to detect WHICH of my pool of 100 video questions is playing, so that I can assign the correct answer in the actionscript on my Enter/Answer button?
The Code: Frame 1 to load the .flvs randomly:
var videoArray:Array = new Array()
videoArray.push("question1.flv")
videoArray.push("question2.flv")
videoArray.push("question3.flv")
[Code]....
Something I can add to the code on my Enter button that will detect which random .flv is playing?
If not, is there a different logic I need to employ to create this? Perhaps creating independent swfs that contain the video and input field functions together? And if so, how/where will I establish a timer/scoring function?
View 8 Replies
Similar Posts:
Jan 12, 2008
build a dynamic portfolio using AS2? there is different code to use for loading pictures and other file types like flvs and swfs. I know that I use a path to the file I want to show in the XML. So do all I have to do is use a path to a flv or swf and it will work the same?
View 3 Replies
Aug 25, 2010
Working on a project that has a main stage and loads/unloads external swfs into it. Most of these external swfs also contain FLVs (that are also loaded externally via FLVPlayback). Basically the user clicks on a button in the navigation and it should unload the swf and FLV that is currently playing and then load the new one. Then after the the FLV and swf play theres a "close" button that they can click to go back to the "home" swf which would be hidden underneath. I got it to work to an extent - but the FLV (even though not visually there) still has its audio playing in the background..
View 3 Replies
May 13, 2005
How come on my application, in the input fields, theres already txt in the fields? is there a way to get that deleted?
View 2 Replies
Feb 1, 2010
I would like to track when a .swf or preferably a .flv video has been accessed or played. Is there action script I can enter in the .swf or .flv to send an email when video is played?
View 24 Replies
Sep 2, 2011
On my main timeline i have some buttons. When you click a button you are diverted to the a frame label on the main timeline.
When the timeline stops at say frame 2 an flv is loaded into an empty movie clip on the main stage. If you click on button 2, same thing. So in total I have about four FLV's that play when a button is pushed. If i keep clicking my buttons to test the smoothness of my flv's, after about three clicks from navigating between my frames/loaded flvs, my entire main movie becomes slower.
Each FLV is about 5mb.
Below is the code that gets initated when I click my button and am taken to that frame. My question is this, if i'm jumping between FLV's at every button click is the FLV that played first still playing and causing the entire main movie to slow down? Is there a better way to manage this? Do I have to unload the movie being played when i click? I'm trying to see if there an more efficient way to have smooth streaming from my flv. The flv that is getting initated is simply looping when it's done and servers a 'moving background'.
is there something else i can implement into my code that will keep my loaded flv's playing smoothly?
[Code]....
View 11 Replies
Dec 4, 2009
I have four dynamic text field created at the authoring time in Frame-4. I just need them to be placed randomly every time when I come from Frame3. I have known that there is a Math Class which generates random numbers which would be an effective way. how do I proceed ahead i.e shall I create an array and seed it with the their current positions etc etc
View 5 Replies
Sep 11, 2009
I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf
View 3 Replies
Dec 23, 2006
My site loads a .swf into a blank movie clip when the site loads.target.loadMovie("coachGameDay.swf");
When a viewer loads the site again, I want a different .swf to load. Or if I hit the refresh button on the browser, I want different .swf to load. Giving it the appearance of .swfs loading randomly.
View 6 Replies
Dec 11, 2009
I'm looking for a way to randomly start an ordered list of SWF's. Well, that's not all I have my main SWF calling up external SWF's. I have 2 groups of external SWF's. From my main SWF Actionscript, I want to randomly play one SWF in Group A and continue cycling through Group A (in order) until it is finished. Then I want to randomly start playing one SWF from Group B and continue cycling through that list (in order) until the Group B is cycled through. Then repeat Group A (random start, but staying in order), etc.
Does this make sense?? I realize it's a challenge My current ActionScript works for Group A to randomly select and play in order, I need it to stop after it gets to the random starting point again (so it doesn't repeat) and start up Group B (which isn't in there yet)
[Code]...
View 7 Replies
Aug 7, 2010
I have a FLA that needs to randomly load 5 different SWFs at level 10.
View 5 Replies
Aug 2, 2006
Flash - 8 : Above is an example of what I would like to do/have done. I've gotten as far as loading the "loaded.swf" into the "start.swf" but my problem is I'd love to use that little loading action I made earlier without copying and pasting into the new movie the same actions for a different link. So, how do I load "loaded2.swf" into "loaded.swf" via the link in "loaded.swf"?
View 1 Replies
Aug 25, 2010
So, what I'm trying to do can't really be that hard, I still can't get it to work properly...
So, I have two textfields and one button. Whenever I type a set message into one of the textfields and then press the button, I want the other textfield to return another set message. Probably the trickier part: this should work both ways.
View 3 Replies
Apr 20, 2011
I have a form for signing up for a email newsletter, requesting name, phone number, email, etc. However, for some reason, it won't allow me to enter "3" "4" or the "@" symbol in any of the textfields. You can see how that could be a problem.I'm working with a preexisting site, build by someone else. The SWF on the site doesn't have this problem, (it works fine) but when I create a new SWF from the FLA they got from the previous designer, I have these problems, even before I made any changes.
The site was built with something newer than Flash 8 (I couldn't open it with Flash 8), but older than CS5 (when I save a new version of the FLA, it tells me it will no longer be compatible with older versions of Flash) Could this be caused by that?
the code from the form:
Code:
stop ();
this.tabEnabled;
name.tabIndex = 1;
street.tabIndex = 2;
[code]....
View 2 Replies
May 4, 2009
I am embarrassed to admit that I am still working in Flash 6. But I am. I do not have the ability to upgrade at this point. I have created a contact form and all is working, but the input text is invisible to the end user. Oddly, anything that is typed is sent ok, they just can't see anything they are typing!
View 10 Replies
Jul 28, 2009
I'm looking to create an input field in my flash site where users can enter their email address to sign up for a newsletter, ultimately so the email gets added to our mailing list (hosted by constant contact).I can create the look, i'm just terrible at the science that makes it work.
View 15 Replies
Nov 11, 2010
This is about fill in the blanks in flash 8 as2. In this i used input text fields and three buttons.In first frame i used multiple input text fields and a submit button. After filling all the blanks we click on submit button then in the second frame we will show the result like if the blank is correct it should change the color to green and if it is wrong it should change to red.and in the frame i have check button when we click on it will display all the answers. And when we click on analyse button we have to display the answer which the user types and the correct answers.And my problem is when we click on submit there is no difference in the blanks color all are in black only.
View 3 Replies
Jul 28, 2011
Is there any ways to use input fields without embedding the font to minimize .swf file weight?
View 1 Replies
Sep 17, 2009
I ran over a problem with a video player that fades over a contact form. the problem is that the video player somehow disables the textfields of the form - even after the player fades away again.
I removed childs and set buttonMode=false for all the elements of the video player... ( when the player is closed ) --- but somehow it still disturbs the form after its gone.
The form works until the video player comes in
Here is the links: [URL] See how u can type in the text fields until the player appears...
View 2 Replies
Nov 23, 2009
I have different input fields and i'm trying to add the numbers in the fields but I keep getting the following:
[Code]...
View 1 Replies
Jan 18, 2010
On any flash site that I have found on the internet with an input field, it is not possible to input an accent using my mac. Create an input text field on the stage and publish the fla, then view it in a browser. If you try to input an accent in the .swf, it works fine (� : option-e, release, push e again), but if you try to do it in a browser the accent does not appear. (This seems to work fine for a pc, though its a different input code).
View 9 Replies
Jun 23, 2010
I have created an input field using as3 and im wanting to place the input text inside of a MovieClip only problem is that i cant type into the input text box i see it buy i cant type anything in it heres my [code]...
View 1 Replies
Oct 11, 2010
I'm doing a project for an education company that requires the use of a cursive font. The cursive font has many glyphs so that the characters can connect with each other. There are several versions of each letter so that they connect correctly to whatever letter is beside it. The glyphs work fine in InDesign and Illustrator, but not Flash. I tried embedding the entire Glyph set but that doesn't work.
View 1 Replies
Jan 8, 2011
I have a .swf file that loads all of it's images from an embedded file called assets.swf. Last night everything was working fine and then I tried to add a pre-loader. As soon as I did that I can no longer get the input fields to work properly. When you hover your mouse over them it changes to the text cursor but you can't type into the fields. I've tried giving them focus, setting a default value, made sure they have an instance name and nothing seems to work. They're not behind another movie clip and the font is being embedded like it should be.url..
All the other posts I could find about this issue says it has to do with embedding the font. The font I'm using is Tahoma and it's embedded in both of the input fields. Another post I read said the problem was related to masks. I'm not using masks on either of these fields. Anyone know what's going on? It was working fine before I added the pre-loader and removing the pre-loader doesn't seem to fix the problem when this was working fine before.[code]
View 1 Replies
Apr 8, 2011
What I have is two buttons that when clicked they add an input text field and a third button that puts a text field and gives you the total value of the two input fields after the user inputs some numbers, the problem is that the buttons adding the input fields can be clicked multiple times and of course adding a new input field each time they are clicked and as you can imagine when I try to add the values I only get the result of the last two fields added.
How can I tweak my code so it adds-up the total value of all input fields on the stage?
button1.addEventListener(MouseEvent.CLICK, addField);
button2.addEventListener(MouseEvent.CLICK, addField2);
button3.addEventListener(MouseEvent.CLICK, addTotal);
[Code]....
View 3 Replies
Jan 13, 2011
I have this code al set up, but I would like for the input fields and check boxes to clear after submition. How do I do that?
import flash.net.URLVariables;import flash.net.URLRequest;
submit.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void{ if (eMail.text ==
[code]........
View 7 Replies
Feb 14, 2009
For an input field I need about 20 fonts to be embedded.
The size increases like hell, as expected. So I try to embed only the needed characters.
First thing I notice is I can only set that for the text field, I expected to be able to set the character range for every single font.
I set only Uppercase for all my dynamic/input fields but the size doesnt decrease and I can still see all characters.
So I suspect the way it works is strange and/or I just dont understand how it works.
View 6 Replies
Jul 10, 2011
I'm creating a form that runs from an external AS file. The code works when placed on the main timeline but not in the AS file where I want it. Here's the code.
var myvar:TextField=new TextField();
myvar.type=TextFieldType.INPUT;
addChild(myvar);
View 1 Replies
Oct 14, 2003
I was wondering if anyone could please send me info user input text fields. I was wanting to set up a section in my flash site where the user
a) types in their name in first field
b) second field they type in their email address
c) third field they type in their email message and then hit a submitt button to make their message reach me!
View 5 Replies
Nov 24, 2004
I am trying to create a TextField, set its type property to "input," set its format via the TextFormat object, and allow the user to add a label to a movieclip.
Assume you have a button named b_add, and you assign it this code on the main timeline:
Code:
_root.b_add.onRelease = function () {_root.createTextField("myLabel", 10, -38, -15, 76, 29.7);
_root.myLabel.type = "input";
_root.myLabel.text = "insert label";
_root.myLabel.wordWrap = true;
[Code]...
The TextField that gets created loses all of its formatting once the user starts typing. It reverts to Time New Roman and doesn't wrap. Do I have something out of order? Should I approach the problem with another solution?
View 6 Replies