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








Active User Counter


Hello
I want to add to my flash an active user counter?
It has to be in php and mySQL

Please Help !!!
Thank you very mach




FlashKit > Flash Help > Flash General Help
Posted on: 08-25-2005, 06:19 PM


View Complete Forum Thread with Replies

Sponsored Links:

Active, De-active Script
hello im trying to write a script to set a MC value to active onRollOver and deactive when you mouseOver another MC.

when each button becomes active it also executes it's own set of functions.

can someone help me please get this started, thanks in advance!

View Replies !    View Related
Active Link & Not Active
Hello!
I can't use my home page in internet. I need to make the active link when the section is chosen.
How can I make ActionScripts?

View Replies !    View Related
User Levels, Cell Phones, And User Registration, Plus Cookies
I need to quote a client on the following and need to know how much work is involved, ie hours. The programming may be done in PHP (unless its easier to do it all with AS), and the so the .swf needs
to talk to other files on the server.

Requirments are as follows:

1. contact form that: validate form, generate email, generate SMS for cell phones

2. registration form that: validates form, checks record, stores record if new, creates and sets cookie so they don't have to login next time, re-directs to appropriate page, sends email confirmation, deletes record if bad.

3. "extranet": validate i/p, check group (user level), send to user group destination


I just need to know if this is a simple couple thousand dollar thing or a complex many thousand dollar thing.

I can't guarantee anything (I don't write the cheques around here), and depending on the complexity of it we may be looking to subcontract some of it out.

Email me directly at: jonny@northstudio.com if you can be of any help.

View Replies !    View Related
Reset Counter - NOT HIT COUNTER
Hi all, I have a counter going to repeat some frames, and then when it reaches the number of times I want it to repeat, I have it go to another frame to play a different movie clip...then at the end of the new movie clip, I want it to start over "fresh"...

Does anyone know the coding for reseting the counter?

Here is my current code:

counter = counter+1;
if (counter == 4) {
play();
} else {
gotoAndPlay("ad");
}


Thanks,

Wendy
Wendy@pixelchix.com

View Replies !    View Related
Active X
HI,
Where I can find ActiveX control for Flash MX like exe file. At macromedia.com I can not find file to download.

I need it as soon as possible.

Best regards

View Replies !    View Related
Asking For Active X
EDIT:

never mind, me stupid

View Replies !    View Related
Active X Fix?
I recently installed the express flash player script onto this page http://www.itisredmovie.com/itisred/main.htm
and as far as i know it seems to work but now I need to include a script that lets flash run on IE without clicking on the page to activate it. I've installed the extension needed for this but I do not know how to apply the script in conjunction with the express install. If i could get any extra help with that I think i would be on my way to perfection....I'm not really good at writing javascript only copying and pasting

View Replies !    View Related
[CS3] If Active
Hello all. I have here a simple statement that checks if user is using the button and if not, plays the over state. But somehow, it doesn't work. Please help.

First I tell it that if user rolls over the button, isb1active becomes true, and when user rolls out of it, it becomes false.

Code:
this.b1.onRollOver = function() {

b1.gotoAndPlay("_over");
isb1active = true;
}

this.b1.onRollOut = function() {

b1.gotoAndPlay("_down");
isb1active = false;
}
Then when I need the button to animate later on its own, it checks first if the user is using it or not.

Code:
if (isb1active == true) {
b1.gotoAndStop("_deja");
} else {
b1.gotoAndPlay("_over");
}
b1.enabled = false;
And at the end, it goes down again but only if user isn't using it.

Code:
if (isb1active == true) {
b1.gotoAndStop(10);
} else {
b1.gotoAndPlay("_down");
}
b1.enabled = true;
And when user goes over it, it works but when the user rolls out of it, it doesn't change isb1active to false, or if it does, nothing happens.


Please help,
cheers...rodney

View Replies !    View Related
Active X
Hello,
Does anyone know how to stop the active x control in IE from interfering with my flash website? I know it is a security feature of ie, and I could turn it off in the browser, but I want other people with the default security settings to be able to enter my site easily. Firefox and Netscape do not have this problem, only IE 6 and 7....

