¿How i make a Browser Detect swf movie?
Hi, i use a simple embed swf movie in one of many pages i own, but recently I build a new page in html5. But i tested in Internet Explorer and doesnt work well. What i need its a script code in AS3 to use in my swf movie that detect the browser and if the browser its IE9 load an old page, but if its other browser is like mozilla or chrome, load the new page in html5.
It is possible to do that in AS3 right?
Thanks to all
Firefawx
You can simply say "I want an animation to play before it decides which page to load" and we'd get it. So you want to show your logo animation.
Use the tutorial link I gave you and look at the code. It is a full example of browser detection using both actionscript and javascript. ActionScript needs JavaScript to get the information on what browser it is. All of the information and code examples are there to show you how to detect the browser.
Spanish translation:
Usted puede simplemente decir "yo quiero una animación para jugar antes de que decida lo que se cargue la página" y que sería para nosotros. Así que usted quieremostrar su animación de la insignia.
Utilice el enlace tutorial que te di y mirar el código. Se trata de un ejemplo completo dela detección del navegador utilizando tanto ActionScript y JavaScript. ActionScriptnecesita JavaScript para obtener la información del navegador que es. Todos los ejemplos de la información y el código están ahí para mostrar la forma de detectar el navegador.
Similar Messages
-
when I run a web browser immediately loaded two blank tabs. How to make the browser load the only one?
Did you check the home page setting to make sure that if doesn't have pipe (|) symbols?
See these articles for some suggestions:
*https://support.mozilla.org/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
*https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
*http://kb.mozillazine.org/Preferences_not_saved -
How to make the servo motor to move in steps of set degrees and stop
how to make the servo motor to move in steps of set degrees and stop
Hi,
I think the following document would be a good starting place: NI Developer Zone Tutorial: Single Axis Moves It includes links to several example programs that you may find useful for your application. Keep in mind that there are many motion examples that ship with LabVIEW as well.
I strongly recommend that you check out the following documents as well:
NI Developer Zone Tutorial: Simple Point to Point Motion
NI Dev
eloper Zone Tutorial: Hands-On Motion
NI Developer Zone Tutorial: Axis Settings for Motion Controllers
These tutorials will help give you a good foundation for understanding motion control systems.
Best wishes!
Dawna P.
Applications Engineer
National Instruments -
how to make each playlist for each movie songs ? when i tried to add songs all movie songs comes in row , its very difficult to find which movie song belongs?
Thank you! I put some self help hypnosis tracks to listen to on my iPod. I did not want to go to the next track automatically, I wanted to listen to them individually, one at a time. (If I fell asleep, I did not want to 'wake up' in the middle of a different track.) Your information helps me understand that I need to re-load this playlist onto my iPod from my Mac computer, only first, I need to UNCHECK the boxes in front of each track so the iPod will STOP each time after playing the selected track. It is too bad that so many functions are not availabvle within the iPod, but that is probably why they can make it so compact.
-
Hello, i would like to know how to make horizontal sites and it moves with the scroll
Hello, i would like to know how to make horizontal sites and it moves with the scroll
Hi
You can refer to these videos :
http://www.lynda.com/Muse-tutorials/basics-horizontal-scrolling-websites/108131/115685-4.h tml
https://www.youtube.com/watch?v=gZI_K1TXqOM
Thanks,
Sanjit -
How to make use of the swf made by alchemy?
Most of the examples are about compiling C/C++ to swc, then make use of it.
As the alchemy introduction said, we can also compile into swf file. so i tried it. But i cann't get the CLibInit class. How to make it successful?
The codes is below:
private function initApp():void
var loader:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
loader.load(new URLRequest("abc.swf"),context);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
private function onComplete(e:Event):void
var clibinit:Class = this.loaderInfo.applicationDomain.getDefinition("module.abc.CLibInit") as Class;
The abc.swf is the file i compile in Alchemy. And i can get the CLibInit class by using swc file as below:
import __AS3__.vec.*;
import cmodule.abc.*;
var abc:Object;
private static function init() : void
var clibinit:* = new CLibInit();
abc = clibinit.init();
return;
}// end functionI have the same problem. Did you get it?
-
How to make lumia 920 detected as USB mass drive ( as flash memories) instead of MTP
i need to know How to make lumia 920 (running windows phone 8.1) detected as USB mass drive ( as flash memories) instead of MTP
For help using Windows Phone please post on the Windows Love forums on http://answers.Microsoft.com
The developing for Windows phone forum is for developers to discuss writing their own Windows phone apps. -
How to make a 30 second quicktime movie small enough to send in email
I took a 30 second movie on my Lumix camera and downloaded it to my desktop. It automatically turned into a quicktime
movie, which I attempted to send in an email. It was refused by the Mail program because it was too large. I'm not sure how to make it small enough to send.
I should know this by now, but never needed to before now.Betsi, the size file you can send in your email depends
on the file sizes your particular email Service provider can
handle. Check your service provider of your email.
But do you have QuickTimePro?
Is your QuickTime program free standing?
I ask this because I saw it as part of iMovie.
Mine is currently limited usage, but originally
I could use it much more and even change the
to what I wanted my file to be due to the
numerous settings QuickTime had.
Thank you! Paula -
How to make your drawings into a movie?
There is this series on youtube called 'Simons Cat' and I know its only his drawings that are made into a movie.
I know how to make a video with pictures just the still pictures, thats not what I want, I want my drawings to move so its like 'Simons Cat'
If you want to know what I mean, look here: http://www.youtube.com/watch?v=JP1Pk62X7XQ&feature=endscreen&NR=1
Mostly preferred to use iMovie!:)
Many Thanks,
ChrisSimon Tofield draws and animates directly in Adobe Flash. It's frame-by-frame animation aka "cell animation"; that is, Simon creates a new drawing for each frame of the movie (though of course many elements are probably copied from the previous frame. If you don't want to use Flash, there are a number of other animation programs available. See:
http://www.macupdate.com/find/mac/animation
Many animators, those who prefer to work in more traditional physical media, just make their drawings and photograph them to stitch into a movie. Up to you what you feel most comfortable working with.
Regards. -
How to make my SLIDER control the movement of animations: ( fast & slow)
hello!
i wanna do water dropping animations. using a slider, to controlled how fast and slow the animations can be.
please help me!!!I need help about controlling my animations with slider.
I already know about slider & water dropping animations, but how to make this 2 things interract.
Right now i have slider and water dropping animations, but when i scroll my slider up and down, my animations still with the same speed.
In my opinion, i think, i need to make one func/method that take var from slider and transfer it to water dropping var(controlling the speed of anim...).
eg: (coding)
//class bla...bla...bla...
JLabel sliderValue = new JLabel("Value = 25"); // slider var
JSlider sliders = new JSlider(JSlider.VERTICAL, 0, 50, 25);
WaterDropPanel drop = new WaterDropPanel(); // waterdropclass
JButton start = new JButton("Start"); // start anim...
JButton stop = new JButton("Stop"); // stop anim...
//waterdrop class...
class BulatanPanel extends JPanel implements Runnable
private Thread runner;
int yPos = -20;
int yMove = 4;
void playAnimation()
if (runner == null);
runner = new Thread(this);
runner.start();
void stopAnimation()
if (runner != null);
runner = null;
public void run()
Thread thisThread = Thread.currentThread();
while (runner == thisThread)
yPos += yMove;
if (yPos > 310)
yPos = -20;
repaint();
try
Thread.sleep(10); // var controlling the speed of anim...
catch (InterruptedException e) {}
public void paintComponent(Graphics comp) {
Graphics2D comp2D = (Graphics2D)comp;
comp2D.setColor(Color.black);
comp2D.fillRect(0, 0, 250, 240);
comp2D.setColor(Color.red);
comp2D.fillOval(110, yPos, 20, 20);
// slider event handling... ( In my constructor)
public void stateChanged(ChangeEvent e)
sliderValue.setText("Value = " + ((JSlider) e.getSource()).getValue());
I'M SORRY IF ITS TOO LONG -
How to make a good picture/video movie
i have a camera that has taken 4000x3000 pictures and 1280x720 HD videosand want to make a HD DVD movie
i wanted to use premiere pro for making this movie because ive become slightly used to it
i am using this on a 1600x900 17-inch laptop
but i cant see the full pictures in ppro, i can add them but only a ~quarter gets shown and even i export it, it doesnt show everything
how can i make this work or is there another product that can do this?
is there a setting i can change to make this work?
thnx for ur help>camera that has taken 4000x3000 pictures
Photo Scaling for Video http://forums.adobe.com/thread/450798?tstart=0
-Too Large = Crash http://forums.adobe.com/thread/879967?tstart=0 -
Spry Collapsible Panel at bottom of page - how to make the browser scrolldown automatically
The question is -
i have a collapsible panel at the bottom of my page that I'm using as a footer menu.
It is 200px tall. The visitor clicks on "FIND OUT MORE", then the panel opens 200px tall.
I want the viewing area of browser to focus on the content of this panel, and automatically scroll down 200px to accomodate the new real estate at the bottom of the page.
Now they click on it, but then have to manually scroll down.
How can I do this? What do I add to the Spry Collapsible Panel js scripts?
I tried using a tag at the bottom of the 200px but can't get it to work correctly.
Dreamweaver CS5.
thanksI have been closing IE and reopening it for 7 months now. I don't of any other way to reload an applet.
Jason -
Hi
I have a web application which would enable users to see a list of PDF document on the web page and when the user select the PDF document, it will be open by a adobe PDF view
Within the content of the PDF document, it will contact URL links to some other portal web pages which we would like these other web pages to be open in a new browser window, but our testing shows that the new web pages may not always open in a new browser window.
Could you help to advise how I can enforce that new web pages that are clicked from the PDF document can always be open in a new Safari browser window ?
Thanks in advance.
Regards
Sen LeeHello,
In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:
#Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options'').
#In the Options window, select the ''Applications'' tab.
#In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''.
#On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.
Did this fix your problems? Please report back to us!
Thank you. -
How to make a still from a movie in iPhoto
Hi, can anyone tell me if it is possible to make a still photo from a movie clip stored in iphoto?
thanks
judeNo, but you can do it with iMovie.
Regards
TD -
How to make the browser's menu and web address bar disapper?
Hi,
I want to run my application in full window. That is to say, I do not want the browser having menu and URL field.
Is there any way to do that?
Stephenopen method (window object)
Opens a new web browser window.
Syntax
[windowVar = ][window].open("URL", "windowName", ["windowFeatures"])
windowVar is the name of a new window. Use this variable when referring to a window's properties, methods, and containership.
URL specifies the URL to open in the new window. See the location object for a description of the URL components.
windowName is the window name to use in the TARGET attribute of a <FORM> or <A> tag. windowName can contain only alphanumeric or underscore (_) characters.
windowFeatures is a comma-separated list of any of the following options and values:
toolbar[=yes|no]|[=1|0]
location[=yes|no]|[=1|0]
directories[=yes|no]|[=1|0]
status[=yes|no]|[=1|0]
menubar[=yes|no]|[=1|0]
scrollbars[=yes|no]|[=1|0]
resizable[=yes|no]|[=1|0]
width=pixels
height=pixels
You may use any subset of these options. Separate options with a comma. Do not put spaces between the options.
pixels is a positive integer specifying the dimension in pixels.
Maybe you are looking for
-
Hi Team , We added new Chassis into our exisitng UCS infrastructure. We discovered Chassis also & gave IPs to CIMC of new servers also. New Chassis IOM to FI cabling is also correct. But when i am trying to communicate with CIMC of Servers, connecion
-
I have been using a 2012 Mac pro to do HD video editing. I bought a new portable Macbook Air only to find that Maverick no longer has "open files in a new window" which I use all the time in the very large folders of video clips and royalty-free musi
-
Hi, I wanted to prompt for saving a file when the JFrame is getting closed. How can I implement this? Any suggessions would be helpful. Thanks
-
Client side eventing with HTMLB in a jsp file
Hi All, Can u give me the solution to work with client side eventing with HTMLB with a jsp page but not with a dynpage. Regards, sireesha.
-
Change apple id for apple push certificates portal
We have created a APNS certificate for our Mobile Device Management solution. The registration was made with a personalized account, is there a way to create a new account (wich is not personalized) and to switch the APNS certificate to this new acco