ActionScript 2.0 :: GetUrl With Javascript Breaks When Publishing For Flash Player 8

Sep 28, 2006

I want to use getUrl to display a javascript alert. I've found an example that works perfectly, by using getUrl("javascript:alert('hello world')"); But that example is published for Flash Player 6, and the rest of my movie requires FP8. And if I go to publish settings, and select Flash Player 8 as target, the javascript is no longer executed.

It's not about the getUrl changes in Flash Player 9, I've also tested with Flash Player 8. If you want to try for yourself, the example I'm talking about is from [URL]..

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Disable GetURL Javascript Calls When Publishing?

Feb 21, 2007

Is there a way to tell Flash to ignore getURL javascript calls when testing? It's highly annoying to hit control + enter and then have a damn browser window pop-up every single time.I'm woring on a site that has javascript calls to Google Analytics to track nearly every action. This is not by my choice but by the choice of a client. Typically the tracking gets added last but in this case, that was for phase I launch of the site and now I'm onto phase II.I could go through & comment out all the getURL javascript calls until the sites ready but I'm hoping theres another way.

View 3 Replies

Actionscript 2.0 :: Publishing Images 100% Breaks Movie?

Apr 19, 2010

I am using Flash C4 and using ActionScript 2.0. I have a movie, but when I publish it out with at the default image quality setting on 80% it doesn't look crisp. When I publish the movie out with the jpeg quality at 100% it totally breaks my entire movie. Any animations flicker and anything that has actions on it does not work and my mouse flickers back between the pointer and the hand uncontrollably.

I changed the Hardware Acceleration to level 2 GPU and my animations no longer flicker, but my actions still do not work properly.

View 2 Replies

ActionScript 2.0 :: Flash's Own GetURL-with-javascript Not Working?

Mar 8, 2007

I'm trying to use getURL to open a new window that will have a specified size.I downloaded Macromedia's own tutorial/sample code for how to do this using javascript and cannot get it to work.

Here's their code:

on (release) {
getURL("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400 ,toolbar=no,scr ollbars=yes') ");
}

[URL]

Nothing happens when I click their button. I tried changing the target, still nothing. I also tried it in Safari and in Firefox with FF's popup blocker turned off. Nothing.

[URL]

View 3 Replies

ActionScript 2.0 :: What Are Cons Of Publishing In Flash Player 7

Jan 23, 2010

I've been working on an xml gallery. The website scales according to the browser window. Some of my work is fine lineart and any scaling seems to cause a lot of aliasing. If I publish it with Flash Player 7 the scaling is fine.This may sound like a naive question but what are the cons with publishing a portfolio with an older Flash Player?

View 2 Replies

Actionscript 3 :: Flash Player Breaks When Loading .csv File With URLLoader

Mar 25, 2011

I've made a little flash, with AS3, to view the data generated by some program I wrote... The data is in a .csv file and are loaded to the memory with a URLLoader object.

The flash loads well .csv files which can come to almost 50 MB in size... But when I try to load a file with 160 MB, the player just stop working... I run the last flash player version, outside of the browser...

I've heard that the Flash has limitations on the amount of memory it can store... But in another question, they say it has not.

What may be causing the crash? - I don't think it is the code, since it runs smooth for small files...

View 2 Replies

ActionScript 3.0 :: Publishing In Flash Player 9 Vs Flash Player 10

Apr 27, 2010

I'm building a portfolio site. I have buttons to go to previous/next frames and I have all the buttons on the timeline. Each instance is properly labeled and referenced in the actionscript. I get no errors when I publish in 9, but when published in 10 I get:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

I'm not sure why this is happening because there isn't a null reference in my mind. The button which I reference in the code is on that exact same frame. I think the error is that it's looking for the button from the previous frame, which puzzles me because I've moved on to the next frame and I don't know why it'd be trying to reference that. Anyone know of DisplayObject differences from 9 to 10 that would be causing me these troubles?

View 3 Replies

ActionScript 2.0 :: Create In Flash 8 And Publishing For Player Version 6?

Jun 14, 2006

In order to meet the largest penetration of users with a flash player downloaded onto their machines, I have been tasked to Publish with Version 6 settings. However, I am creating my movies in Flash 8.

