Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[Flash Pro 8] Trivia Question



I am putting together a small entertainment industry trivia Q&A. Each time a correct answer is selected a point is answered to the scoreboard. The code that I have used for this is:

var score:Number = 0;
stooges_mc._visible = false;
submit_btn.onRelease = function() {
if (lmc_rb.selected) {
answer_txt.text = "CORRECT!!!";
stooges_mc._visible = true;
score += 1;
} else {
answer_txt.text = "WRONG!!!";
}
};
continue_btn.onRelease = function() {
nextFrame();
};


And this much all works fine. My question is this: if the correct answer was selected once, submitted and a point received what might I be able to add so that if it is selected a second time and submitted another point would not be added? (I mean that if you've already been awarded a point for a correct response you should not be able to keep adding points via selecting the same answer to the same question.)



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-28-2007, 05:56 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Flash Trivia Quiz
I want to load random questions into a Flash movie like this http://www.webtoonist.com/triviaquiz/triviaquiz.swf with PHP/ Mysql can anybody tell me how to do this, please.

Thanks !

Can I Make A Trivia Game With Flash?
Hey! I am making a project for school, and I have thought about using a Flash program to make a trivia game for my project. Our unit is India, and my chosen project is to make a trivia game to show my knowledge of the country. Can this be done? Also, the only available computers at the school are iMacs running OS X. I have a HP Pavillion VX74 here at home, which is running Windows XP Home Edition. While the project work on both? Thankyou very much in advance.


-Teh Gam3sta

P.S. This is my first post! Partay!

Flash Trivia Quiz I'm Desperate...
Hi,

I'm currently developing this flash trivia quiz!
I've done the design and the code already, but something doesn't work!

The quiz should load the questions from .txt files into dynamic text boxes, but it doesn't!
Or, at least it doesn't show the text correctly!

It would be really nice if somebody could take a look at it!

Download it here.

Note, that the main game is in this MC:
_root.noise.easy
The rest around it are mostly graphics and animation stuff!

The MC for medium and hard gameplay are not yet build!

You can send the file back to me, if you correct an error! The filesize is not too big!!!
Here is my e-mail address!

Thanks in advance for any help!!!
I don't know what's wrong with it!

Greetings,

Fallin_angel AKA Marc

Trivia
Hi all,
And urgent help is needed. I am creating a trivia game. There are ten questions that i'll be asking the user. For every correct question the user gets a point. At the end of the game i display to him what is his score. Now here comes my problem.
At the end of the game, I want to display only the wrong answers to the user and not the correct ones.
I am finding it very hard to store the values and to retrieve those values only which are wrong. If u have any useful link for this game, please do let me know.
How do i display only the wrong answers?

I forgot to add, I don't know arrays.
I have never used them. If u can please help me by sending a sample code for the same.

Please do help. Would really appreciate it.
Thanks

Trivia: Flashkit
What do you use flashMX to develop?

Please choose the answer that best describes your situation.

Trivia Game And Xml
hello..

i am trying to develop a trivia game that pulls questions & answers from an xml file. i have written some code that will parse the q & a from the xml and load it into a dynamic txt field respectively. now i need to somehow make that function be able to cyle through the xml's list of questions and answers. i am going to track the correct answers with attributes in the xml file so i also need a lil help with that function as well. check out the .fla and xml attached.

any help is greatly appreciatted.
thanks

Trivia Game
Delete...





























Edited: 01/12/2009 at 08:06:44 AM by Bwargh

Trivia Game
Hi

I have a little problem with my some kind of trivia game. Now there is six questions and where I need help is, when it has asked all the questions, it should go to frame 90. So what I need to change here? Because now it just repeats the questions again, again and again... I know that this is stupid and easy question but I just don't know what to do...









Attach Code

_global.KYSYTYT=new Array();

_global.OIKEATVASTAUKSET=new Array();
_global.OIKEATVASTAUKSET.push(2);
_global.OIKEATVASTAUKSET.push(1);
_global.OIKEATVASTAUKSET.push(1);
_global.OIKEATVASTAUKSET.push(1);
_global.OIKEATVASTAUKSET.push(2);
_global.OIKEATVASTAUKSET.push(3);

_global.KYSYMYSINDEXI=0;
_global.PISTEET=0;
_global.inArray=function(array,value){

for(var i=0;i<array.length;i++){

if(array[i]==value){
return true;
}
}
return false;

}
_global.arvo=function(){

if(_global.KYSYTYT.length==_global.OIKEATVASTAUKSET.length){
_global.KYSYTYT=new Array();
trace("RESETION");

}

var arvo=random(_global.OIKEATVASTAUKSET.length)+1;
while(_global.inArray(_global.KYSYTYT,arvo)){


var arvo=random(_global.OIKEATVASTAUKSET.length)+1;
}
_root.gotoAndplay (90);
_global.KYSYTYT.push(arvo);
trace("Siirryn kysymykseen: "+(arvo));
_global.KYSYMYSINDEXI=arvo-1;
_root.gotoAndPlay("kysymys"+arvo);

}

_global.onkoOikein=function(index:Number){
if(_global.OIKEATVASTAUKSET[_global.KYSYMYSINDEXI]==index){
return true;
}
return false;
}
_global.vastauksenJalkeen=function(tulos){
if(tulos===true){
trace("VASTASIT OIKEIN");
_global.PISTEET++;
}else{
trace("VASTASIT VÄÄRIN");
}
trace("PISTEITÄ NYT: "+_global.PISTEET);
_global.arvo();
}
_global.arvo();

Trivia Game And Xml
hello..

i am trying to develop a trivia game that pulls questions & answers from an xml file. i have written some code that will parse the q & a from the xml and load it into a dynamic txt field respectively. now i need to somehow make that function be able to cyle through the xml's list of questions and answers. i am going to track the correct answers with attributes in the xml file so i also need a lil help with that function as well. check out the .fla and xml attached.

any help is greatly appreciatted.
thanks

Trivia Game And Xml
hello..

i am trying to develop a trivia game that pulls questions & answers from an xml file. i have written some code that will parse the q & a from the xml and load it into a dynamic txt field respectively. now i need to somehow make that function be able to cyle through the xml's list of questions and answers. i am going to track the correct answers with attributes in the xml file so i also need a lil help with that function as well. check out the .fla and xml attached.

any help is greatly appreciatted.
thanks

Pokemon Trivia
I don't know how many people watch pokémon here on this board, but I'm making a pokémon trivia game for my 5-yr-old brother, so I need suggestions for questions to put in it.

Trivia Quiz Help
I want to be able to load random questions into a Flash 5 movie like this http://www.webtoonist.com/triviaquiz/triviaquiz.swf using PHP/ MySQL, can anyone tell me how to do this, please.
Thanks!

Trivia Questions Only Called Once.
Hi, I'm making a trivia based game. Below, questions are stored in arrays and are called using the random function. What I need is for once a question has been called, it will not be called again. I thought it'd be most efficient to do this using the "rando" variable I set below. Can anyone think of some code such that when, for example, rando is set at "8", the program will remember random(8) has been called, and the coresponding question will not be called used again?
If more code that I'm using is needed, I'll post it. I'm still pretty new to actionscript, so I apologize in advance if this seems like a simple question.
Thanks!


Code:
rando=random(10);

q0 = new Array("Who was the first Astronaut in space?","Neil Armstrong","John Herrington","Neil Jones","Buzz Aldren","opt_2");
q1 = new Array("The speed of light in a vacuum is:","3.0 x 10 E8 m/s","Very fast","40 km/hr","8000 m/s","opt_1");
q2 = new Array("What element has an atomic mass of 63.54 g/mol?","Copper","Uranium","Boron","Selenium","opt_1");
q3 = new Array("Who invented gravity?","Sir Isaac Newton","Carol Ann Budd","Randy Way","Gravity was discovered","opt_4");
q4 = new Array("Which type of molecule holds the most potential ATP?","Carbohydrates","Triglycerides","Protien","Amino Acids","opt_2");
q5 = new Array("Which theory explains the expanding universe?","Doppler Effect","3rd Law of Thermodynamics","Heisenburg Uncertainty Principle","Boyle's Law","opt_1");
q6 = new Array("The centre of a blackhole is called the?","Nucleus","Dark Matter","Event Horizon","Singularity","opt_3");
q7 = new Array("Which is not a type of quark?","Up","Bottom","Strange","Silly","opt_4");
q8 = new Array("The gene that is responsible for albino mice is what type of gene?","Dominant","Phenotypical","Recessive","Genotypical","opt_3");
q9 = new Array("What organelle of a plant turns sunlight into energy?","Chloroplasts","Mitochondrion","Golgi Apparatus","Cell Wall","opt_1");

Scoring In A Trivia Game
I'm putting together a flash trivia game. I want the score to be revealed only after all the questions have been answered. Something like this:
1-5 right, try again
10+ right, good job
15+ you're getting better
20+ you're a master
So, I need some script to remember the score, and keep it hidden, and count the right answers and reveal them at the end.
Can someone help me with this?
I'm kinda new to action scripting

Scoring In A Trivia Game
I'm putting together a flash trivia game. I want the score to be revealed only after all the questions have been answered. Something like this:
1-5 right, try again
10+ right, good job
15+ you're getting better
20+ you're a master
So, I need some script to remember the score, and keep it hidden, and count the right answers and reveal them at the end.
Can someone help me with this?
I'm kinda new to actionscripting
Also, if someone can shoot me some links to beginner tutorials for actionscripting, I'd appreciate it!

Trivia Game Problem
Hello All:

I am having a problem with a little trivia game that I am in the process of developing. What I am trying to do is have flash fade out one wrong answer at a time. All questions are being pulled from an XML file that has hundreds of questions. Keep in mind that the correct answer will not always be in the same spot. I also have it so that one question fades into another after a specific time. Here is the code


Code:
System.useCodepage = true;
//
function loadXML(loaded) {
if (loaded) {
xmlNode = xmlData.firstChild;
answerA = [];
answerB = [];
answerC = [];
question = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
question[i] =
xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
answerA[i] =
xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
answerB[i] =
xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
answerC[i] =
xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
ans_txt.text = "A:";
q_txt.text = "Q:";
}
firstImage();
//veryfirstImage();
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("multiple_trivia.xml");
/////////////////////////////////////
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
desc_txt.text = question[p];
answer_txt.text = answer[p];
slideshow();
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
desc_txt.text = question[p];
answer_txt.text = answer[p];
}
}
function veryfirstImage() {
var randomNum:Number = Math.floor(Math.random(total)*total);
p = randomNum;
if (loaded == filesize) {
desc_txt.text = question[p];
answer_txt.text = answer[p];
slideshow();
picture_num();
}
}
function picture_num() {
current_pos = p+1;
curtxt.text = current_pos+" / "+total; } // minutes = 0; seconds = 59; // var min = minutes; var sec = seconds; delay = 1000;
//-----------------------
var my_fmt:TextFormat = new TextFormat(); my_fmt.bold = true;
//-----------------------
this.onEnterFrame = function() {
if (sec<=36) {
my_fmt.color = 0xFFFF00;
TimeText.setNewTextFormat(my_fmt);
}
if (sec<30) {
TimeText.text = "Time's Up!!!!!!";
answer_txt._alpha = 100;
ans_txt._alpha = 100;
//answer_txt._alpha += 15;
//ans_txt._alpha += 15;
} else {
answer_txt._alpha = 0;
ans_txt._alpha = 0;
}
if (answer_txt._alpha>=15) {
TimeText.text = "";
}
};
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
sec--;
var display_seconds = Math.abs(sec-30);
if (display_seconds<10) {
display_seconds = "0"+display_seconds;
}
if (sec == 0) {
clearInterval(myInterval);
if (min == 0) {
my_fmt.color = 0xFFFFFF;
TimeText.setNewTextFormat(my_fmt);
//-------------------------
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
sec = seconds;
min = minutes;
}
// Display minutes and
seconds.

TimeText.text = "Time Left: "+min+":"+display_seconds;
}
}
stop();
var spc:Number = 10;
for (i=0; i<4; i++) {
duplicateMovieClip(ans, "ans"+i, i); } this.onEnterFrame = function() {
ans1._y = (desc_txt._y+desc_txt._height)+spc;
ans2._y = (ans1._y+ans1._height)+spc;
ans3._y = (ans2._y+ans2._height)+spc; }; // var intervalId:Number; var count:Number = 0; var maxCount:Number = 3; var hideanswer:Number = 2; var duration:Number = Math.abs(1000*hideanswer); var answer:Array = new Array("wrong", "wrong", "correct"); // function executeCallback(param:String) {
clearInterval(intervalId);
if (count<maxCount) {
count++;
//-------------------------------------------------------
for (i=0; i<3; i++) {
var remove = xmlData.firstChild.childNodes[p].childNodes[i];
ans1.answer_txt.text = "A) "+remove.nodeName
if (remove.nodeName !== answer[2]) {
this.onEnterFrame = function() {
if (this["ans"+i]._alpha>=0) {
this["ans"+i]._alpha -= 25;
}
};

}
}
//-------------------------------------------------------
intervalId = setInterval(this, "executeCallback", duration, answer[count]);
}
}
if (intervalId != null) {
clearInterval(intervalId);
}
intervalId = setInterval(this, "executeCallback", duration, answer[count]); // function firstImage() {
p = 0;
if (loaded == filesize) {
desc_txt.text = question[p];
ans1.answer_txt.text = "A) ";
//ans1.answer_txt.text = "A) "+answerA[p];
ans2.answer_txt.text = "B) "+answerB[p];
ans3.answer_txt.text = "C) "+answerC[p];
slideshow();
findAnswer();
picture_num();
}
}
Here is the XML code:


