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




[MX04] 3rd Time Asking No Solution Where's Swak?



Hello everyone, swak was very nice to fix my problem of hitTesting multiple for loop variables. I was happy that the hitTesting with walls works...but only part of my problem was fixed.

The other part is why are my ghosts moving 15X slower, and why does the movement and animation of the ghosts look so bad? Even pacman's animation looks bad when i am using this code:

Heres the swf for that has this code: http://trickamasters.webs.com/upload...on%20loops.swf


Code:
onClipEvent (load) {

function hitGhosts() {

numGhosts = 40;

for (var n = 0; n<=numGhosts; n++) {

wallNum = 50;

ghostA = _root.background["ghost"+n];

if (ghostA.speed eq "+") {

ghostA._x += ghostA.moveSpeed;

} else if (ghostA.speed eq "-") {

ghostA._x -= ghostA.moveSpeed;

}

for (var i = 0; i<=wallNum; i++) {

walla = _root.background["walla"+i];

wallb = _root.background["wallb"+i];

if (ghostA.hitTest(walla)) {

ghostA._x += ghostA.moveSpeed;

ghostA.speed = "+";

} else if (ghostA.hitTest(wallb)) {

ghostA.speed._x -= ghostA.moveSpeed;

ghostA.speed = "-";

}

}

}

}

}

onClipEvent (enterFrame) {

hitGhosts();

}
How do I make the animation/movement look better? And how do I fix the problem of the ghosts and pacman moving like 15X slower?

Please help... Nobody responded for a week, and this is the third time asking to fix one problem...

Heres the SWF, if you want the fla file, look at my last thread (below)

You can look at my last thread and compare the swfs and use help me fix my problem by using the fla file located here:

http://board.flashkit.com/board/show...32#post4022332



FlashKit > Flash Help > Flash ActionScript
Posted on: 03-10-2008, 03:58 PM


View Complete Forum Thread with Replies

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

[MX04] Urgent Need For Simple Solution
This has got to be simple but I just can't figure it out. I have some code that I found, The Dominey Code (attached) that loads images dynamically. It works great for cross fading images. What I would like to do is add a caption to this and when the image loads the caption loads also and fades away along with the image. Sounds simple right? Please can someone help me as soon as possible.

Daylight Savings Time - Possible Solution ?
Ok ... This problem has always puzzled me - and I may have come up with a solution for it ... unfortunately, I can't test it properly ..

I am in the US ... and when I set up a normal clock display - it displays correctly in my time zone (EST or GMT-5) ... But, it is during daylight savings time in Australia at the moment (and many other countries) .. And the clock always displays an hour slow ...

I know this is a known bug, and I've searched the forums here and didn't find any solution ... so, I wrote one ... I've had friends in Australia check the clock - and it does in fact display the time correctly - as well as displaying the time correctly for me ... So, I think it is working ... Although, I'm certainly not a scripting expert - so, if someone would like to run through the code - I'd appreciate any feedback.

here it is :


Code:
TimeDate = new Date ();
dls = "no";
if (int(TimeDate.getMonth())=="10"){
dls = "yes";
}
if (int(TimeDate.getMonth())=="11"){
dls = "yes";
}
if (int(TimeDate.getMonth())=="0"){
dls = "yes";
}
if (int(TimeDate.getMonth())=="1"){
dls = "yes";
}
if (int(TimeDate.getMonth())=="2"){
dls = "yes";
}
if (int(TimeDate.getTimezoneOffset())=="-540"){
thisTime = dls+"_aus";
}
else if (int(TimeDate.getTimezoneOffset())=="-600"){
thisTime = dls+"_aus";
}
else if (int(TimeDate.getTimezoneOffset())=="-660"){
thisTime = dls+"_aus";
}
else {
thisTime = dls+"_usa";
}
if (thisTime == "yes_aus"){
hours = int(TimeDate.getHours()+1);
}
else {
hours = int(TimeDate.getHours());
}

mins = TimeDate.getMinutes()
secs = TimeDate.getSeconds();
ampm = "AM";
if (hours>12)
{
hours -= 12;
ampm = "PM";
}

