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




Dectection Code Settings



Last edited by JohnnyD : 2004-04-29 at 13:10.
























Hi shockers,

I got this code to detect flash player version... but can't configure the color and position of the textField properlly:


ActionScript Code:
var ver = System.capabilities.version.split(" ")[1];var lbl = "version " + ver + " installed";var tf = new TextFormat();tf.font = "Verdana";tf.size = 10;tf.leading = 3;this.createTextField("verLabel", 1, 7, 27, 243, 55);this.verLabel.wordWrap = false;this.verLabel.autoSize = true;this.verLabel.text = label;this.verLabel.setTextFormat(tf);

It worked since I've put it on a movie exclusivelly for it... but now I needed more!!! PLEASE HELP!!!

Cheers

JohnnyD



Ultrashock Forums > Flash > ActionScript
Posted on: 2004-04-29


View Complete Forum Thread with Replies

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

Flash Code Dectection Issue
I have this javascript that I am using to detect the latest version of Flash:

function MM_FlashLatestPluginRevision(playerVersion)
{
var latestRevision;
var platform;

if (navigator.appVersion.indexOf("Win") != -1)
platform = "Windows";
else if (navigator.appVersion.indexOf("Macintosh") != -1)
platform = "Macintosh";
else if (navigator.appVersion.indexOf("X11") != -1)
platform = "Unix";

latestRevision = MM_latestPluginRevision[playerVersion][platform];

return latestRevision;
}

When I go to the page on the Mac (OS 9.1 using IE 5.1) I get an error stating MM_latestPluginRevision[] is not an object.

Can anyone spot the problem with the code?

thank you!!

Resoultion Dectection?
Can anybdy tell me what the JavaScript code is for me to dectect what res. the end-user is running?

Flash Dectection
Hi,
i currently have a flash website which does not have a flash dection on it, does anyone have a flash detection for flash MX 2004, basically if they don't have flash installed i need the site to go to a html page.

Cheers

Flash Dectection Kit + Hyperlinks
I've just finished implementing the Flash Detection kit and all has worked well bar one problem. All my hyperlinks on the page do not work. I have tried finding a solution but have been unsuccessful. Has anyone experienced this problem before and maybe provide the solution.

Hyperlinks worked fine in firefox but not IE7, which is what im working with.


thanks

cjkmcc





























Edited: 01/09/2007 at 04:17:09 PM by cjkmcc

Code Works For Flash Player 6 Settings But Not For 8...
Hi,

I'm pretty new to Action script and I have a problem here that I can't seem to figure out.

I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.

It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...

I attached the code.

Do I need to change the code ?

I wanna publish in Action Script 2 for either Flash Player 8 or 9.

Thanx for your help in advance !!! ;)

Mike







Attach Code

onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=0;
}

onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }

}

























Edited: 07/01/2007 at 05:59:06 AM by Iron_Mike

Proper Code For Global Text Settings
I have added some pre-built User Interface "Components" to the stage of my I'm project. (e.g. Radio Buttons, List, Combo Box). I'm having a problem changing all of the default fonts of these "Components"

I have entered in the following code in ActionScript (1.0 - 2.0):


_global.style.setStyle("fontFamily", "verdana");


After I've entered the code and I have tested the movie, the font in the swf is not "Verdana" but rather "Times"

Any suggestions?

Thanks,

Code Working For Flash Player 6 Settings But Not For 8....
Hi,

I'm pretty new to Action script and I have a problem here that I can't seem to figure out.

I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.

It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...

I attached the .fla file and also here's the code:

Code:

onClipEvent (load) {
    accel =0;
    rate = 0.05;
    trace(_y)
    _root.ykoord=0;
}

onClipEvent(enterFrame) {
        y=y*accel+(_root.ykoord-_y) * rate;
        _y+=y;
        if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }
    
}

Do I need to change the code ?

I wanna publish in Action Script 2 for either Flash player 8 or 9.

Thanx for your help in advance !!!