The Problem: Every time I enter a new page on my flash web site there is a box around the content that says 'click to activate and use this control' It is a small issue, but it may cause confusion with some people, and it just doesn't look right....

The URL: http//:www.monsterclaw.com

Please check it out and if anyone has an answer it would be greatly appreciated.

View Replies !    View Related
Which Textfield Is Active?
Hi everybody,

I've got five Textfields on one Frame. The User has to make an entry. It will be evaluated. The User has also the possibility to click on a 'solution' button which will display the right answer in the active Textfield. My problem is, how can i detect which one of the five Textfields is active. I made several trials with the Selection.getFocus() and -setFocus() Objects. Without success, unhappily.:-(

I'm thankful for every help

thanx d.c.g.

View Replies !    View Related
Active Buttons
Hello,
I have a manu with several buttons.
The effect I want is that when a button is clicked, it causes an animation to play(I know how to do that), and I need the button to change color. One of the ways that I was adviced, was that on release of the button I jump to the "n" frame where the button has the right color, but if I have 10-15 buttons, this way is a bot messy with great numbers of buttons.
Is there another way to do upper mentioned effect ?
Thank you in advance,
CZealot
P.S. I am not very good at ActionScripting, and a more detailed answer would be welcome.

View Replies !    View Related
Buttons Below Still Active
Hi,
I have a problem with my calender since I added a second year.
http://www.visi.com/~mgason/calendar/calendar.htm

problem is this, I use swap depth to flip between years. The dates indicate correctly in all years, but today I noticed that buttons in the year underneath stay active.
So if you are in 2003 for instance and click march 23rd (even though its not hi-lited) you in fact are clicking march 23 2002 in the movie beneath. try it.

any way to kill those underlying buttons?

mark
(yes I know its just like stuff by joshua davis! I stole the concept. but it works, I figured the code out myself a long time ago, and I only do flash for fun, never made a penny from it)

View Replies !    View Related
Active Button
I'm trying to figure out how to keep a button in the over state when it's clicked and then go back to normal when another button is clicked.

Thanks for the help!

View Replies !    View Related
Active Button?
Hia there

What i want to do

I have a Button about me. When I click on the Button i will get the layer aboutme...Now the Button should stay white (active)...So you can see immediately where you are on the homepage...

How can I do that? Do I have to programm the Button?

Thanx for your help

adrian

View Replies !    View Related
Run Active X Disabled, Now What?
It was brought to my attention that if an end user disables Run Active X in their security in IE that my flash site doesn't load, I felt better when www.2advanced.com (my flash idols) didn't load either, but does anyone know a work around to this? My site, that I get about 10 minutes aday to work on is www.fpsweb.org ...thanks in advance

View Replies !    View Related
Active X Rotation?
I'm trying to rotate a movie clip after clicking a button.
The movie clip rotates as i want i to, but it doesn't do it in an animate fashion.

I'm trying to not use a tween because there seems there would be more complication with how it rotates, because I want it to rotate both left and right.

I tried a copy of someone's setInterval() code but there were too many holes in the code for something to go wrong.

Then using my previous programming background I tried a for next loop.
//rotate right
for( a = 0; a < 90; a++)
{
Links._rotation++;
}

//rotate left
for( a = 90; a > 0; a--)
{
Links._rotation--;
}

It rotates in the blink of an eye.
is there a pause method to slow it down?

Or any other possible way to do this?

Please help....

View Replies !    View Related
Active Window
Hi, I feel really stupid posting this, but I cant figure out what the heck is going wrong.
Ok so im trying to make a flash that will simulate windows. I got my windows to min, close and resize and drag. Now im trying to make an active window thing, were if clicked, the MovieClip will come to the front. So inside my MC window, i have on the button
this.swapDepths(_root.getNextHighestDepth()-1);
so that it will find the highest depth in the MC that is holding the window MC, wich I called menu.
So i have multiple instinces of the window MC in the menu MC. So when the bar is clicked on one of windows MC, it does wut I want, it comes to the front. But wen I "close" the window MC's (it doesnt actualy leave the timeline, the window mc goes to a frame with nothing on it) and duplicate them, the duplicated MCs do not come to the front wen I click on the bar. I have the duplicates depths set to incrimate by 1 everytime they r dupliacted. I dunno, mabey something with the duplicates depths throws it off.