// maintain double digits
if ( hours < 10 ) {
hours = "0" + hours
}
if ( hours > 12 ) {
hours = hours-12
}
if ( mins < 10 ) {
mins = "0" + mins
}

if ( secs < 10 ) {
secs = "0" + secs
}
timedisplay = hours+":"+mins+":"+secs+" "+ampm;



So .. It checks the month first ... and if it is during Australian daylight savings time (November - March) - it changes the dls variable (daylight savings) to "yes" ... Ok, that part was easy enough ... Then it has to check for the timezone offset (which for some reason is a negative number when checking for GMT+10 - Melbourne, Sydney, etc.) ... So, if it is in that time zone - it adds 1 to the hour ...

Like I said, it works like it is supposed to .. but I can't really check it until After daylight savings time has ended -- because when I set my time zone to GMT+10 - and set the month on my system to June or something -- the time is not automatically updated to adjust for daylight savings time (and Windows says that it won't update if the date is incorrect) ... very odd.

Here is an example -- if you are in Australia - it should display the correct time (as well if you are in the United States) ...

I did not set it for all the problem zones - only Australia.

http://www.house6.com/tutorials/exam...l_example.html


(by the way - the clock was all done in SWiSH)

Thanks,
Brian

[MX04] Get The Time Function
is there a way to make flash get the time and split it into 3 seperate numbers, hours minutes and seconds? or im fine with just hours and minutes help please!

[MX04] Time Delay Not Stopping
Help.

I have a main timeline with buttons. Each button goes to a specific frame in the timeline.

In the first frame only is a Movie clip. This movie clip (movie1_mc) is an animation that uses functions to pause in its own timeline for a few seconds. Thus, the animation will play until it reaches a pause function, waits 6 seconds and plays onto the next pause function.

However, I cannot get this animation to stop when I am in the main timeline. I'd like it to stop when a button from the main timeline is used to advance to a frame in the main timeline.

For instance, if I my button advances me to frame 10 in the main timeline, all is fine until the movie1_mc starts playing again. It will pop into view and run a random speeds.

Below is the script used in frames within the mc.


function hold() {

gotoAndPlay("two");

clearInterval(delayID);

}

var delayID = setInterval(hold, 6000);
stop();


Any help is appreciated.

[MX04] Button Text Missing The First Time.
Hi there.

I'm new to flash, and have come across the following problem, and can't seem to resolve it. It's really urgent that it's fixed ASAP. Can someone help me please?

If you go to www.apollosci.co.za, the flash intro, at the bottom. The tab's text is missing. But when you go to another page, then go back to the flash intro page, the text shows. It's just the first time that its gone. And of course, the first time is the crucial part.

I have tried different routes to fix this, by changing the character length, trying different codes in the menu.txt... but nothing seems to work. And as I mentioned above, I'm quite new to flash and code.

[MX04] How Do I Import A Quick Time Movie?
I wish to load my quick time into a flash document, already tried to import into library and external library. It works, but not if I publish it in html. Any tips? Thx!

[MX04] LoadMovie() Playhead Time/total Duration
Hi, does anyone know how to get the playhead time a total duration of a swf which has been imported into an empty movie clip using the loadMovie() function in actionscript 1.0

[MX04] Urgent My Buttons Don't Display Text The First Time.
Hi there.

I'm new to flash, and have come across the following problem, and can't seem to resolve it. It's really urgent that it's fixed ASAP. Can someone help me please?

If you go to www.apollosci.co.za, the flash intro, at the bottom. The tab's text is missing. But when you go to another page, then go back to the flash intro page, the text shows. It's just the first time that its gone. And of course, the first time is the crucial part.

I have tried different routes to fix this, by changing the character length, trying different codes in the menu.txt... but nothing seems to work. And as I mentioned above, I'm quite new to flash and code.

I'm using MS Front Page to upload the website.

[MX04]Audio And Video Gradually Grow Apart Over Time
Hey, I have a longer animation, about 9 minutes long. When I publish it in Flash Player 7, the video gradually slows down and the mouthing gets more and more off. Near the end, the sound is over by the time the mouthing starts.

This is quite frustrating and I don't feel like moving the each bit of audio back 10 frames.

[MX04] Imported SWISH Movie To Flash Doc And Only Want To Loop 1 Time Within My Movie
I have a flash movie that I am working on. This is my situation:

- I brought a movie from SWISH max to create an effect to this one tag line
- I exported that movie and imported it into a flash mx 2004 document
- When I preview it dont stop looping!
- I tried creating a setting for it on the SWISH application that says "stop playing at end of movie" but i think it overrides that once its brough over to Flash MX.

Any suggestions how I can take care of this problem withi flash? Thanks!

[MX04] [MX04] Action Script To Stop A Movieclip Playing
Does anybody know of any actionscript to put on a flash button that will make a movie clip stop playing when rolled over (not an offstate in the clip) but separately on the main timeline? Kind of like a stopallsounds but for a specific movieclip? I have something that is making me crazy!!

?solution?
hey there!
hope someone can help me with this: i have a rotating navigation (buttons ar following a path) and if i click one button it should be marked with grey color. to do this i put the button into a clip, with two keyframes. the first "1" is normal colored, the secound "2" is grey.
when i press a button, it sets a variable "status" and this variable says what text or pic should appear in main area. for example: 3 = design dienstleistung
so i wanted to control over the variable the button color, which i tried with this script (laying in the clip, clip path is _root.navi.prodmarker)

if (_root.status eq 3) {
gotoAndStop ("2");
} else {
gotoAndStop ("1");
}
that works with on of six buttons, but not with the rest!??
i find no solution...i tried to control it from the main timeline or in the button,... noting works. can someone help me with this and perhaps explain me how i can control the color directly, by changing the button and not the clip!?
thanx a lot and have a nice monday, marcel

Solution
Okay, easy guy.

If you put the scrollable area into an own movieclip you can use the getProperty() Function to get the movie width and height. So you can calculate if the scroller even apprears or not...

I used this too, but for a dynamic table. I duplicated a temporary row so many times I needed it and after that I got the width of the movie containing these rows.

I hope you understand what I mean.

AmOklaeufele2

Help Need A Solution
Hi all,

I have a problem where i am asked to create a flip book with pages and the ability to zoomin and zoomout. I tried writing a script where on (release) the values of _xscale and _yscale would change but the problem i am getting is that once you flip to another page (frames), it doesn't not inherit the last action applied to it so it goes back to it's default size.

does anyone know how i can create something like this on a global scale so no matter what frame you are on, it'll look for these values and stay there until otherwise?

be kind and reply

Solution
Server I was on... was troublesome.... Got a new one... with someone who knows what he is doing.

That last suggestion was very interesting and I would almost like to try it.


Thanks

I Have A Possible Solution
Will:


Code:
on (press) {
_parent.gotoAndStop(5);
}
Work? It seems to.

--R

Need Solution....Please
More and more I find goverment and corporate customers are not letting active x throught there walls. Is there any way to import flash into another format,or maybe there is another solution for this growing problem. (except a sniffer)

Solution
Thank you very much for your answers and ideas!

I'm always very glad to see people trying to help me!

But don't worry - I don't have a time to stay a look forward to see
some answer.

I've got it!
What's even more important - I make it myself.

Unlike you, I'll post here the solution for other poor guys with the
very same problem.

this is it, how simple:

myDate = new Date();
myDate.setTime(1076064937*1000);
var month = myDate.getMonth()+1;
trace(myDate.getDate()+"."+month+"."+myDate.getFul lYear()+", "+myDate.getHours()+":"+myDate.getMinutes()+":"+my Date.getSeconds());

[F8] Need Some Solution
hi,,
how i can play MC when mouse is over MC
and when Roll our mouse it goes to normal......
one more solution want..
When i click to MC it animate

how to disable Right click menu (totally disable)
Thanks in advance

Need Solution
hi guys