Mike

Export Frame For Classes In Publish Settings Flash Action Script Settings
My preloader doesn't load until 100KB into the movie
and I figured out it's because it's loading my components
(I'm using 3 instances of a Media Display and of a Media Controller)
in the first frame.
So I changed the Flash ActionScript Settings (in the Publish Settings)
to Export Frame for Classes 2
which made the first frame much lighter -
an acceptable 10K
BUT that made my components act very badly.

Please help!

Thanks!

Document Settings / Publish Settings
1. Is there a standard size that a flash document should be (to render best in most browsers).

2. Which is better, setting the dimensions of the published movie in percentage or a specified number (pixels)?

Code Works For Flash Player 6 Settings But Not For Flash Player 8...
Hi,

I'm pretty new to Action script and I have a problem here that I can't seem to figure out.

I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.

It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...

I attached the .fla file and also here's the code:


Code:
onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=0;
}

onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }

}
Do I need to change the code ?

I wanna publish in Action Script 2 for either Flash player 8 or 9.

Thanx for your help in advance !!!

Mike

Code Works For Flash Player 6 Settings But Not For Flash Player 8...
Hi,

I'm pretty new to Action script and I have a problem here that I can't seem to figure out.

I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.

It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...

I attached the .fla file and also here's the code:


Code:
onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=0;
}

onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }

}
Do I need to change the code ?

I wanna publish in Action Script 2 for either Flash player 8 or 9.

Thanx for your help in advance !!!

Mike

URL Settings?
I know how to use the Get URL action but how do you add properties such as setting the dimensions of the new window?

Settings
how do you take out the "zoom in" and "zoom out" settings in your swf file when it's on a site

Different Settings
Hello,

I know this sounds like a stupid question, but some Flash Movies, when you right click have just About Flash and Settings. But others have zoom in, quality and stuff, whats up with that?

Thanks.

Flv Settings?
I'm about to make a web page with a lot of video content on it and I've decided to use flash new video features, I've experimented my self for a while now but my video doesn't get the quality that I'm looking for. I'm focusing on an audience with a broadband of around 500/750 and my video files are quite big maybe 420 or 640 I haven't decided that yet. Any help to get around here? I need mostly the settings for the FLV exporter (Videos don't have audio) Videos will play progressive!!!

Changing The Settings Of A .swf
Hi!

As I've seen in several pages I'd like to make my .swf not to allow net surfers to rewind it, stop it,... This is, when you click the right button of the mouse over it just to appear the "About Macromedia Flash 5.0" option.

Is there any way to do it?

Thankx!!

Publish Settings
Hello - I have a movie I've finished and I need to publish it to a web via FrontPage. I'm clicking on "publish setting", choosing HTML, clicking PUBLISH and the bar goes across like it's publishing, but I don't see any HTML page. Can I designate where this file supposedly goes? How do I find it?

Thanks,

Mark

Publish Settings
retard that i am, i cant figure out the right settings for my movie, i want it to maximise, on the whole screen but doesnt rescale via the browser window.

any ideas?

Publish Settings
I'm trying to publish a Flash flie (amovie.swf) that loads a seperate Flash movie (bmovie.swf) onto one of it's layers. The problem is, the Publish produces a Flash Projector file. The movie that gets referenced/loaded into the first is targeted by the name of bmovie.swf. Do I need to name this movie "bmovie projector" instead? How will this effect a Windows format?

Publish Settings
How do i publish my movie to be an exact fit to the page but also not to have a border.

Cheers

Publishing Settings
I have completed the work to my flash website and I am ready to publish it (I think). Problem is that after I publish my movie selecting html and swf. I test the movie in the browser and the movie is neither flush left or flush with the top of the window and I would really like for it to be. Any help?

Publish Settings
I have a website that i'm uploading. What is the best publish settings for the flash and html files?

thanks!

Where Are The Quality Settings?
for my flash movie...low, medium, high.

TY!