edit~~
another attempt I made was making the duplicated movies depths to be
getNextHighestDepth()
but when clicked, the newest MC replaces the old one, which means the depth is allready taken, which is confusing because getNextHighestDepth() is supose to get the next depth thats not taken. I dunno :-(

View Replies !    View Related
Active Buttons
I'm not really new to flash ... but never done this before and just can't seem to think of how to do it. And sense he search button on the forums is gone, and the Search Site feature breaks on me ... well I'll ask

I have a button it does a color fade with I hover over it. How do I make it stay on the over animation if it is clicked on? To show it is the active page?

View Replies !    View Related
Active Buttons
hi, i got 2 buttons of which only but2 controls a mc ('clip1'). the two buttons are mcs also and should look like activ/not activ. normally they work but they don't when i put them in my movie. the layer above them contains the AS for controlling the mcs. so what i would need is the following: but1 should look activ (clip 'detail' plays) but2 is not activ then. when clicking but2 clip1 plays and but2 is activ whereas but1 is not activ. sorry that i can't describe it better. i think you will see the problem. i would be really thankful for any help as it is a really urgent...
see the file attached...

noodle

View Replies !    View Related
Need Some Help With An Active Menu.
Hi guys. This is my site: www.simnhl.tk

If u look at the menu, u can see i made the design so i could learn how to make an active menu. What i mean, is that i want, when someone enters, the menu closed, but when he clicks on the arrow pointing down, the menu opens, and all the buttons that are there now appears, then when we click on upper arrow, it closes

Could u help me?? I am a complete noob, didn't even started using Flash MX professional 2004.

View Replies !    View Related
Active X Problem
Everytime I preview the site I am building, my explorer blocks it as a potentially dangerous site and I always have to click to allow blocked content.

I have changed my security settings in explorer but this still happens, however when regular surfing, I have never come across any sites where this happens. And I know that some sites are complete flash sites. Do I need to do something to my flash file to bypass this? I don't want to to happen to every viewer who visits the site or no one will enter or come back.

Also, someone posted a link to a Harry Potter site that give a warning about the pop up blocker being detected and asks the user to turn it off then re-enter the site, how do you script that and where???

View Replies !    View Related
Active Search
I'm trying to follow Flash Junkie's "Active Search tutorial".
When I open the SWF from the ZIP file (downloaded from flashkit) the links work perfectly. However, when I open Active_Search_List.fla, then publish it (without modifying it from how it came out of the ZIP) the links won't work. Instead of going to MTV.com, the browser address shows "http:/%20/www.mtv.com".

Is this a version issue since the original was posted so long ago?

I've seen several posts regarding the same issues but no responses. Can one of the heavyweights throw a punch at this?

Anything would be of great help.

Thanks!

Andy

View Replies !    View Related
Active Search - Willing To Pay For Help
I'm trying to follow Flash Junkie's "Active Search tutorial".
When I open the SWF from the ZIP file (downloaded from flashkit) the links work perfectly. However, when I open Active_Search_List.fla, then publish it (without modifying it from how it came out of the ZIP) the links won't work. Instead of going to MTV.com, the browser address shows "http:/%20/www.mtv.com".

Is this a version issue since the original was posted so long ago?

I've seen several posts regarding the same issues but no responses. Can one of the heavyweights throw a punch at this?

Anything would be of great help. I'm frustrated enough to pay someone for help. e-mail me if you are interested. ryffco@bellsouth.net

Thanks!

Andy

View Replies !    View Related
How To Tell If A SWF Is Active/deactive
Hi
When you click outside a Flash movie, in the browser, any key events are ignored by the flash movie (because it's not active untill you click it). Does anyone know if there’s a way to tell if a movie is active / inactive?

Please help me out …

Cheers

Rolf Lidén ( http://www.boostmode.com )

View Replies !    View Related
Need Some Help With Active Search
Hi, I've come across this most excellent movie here, and I'm basically tinkering with it. I've been learning flash for a little while and I suppose getting reasonably good... find the best way to learn is to do tutorials and mess around with other movies, but this one has me stumped!

http://www.flashkit.com/movies/Scrip...-114/index.php

I hope the author doesn't mind .

The links in this movie are to external html pages using getUrl... I'm wondering if they can be used to link to a movieclip inside the same flash movie, or perhaps link to another frame?

If anyone can offer any pointers, I will quite happily email them a cup of Darjeeling and a choccy biscuit!

View Replies !    View Related
Active Emailing
Hi Guys,

I want to set up an active email to send to my clients. It will consist to two images with the top image flashing on and off. I can create this in flash no problem but can I import an 'swf' file into an email so that when someone opens it, it loads?

Does anyone know if this is possible or an alternative method?

Please email me on alex@clientcommunications.co.uk as I won't have access to the internet over the weekend

View Replies !    View Related
Active Search
Hello

I have downloaded the active search file but im having problems with editting the links. they are ok on the demo but when i extract the files they are refresed and the links dont work? e.g http:/&20/www... SEE THE SPACE (%20) HOW CAN I GET RID OF THIS SO THAT MY LINKS WORK OK?

PLEASE SOME ONE HELP ME!!!!

THANKS

View Replies !    View Related
Active X Problems..
Hi there,

i got a little ActiveX problem.

on my button I use this AS-code:


Code:
on (release) {
getURL(clickTag, "_blank");
}
I installed the plug-in "Flash-8 Active Content Update" now al certain .js file is in the same folder as my .swf

this is the code in my html file:


Code:
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run "Apply Active Content Update" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '700',
'height', '75',
'src', 'CMS-menu',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'CMS-menu',
'bgcolor', '#ffffff',
'name', 'CMS-menu',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'CMS-menu',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="700" height="75" id="CMS-menu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="CMS-menu.swf?clickTag=http://www.site.com" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="CMS-menu.swf?clickTag=http://www.site.com" quality="high" bgcolor="#ffffff" width="700" height="75" name="CMS-menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
but this

Code:
CMS-menu.swf?clickTag=http://www.site.com
isn't working

Who can tell me why and what to do about is....

thnx...

View Replies !    View Related
Is UIScrollBar Active?
I'm looking for a way to test if my flash 8 UIScrollBar is active.

I'm dynamically filling up a textField, so if there are only few charecters, the scrollbar is sitting there not active, and not looking so great.

I am trying to write this logic, but don't exactally know how to get it to work. If anybody could help, I would be very appreciative. Thanks in advance..

if(myScroller != active){
myScroller.unloadMovie();
}

View Replies !    View Related
[F8] Active Button
Why is it that when working in flash my buttons are active? they are cliclable. I would like to turn this off.
Could you please help? thanks
Ecinele

View Replies !    View Related
Active Search Help
I am in the process to create a fully flash based website and on this website I would like to have a search function in the upper right corner where the user can search though the site.

I found a wonderful tutorial here on Flashkit with the search function here:

http://www.flashkit.com/tutorials/In...u-73/index.php

It was just what I was looking for except that when you click on one of the tutorials search results you went to a different homepage. What I would like is to instead for it go to a different frame in the flash file.

All answers would be appreciated
Thanks

View Replies !    View Related
ACTIVE X-cuseme?
How can I embed flash without user interacion, in other words avoiding the activation of the active x control.

View Replies !    View Related
[MX] Active X Problem
Whenever I finish a flash file and put the swf on the website it shows an AxtiveX Installation if you trust this thingy pop up at the top...

of it??? thanks

View Replies !    View Related
_currentlabel Still Active?
Is there still away to return the name of the current label?

There used to be _root.myClip._currentlabel; but not anymore as far as I can tell.

View Replies !    View Related
Active X Controls
Hi,

I am attempting to write a kiosk that will interact with an animatronic bird using VSA Console.

http://www.brookshiresoftware.com/console_overview.htm

I would like to write it in Flash, because I am very comfortable with animating/using buttons within it. I am really not sure where to begin. I would like for a user to be able to walk up to my touchscreen, touch a button the screen would animate and launch the activex control that would tell VSA to first set a beginning and end point, then play between the two points.

I am not sure if you can just do a button with on click, do activex method and properties?

Thanks in advance for the help,

---
Casey Davis
casey@caseydavis.org
http://www.caseydavis.org/

View Replies !    View Related
Flash Being Active
Hey there, is there a way to prevent flash to be so 'active' wich has a result that the browser scrollbar doesnt work, that backspace doesnt work as back button and that refresh shortcut won't work and more.

Is there any way to fix, or work around this problem?

thanks

View Replies !    View Related
Webcam Is Really Active ?
Hi Guru,
first of all sorry for my bad english

I made a project with Flash CS3 and AS3 about taking live snapshot from webcam, encoding JPG snapshot and send to server. Everything work fine and the result is good.

Now my problem is:
In some user cases, after they click ALLOW in the security panel, the CAM area is full white until they will not select from the same panel a one valid webcam driver installed.
This because they can have multiple drivers or sometime in the MAC safari need to specified as well.
In real i know how to show that panel to let them to select, but this means for the rest of 90% users they must select as well, when in real is not necessary because after hit ALLOW (unmuted=true) in most of the case is working correctly.

So if the cam is no displayed but only a white screen, a user can take the snapshot as well and send to the server a white photos.

How i can be sure, before take a snapshot, that the cam is really displayed and working ?
I tried a lot, consult many webpages and tutorials, but still not clear about the concept.

I must check the ActivityEvent.ACTIVITY ?
I must check the motionDetect ? I must check what ?
I am missing some properties ?

About my source code is pretty similar to the cam class help guide in flash CS3 (for CAM instance)

Can i have a tip with a sample code, suggestion, or some help ?

Really thanks in advance, it will save me a lot of time.

View Replies !    View Related
Active X Warning
I'm using some java script to write to a local file fscommanded from a flash movie. This will be used on a company network not connected to the internet so there are no security issues (that i have to bother about anyway).

Once you've run it once and authorised the script with the virus checker thats not a problem. However it gives me a warning "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?".

From what i've read low security settings on the security tab in ie should mean this message doesn't appear. However I still get it. Any one know how to sort this? (or a site more geared to answering this kind of problem?)

fgf

View Replies !    View Related
Active Text Box?....can You Tell?
I'm trying to find a way to make a button appear only when 1 of or both of two options or true.

I have two text boxes, the first lets the user enter a file name to load on then diplayes the file in the second, the second box is also an input box to alow the user to edit the file.

If the user enters an incorect file name an error appears in the second box.

I want the button to appear if a correct file name is entered, and or if the second box contains text.

any hints, thanks

View Replies !    View Related
Button Still Active
hey guys

Promblem on my site:

link

"When you select an option in the portfolio section, the link you selected remains active when the content loads over it. Move the mouse pointer around over the white area to the left of the photo of the girl, you'll see what I mean."

I'm struggling to stop that happening - as the button that is causing the problem is within the sliding page - I can't take the sliding page out of that section of the movie as if I do when the user closes the portfolio section the sliding page will slide back to the "about" section - instead of returning to the portfolio main section which there were at (sliding page portfolio section)

I tried another way which was to add a solid colour over where the buttons would be to block them on the layer above the sliding pages - but that didn't work either

I have a feeling this is going to be a tricky one...hope somebody can help to solve this issue

Dips

View Replies !    View Related
Active X Control
Res.All
Where can I find the help file for the shockwave flash active x control. I want to use it in VB

Thanking you in anticipation
Yours
Prashant

View Replies !    View Related
Active Content
Hello,

Is there a code so that on IE7 there is no rectangle around the flash content?

View Replies !    View Related
Active Content Fix
Hi people.
Sorry to be a pain with what may be a silly question.
In Flash Professional (9) how do you get to the preferences to turn on the built in fix for dealing with those nasty borders and the popup message when you use Flash content on websites.........

I have had this problem for some time and I am sorry to be a dummy, but I just cannot work it out and it annoys me no end........

Thanks in advance
Glen Gibbs
Glen

View Replies !    View Related
Active Content
When I publish my flash sites and projects in Flash CS4 instead of writing the AC_RunActiveContent.js file like it had done before, flash is putting all of the Javascript code in my html file. So the when I upload my pages to the server I get the old "click to activate control" message in Opera and sometimes in IE.

Is this something new in CS4 to write all of the JS in the html file?

Please do not redirect me to the "Click to Activate" posts on Google Groups.

I am using Windows XP Pro.







Attach Code

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
{
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
}
if (!version)
{
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");

// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.

// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
}
}

return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;

if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
}
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
}
}
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
}
return flashVer;
}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1];// "2,0,0,11"
versionArray = tempString.split(",");// ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
}
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
}
}
return false;
}
}
function AC_AddExtension(src, ext)
{
if (src.indexOf('?') != -1)
return src.replace(/?/, ext+'?');
else
return src + ext;
}
function AC_Generateobj(objAttrs, params, embedAttrs)
{
var str = '';
if (isIE && isWin && !isOpera)
{
str += '<object ';
for (var i in objAttrs)
{
str += i + '="' + objAttrs[i] + '" ';
}
str += '>';
for (var i in params)
{
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
}
str += '</object>';
}
else
{
str += '<embed ';
for (var i in embedAttrs)
{
str += i + '="' + embedAttrs[i] + '" ';
}
str += '> </embed>';
}
document.write(str);
}
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
}
}
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
}
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '550',
'height', '400',
'src', 'test',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'test',
'bgcolor', '#ffffff',
'name', 'test',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'test',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="400" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="test.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="test.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>

