See Related Forum Messages: Follow the Links Below to View Complete Thread
Setting Layers Visible/not Visible
Next thing I'm adding to my game is a base that you can upgrade. What I want to do is create a MovieClip that is an instance of a Base class. Each layer in the MC will contain an upgrade. When you purchase an upgrade the corresponding layer becomes visible. Otherwise the layer is not visible.
Is it possible to change the visibility of MC layers via AS3? If not, any suggestions on how to accomplish what I'm trying to do?
If this is possible, will a layer that is set to not visible still be contained in the hit test? For example, one upgrade is an outer wall that surrounds the base. Every time a zombie hits the wall, the wall loses health. If I have not purchased this wall will the program still register the zombies hitting the base at the point that the outside wall would exist.
Thanks in advance.
How To Make Layers Visible/invisible
Hi there!
at first i have to say i am from germany and have been out of school for a couple of years, so my english is probably not be the best, nevertheless, i hope you'll understand me.
ok, here we go:
i have made a map in FlashMX and the rivers, towns and borders are on single layers.
i´d like to have 3 checkboxes under the map so that you can choose "only show rivers / towns / borders" or a combination of all.
it is supposed be like the function you have in fMX but in the final movie (or document, however you want to call it).
i´ve visited a lot of tutorial sites but i haven´t found anything!
now i've come to this board and i really hope that somebody here can help me (or tell me a better solution)
so far, greetings!
Layers Visible Outside Document Area
I've created a Flash MX file and have artwork moving into the document area from outside of the document area (in the grey area).
When I publish the .swf or .exe file and load this into an html web page the file is showing not only the document area but the artwork outside this area which is supposed to be hidden.
The problem I have is that the layers that are showing outside the document area are within a layered folder and also using motion guides - so I can't mask them. Or I can't seem to anyway....
Any ideas?
The only way I can explain what's showing is if you publish any flash file then play the .swf file but stretch the window area you will probably see artwork outside the document window. This is what's happening.
Would appreciate any advice
Make Layers Visible/unvisible
We have a flash project, and it is related to some modifications of the text.
Unfortunately, I'm not working only for myself, I'm just a coder. Designer prepared all the staff, everything in MC as needed, but inside movieClips there are more than 10 layers, and sometimes not all of them needed to be shown.
Unfortunately, objects in that movieClips are just drawings.
Because, there are hundreds of that staff, is it possible to make the total layer invisible/visible programmatically?
("make everything mc" is not a solution :( )
Digging in help, found this:
The following example makes all objects in the first layer invisible:
fl.getDocumentDOM().getTimeline().layers[0].visible = false;
but it is working only in mx version. Need something similar in as3 or at least as2.
How To Make Layers Visible/invisible
We have a flash project, and it is related to some modifications of the text.
Unfortunately, I'm not working only for myself, I'm just a coder. Designer prepared all the staff, everything in MC as needed, but inside movieClips there are more than 10 layers, and sometimes not all of them needed to be shown.
Unfortunately, objects in that movieClips are just drawings.
Because, there are hundreds of that staff, is it possible to make the total layer invisible/visible programmatically?
("make everything mc" is not a solution :( )
Digging in help, found this:
The following example makes all objects in the first layer invisible:
fl.getDocumentDOM().getTimeline().layers[0].visible = false;
but it is working only in mx version. Need something similar in as3 or at least as2.
Layers Visible/ Invisible From Button Clicks?
hi all,
i have a project going at the moment that builds a room, progressively adding equipment on a button click, which really only moves the movie one scene forward to where new layers with the desired equipment appear.
pretty basic stuff, but what i would really like to do is to be able to click on an instance of the button in subsequent scenes to toggle between showing cetain layers and hiding them so people can turn a piece of equipment on or off.
is this possible?
thanks, jeff
[F8] Layers Invisible + Visible Explaining In Text... :D
Hi have an idea for a flash movie image viewer the thing i want is the following:
bottom layer = html page
1st layer = jpeg image
2nd layer = transparent layer (that covers the jpeg image outside the circle)
3rd layer = cirkular shape (mc)
i want the jpeg image to be visible inside the cirkular shape but not outside it and i want the html page to be visible outside the cirkular shape. because its an image viewer i must be able to change the image and therefore i cant shape the image to the circular shape all the time.
Hope i was able to explain the problem and that someone have a nice solution or tip..
Problems With Video (flv) One Time It's Visible...
hi
I have some problems about video (flv)
THAT WORKS (code within a button)
on (release) {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
film.attachVideo(netStream);
netStream.setBufferTime(5);
netStream.play("mov_flv/mizzi_ohne_ton.flv");
mySound = new Sound();
mySound.attachSound("mizzi");
mySound.start(0, 1);
trace("netCon");
this is ok, video is playing and sound also
but if I use the following code (in a frame with the button named: myFilmAb)
_root.myFilmAb.onPress = function() {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
film.attachVideo(netStream);
netStream.setBufferTime(5);
netStream.play("mov_flv/mizzi_ohne_ton.flv");
mySound = new Sound();
mySound.attachSound("mizzi");
mySound.start(0, 1);
trace("netCon");
};
I can't see the video
sound works and the trace also but just the video I do not see
please help in german forums nobody could help. they said only that this is curios cause the code would be correct
?????
Keeping Symbols Visible For A Long Time?
How do I keep a symbol visible for a long period of time (forever, even), without having to create a keyframe several hundred frames into the timeline? I understand creating movie clip symbols, so I don't have to recreate the animation over and over, but now I need to just keep the movie clip symbol visible for X amount of time. Action script perhaps (like a command to make layer X visible from 10:00 to 10:20 or something)? And if so, a quick how-to please?
Thanks!
How To Move A Whole Bunch Of Layers At The Same Time
Hey everybody, i have this problem, i did a movie in flash, but i forgot to set the movie dimensions before starting. Now i have to move all my layers with their respective animations to a certain area to fit the correct movie dimensions.
I tried to do it by highlighting all the layers and moving them but it didnt work, some layers move some don't and whats worse, in some of the layers where i used tweening it all got messed up, the tweening goes from the old position of the movie to the new one.
Little help please.
Moving 3 Layers In Flash At The Same Time...
I have three layers filled with movieclips and twins. I want to reposition all 3 layers at the same time (so they stay at their current position in relation to the other movieclips). When I say reposition I mean move all of the movieclips in the frames (in the 3 layers) around the canvas. I dont actually want to move the frames in the layers, i just want to change the position of the movieclips on the canvas, within the 3 layers. DOes anyone know how to highlight all of the movieclips (and tweens) and movie them all at the same time? Thanks for the help.
Mike
Moving 3 Layers In Flash At The Same Time...
I have three layers filled with movieclips and twins. I want to reposition all 3 layers at the same time (so they stay at their current position in relation to the other movieclips). When I say reposition I mean move all of the movieclips in the frames (in the 3 layers) around the canvas. I dont actually want to move the frames in the layers, i just want to change the position of the movieclips on the canvas, within the 3 layers. DOes anyone know how to highlight all of the movieclips (and tweens) and movie them all at the same time? Thanks for the help.
Mike
Loading Movies At Run Time On Separate Layers
I was wondering if any one knows if it is better to load a complex animation all at once in one movie, or to load lots of separate movies at runtime in to one movie on different layers.
The reason i ask is i am wondering if loading them at run time is more processor intensive, and would cause slow down. A collegue of mine has created a movie that loads all the movies at run time and we are encountering slow down, after removing things such as gradients and excessive animation frames etc, slow down still occurs, could this be the reason why?
Simply Making Layers Longer In The Time Line
This is driving me mad..
In flash 5 when you have a 1 frame movie on the timeline and you want to make it longer you just grab the end of it press alt and pull
in flash6 and 7 it leaves a key frame at the end..
also when you go to pull the ends of the movies in the timeline it just show a black selection mark and dosent move them..
what have they done!
I've looked over the help files and cant find a thing.
It's like it's so simple they havent bothered to document it..
or am i so simple i just cant find it!
please help!
Visible=false / Visible=true Not Working For Buttons
I have a button when pressed loads a movie into a level above the root. I put this code on the button and it works fine.
on (release) {
loadMovieNum("links.swf", 1);
_root.button1._visible=false;
_root.button2._visible=false;
_root.button3._visible=false;
}
Unloading my movie from level 1, however, I have this...
on (release) {
unloadMovieNum(1);
_root.button1._visible=true;
_root.button2._visible=true;
_root.button3._visible=true;
}
This is not working and I'm ready to freak out. Does anyone know what I'm doing wrong? I just don't want the buttons from the root to be active under level 1.
My kingdom for any help
Help With Visible=true/visible=false Animated Movie
in my main timline
action layer:
PHP Code:
stop();
_root.attachMovie("mcNavi","mcNavi",1);
mcNavi._visible=false;
_root.attachMovie("mcContact","mcContact",2);
mcContact._visible=false;
in another layer labeled buttons, one button "Contact Us" has the following script:
PHP Code:
on(release){
mcContact._visible=true;
mcContact._x=115.8;
mcContact._y=165.3;
mcNavi._visible=true;
mcNavi._x=459.6;
mcNavi._y=29.1;
}
in the mcNavi movie clip there is a button labeled Close Window with:
PHP Code:
on (release){
_parent.mcNavi._visible=false;
_parent.mcContact._visible=false;
}
all the movies can be seen when needed however, once you click "Contact Us" to see mcContact and click "Close Window" to remove it, then every time you open "Contact Us" to see mcContact it won't show the animation, it will only show the end frames.
how do i get around this. is there other actionscript i should use for animated movie clips other than:
visible=false; and visible=true;
??????
[mx] Dynamic Text On WWW Not Visible (visible On Local Machine)
Thank you for reading this. I hope you can help me.
I have an mp3 player (learned from the Golden Mean) that works great. It loads text from an xml file that displays the track name (list of tracks available from xml file) and gets the track path. I've successfully edited it to now display lyrics/song notes as well. These visual displays are listBoxes with scroll bars. It also displays song length and current position (h/m/s) in dynamic text boxes.
I've edited the source and have a small compact player, a single player (one song only, if you will), that reads the xml file and displays the song length and current position, plays the song, but I'm not happy with the display fo the track title. I don't need a scroll bar for a single song, and I can't get rid of it.
What I am trying to do is load the song title from either the xml file or a simple text file and display in a dynamic text window. I've done it, tested the movie, and published the movie. These all work great. I can see everything in the swf by itself, and I can see everything when I call the html that has the swf embeded. I upload it to our intranet server and everything works as expected except the song title in the Dynamic Text box: I get nothing. Song plays, position and duration show fine.
I have done a search here in the forum and come up with a few possible solutions, none of which work for my situation:Paths correct? (yes, everything is where is should be relative to the swf file - in the same directory)
Mime type (server servers swf - the mp3 player works except the title)
Embed font (yes, I have embeded outline for all)
Font type is the same as the currently working duration/position and larger movie's title
I am using the same machine to view the file locally and the remote file (do I have to code multiple files for different platforms???)
Failure is consistent with every viewing machine available to me: Windows (XP, 2000), Fedora (core 1 & core 4), Redhat 9 and cross browser: Opera 8, Netscape 7.1, Firefox 1.0.4, Explorer 5 & 6, Mozilla 1.0.
I've been trying without success to google answers, and searching multiple fora. I thank you in advance for any help you might offer,
JW
Why Does A Draggable MC Become Visible Where The 'make Visible' Button Is Clicked?
Hello, i have a MC which is draggable and controlled by the code below.
The first time the user opens the draggable mc, it is positioned nicely on the screen (where i have placed the instance of the MC, then made it invisible).
But if the user closes the draggable MC, then click on the 'open' button, it appears where the user clicks the button.
This looks very ugly.
How can i tell the MC to become visible where the initial MC is placed on the screen?
code i'm using
Code:
largeimg._visible = false
largeimg.onPress = function() {
this.startDrag();
if (this.closeMC.hitTest(_xmouse, _ymouse, true)) {
this._visible = false
largeimg.gotoAndPlay(1)
}
};
largeimg.onRelease = stopDrag;
The window is reopened when a button is clicked
Code:
enlarge.onRelease = function() {
_root.largeimg._visible = true
_root.largeimg.gotoAndPlay(2)
}
Thanks a lot for any help in advance
Can A (mc, Visible,false), Make It Self (mc,visible,true)?
Hi...Im just playing around here
I have _level0.variable=false... when the user clicks a button it sets _level0.variable=true... I have movies loaded through out the levels waiting for _level0.variable=true i get them to work fine in their actions ... but then I have a mc that is not visible and I want to make visible but from its own script
onClipEvent(load){
setProperty(_level0.mc, visible,false);}
onClipEvent(enterFrame){
if (_level0.variable==true){
setProperty(_level0.mc,visible,true);}}
I get it to work, when I have the script in the buttons actions directly
on(release){
setProperty(_level0.mc,visible,true);
but I'm just wondering if it could be done inside the actual mc... all instances are named property.
thank you
Visible Not Visible On Button Controlling Mc
I am trying to make a movie clip visible or invisible useing a button. I want the button to check and see if the mc is visible if it is than make it disappear. If it is not visible make it appear. The is the code that I have on the button and it does disappear, but not reappear. Please help, I know this code looks horrible, but I am winging it.
on (release) {
pt._visible = false;
if (pt._visible=false) {
} else {
pt_visible = "true";
}
}
Visible.false Objects Are Visible
Hi,
I currently have 16mc's all labeled something_found somethingelse_found and somethingelseagain_found they all start as visible=false; then as you progress they appear one by one using if statements, which is working perfectly. My problem is that when I enter the frame sometimes all these not visible items flash up (which kind of defeats the purpose of the game). They are the first thing after the stop(); action and it doesn't happen every time. I've put the visible=false; part in the actions layer within the frames they appear in. If I put it into the maintimeline would it help the problem and if so how do i direct the timeline into finding them, when i've tried MovieClip(root).map_mc.something_found=false; it hasn't found it.
any suggestions would be greatly appreciated I feel like i've been going round in circles copy pasting code in and out of every layer and frame and getting no further.
Merging Layers Or Scanning Layers Into Image
Hello all. Been awhile since I've been to the FlashKit forums, but I'm learning something new.
Anyway, I've been programming in AS1 and AS2 for awhile and just recently started learning to do AS3. To start my learning progress I'm making a drawing program...
So far I just have draw and erase functions. Every time you "draw" it creates a new Shape object to draw on. This way if I want to add "Undo" I just go through and delete the new Shape object one by one. When you erase it creates a layer above the last draw area with a blend mode of "erase". So pretty simple.
The problem I have so far is that after drawing and erasing a bit it starts to get laggy as all the layers pile up on top of each other. When I add an undo function I will only have 10 steps of undo so to reduce overhead. But even without undo the extra layers are needed to be able to erase part of the drawing and then draw over where you erased.
So this brings me to my question. Is there a way in AS3 to merge together multiple layers or Shape objects? So after so many layers are created by drawing and erasing I can merge them into one flat one to reduce the processing needed.
I was thinking maybe I could do this though scanning the pixels on the clip contaning all the layers? I know I worked with saving images in Flash 8 before, but not sure how this works in AS3. I hear it's faster, hopefully fast enough to not have to wait 5 minutes every so many times you draw in my program.
And here's the code I have so far:
code:
var drawArray:Array=new Array();
var layerClip:MovieClip=new MovieClip();
var drawArea:Shape= new Shape();
this.addChild(layerClip);
layerClip.addChild(drawArea);
layerClip.blendMode=BlendMode.LAYER
drawArray.push(drawArea);
var drawLayer:int=0;
var prevX:int=0;
var prevY:int=0;
var erase:Boolean=false;
function runDraw(event:MouseEvent) {
drawArray[drawLayer].graphics.curveTo(prevX, prevY,(prevX+drawArray[drawLayer].mouseX)/2,(prevY+drawArray[drawLayer].mouseY)/2);
prevX=drawArray[drawLayer].mouseX;
prevY=drawArray[drawLayer].mouseY;
event.updateAfterEvent();
}
function startDraw(event:MouseEvent):void {
if (erase) {
drawArray[drawLayer].blendMode=BlendMode.ERASE
drawArray[drawLayer].graphics.lineStyle(6, 0x990000, .75);
}
else {
drawArray[drawLayer].graphics.lineStyle(2, 0x990000, .75);
}
drawArray[drawLayer].graphics.moveTo(drawArray[drawLayer].mouseX, drawArray[drawLayer].mouseY);
prevX=drawArea.mouseX;
prevY=drawArea.mouseY;
stage.addEventListener(MouseEvent.MOUSE_MOVE, runDraw);
}
function stopDraw(event:MouseEvent):void {
stage.removeEventListener(MouseEvent.MOUSE_MOVE, runDraw);
var drawArea:Shape= new Shape();
layerClip.addChild(drawArea);
drawArray.push(drawArea);
drawLayer++;
}
function toggleErase(event:MouseEvent):void {
if (erase) {
erase=false;
}
else {
erase=true;
}
}
stage.addEventListener(MouseEvent.MOUSE_DOWN, startDraw);
stage.addEventListener(MouseEvent.MOUSE_UP, stopDraw);
eraseBut.addEventListener(MouseEvent.CLICK, toggleErase);
Turn Selected Layers Into Guide Layers?
i had 3 layers selected... went to trash them and somehow the were turned into guide layers... this would be great if i could find out how it happened. rather than turning one at a time into a guide.
Anybody know how?
Importing AI Layers As Flash Layers
Is there a way to import Illustrator layers as Flash layers. Most of the time I export my Illustrator file as a swf then import it into flash. Then One by one I have copy an object...delete...then make a new layer and past it in place..
[F8] Layers ... Oh, GOOD LAWD, Layers
Greetings, Flash Gurus and Gurus-to-be,
i am mocking up a site, which can be found at HERE
The only links operational are Catering and King Cakes, and are only operational if you REFRESH the page. i know i am lacking a preloader, i have it built, but am not wasting time with it right now.
As you can see from the example, i have our little Butcher Guy off to the left, and for each "department" of our organization, i would like to dress him for the part. i want our butcher guy to fade in and out, and in the case of the King Cake page, i would like our logo and the Italian flag on the left to change into the traditional Mardi Gras colors in all their gaudy splendor.
My problem lies in the fact that my men seem to be piling up on one another, as does my Italian and Mardi Gras flags.
If i use "index.html" to load "Master.swf" (which is the initial, fade in page), and master.swf has inside of it, actionscript to load "MasterMardiGras.swf", (which is the King Cake page), how would i go about getting control and order in here?
Copies of the swf files are here:
http://img150.imageshack.us/my.php?image=loaderjw0.swf
http://img124.imageshack.us/my.php?image=masterqz4.swf
http://img145.imageshack.us/my.php?i...rdigrashh8.swf
http://img388.imageshack.us/my.php?i...ateringur4.swf
http://img125.imageshack.us/my.php?i...tercafety3.swf
Thanking you, i am, for your great, overflowing keg of knowledge!
Question About Controlling Layers From Other Layers
Is it possbile to create an action in a loaded movie in layer1 that will tell the movie in layer0 to go to a specific frame and start playing?
Another question I have is, can you load a movie into a container or layer and have it start, not at the begininning, but at a specific spot in the loaded movie's timeline?
Hidden Layers Vs Guide Layers
I often have things on a layer that I don't want to see while I'm working on another layer and frequently testing and tweaking and I used to just have those hidden in the timeline and they would publish. And if I didn't want a layer to publish, I'd make it a guide. In CS3 it seems that those hidden layers won't publish (though at times I've had them publish for me in certain files, but I don't know why).
Is there a setting I can choose to make hidden fields publish like they did prior to CS3?
Action Scripted Layers Always Act As Top Layers?
I used this snow effect from kirupa...
<A href="http://http://www.kirupa.com/developer/mx/snow.htm
However, the snow effect always acts like the top layer, ok what i mean is, i have 3 layers, (1)toplayer= a car, (2)middle= snow, (3)low= background.
I want to make the snow to be seen behind the car...i hope you understand what i mean , whenever i put the code from the link above it acts as the top layer and appears in front of everything.
Any help is appreciated...
Oh Layers..layers...I Hate Da Layers
HI!
so there is some hair on the floor, and some bald patches in my head...big deal!
anyways...at the moment my movie is kinda messy, but something is happening that really annoys me!
i have this mc that loads into a target..and then you click button2 and this loads mc2 into the target, ok fine!
BUT, what is buggin´me, is that when you click, say, button3, to load mc3...you see like whats underneat...on the very bottom layer...and i dont want that to happen....i want there to either be nothing...or atleast show the previously loaded mc...but not the very bottom.....
how can i solve this guys??
thanks very mucho! adios
Record The Date & Time Each Time The Flash File Is Played
Hello,
Do you know an action script which will be inserted into each flash
file that is played on a stand alone display monitor.
The display monitor plays several separate flash files using load an un load movie. The script should do
the following:
1. Record the date & time each time the flash file is played
2. Record the file name that played
3. Append this information to a text/log file
This application would be used in-house and is not for the web. I did check out this tatorial useing XML but I counldn't get it to work.
Saving XML to a file when used locally
Saving xml to a file when used locally can be done in two ways, the first is this:
Cookie.setCookie(xmlobj)
and the second way is this:
yourxmlobj.toString() FSCommand("save","filename.xml")
Can you Please give me some kind of direction
Thanks!
Submit Button Doesn't Work First Time, Does Second Time (using Variables And Php)
I've got a button with the following actions:
code: on (press, keyPress "<Enter>") {
if (!enterEmail.length || enterEmail.indexOf("@") == -1 || enterEmail.indexOf(".") == -1) {
EmailStatus = "Please enter an E-mail address";
} else if (!FirstName.length) {
EmailStatus = "Please enter your first name.";
} else if (!LastName.length) {
EmailStatus = "Please enter your last name.";
} else if (!enterCity.length) {
EmailStatus = "Please enter the city/province/country in which you live.";
} else if (wanna = 1) {
loadVariablesNum("emailtest.php", 0, "POST");
EmailStatus = "sending form ... please wait";
output = "I would like to be a part of World of Trout's mailing list!";
loading = "YES";
nextFrame();
}
}
Which connects to this php script.
PHP Code:
<?php
$msg = "";
$user = "myusername";
$password = "";
$db = "test";
$link = mysql_connect("localhost", $user, $password);
if (!$link) die ("cant connect to mysql");
mysql_select_db($db, $link) or die ("cannot connect");
$query = "SELECT email FROM tablename WHERE email='$enterEmail'";
$result = mysql_query($query) or die (mysql_error());
if(mysql_num_rows($result)){
echo "&EmailStatus=A person with this email address has already entered.";
}
else {
$name=$FirstName." ".$LastName."";
$city=$enterCity."";
$email=$enterEmail."";
$subscribe=$wanna."";
print "&name=".$name;
print "&city=".$city;
print "&email=".$email;
print "&subscribe=".$subscribe;
print "&loading=NO";
}
?>
Here is my problem: if you hit the above mention button once, it spits out the EmailStatus message, but appears to do nothing else. No loading=Yes, no nextframe(). Tthe script is supposed to spit back the loading=NO message, which will take my movie to the appropriate frame, which it does not.
However, if you hit the button a second time, it functions normally, and does everything it is supposed to including recieving the loading=NO message, which moves my movie to the appropriate frame.
To make it simple: I hit the submit info button once, it doesn't function properly, if I hit it again, it works properly.
Is my scripting wrong, my php wrong, or is my server doing something weird?
Hopefully this all makes sense...
Random Movies Each Time The Browser's Refreshed (this Time With .fla)
Hello, all...
I found a tutorial on this subject earlier on, but the e-mail address of the person who wrote it is invalid. I've got flash files attached.
All I'm trying to do is create a movie for my web site's front page which will load and play a different movie each time the browser is refreshed. Right now all I see is all the movies loading at the same time.
Flash files attached...any ideas on how to adjust the actionscript to let only one movie play each time the page is refreshed?
Thanks in advance. Here's the main.fla...
Movie Clip Differs From Time To Time By One Pixel
I am duplicating a movie clip and sometimes it has a 1 pixel line underneeth it.
Can someone tell me why this happens/how to prevent it from happening?
Attached you see a magnified screenie of the thing.
Differnt Points In The Same Time Line Running At Same Time
Hi guys,
I have a wierd one here and I'm really hoping someone can help because I am totally stuck. Pls bear with me as this is quite difficult to explain
This is the background.
My app is a quiz game, it pulls questions from an ASP page, once the questions are pulled the quiz begins.
The main movie lasts 30 seconds and all the main movie does is pull the questions, then display the number of seconds left in the game as its timeline moves along.
The questions and answers are all handled by a submovie.
The submovie will display a question, the user has 10 seconds to answer. The answer is processed on an answer Frame, which is 10 seconds into the question timeline. After 10 seconds if the user hasn't answered then the answer Frame will display anyway and mark the answer as wrong. If the user selects an answer then the timeline will jump to the answer Frame, and skip the remaining number of seconds left. The answer frame is the last frame in the sub movie, after this frame the sub movie repeats and asks the next question.
My problem is that, say for instance, the user selects an answer in the submovie after 5 seconds then the submovie jumps to the answer frame, the answer is processed and that works fine and the next question is loaded. HOWEVER after a further 5 seconds (when the question would have naturally come to the answer frame on the timeline) the same answer is re-processed. I have lots of trac() commands s in my script which suggest that this is whats happening, but I have no idea why, or how to stop it.
In summary it seems to me that differnet points in the same time line are running at the same time. Is this possible?
Any help is much appreciated :-)
Setting A Modify Time Stamp // Update Time.
dear gang
as most of you know theres a little way to set a current date, in a rich text file. and get that info in the text file into flash.
or even just type in the latest modified date into the textfield
but i was thinking maybe there is another way, strictly in flash. with code.
now i was wondering if there was a way to set the last modification date directly in flash with the getDate instructions.
i want to use this to display the latest update time.
i know there are numerous way to accomplish this with text files / php.
but i'd like to know if theres a way in flash
Flv Player. Show Duration Time And Time Played
Hi guys,
i am tinkering about with the flv player player.
I am trying to get the time(length) and time played to display.
From what i see the metadata.duration only displays in seconds.
Does anyone know the code to turn this into a properly displaying formatted time for the flv?
Thanks
Paul
Clock Showing Server Time And Different Time Zones.
Hey all,
I have a clock that shows time according to local pc time but i want it to show according to the server. I have referred to all the Forum threads for the same but couldn't get it done. Is there any server side script to be written..if yes i can't cause i don't know any sever side scripts.I M a Designer and not a Programmer yet i can do action scripting a bit...if anyone can help please thanks in advance
whenever i change the time on my pc the time displayed gets changed.
Here's the code:
MyDate = new Date();
hours = MyDate.getHours();
minutes = MyDate.getMinutes();
seconds = MyDate.getSeconds();
hourAdjust = 0;
hours = hours+hourAdjust;
if (hours>24) {
hours = 0+(hours-24);
} else if (hours<0) {
hours = 24+hours;
}
tellTarget ("hours") {
_rotation = ((../:hours*30)+(../:minutes*.5));
}
tellTarget ("minutes") {
_rotation = ((../:minutes*6)+(../:seconds*.1));
}
tellTarget ("seconds") {
_rotation = (../:seconds*6);
}
gotoAndPlay(1);
Also can we pass an external value for .getHours(); syntax from an html?
Please help it urgent..
Flv Player. Show Duration Time And Time Played
Hi guys,
i am tinkering about with the flv player player.
I am trying to get the time(length) and time played to display.
From what i see the metadata.duration only displays in seconds.
Does anyone know the code to turn this into a properly displaying formatted time for the flv?
Thanks
Paul
Visible
Hi!
How can I modify visibility of text in one MC that is inside an other MC from one button?
I think it´s using _root.Mc1.Mc2.... AND???
Thanks!
Visible =0?
How come this doesent work?
on (release) {
setProperty (_root.genua, _x, 100);
setProperty (_root.genua, _y, 100);
_root.genua.gotoAndPlay(2);
if (_root.genua._visible=0) {
setProperty (_root.genua, _visible, 1);
_root.genua.gotoAndPlay(2);
}
}
i have a mc called genua and when clicked first time it aint no problems.. but in genua i have a "close" button that says:
on (release) {
setProperty (_root.genua, _visible, 0);
}
and after i press the first script again mc genua wont show.. how come?
MC NOT Visible
Hi,
I try to load some MC’s. At the load time, I want to make the clips invisible.
OK, here my code
Frame1:
attachMovie("test1", "test2", 0);
loadMovie ("Test1.swf", "_root.test2");
_root.test2._visible = false;
But the MC is visible!!!!
I have already tried to give the “_root.test2._visible = false;” statement onto frame2, but that also NOT work -> still visible!
The only think, that works, is, if I give the statement “_root.test2._visible = false;” on a button release event!
Why can I NOT make the MC invisible at the load time??? I think, the MC isn’t ready loaded, is this right???? If YES, what can I do???
Thanks
David
|