Explorer Settings
is there any way.. i can detect the Browers Font settings...i.e. are they set to Large, Medium or Small? and set them to default thru any action script or Java Script?

Best Publish Settings..
hello all;
i publish my flash's work always pixel 100% 100% and exac fit.. but i saw that if you try to shrink i.e windows flash does not shirnk vectoral..

whats is your best publish setting for 800*600 and 1024*768..

Publish Settings?
In Flash MX's
Publish html settings dialog,

How do you create a html flash movie that is 640X480??
any time I try it, the .swf is in the top corner of the html page??

please help!!

Publish Settings
say my actual movie is 761x598 pixels and when i try to publish it its pushed off to the left and still has the background border around it. i dont want any border from top to bottom. the sides dont really matter due to the with of the movie. it just wont center unless i put it at 100% then yet it STILL has the border around it. any ideas?

Publish Settings
When I publish, I don't want the .swf file to allow the user to resize the window, or have any menus at the top. Basically, give the user no control other than to watch the movie.

How do I do that?

Ya Tin

Camera Settings
Does anyone know where the camera settings are stored for the Flash Player. I am working on a projector and would like to set the camera to always allow before Flash asks the question.

Publish Settings
Hi

Does anyone know what settings should be used within Flash to enable the boarders etc to be gutterless once the .swf is embedded into the html page.....should the movie be a certain size?

Thanks

Ravenotice

Alpha Settings
Hi folks:

I just switched over from Flash 4 to MX and, as I figured, there are a few funcions I can seem to find....even after using the help search.

The one I really need is the Alpha Setting? In 4 I just went to Modify > Instance and adjusted the Alpha? Now what do I do.

Thanks in advance,

Alpha Settings
Hi Folks:

I went from Flash 4 to MX today and I've encountered a few problems.
The one that is really getting me is the Alpha settings. I use to be able to go to Modify > Instance and adjust the alpha settings...where did this function go?

Any help would be great. Thanks.

Settings Panel
Some of the things in Flash Player 6's Settings panel I don't understand. I mean, I understaned them but how can I implement them in ActionScript (Such as, accessing the camera and microphone on a computer)?

When Can You Use Alpha Settings?
Are there situations when you can't use alpha settings?
I have been trying to simply fade out a tif in flash 5 and it isn't working.
I can import the tif fine. Then I made it a "graphic" and grouped it. Then when I try to drag and drop that graphic onto the stage, it snaps back to the library. So it rejects it i guess? Then I tried to just fade out the imported tif since that came in ok. I motion tweened it, but then the alpha option is still not available.

Any help is much appreciated.

Publish Settings
OK, i have seen sites like this before so i know it can be done but i dont know how... I want my splash screen to appear full screen then after so many seconds, or after a button is pressed for my main movie to load in a smaller window. i want this window to be central and not resizable. Ive looked in the flash (mx by the way) publish settings but there doesnt seem to be a great deal there... do i need to set in my .html or what?
any help or directions much appreciated
thx
lev

Publish Settings
Hi,
Can someone gie me some good advice on the publish settings?

Thanks

My Settings Are Screwed Up Please Help
I have no clue how it happened but now whenever I load up flash my drawing tools are not the way they used to be. The paintbrush tool is now a sqaure with the shape of the brush I'm drawing with in the center of it. Before it was just the shape of my brush.

Also whenever I draw a sqaure, circle, etc. it doesnt let me see a preview of what I'm drawing, before it did. I looked in every menu I could think of and could find nothing to change it back.

If anyone knows where/how to change this back please, please let me know, its driving me crazy.

Thanks in advance,
Dusarn

Publish Settings
i just made a basic flash site and noticed that when I adjust my screen settings to 800x600 the site loses a lot of quality.

I created my site when my pc had a screen area of 1024x768.

What publish settings do I use to make the site look best at either setting?

Here's the site. No laughing please.

http://www.geocities.com/hudsondigital/



Thanks in advance!

Best Publish Settings?
hi, was just wondering what publish setting everyone out there uses? ideally i want something that is going to look in the browser how it does on the stage and scale appropriatly depending upon the viewers screen res.

any recommendations??
cheers
lev

More On Publish Settings...
Is there a way to make flash uncheck the "display menu" option automatically when you create new files, as opposed to changing that setting every time you create an html file?

dave

Publish Settings - What Is It That You Use?
Trying to work out what's the publish settings that makes the movie fit into the browser %100 and no scrollbars whatso ever. I make the flash movie at 800 width and 450 hieght in pixels.

What settings do you use to make it so that it always fits into the browser area so that if the viewer has more menu's in the IE like the back buttons, refresh..ect like how you can drag the menu in IE down it screws up the flash size in the browser again?
Alot of people must have IE or whatever browsers taking up differant areas of room in the top IE menu bit.



But it screws up when you change the IE browser menu drag it down or up or something.

I then do into the html and put this bit in there!!

PHP Code:




<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">







What settings do you use to make a flash movie embed in the browser so it completely covering the screen area %100 top bottom each side ect no scrollers whatsoever and so the movie adjust to the browser any size. I just to once and for all get a standard that i can use to make them this way unless someone wants a differant size made.

Flash Settings
when you right click on a website with a flash movie in it sometimes you see 2 items in the menu and sometimes there is more. like on my movies i have zoom settings, quality, play, loop, rewind, forward, back, settings, print, and about macromedia flash 6. how do i get rid of all of those things like other sites ive seen? they only have settings(greyed out)and about macromedia flash. how is that done? is it somewhere in the export or publish settings?

anybody?

thanks for your time,
j-son

Settings Parameters
Hi,

I have a component object, and im trying to set its parameters in AS. Im sure it cant be that difficult, but nuffin seems to work

I have tried:

instancename.objectname.param = value;

objectname.prototype.setXML=function(itemXML){this .param=itemXML};
(where itemXML is there new value)


Nothing seems to work

Can anyone help ?

Thanxs in advance

Video Settings
ok, when u right click on a flash site u get the settings panel,i wanna know what they r used for abd how i can use them. is it if u wanna put a streaming video on my site? and if so how would i go about doing that kind of thing???????????

Getting Rid Of Right Click Settings
how do I get rid of the right click settings so it jsut has about flash player and not the paly forward and rewind options?

Flash Settings
This should be simple enough, but I can't figure out how to change my Flash MX settings to Flash 5, and back again - help?

I am specifically referring to my screen view when working in Flash - I prefer the look of Flash 5 to the MX look.

Quality Settings For A Mc
Is it posable to have different quality settings for different parts of the same SWF?

Re: HTML Settings...
Hello,

I'm trying to get my flash movie to center in the browser window (without resizing). I've attached a picture of my HTML settings, which don't seem to be working-- when I upload and access the site, the movie stays in the upper lefthand corner of the browser. What am I missing?

Thanks,
Todd Lerner

P.S. Can I get a valid test by simply dragging a file into an open browser window on my local computer? Do I drag the html file and keep it on the same level as the swf?

Publish Settings Help...please
Hey

Here is a few questions I have about the publish settings

How do you get rid of the border spacing. Meaning even though I have my movie set to 100 percent and show all, the movie still has about a half inch of browser space. I think there is a way to fix this border thing with the some javascript or FS Command, but I forget where I saw the information anyone know?

Transperant windowless- I can't seem to get this working either. My movie inside Dreamweaver still has the background from the Flash movie, i want to get rid of it, how?

Netscape problem- When I view the html page that Flash spits out, no Dreamweaver, Netscape 7.1 will crop most of the page strangest thing I have ever seen, now if I use Dreamweaver as the final publish it doesn't crop but the scaling gets messed up it wont scale my movie correctly, its a catch 22. I know this sounds like I don't know what I am doing, and maybe I don't but I have been trying to figure this out all day and have gotten nowhere fast, could someone please help me with this

Thanks in advace

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