View Replies !    View Related
Active X Controls
Is there a way to stop internet explorer from asking the question 'click to activate and use this control'? I know I have seen other flash sites that don't ask for this, but every time a user enters my site they are asked to click and activate active x.

View Replies !    View Related
Click To Active...
on some computers is appear "clik to active" on the swf. file. is there some chance to rit of this issue? or it is just windows "crab" setting?
i'm appreciating any help.

View Replies !    View Related
Active AndFLASH
Is there a way to embed an ActiveX control (C#) into a FLASH or FLEX project? Ina another word can FLASH or FLEX support a control host container. Any help with this issue would be greatly appreciated.

View Replies !    View Related
Vod Streams Not Active
How can I make the video I've placed in vod/definst show up in the streams column in the Admin Console? I have an flv in the folder but nothing shows in the streams column.

View Replies !    View Related
Webcam Active?
Hi Folks,
first of all sorry for my bad english

I made a project with Flash CS3 and AS3 about taking live snapshot from webcam, encoding JPG snapshot and send to server. Everything work fine and the result is good.

Now my problem is:
In some user cases, after they click ALLOW in the security panel, the CAM area is full white until they will not select from the same panel a one valid webcam driver installed.
This because they can have multiple drivers or sometime in the MAC safari need to specified as well.
In real i know how to show that panel to let them to select, but this means for the rest of 90% users they must select as well, when in real is not necessary because after hit ALLOW (unmuted=true) in most of the case is working correctly.

So if the cam is no displayed but only a white screen, a user can take the snapshot as well and send to the server a white photo.

How i can be sure, before take a snapshot, that the cam is really displayed and working ?
I tried a lot, consult many webpages and tutorials, but still not clear about the concept.

I must check the ActivityEvent.ACTIVITY ?
I must check the motionDetect ? I must check what ?
I am missing some properties ?

About my source code is pretty similar to the help guide in flash (for CAM class)

Can i have a tip with a sample code, suggestion, or some help ?

Really thanks in advance, it will save me a lot of time.

View Replies !    View Related
SWF On Active Page
I am using a load in XML script to bring text content into a TextArea in a SWF. What I would like to do is to put the SWF on that same page so that I can write the text on the active page with a URL string and then this live info will be fed into the SWF. I am wondering if there is a simple way that I am unaware of to just tell the SWF to refer to itself. If I put the whole URL string into the SWF it will work, but then it's essentially hard coded. How would I tell it to self refer, or is there another way around this I'm not seeing? Thanks a lot, this is the AS code I'm using now:

//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("

View Replies !    View Related
Active Desktop
I would like to integrate some flash elements into my active desktop
I was wondering if it's possible to use some kinda of action script to
launch programs or run native windows commands
for example I would like to make an icon that launches notepad

Thanks

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved