Flash Heartbeat
Hi
I have to make a flash movie that just has a logo in the middle of the screen that beats (flashes) at the same rate as a heartbeat sound. As you move the mouse closer to the logo, the heartbeat sound speeds up and the flashing logo speeds up in sync.
Does anybody know how to do this?
Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 12-13-2004, 09:01 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic EKG (heartbeat) Readout
I've been trying to create an EKG readout dynamically, ie one that isn't a static animation. I've been looking around for some mathematical models but so far haven't found anything useful. So my next attempt was to try and string together a series of lineTo() calls, but I just can't seem to get the separate calls to work together. I was just wondering if someone more adept than I could offer any insight as to how to go about this problem.
Reading In A VERY QUICK External Heartbeat
Much help needed, I have been troubleshooting this problem for days now.
The setting:
Flash standalone player (Linux). I am playing movies outside of flash by launching Mplayer, which is programmed to send out a completed=yes tick to a txt file on the SAME machine in its www root. Flash is supposed to read in the completed variable as yes and enlarge back to full screen (mplayer screws up flash's fullscreen when it comes to the fore-front of the display), instead of the default completed=no value (which is there when mplayer is not playing a movie... or is playing a movie which has not ended).
The problem as of now:
The heartbeat is fast... and flash does not have enough time to issue a if (completed == "yes") statement inside the same frame or the next frame. I have tried setting to 50 fps and can tell you that our variable is VERY fast (read below).
Important info:
I have created a dynamic textbox with the variable name "completed" in the root timeline. Since I am issuing a loadVariables command into the root... this is the variable that should get changed and display yes/no - AND IT DOES. When looping my two-framed movie, I can see that the variable is actually loaded (so any of you assuming they aren't being loaded at all, think again). At 50 fps the transition of the textbox from no to yes.. and back to no is VERY FAST.
If you haven't gotten that, I'll say again - I can see the variable being loaded into the root timeline in my "completed" textbox, it is just very fast... An IF statement can't pick it up on the same frame, or on the next frame.
Solutions?:
Is there a way to "cache" the results of a loadVariable (or loadVars I have heard of also) when the data CHANGES.
There are two sets of commands being issued here... a loadVariables command... and then the IF statement to check the loaded variables - can I just throw both of these into one statement? ie: if (loadVariables("http://localhost/xxxxx.txt") == "yes") - but remember my result from xxxxx.txt is completed=yes - so I would need to fix my statement somewhat.
Thoughts? Ideas?
And thanks to all of you who took the time to read it all, especially those who have a solution to my problem and are about to post it.
Regards,
Jon
Making Heartbeat Line Loop Continuously
Please help me out anyone!,
Im trying to make a heartbeat line loop continuously without going away.
I added the .FLA file, im sure there is an easy solution i just can't figure it out by myself .
U see that the line will be eaten when the mask has completely scrolled over my line. I want to prevent it from being eaten and start over again without having the old line dissapear.
Thanks in advance
Here is the link to my .FLA:
http://members.lycos.nl/infernalmajesty/Banner_Beta.fla
Best Way To Produce Inertia/heartbeat Behavior For Button/symbol?
Hello!
For a site I'm building, I would like to have the navigational buttons behave with inertia and/or like a heart beating onscreen. For the 'heartbeat' behavior, I guess I could nest the button within a movie clip and just have it loop indefinitely. Is there a simpler way, perhaps with AS?
All feedback welcome.
Thanks!
VicAtomic.
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
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...
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!
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 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???
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
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!
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
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!!!
Using Flash To Open A New Browser Window - Exact Size Of Flash Movie?
Hi,
In Dreamweaver, I've previously used the 'open new browser window' behaviour from a link to display my Flash movies, and entered the .SWF filename as the URL to launch (this launches a browser window thatls exactly the size of the movie, no scrollbars, buttons etc). Can I do a similar thing with Flash's 'get URL' command, or does that only go to HTML/HTM files?
Cheers, Skratch
Using Flash To Open A New Browser Window - Exact Size Of Flash Movie?
Hi,
In Dreamweaver, I've previously used the 'open new browser window' behaviour from a link to display my Flash movies, and entered the .SWF filename as the URL to launch (this launches a browser window thatls exactly the size of the movie, no scrollbars, buttons etc). Can I do a similar thing with Flash's 'get URL' command, or does that only go to HTML/HTM files?
Cheers, Skratch
Pass Variable To Custom Function Not Working In Flash MX For Flash 6 Player
I have a Flash application that I built in Flash 5 that I want to now output in Flash MX (not 2004, though) for Flash 6 Player. The problem is that part of my code, which works fine if published for Flash 5 Player, breaks if published for Flash 6 Player. I am loading text from an external text file, and then passing the text contents of each variable to a function (to strip line breaks). Following is the code... does anyone know how to rewrite this so that it will work as Flash 6 Player swf? The contents of the variable are not getting passed, and eval does not work on left side of expression... I've tried everything I can think of...
Thanks in advance for help.
-S
PHP Code:
/* content, correct, Q1, Q2, Q3, etc are all variable loaded from external text file. I am trying to pass contents of variables, which is why I need to eval them. This worked in Flash 5, but not in Flash MX if I publish as Flash Player 6 file. */
temp = stripLineBreak("content");
temp = stripLineBreak("correct");
for (i=1; i<=10; i++){
z="Q"+i
temp = stripLineBreak(z);
}
function stripLineBreak(x) {
tempArray = new Array();
tempArray = eval(x).split("
");
eval(x) = tempArray.join("");
tempArray.splice(0,tempArray.length);
tempArray = eval(x).split("
");
eval(x) = tempArray.join("");
tempArray.splice(0,tempArray.length);
}
Ie6 Crashes When The Mousepointer Leaves The Flash Movie Area. [Flash Player 8]
Not sure if this is the right area for this thread, but i'm not sure where it fits in...
I have a draggable map program that uses LoadVars.load to send location messages back to the server.
After a user saves a location, thereby triggering the load() method, and then moves their mouse pointer outside the area of the .swf movie on the html page, the browser crashes.
I haven't been able to replicate it on any other computer except this users', which is using Flash Player 8, and IE6. Of course the only user of this side of the app, is this user, so im forced to find an answer.
Anyone else run into this, or have any wisdom to impart on me?
Any Way To Activate Flash Fullscreen Mode When Flash Movie Loads In The Browser
Hi all,
I want to activate Flash Fullscreen mode when flash movie loads in the browser. Without activating it through button clicks.
I tried for this using this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
goFullScreen();
But it is not working this way, it is working when I put this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
button.onRelease=function()
{
goFullScreen();
}
thanks in advance,
Vikas.
Force Flash To Open File Download Box In Front Of The Flash Movie
Folks,
I'm making a dvd title using flash to auto start when people pops the dvd disc in.
I have a button 'Click here to download the movie' and clicking the button should pop up a file download box so people can save the movie file(.mov) to their desktop.
Problem is that the file download box shows up behind the flash movie so people won't be able to see the download box since it's hidden behind the flash. This is critical since I intend the flash to open as a full-screen mode.
Is there a way to force the flash to open the download box in front of the flash movie?
I tried getURL and fscommand ("exec", "filename.exe") and even fileReference commands to try different way of linking the movie file, and they all open download box behind the flash.
Please help~~~
Looking For FLASH Developer/guru To Create A Flash Intro For A Clan Site.
I am looking for a FLASH developer to create a custom FLASH Intro for my gaming clan forums.
A bit about us:
Clan Name: =bURnT=
Site: http://burnt.swisshut.com
Games Played: Battlefield 2 & Battlefield 2142
What we would like in the Intro:
- That it somehow complements our forums
- Includes the clan name
- Looks professional and loads within reasonable time
- Some sort of music / background soundtrack
We are a small clan and don't have the biggest budget but please consider us and give us a estimate of price if you are able to do this for us.
Regards,
Dieter Balmer (OzButcher)
didaswisshut@iinet.net.au
Edited: 01/09/2007 at 10:20:52 PM by OzButcher
Flash Buttons That Navigate To Html Files In Same Folder As Flash Movie?
I'm completely new to Flash and AS3.......
however, i've managed to build a simple "intro" flash movie that has buttons on it that need to navigate to non-flash, DWCS3 based site files.
when i go into the button in flash, if i select text in the button there is a spot in the properties panel that allows for a URL link...i enter the name of the html file but it doesn't work......but this URL property field is not available to the entire button....
so i started looking at AS because i'm pretty sure i need to use events and event listeners....BUT all of the tutorials only cover getting an external URL or linking to a frame within a flash movie......none of them cover linking to an existing HTML file in the same folder.......(ie., to access the meat of the website through the flash intro buttons....)
help?
the movie is at www.methods.com/msite07/site07_intro_more.html if you'd like to take a look....the animated buttons need the link functionality.......
Flash Security Problems Integration Not Done Properly With The Version Above Than Flash Player 6.
Hi All,
I have my flash files hosted on http://images.xyz.com this is an apache server.
I have my webpages, on http://author.abc.com
I want to call this file & submit them using the send (or suggest any best metod from which i can call it properly) method but i guess due to security reasons its getting blocked can u please suggest solution.
(I am right now using javascript proxy method for sending varables from flash to my required software. the output file is some.aspx)
Force Flash To Open File Download Box In Front Of The Flash Movie
Folks,
I'm making a dvd title using flash to auto start when people pops the dvd disc in.
I have a button 'Click here to download the movie' and clicking the button should pop up a file download box so people can save the movie file(.mov) to their desktop.
Problem is that the file download box shows up behind the flash movie so people won't be able to see the download box since it's hidden behind the flash. This is critical since I intend the flash to open as a full-screen mode.
Is there a way to force the flash to open the download box in front of the flash movie?
I tried getURL and fscommand ("exec", "filename.exe") and even fileReference commands to try different way of linking the movie file, and they all open download box behind the flash.
Please help~~~
Edited: 08/13/2008 at 03:24:14 PM by svamfaca
Very Basic Question: Flash Media Server Vs. Embedding Flash Video
I'm hoping this is a quick easy question to answer:
What is the difference between Flash Media Server and simply using a freeware Flash media player (like Flowplayer http://flowplayer.org/) that uses XML playlists to embed your Flash videos on a website?
What are the advantages to Flash Media Server and how does something like Flowplayer not address issues that FMS can?
Thanks in advance!
Erik
Edited: 01/29/2009 at 11:08:55 AM by erik_johnson
Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,
I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.
Reagrds
Rajesh
Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,
I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.
Reagrds
Rajesh
Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,
I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.
Reagrds
Rajesh
Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,
I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.
Reagrds
Rajesh
|