i am loading external Swf to the stage.
here is the code

ActionScript Code:
createEmptyMovieClip("one", 0);
one.loadMovie("flash.swf");
one._x = 0;
one._y = 0;

What i am looking is, how do i make it set to the fit to the Stage of the main flash. No matter at what size it should be. Like "flash.swf" is 550x400 and my "main.swf" is of 153x135. when i am loading that flash.swf to the main.swf it should resize the flash.swf.

dose it possible or not.

Need A Solution
Hi, I am doing a flash project. In that project for security issue i just want to protect my flash swf files for reusing by someone. I couldn’t make it as a single file beca it’s a big project. so i am making 10 to 15 swf file and that all swf called by a single swf.

If i upload this project, it might be editable. Anyone can decompile it and reuse my illustrations...!!! So I want to avoid my files to be reused by someone

I saw a project. It was fully protected. i couldn’t find a single swf in that folder. I wonder those used files has extensions like .dxt and .x32.. I really don’t know which software has used.

If anyone knows this or any different way to do this…. please share your knowledge here...

Need A Solution
Hi, I am doing a flash project. In that project for security issue i just want to protect my flash swf files for reusing by someone. I couldn’t make it as a single file beca it’s a big project. so i am making 10 to 15 swf file and that all swf called by a single swf.

If i upload this project, it might be editable. Anyone can decompile it and reuse my illustrations...!!! So I want to avoid my files to be reused by someone

I saw a project. It was fully protected. i couldn’t find a single swf in that folder. I wonder those used files has extensions like .dxt and .x32.. I really don’t know which software has used.

If anyone knows this or any different way to do this…. please share your knowledge here...

A Solution ?
i wanted to find a way to check whether an ENTER had been typed into an input textfield and then do some processing on it - but only if the value in the textfield had changed. i have this solution:

ActionScript Code:
var previousText:String;

var keyListener:Object = new Object();

keyListener.onKeyDown = function(){
   
    if((Selection.getFocus() == "_level0.input_txt") and (Key.isDown(Key.ENTER)))
    {
            if(previousText != input_txt.text)
            {
                trace(input_txt.text);
            }
            previousText = input_txt.text;

}
}

Key.addListener(keyListener);
it seems to work fine - any comments?

I Need A Solution
I have a New Sony Handycam and I would like to use the software that came with the camera. When I hook up the USB cable a error message comes on the screen stating that this program needs "Macromedia Flash Player to run" I have downloaded the newest version of Adobe Flash Player to my computer and the same error message keeps coming back.

How can I solve this issue so that a program can find the Flash Player. I believe that Flash Player only gets loaded into my Internet Explorer Browser and therefore is not available to any other part of my system

Thanks for anyones help

mvpoole

What Is The Best Solution?
Hi guys,

It's been a long time since I left my flash developer/designer job and started in the business area. Now I'm with some ideas frisking in my head and I have to develop them.

But I'm not used with Flash technology anymore. I have a souvenir about Flash Communicarion Server to develop multiplayer applications (what I'm intended to do), but is it still up to date?
How is the best solution to develop a multplayer Flash application on the web?

thanks a ton,
t

Need A Solution
I'm working on a good-sized community site with site designing services. And I hope to release it to the public on christmas eve. To show the examples in my portfolio I was thinking of doing a mouse-scroll through gallery, but I have seen a effect on a site (can't remember where). As the mouse goes over that particular site the user wants to view, the site grows to a larger size and is in full effect. as if it was a site inside of a site, except when you click it, it opens a new window and takes u to that site. I don't think i would go that far, but I can't seem to figure out how to create the mouse-scroll effect going horizontal direction. Any comments, and suggestions will be helpful, thank you!

P.S. If you want to, I can add your link to my side menu, just have a 60x25 banner/sig/icon w.e u wanna call it, and give me your link, i'll be happy to add you.

I Need A Solution For This
i have created a dynamic movieclip using lineTo and curveTo methods.
i drag this using startDrag(), if this hits another movieclip which is static in the stage, i need to set the xy of the dynamically drawn movieclip to that of the static movieclip. how do i do this?pls give me the solution.

Need A Solution
Hi, I am doing a flash project. In that project for security issue i just want to protect my flash swf files for reusing by someone. I couldn’t make it as a single file beca it’s a big project. so i am making 10 to 15 swf file and that all swf called by a single swf.

If i upload this project, it might be editable. Anyone can decompile it and reuse my illustrations...!!! So I want to avoid my files to be reused by someone

I saw a project. It was fully protected. i couldn’t find a single swf in that folder. I wonder those used files has extensions like .dxt and .x32.. I really don’t know which software has used.

If anyone knows this or any different way to do this…. please share your knowledge here...

Need A Solution
I'm working on a good-sized community site with site designing services. And I hope to release it to the public on christmas eve. To show the examples in my portfolio I was thinking of doing a mouse-scroll through gallery, but I have seen a effect on a site (can't remember where). As the mouse goes over that particular site the user wants to view, the site grows to a larger size and is in full effect. as if it was a site inside of a site, except when you click it, it opens a new window and takes u to that site. I don't think i would go that far, but I can't seem to figure out how to create the mouse-scroll effect going horizontal direction. Any comments, and suggestions will be helpful, thank you!

P.S. If you want to, I can add your link to my side menu, just have a 60x25 banner/sig/icon w.e u wanna call it, and give me your link, i'll be happy to add you.

A Solution
Hello guys,

I have a strange problem here. FYI, i have several flash projects and this is my first time having this problem. By the way, i'm newbie. The problem goes like this...i put a loadMovie script on a single-keyframed timeline with a few layers. As for the loadmovie script, i type: loadMovie ("filename.swf". "variable");. Before, i have a stop Action. Then, i create a blank mc with an instance and put it on a stage. The problem here is the swf file that im trying to load is failed. This is kind of easiest stuff to do but now it has dragged me 4 hours to solve this problem.

So guys, is there any possibilities that cause this error? In fact, i have few more inside this same task but this is the only screwed. Hope someone will answer this.

Thanks

Help No One Else Has A Solution.
I have a dynamic txt frame in my main swf. When buttons are selected, text from an external txt file loads into the text frame. This all works fine.

What I would like to do is be able to load an external swf containing a menu system in a scroll pane into an empty MC and then be able to dictate what the buttons on the external swf do (such as load text).

The below path is my attempt to access the button "sad" in the external SWF.