Are there any known draw backs to publishing with Version settings later than the Flash you are building in?

I.E. Component failure? Visual Quality? AS 1.0 v AS 2.0?

View 3 Replies

CS3 GetURL Is Blocked By Flash Player

Dec 27, 2009

I'm making a sort of portfolio movie using flash which I intended to use for directing to different locations in the Web concerning me; my already uploaded flash movies, sites, creations, projects, etc.

It quickly seems all my work till now might have been for nought: when I click on a link in my published flash so far, it displays this message:

"Adobe Flash Player has stopped a potentially unsafe operation.

The following local application:

(swf path)

has tried to communicate with this Internet-enabled location:

(link target)

To let this application communicate with the Internet, click Settings. You must restart the application after changing your settings."

As you can probably understand, I cannot expect visitors to my site to manually configure their player for every single of the tens of links I have in my movie. Is there any way I can convince Flash Player that my links are not potentially unsafe?? I am using Flash CS3 and AS2.

View 4 Replies

ActionScript 2.0 :: GetURL Not Work In Flash Player 8

May 2, 2007

I use getURL to trigger new page, it works in flash player 7 (publish setting -> flash player version 7) but not works in flash player 8 (publish setting -> flash player version 8). Here is the code :

[Code]...

View 2 Replies

ActionScript 2 :: Javascript - Google Analytics Flash Track GETURL #anchor

Nov 28, 2010

I'm trying to track a #anchor for example [URL] the anchor is being called by Flash AS2. how can i tell GA to track hits on this page? I tried the GETURL method in flash:

[Code]....

which apprently used to work, but since they've made changes this doesn't... during tests firefox navigated to a page with the url javascript:_gaq.push [URL] was strange. Do I need to even use flash to ask GA to track the anchor? Is there a way i can point GA to track all anchors that are part of my page?

View 2 Replies

ActionScript 2.0 :: Pass Flash Variables Through A GetURL Javascript Function Call

Dec 2, 2009

How To Run A Shadowbox Gallery From A Flash getUrl function Call..

This Is What I Have In My Flash:

btn1.onRelease = function() {
getURL("javascript:MyGallery([page1,app1]);", "_self");
}

I want to be able to declare my arguments in flash like so