Code:
<questions>
<question>What Year the Disney world Start?</question>
<correct>1971</correct>
<wrong>1955</wrong>
<wrong>1980</wrong>
</question>
</questions>

Trivia Game Making Lifelines
I am making a trivia type game for my site. I want the user to have 3 life lines. I have a new scene for each question. How could I make it so they could only use one type of lifeline only once during the whole game. Yet have the correct information on a lifeline for that question. And how do I hide a button once sumone clicks on it.

A Judgement Decision, And A Trivia Question
I read the FAQ and several screens of messages but didn't see an answer to this. I greatly appreciate any assistance. This is an amazing, gargantuan place!! I'm so glad a friend sent me the link.

First, I recently told my boss that sure, I could put those adobe pdf's into flash. I hadn't even installed Flash at that point. I'm an optimist. My question isn't about using Flash--I'm sure I can figure it out, I have like six books here and the program help--but rather, what might be the best way of doing this kind of thing?

The pages are put up at an online edu site. When they have an interactive item, they take a page or two from the physical textbook that relates to the topic, and they make it a link, in case the students need more context-info. So in some cases there is more than one page and there has to be a way between them.

On the MM site I see 'flash paper' (I am still not 100% clear on what that is). I can import a pdf into flash no problem. (The output... doesn't scroll... ahem.) Would you suggest putting it in a movie, with a scroll, adding a button if it's two pages, to navigate?

Or is there some more appropriate way that a simple flat-file image could be run through flash?

See I'm thinking this might be something really simple and obvious and I should ASK rather than guess based on zero info.

Second question: this is one of those "there's no such thing as a stupid question! only stupid people who ask questions!" thing. (Just kidding. I hope.) I am not entirely clear, from looking at the html output by Flash that embeds a movie, on the following:

I make mostly ColdFusion driven websites, a few static here and there. I would like to use flash in a way similar to java applets, in other words, have like a Flash "thing" somewhere on the page, as opposed to having an entire website in flash. (After walking through what a pain in the butt it was to make a dynamic-data form in flash vs. dreamweaver, I have no desire to use it as a front-end anymore. Too bad, 'cause I was really kind of excited about that for awhile.) The question is, can I make a "little movie" and insert it into a table cell in a regular website? I mean I see Flash-based ads in yahoo so that has to be possible right? All the examples in my books and on the MM site use Flash as the full-site... not as an 'object' itself.

Anyway I'll continue reading, I'm sure there's a ton to learn here... thanks in advance for any advice.

Palyne

Trivia Game Not Recognizing Commands
I'm building a "Who wants to be a millionaire" type game and I have to use keycodes instead of the mouse for selecting answers, advancing the question, etc. It works perfectly at the beginning....you hit the space bar to move from the "home" screen to the first question. You hit A, B, C or D as your choice of answers and that answer is highlighted. You hit "Enter" to see if you are correct or not.

The problem is that that's where it stops! I would like for you to then hit the space bar and continue to the next question until you get to question 4 where, if you're answer is correct, it's going to play a little movie clip, and if you're wrong, the game will start over. When everything was on the first frame, the space bar worked. I'm thinking that the commands for the space bar need to somehow become a function? When you jump to different frames, it just doesn't recognize the space bar commands anymore? Please help....I have about 1 week to figure this out and get it done! I can send my .fla file to someone if they can help me, but it seems that I can't get it small enough to upload!

Thanks!

Trivia Game: Error While Testing CS3 App In CS4
I have been attempting to test an exercise file for a Trivia Game written in AS3 using the Flash CS3 IDE.
Unfotunately I have been receiving two errors each time its run while using Flash Professional CS4.:
<ol>
<li><strong> 1023: Incompatible override. </strong></li>
<li><strong> 1021: Duplicate function definition.</strong></li>
</ol>

each of these errors occur on the same line:
<ul>
<li> <strong>public function showScore() {</strong></li>
</ul>

Can anyone help? The code and every

What Is The Recommended Method To Make A Trivia Game?
well just like the topic say's i was wondering if any1 can suggest me a good way to make a trivia game though the big question is how shuld i load the questions (with multiple answers) from flash or from txt or from asp?
any1 have recommends?
thanks in advance

Best Approach To Loading Question Data Into Trivia Game
Hello, I've built a trivia game in Flash 8 which I've hardcoded all the questions,answers and catagories into arrays. The file has alot of audio and animation which makes the publishing take a long to complete. I'd like to load the question in from an external file so I don't have republish the game each time new questions are needed. I've looked around and have seen loadVars from a .txt file but I have to reformat all the text that nonalphanumeric. There is also the option of using XML(I don't know XML yet). Can anyone point me in the right direction? Should I dig in and figure out the XML, the loadVars form a text file or is there a better way I'm not aware of yet?

Here is an example of some variable data im using. Usually 20 questions.
catagory[1] = "sports";
question[1] = "What sport does not use a round ball?";
answerA[1] = "Baseball";
answerB[1] = "Golf";
answerC[1] = "Football";
answerD[1] = "Tennis";
theCorrectAnswer[1] = 3;

Thanks,
Padraig

Flash Script? Is Writing Flash Code Possible? Without A Flash Builder Like Flash MX
I want to get into flash programming on my website, but i do not have thecash to buy flash MX 2004, it is 499 US thats a lot of money.

Basically what i want to know is, can flash be written as code, like HTML or do i need to buy a flash builder. And if so, what can i do about learning this code

Thanx from Fenton Multimedia Designs

Flash Script? Is Writing Flash Code Possible? Without A Flash Builder Like Flash MX
I want to get into flash programming on my website, but i do not have thecash to buy flash MX 2004, it is 499 US thats a lot of money.

Basically what i want to know is, can flash be written as code, like HTML or do i need to buy a flash builder. And if so, what can i do about learning this code

Thanx from Fenton Multimedia Designs

Flash Versions Order Of Sequence : Flash 5, Flash MX, FlashMX 2004?
some questions on FLash versions

After Flash 5 was FlashMX then followed by FLashMX 2004 ???

which means Flash MX is version 6??

thanks for answering.

Can You Open A Flash File Made With Flash Mx, Using Flash Mx 2004?
Hi,

I have recently purchased flash mx 2004. However when I go to open my old flash mx flies in flash mx 2004 all I get is unexpected file format! Why is this? Also when I open flash mx 2004 and try to open one of the sample files it comes up with the same message!

Also when you download and install an extension from macromedia exchange, how do you then use the extension feature in flash? Were do you find it?

Any help on these matters would be appreciated?

Thank you

How Do You Update A Flash Object Without Flash? Selling A Flash Site.
I am wondering what may be a large wonder. If I create a website with flash etc for somebody else, how can they update their own site? For example, if they have an 'updates' page, I don't want to have to keep on redoing it for them in Flash. I heard words like 'strings' and 'XML' kicking about, but don't really understand it. Thanks,

Alex

Making A Flash Website (flash In A Flash In A Flash Etc...)
I am working on a flash "database" as it's called and to make this possible I will need to have multiple flash documents that load within a flash to keep the loading time down, otherwise the filesize would be astronomical!

To see what I am working on go to http://www.axeldesigns.com/h2/helpdatabase then click "menu button" to open the project. Hopefully then you can get a good sense of what I am trying to accomplish...So when you click on the individual links, I want a flash within the main flash to load completely on top with it's own load bar and everything.

I'm not very experienced with action scripting, but I am quite experienced with the animation side of flash and drawing tools etc...

So, if anyone knows of any tutorials or examples that I could work off of, please help me out.

Alex

Will An Swf Made In Flash MX That Is Exported As Flash 4- Play On Flash 4 Cpu's?
Will an swf made in Flash MX that is exported as Flash 4- play on Flash 4 cpu's? How do I get my mx movies compatible with people who only have Flash 4???? I ask this because I exported a movie made in Mx to Flash 4, so I am just wondering if it will play on all Flash computers that have Flash 4, eventhough they may not have flash 5 or mx. Thanks...

Updating Flash 4 Code To Flash MX 2004 Or Flash 8
Can Flash MX or Flash 8 automatically update old flash code or update depreciated code? I have a flash 4 project that when resaved as Flash MX 2004, obviously starts to throw errors.

Flash 8: Button For Flash Paper In A Flash Presentation
I am new to Flash. I have a presentation I am putting together.  I need a button to open a Flash Paper (Flash Papers 2) .  

How do I do this?
Does anyone sell premade buttons?

Thanks!
 

Flash Over Html, Hide Flash Access Html After Flash Movie Ends
We've got a green screened video playing in a flash movie over top of our html content.

when the movie ends, flash uses external interface .api to call a javascript function which swaps the flash movie out with a 5 x 5 pixel flash movie (rewrites the <div>).

this works and you can interact with the html content after the flash movie in all browsers except firefox...!

anyone know of any work-arounds or is there a better way of handling flash over html in this fashion?

any input would be greatly appreciated!

HOW DO YOU CHANGE THE BG OF THE FLASH THING ON FLASH KIT W/OUT USING FLASH?
Plz tell me because I am making a little kid's website and they'll b sad if doesn't match the flash.

Yikes, Can I Go From Flash MX To Flash MX 2004 To Flash MX?
I have flash MX on my computer here at home, I went on campus to edit a file in a class in Flash MX 2004, now I am trying to reopen the file in Flash MX here at home again and it won't allow me to open it, saything there is an unexpected format error.

Is this caused from opening it in Flash MX 2004? Is there a way to revert the file back to Flash MX? Yikes!

Flash/CSS Question: Can Flash In A <div> Overlay Another <div> Containing Flash?
I'm guessing this answer is no but thought I'd ask anyway.

With the "wmode" set to transparent I can get my top div to overlay text/background images no problems but not on top of another flash movie.

Can it be done?

Flash 8 Function Not Working In Flash 8 But In Flash 9
I use this piece of Code from Senoculars Matrix Tutorial:


Code:
import flash.geom.Matrix;
function duplicateMovieClipImage(from, target){
var pics= new flash.display.BitmapData(from._width, from._height);
pics.draw(from);
target.attachBitmap(pics, 1);
}
duplicateMovieClipImage(this.viewer.picHolder, doubleSize.bigpic);
var my_matrix2 = doubleSize.bigpic.transform.matrix;
my_matrix2.scale(1, 1);
my_matrix2.tx = -2;
my_matrix2.ty = -2;
doubleSize.bigpic.transform.matrix = my_matrix2;

duplicateMovieClipImage(viewer.picHolder, normalSize.bigpic);
var my_matrix = normalSize.bigpic.transform.matrix;
my_matrix.scale(0.25, 0.25);
my_matrix.tx = 0;
my_matrix.ty = 0;
normalSize.bigpic.transform.matrix = my_matrix;
When I play this in a Flash 9 Player everything is made correct (A Pic generated in its Original Form and one in its 0.25/0.25 Size.

But when I watch this in a Flash 8 Player (8.0.22.0 that is)

the Script is ignored

any1 know why???

Firefox Recognizes Quicktime As Flash Player Instead Of Flash As Flash Player
I don't know why when I go to websites and all those old Flash sites don't work anymore, but I get the "Quicktime Question Mark" logo. I've tried reinstalling Flash Player so many times but the quicktime logo keeps coming up. I've tried this both with Firefox and Safari and it just doesn't work.

Nested Function Locks Flash On 2nd Frame. Cold Fusion Problem Or Flash MX ? Or Me?
It's been three days I don't sleep. Anybody,please,.....

// Flash MX code 2nd frame

stop();
validatePackage = new LoadVars();
validatePackage.onLoad = function() {
if (validatePackage.success == "0") {
setPackageCheck = new LoadVars();
setPackageCheck.onLoad = function() {
_root.packageCheck.text = setPackageCheck.packageCheck;
_root.unlockCheck.text = setPackageCheck.unlockCheck;
_root.gotoAndStop("exPrep");/* without this line
everything works perfectly !!!!!. WHY ! I mean I have other functions sending time line somewhere else accordint to if statments and it works fine!*/
};
setPackageCheck.accountID = _root.accountID.text;
setPackageCheck.sendAndLoad("setPackageCheck.cfm", setPackageCheck, "POST");
} else {
_root.packageCheck.text = validatePackage.packageCheck;
_root.unlockCheck.text = validatePackage.unlockCheck;
_root.vdDays1.text = validatePackage.vdDays;
_root.vdHours1.text = validatePackage.vdHours;
_root.vdMinutes1.text = validatePackage.vdMinutes;
_root.gotoAndStop("exPrep");/* without this line
everything works perfectly !!!!!. WHY !*/
}
};
validatePackage.accountID = _root.accountID.text;
validatePackage.sendAndLoad("validatePackage.cfm", validatePackage, "POST");


<--- "validatePackage.cfm"--->

<cfquery name="validatePackage" datasource="dsn">
SELECT packageCheck, unlockCheck
FROM accounts
WHERE accountID=#form.accountID#
</cfquery>
<cfif validatePackage.packageCheck lt 1>
<cfoutput query="validatePackage">
&success=0&
&unlockCheck=#urlencodedformat(validatePackage.unl ockCheck)#&
</cfoutput>
<cfelse>
<cfset vdDays=#DateDiff("d",#validatePackage.packageCheck #, now())#>
<cfset vdHours=#DateDiff("h",#validatePackage.packageChec k#, now())#>
<cfset vdMinutes=#DateDiff("n",#validatePackage.packageCh eck#, now())#>
<cfoutput query="validatePackage">
&packageCheck=#urlencodedformat(validatePackage.pa ckageCheck)#&
&unlockCheck=#urlencodedformat(validatePackage.unl ockCheck)#&
&vdDays=#vdDays#&
&vdHours=#vdHours#&
&vdMinutes=#vdMinutes#&
</cfoutput>
</cfif>

<--- "setPackageCheck.cfm"--->

<cfquery name="setValues" datasource = "dsn">
UPDATE accounts
SET packageCheck= #now()#
WHERE accountID=#form.accountID#
</cfquery>
<cfquery name="setPackageCheck" datasource = "dsn">
SELECT packageCheck, unlockCheck
FROM accounts
WHERE accountID=#form.accountID#
</cfquery>
<cfoutput query="setPackageCheck">
&packageCheck=#urlencodedformat(setPackageCheck.pa ckageCheck)#&
&unlockCheck=#urlencodedformat(setPackageCheck.unl ockCheck)#&
</cfoutput>

[MX04] Open A New Link In Html By Clicking Button In Flash (no Code In Flash).
Hi,

I'm facing problem while opening a new html window by clicking button created in flash.

For this i don't want to write single code in flash but want to handle this through the html only.

For this I have used <embed> tag to add swf file in html. but could not add click code in HTML on that button.

Could any one help me out?

Get Variables Inside Flash 9 Movie With Action Script 3 Using Flash Selenium And Sele
Dear All,


I use Selenium RC and I want to do automated flash testing. I am using Flash Selenium.


Web Application has Flash content (SWF file) and is Version 9.0 and uses Action Script 3.0.


I cant use the functions like flashApp.Getvariable(varName) or flashapp.TotalFrames() as mentioned http://code.google.com/p/flash-selenium/


I see documentation and functions listed at ( http://www.adobe.com/support/flash/p...h/scriptingwit hflash_03.html functions for Flash 5 ), i cant use them . I get exception all the time.


I am trying to access the varibales in the flash movie which is loaded using GetVariable but Selenium throws an exception but no information message.


I want to ask can I use functions listed on above adobe site with Flash 9 movie with Action Script 3.0 ? If not is there any way to get variables inside Flash movie using Flash External Interface and Selenium RC ?


Best Regards !


/ Yogesh

How Print Html Page Or Word Outside Flash When Click Button Inside Flash ?
hello,


how print html page or word outside flash when click button inside flash ?

any ideas or what the action can help me to do that ?

Remove Double Click In XP For Flash & Show Flash In Firewall Protected Environment
Remove Double click in XP for flash & show flash inside firewall protected environment


Here is some code that will disable the annoying double click feature for flash when using XP. This code also enables all viewers to see your flash. For example some firewalls block flash (SO STUPID) but with this code instead of using the embed tags and object tags allows those users behind firewall environments to see your hard worked flash masterpiece.

Okay here is how you do it.
Inside your main file that is calling the flash .swf.
Remove the code that you currently have there and replace it with the code that is inside the putInsideIndex.html (see attachment)
Make sure that you change the name of the movie in that code so that it opens your swf. You might need to change the width and the height too so that you don't have your flash looking like a monster.

Alright then you need to take the other file called RemoveDoubleClick.js
Open it in your editor and change the name to the name of your choosing on line 12. Then post that file (DO NOT RENAME IT) into the same directory as the main file that you edited above. Most cases that would be the index.html or whatever.

So enjoy and start letting EVERYONE see your sites & be more user friendly!
GOOD LUCK!

New To Flash, Create A Flash Form Which Is Emailed Using CGI Script When Submit Button Is Pressed
I'm trying to build a form in flash that is emailed using CGI script. I'm just lost and confused and I just can't seem to figure this out.

This is the CGI coding for HTML and I just need to convert it to use in CS3:
<form action="

Outputting Data In Flash To Text Documents, Creating Textdocs With Flash & Mc Filters
Question 1: How do I add a filter to a movieclip from actionscript,
More specificly, the "adjust color" filter, and I want to decrease brightness, saturation, hue, and contrast... by actionscript...
If you dont know what I mean, use the circle tool to create a circle, convert to movie clip, click the "filter" tab, then click + and add a adjust color filter, you'll see what I mean...

Question 2: I need to output text to 'text' documents, no I cannot use shared objects for this, as it is a program for a client, and it isn't safe enough for me...

Basically, this is what I want to do...


Code:
var archive:Array = [];
archive[7] = "Hello I am the 8th archive";

//save to a text document called "archive7" in the directory myProgramfiles
//finished with code...
then

on initilization of my program, it'd do this

Code:
//get text from the text document I saved in the directory "myProgramfilesarchive7"
Thats what I really need

Question 3:Is there a way to create a folder, text document, through flash
//example


Code:
var textdoc:TextDocument = new TextDocument();
textdoc.name = archive7;
textdoc.text = "Hello I am the 8th archive";
Can anyone tell me how to do this

Thanks in advance

The Flash Anthology: Cool Effects &amp; Practical ActionScript - Chapter 1: Flash Essentials
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 1: Flash Essentials"

The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 1: Flash Essenti
Notice: This is a discussion thread for comments about the SitePoint article, The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 1: Flash Essentials.
__________

eXCELLENT! clearly composed article, gonna read the other chapters too. thanks

Call Flash Function From Href Tag Within A Flash Html Text Field?
I'm creating dynamic html fields within Flash and have been succesful calling javascript functions or launching browsers, but what would REALLY be cool would to actually call Flash functions with those href tags.

Does that sound like a possibility to anybody?

Or, alternatley, could a javascript function in the web page execute a function within the swf?

Create Java Pop Up From Flash Index Site To Standalone Flash Popup
Want bad help to create a javapop up link from index.htm flash movie with a enter button that leads to the other .swf that is a popup window with another .swf. How do I do that.

One more thing is there a real good downloadable on how to make "news" scrolls in flash the ones I have seen did not please me.

And is there a way to connect that "news" feed scroller to a text dokument for easier updates instead of having to redo the thing in the .fla file

Hope you understand my problems and I would really appreciate all help I can get.

Cheers

Best regards

/s

Flash 6 Generator Equivalent To Export Dynamically Populated Images From Flash
I'm trying to do an automatic export of graphics developed in flash, for static site elements- graphic buttons.
Generator used to export images from dynamically populated templates, but MX does not support generator, Also being that generator ran with 4 and 5, dynamic text field sizing was not an option-this is necessary to fit the button graphics to text.

Is there either something that I can generate buttons with flash, or has anyone seen a button generator that can batch export and use imported graphics?

Thanks in advance!!!

Copyright © 2005-08 www.BigResource.com, All rights reserved