_root.first.noiseaudio.easing.theText.sad.onPress = function () {
loadTxt(path+"sad")

"first" is the empty MC on _root
"noiseaudio" is the external swf (noiseaudio.swf)
"easing" is a MC instance in noiseaudio.swf
"theText" is a MC instance in easing
"sad" is the instance of the dynamic text pane

Any help is greatly appreciated.

//start here. This is on a frame on the _root swf. Last line is to external swf.//

System.useCodepage = true
path = "text/";
loadTxt=function(path){
txt.text = "loading data..."
loadData = new LoadVars();
loadData.onLoad = function() {
txt.htmlText = this.output;
txt.scroll=1
checkScroll()
};
loadData.load(path+".txt");
}
loadTxt(path+"news")

bio.onPress = function () {
loadTxt(path+"bio")
}
news.onPress = function () {
loadTxt(path+"news")
}
scribble.onPress = function () {
loadTxt(path+"scribble")
}
_root.first.noiseaudio.easing.theText.sad.onPress = function () {
loadTxt(path+"sad")
}

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!

Time Elapse - Making Something Happen After Specific Time Has Elapsed
Hi people,

I wondering if there is any code i can use to make flash continue playing a movie clip to the next frame after a certain amount of time has elapsed.

Thanks!

Lara.

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

Are These Limitations? Or Is There Any Solution?
I'm passing some string in HTML format to a textfield in flash.
E.g. If textfield name is "myText", then I'm passing..

Code:
myText = "<FONT>This is <B>strong</B>.</FONT>"

But problem is that, when I define textfield's character option to "Bold", SWF shows the text "strong" only.
And when I don't define textfield's character option to "Bold", SWF shows the text "This is" only.

Same is the case with "Italic" option.

Also, sub/superscript doesn't work for dynamic fields.

Are these limitations? or is there any solution?

Thanx in advance

Easy Solution?
Okay- I've done this a few times before, but for some reason I can't get it to work now!

I have a series of buttons that target MCs to slide up and down. I only want one MC to be up at any time. My script for the buttons is this:

on(release) {
if movieclip2=="up" {
telltarget (movieclip1)
play()
}
}
on(release) {
telltarget (movieclip1)
play()
}

...and so on for every button and every movie clip. The problem is that they slide in and out ok, but don't recognize the variables that I set in the movieclips. These variables set each movie clip as "down" or "up". Is there something I'm missing?

Thanks for any help!

I Need A Simple Solution
How come when i load a movie form the same directory onto my main movie it only carries the variables when i load it onto level _x (x any number) When i load it into a target, likemy main stage, it doesnt work. How come??

SOLUTION: ASP And MX - Unicode UTF-8
Hi out there

didn't found any solutions to give out .asp in Unicode in this Forum. This is needed so Flash MX reads Special Character properly. So i thougt i post my solution which took me a day to find out...

In Your .asp file write this so the output is unicode:

Language=VBScript
CODEPAGE=65001
Session.Codepage=65001


In MX load the Variables as you ever did with LoadVariablesNum or the other methods.

DON'T write the "System.UseCodePage=true;" in your Actionscript-Code...

Hope it helps!
Grüsse
Boris

Should Be A Simple Solution
Hi,

in the past i have made those sliders that set values, kind of like the ones for brush sizes in Photoshop.

What i want to do now is make a rotational one, like the volume control on a Hi-fi.

Does anyone know how to make it so you can keep the center point of an object fixed, whilst dragging it??

Cheers

Whats The Solution?
i need an alpha effect on dynamic text but dont know how to do it. any suggestions? fla is at http://www.helpjoey.com/pasc/broken.fla thanks

PLEASE HELP ME 13 HOURS AND NO SOLUTION
AAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHH!
I'VE BEEN AT THIS FOR 13 MOTHER F***N' HOURS!!!!!!!
PLEASE KILL ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Here's what I'm trying to do...and yes, I know it isn't easy and that'S why no one will probably respond to this
I have an inputbox with a monospace font
The inputbox will fit 5 char's wide and 5 char's high and has a variable name of myText
And what I want to do is figure out how many char's are on each line of a multiline inputBox.
Sooooo.... I need to concider wordwrapping and carrige returns
And here's what I have so far, but no matter what I do I get 5 char's for EVERYLINE! grrrrrrrrrr

function backitup() {
// clear the vaiables
pozition = 0;
// loop through rows 1 to 5
for (line=0; line<=5; line++) {
// start from the # (pozition) and create a substring
tempLine = myText.substr(pozition-1, 5);
set("tempLine"+line, tempLine);
// look in the substring for a carrige return
for (i=1; i<=5; i++) {
if (tempLine.charat(i) == "
") {
trace("I found a carrige return on line "+line);
// if there is one the line length should be the value of "i"?
set("line"+line, i);
break;
} else {
// if there is no
then we know the line's length is equal to 5
set("line"+line, 5);
}
// reset the pozition variable
pozition = 1;
// add up the total # or char's for each row that we've looped
// through so far and store the variable in: pozition
for (kk=1; kk<line+1; kk++) {
pozition = pozition+eval("line"+kk);
}
}
trace("pozition="+pozition);
}
trace("line 1 is "+line1+" char's long - "+tempLine1);
trace("line 2 is "+line2+" char's long - "+tempLine2);
trace("line 3 is "+line3+" char's long - "+tempLine3);
trace("line 4 is "+line4+" char's long - "+tempLine4);
trace("line 5 is "+line5+" char's long - "+tempLine5);
}

Please help me before I shoot myself in the face!

Frequent-C
http://www.Freq-Fest.com

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