var page1 = {
title: 'Google',
player: 'iframe',

[Code].....

View 1 Replies

Actionscript :: Open Swf File In Stand Alone Flash Player From GetURL() Action?

May 26, 2010

I would like to open a separate swf file from with in flash, but by default, it opens the swf in a browser. I would like this file to open in a stand alone player not in the browser.How can I achive this? Right now I'm using the getURL() action. Is there a separate function for opening a file at a specified filepath?

View 1 Replies

Professional :: Publishing A Flash Video: Player Not Visible - Height And Width Referenced 3-times In Html?

Mar 5, 2010

When I publish my FLV video using Flash CS3 and the "SkinUnderAll" option...the player controls are not visible unless I change the height & width in the html file Flash created.But, Flash shows the height & width 3-times in the html.
 
Question-1: Why 3-times? What does each of the 3 Height & Width references do?
 
Question-2: How should I modify the code to be able to see the entire video and the player controls?

It seems if I change all 3 everything just gets bigger and bigger.
 
1 - I import it into Flash CS3 on a PC w/XP Pro using... File | Import | Video take all the defaults and choose "Skin Under All" as the player option.
 
2 - In "Properties" panel at bottom of screen Flash shows the video as 640x480
 
3 - I then click File | Publish to publish the video. Flash creates all my files for me.
 
MyVideo.fla
MyVideo.flv
MyVideo.html
MyVideo.swf
SkinUnderAll.swf
AC_RunActiveContent.js
 
4 - I then put the folder with the files on my website.
 
5 - The video plays but the player controls are not visible.
 
6 - I see the Height & Width referenced 3 times in the html file Flash created for me (and none are 640x480, they are 550x400 !)
 
7 - I try changing the 550x400 to 640x480 in all three places... no good. Even at 1000x1000 the entire player is not visible. Everything just gets larger.
 
What are each of the 3 references to Height and Width in the html file Flash Creates and which should I change to simply show all the player controls?

View 2 Replies

Javascript :: Looking For Wii Compatible Javascript Flash Mp3 Player?

Oct 24, 2009

I am looking for a flash mp3 player that will work within the Opera-based browser on the Wii. The player needs to be javascript enabled (support methods like play, stop etc.) The mp3 tracklist will be built dynamically using ajax on the same page as the player so it must trigger an event when a track finishes playing (or at least provide functionality of some kind to indicate that it's time to start the next track). Does anyone know of such a player?

[Code]...

View 4 Replies

Professional :: JavaScript That Comes With Publishing?

Aug 6, 2010

I've just created a quick video player using the FLVPlayBack Component.  When I publish, the HTML file always has a bunch of JavaScript in the <header> tab.  What is this JavaScript for? I've tried to move the JavaScript into a seperate file and link it in the HTML file, but the .swf will not load.  I've also tried just deleting the JavaScript, but the .swf will not load.  I have found the only way to get the .swf to play is to keep the javascript in the HTML file.  The problem I am looking at is I am building a webpage that will have two seperate video players, thus requiring two seperate .swf files.  What I am concerned about is I'll have to have a boat load of JavaScript in the one HTML page which makes it messy.  I've tried searching the internet, but not able to find much help.  Is there a way around having to keep the JavaScript in the HTML file?

View 4 Replies

Javascript :: Why Use DoFSCommand If One Can Just GetUrl

Dec 4, 2010

I read it's possible to call any javascript [URL] so why would I need doFscommand ?

View 1 Replies

Actionscript 3 :: Publishing Swf From Air 2.6 Player?

Jan 29, 2012

My game works with no error when i control+enter my fla file in air 2.6 player. my problem occurs when i open my swf file.

My swf file keeps iterating through timeline. i have used stop(); function in every timeframe. this problem is not seen when i control+enter my fla.

View 1 Replies

ActionScript 2.0 :: Add A Variable To A GetURL Javascript Function?

Jan 13, 2011

how to add a variable to a getURL Javascript function. I have; ActionScript Code: getURL("javascript:JavascriptFunctionNAme(ASVariableName?);"); It works fine when I replace ASVariableName with "1" or some other plain text.

View 5 Replies

ActionScript 2.0 :: Resizing Browser Window On GetURL - Not Using JavaScript

Sep 20, 2010

I'm working on a kind of coverflow layout and I'm using an XML file to house my links and information about those links. in my ActionScript, I'm using getURL to point to the link the user clicks and open the link in a new window using the following script:

getURL(infostruc[current - 1].artLink, "_blank");

I need to have the new window open up to a specific size (1014x714), but I'm not sure how to write the AS for this kind of action since I'm calling the link from an external file.

View 1 Replies

Flash :: Php - MP3 Player With Javascript Controls?

Jan 14, 2010

While the question may seem fairly basic I seem to be at a loss to actually find anything that fits my needs, which are:

Skinnable (although not 100% required) Controllable through javascript (start, stop, change track)Event triggers for custom functions (on track finish mainly) Actual documentation - rather that 'it can do this, but we wont tell you how' I've tried many of the free and quite a few demo's of the pay for ones. Wimpy Wasp seemed to be the closest to what I need but there is an obsession there with using a custom Windows app to set it up which is impossible as the files are provided dynamically by the sites users and it doesn't look like they want you to be able to create the code yourself.

View 2 Replies

Flash :: Player Control From Javascript Outside?

Sep 17, 2011

I am making flash player that suppose to be controlled from outside, from javascript.

I need those methods: Play/Pause and Volume level

I am stuck with volume level... I tried to add this code:

flashMovie.volume = 10;

Where flashMovie is flash instance... And it's show NO ERROR but it's NOT WORKING

[Code]...

View 3 Replies

Javascript :: Capture Flash Player Event?

Jan 5, 2010

I need to capture the event raised when a flash video ends. If possible, I'd like to distinguish this from a user clicking the stop button.

One thing to be made perfectly clear:

I DON'T HAVE CONTROL OVER THE PRESENTATIONS OR THE SWF FILES.

What I'm looking for is simple (I thought) js automation of the client player object, not more complex interactivity with the presentation itself. I thought this would be really simple stuff, but a dozen Google and Bing searches later, I can't find anything about it.

View 2 Replies

Javascript :: SWF Loading And Flash Player Upgrade?

Oct 18, 2011

I am currently working on a Flash game. In order to ensure the user experience is consistent, I tried to specify the swfVersion and called "swfobject.embedSWF()" using the following code segment.

PD.prototype.loadGame=function(){
var flashvars=this.bootData;
var swfVersion = "11.0.1.152";

[code]......

View 1 Replies

Actionscript 3 :: Access Javascript Through Flash Player?

Dec 20, 2011

I am trying to access a javascript function through flash player and the code is working for twitter. But in case of facebook, when i post the swf file and try to access the code, the flash player doesn't work. I think there is a problem of script access. But i have set the code:allow script access to alwaysin the php file where i embedd the flash player. But in case of facebook i am unable to embedd my php file. So, is there any way by which i can set allow script access to my swf file in facebook?

View 1 Replies

Professional :: Dispatching Event From JavaScript To Flash Player?

Jul 10, 2010

Can I dispatch events from javascript to flash player? I am trying to do so by calling dispatchEvent() on flash player dom object but the event is not passing inside flash player.

View 5 Replies

JavaScript :: Embedded Flash MP3 Player Slow On Some Files

Jan 19, 2010

I am using a embeddable Flash based MP3 player (The standalone Version of Wordpress Audio Player, to be exact) to play audio on the web page of a client. Given the nature of Flash based players - AFAIK they all use Flash's audio/video decoding libraries - the exact player product might not matter, though. She complains that some specific audio files sometimes tend to play slowly, as if on a tape deck that doesn't run at full speed. Her machine is a 5 year old Sony Vaio with a 1.5 GhZ Pentium M Processor.

So it's not top of the line anymore but it should not have trouble decoding anything, let alone a MP3 audio stream. I can't verify the problem because we can't set up an audio connection (slow Internet on a remote island), nor can I reproduce it on my 3.3 GhZ dual-code Workstation, but this is a person whose error reports have seldom turned out unfounded in the past, so I tend to take them seriously. I see differences between the encodings of the MP3 files (see below). Any pointers towards which setting(s) to change?

This is what Winamp tells me about a file that is sometimes slow:
MPEG-1 Layer 3
128 Kbit, approx. 966 frames
48000Hz Stereo
CRC: Yes, Copyright: No

This is what Winamp tells me about a file that is never slow:
Encoder delay: 576, Zero Padding: 1584
MPEG-1 Layer 3
151 Kbit (VBR), 12405 Frames
44100Hz Joint Stereo
CRC: No, Copyright: No

View 2 Replies

JavaScript :: External Interface On Flash Player Not Working On CDN

Oct 5, 2010

I have a flash player with an external javascript interface: reloadData() I'm calling that function via Javascript when editing information on the page - basically to keep data on the page and in the player in synch. The reloadData() function works fine when the player is hosted locally. When we move it to the CDN (Amazon Cloudfront), the player loads successfully, but the external javascript interface no longer works - console.log(player) reveals the following:

<object type=,"application/x-shockwave-flash" data="[our_cloudfront_url].swf" width="920" height="404" id="player" style="visibility:visible;">
Uncaught TypeError: Object #<an HTMLObjectElement> has no method 'reloadData'

I know there are a lot of things that behave differently when working with items on a CDN, but we're using a CNAME to point to the cloudfront distribution
(buildid.ourdomain.net => distributionid.cloudfront.net)

View 1 Replies

Php :: Return Video URL For Flash Player To Load Via Javascript?

Oct 17, 2010

I have a SWF loaded via a "swfobject.embedSWF()"I use Javascript's methods to pass calls via the flash APIs:call.player.sendEvent('LOAD', theFile)Using a XMLHttpRequest() call via GET to a PHP script I get a file url:Typing the URL into my browser starts the file, but passing the variable to the sendEvent() call does nothing. Why?

var response = http.responseText;
loadFile(response);
player.sendEvent('PLAY');

[code]......

View 2 Replies

JavaScript :: Playing MP3 In Flash Player With Full Controls?

May 20, 2011

I want to play song on my website, any flash mp3 player which allows me to control play, pause, change song position (means backward/forward by certain limit), change volume options using javascript code.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved