ActionScript 3.0 :: Script Working When Testing Scene Not In Flash Player

Jul 7, 2011

I'm been working on a script for a while, and am just about finished. It plays a movie onscreen based on where the cursor is, then when the left mouse is clicked, it plays a new movie and then writes a file.

It works when I test the scene withing Flash (the app). However, when I save it off as a .swf, and then open it in Flash player it does not. The mouse cursor is still playing a movie onscreen based on where the cursor is, but the left mouse button won't do anything, nor will it write a file.

Am I supposed to open an Actionscript 3/Air app somewhere else, not the Flash Player? I want to make this standalone, not have to be launched as a test scene inside Flash to work.

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Memory Leak When Testing On Flash Player 10?

Sep 1, 2011

I'm quite confused on what differences there can be between different versions of the flash player. Since I started coding my last game I've been testing it on chrome and firefox with good results (flash player 10.3.xxx). The memory needed to run it is always around 20 MB and also the cpu usage is pretty low. Also with the player 11 beta on ie the memory needed is around 50 Mb. But when i try to test it on the flash player 10 something is not working, the memory used by the game keeps growing and the garbage collection seems to be in holiday. Can this be related to the fact i'm coding it with the last cs5 (in as2)? Or since it's a board game i needed some listeners that could create this problem?

View 0 Replies

Actionscript 3.0 :: Flash Player Crashes When Testing My Movie

Oct 8, 2010

I'm working on a rather simple game and learning AS3 as I go along. I've come a pretty long way so far but now after adding some lines of code and changing a few - when testing my movie, Flash player starts and almost immediately crashes. I've went over the code I wrote, but all seems fine. Yet, being a complete newbie at AS3 and programming in general, it is very possible I'm missing the culprit.

View 4 Replies

Flash Player - Fullscreen Without User Interaction (automated Testing)?

Jul 4, 2010

At the moment I'm using Selenium-Flex to write functional tests for a video playback app.At the moment, I need to test that the app behaves appropriately when switched to fullscreen mode - make sure that the control bar is in a reasonable spot, the video resizes appropriately, etc., and of course to do that I need an automated way to make Flash Player go fullscreen.

For good reason, Flash's security features prevent being able to fullscreen except in response to user input. Actual user input, a javascript callback being called does not count.Is there any way to disable this security feature on my test rig, so I can actually run my automated tests on fullscreen mode? Barring that, is there any way to put Flash into fullscreen mode externally, so I can hack it up to work that way?

View 1 Replies

ActionScript 3.0 :: Open The SWF That Was Created By Testing Movie In A Stand-alone Flash Player Or A Browser?

Jul 23, 2009

I am making a flash site and there is a main SWF which loads and unloads all other SWFs into and from it. For example, there are links to pages Home, Biography, Gallery, etc. When you click the Gallery link, gallery.swf loads and it is added to the main SWF.

So here's my problem: when I test my movie, everything works perfectly, but when I open the SWF that was created by testing movie in a stand-alone Flash Player or a browser, those SWF's sometimes don't load. If I click Biography link, for example, it usually doesn't load biography.swf but if I click Gallery link, which may or may not load gallery.swf, and then Biography link, there's a greater chance that biography.swf will be loaded.

View 2 Replies

ActionScript 3.0 :: Flash Code Not Working If Add A Scene Before The Code Scene

Oct 14, 2011

I have an Actionscript coded flash file which run perfectly without any error. I am not getting why it shows an error after i do insert a scene before or a frame before the current frames;

[Code]...

View 1 Replies

Actionscript 3 - Flash Player Is Not Working In Domain / But Working If I Provided IP

Oct 14, 2010

I have developed a player in AS3. It is working if i provide the IP of the website. But, it is not working when i provide the full domain name. Even, i provide the crossdomain.xml for global access.

View 1 Replies

Flash :: Make A Button Navigate From Scene 1 To Scene 2 Without Displaying Both Scene Content In Scene2?

Jan 27, 2011

ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.

[Code]...

View 1 Replies

Disable Resizing Of Flash Scene In Flash Desktop Player?

Aug 19, 2011

I am using Flash CS5 and when I exprt my file to swf I notied that after exporting and playing it in Flash player (on my desktop) I can change the size of the window and the scene itself eventthough I have set the width and height dimension to e.g. 468x60.

So, the bad thing is that if I ahve some objects that are moving from this area and in banner I do not see them in flash player I can see all which is not good.

Is there a setting in export option to disable this behavior or some actionscript, so my client will not be able see the "mess-behind-the-scenes" :)?

I can probably remove some objects using actionscript, however if I have looping background image it is necessary to be bigger than 468px In my case 3x.

View 2 Replies

ActionScript 2.0 :: Flash Player 6 Code Not Working In Flash Player 10?

Mar 16, 2009

I would like to know how the following ActionScript, that only works in Flash Player 6, can be updated to work in a Flash Player 10 file.[URL]As it says, "On Publish Settings set Flash Player version on Flash Player 6, or this movie will not work."It works fine published as FP6 but not as FP10 as I need it to be. This AS is added to a movie symbol that contains a button for a rotating menu effect.

onClipEvent (load) {
hx = 300/2;
hy = 400/2;
r = 100;

[code]....

View 3 Replies

ActionScript 2.0 :: Get URL Function Not Working When Testing In HTML?

Jun 25, 2007

I have a small question : I gave a geturl function to one movie clip to link it to a website. the link works fine when testing the swf in Flash but not when testing in HTML, I tried 2 ways : put the code in my as script and with the behaviors, but it is the same.

here is my code :

link_mc.onRelease = function() {
getURL("http://www.kirupa.com", "_blank");
};

View 4 Replies

ActionScript 2.0 :: Swf Blocking - Links Are Not Working While It Is Testing In Internet Explorer

Jan 14, 2007

Actually I dont know in which section I can put my doubt? My problem is I have a full flash site .The swf file is working properly .But some links are not working while it is testing in internet explorer.It works when testing in Mozilla.The swf is in flash palyer 6. find out what is the problem with internet explorer.

View 10 Replies

ActionScript 2.0 :: Testing A Function Is Complete Or Testing 2 Tweens Have Finished

Feb 2, 2011

I basically need to scale an object up when the user rollsover the button which I have created dynamically already and I need to make sure the object is fully scaled up before I can allow the user to scale it back down again.Ive tried putting 2 tweens (x and yscale) into a function but not sure how to check if the tweens have finished. Im assuming if I check the function is complete it wont take into consideration the tweens may still be running.

View 0 Replies

Flash Player Not Working Under Xvfb?

Apr 6, 2011

Flash player not working in firefox (centos 5.5 x64) that run with selenium under XVFB. I'm getting just black screen in place where flash should be visible.

Tried both 32 and 64 versions.

View 1 Replies

Apple's ISight Not Working In Flash Player

May 3, 2009

I have an Apple iSight webcam and it's not working with Flash.I go into the Flash player settings and select my camera, I can see my image and camera working inside the little box in the Flash playser settings panel.But when I close the settings and "allow" the site to access my webcam it doesn't work.My camera just shuts off.It's been a while but my camera use to work with Flash, and my iSight camera works with other apps such as Skype.URL...

View 6 Replies

Flash Player Stopped Working On Web Site?

Aug 10, 2009

Flash player stopped working on web site Friday afternoon August 7th -
 
><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve rsion=6,0,29,0" height="105" width="803" align="left" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">

[code].....

View 1 Replies

Flash AS3 Audio Player Seems To Just Stop Working

Nov 16, 2011

So far my code stops the sound but once it has stopped the sound no longer works. I don't see any errors reported. It is as if the event listener no longer listens...
stop();
var soundClip:Sound = new Sound();
var sndChannel:SoundChannel = new SoundChannel();
var soundClipCompleted = false;
var isPlaying = false;
soundClip.load(new URLRequest("tune.mp3"));
[Code] .....

View 2 Replies

ActionScript 2.0 :: AS Not Working In Flash Player 8 / Works In 6

May 1, 2006

Can someone take a look at this AS and see if they notice any reason it wouldn't work in Flash Player 8?[code]

View 10 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

Flex :: Context Menu Not Working In Flash Player 10.1

Jun 23, 2011

I write a flex application. I added some custom menu items in context menu. when I compiled this code using flashplayer 10.0, it works fine and my added context menu items are shown when I Right-Click. But when I compile same code for flashPlayer 10.1, menu items that I added in context menu are not shown when I Right-Click. I am using sdk 3.5.

I am doing this;
private var cm:ContextMenu = new ContextMenu();
var versionMenu:ContextMenuItem = null;
var dateMenu:ContextMenuItem = null;
if(model.appVersion.length > 0) {
versionMenu = new ContextMenuItem(model.appVersion);
[Code] .....

View 2 Replies

Actionscript :: AddEventListener For Click Is Not Working With 2.0 And Flash Player 10

Jan 11, 2012

I have the following code from Adobe:

myListener = new Object();
myListener.click = function(evt){
trace(evt.type + " triggered");
}
myButton.addEventListener("click", myListener);

But this does not work though the btn on stage have the same Instance name as in code.

View 1 Replies

ActionScript 2.0 :: Tour Template Not Working In Flash Player 10?

Oct 12, 2010

I inherited a product tour template that when published works fine in players 9 and below. But when it gets loaded by player 10 all the xml parsed into the media controller at the bottom of the tour swf defaults to "true". What is going on? Is this a permissions security problem? All of the files are in the same folder and the swf is reading the xml - it just isnt parsing it correctly.

View 0 Replies

ActionScript 2.0 :: Script For Button Not Working For Flash 8 Player?

Apr 4, 2007

The buttons work in flash player 6, but i have recently added some filters to the site and changed the settings to flash player 8, now the button links do not work! The buttons are movieclips with script!

Here is the script:
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame(); }};
this.onRollOver = function()
[Code] .....

View 1 Replies

Flash 10 :: FileReference Upload Not Working On Firefox 3.6.6 Flash Player 10.1

Jul 14, 2010

I have an app that uploads pictures to the server. When I upgraded Firefox 3.6.6 FP to flash player 10.1 the uploaded stopped working. It still works perfect in other browsers. It works fine in Firefox 3.6.6 but different Flash player version. I did some debugging and noticed that it works fine when I run it in my development environment (Localhost). In the production server it returns I/o Exception but it doesnt make sense because it works for other players and also the file is there. I changed the permissions on the file to 777, the allowScriptAccess to always, tried to make the php path absolute also and no luck. The php file does not use sessions or cookies.

[Code]...

View 2 Replies

Flash :: Professional - Player Not Working When Logged Into Facebook Account

Mar 21, 2011

I have tried installing and unistalling the Adobe Flash Player several times to get it to work, but it is not helping. It won't work when I am logged into my facebook account.

View 1 Replies

ActionScript 1/2 :: Flash Player 8 & Selection Class (overall Not Working Via Code)

Jun 21, 2011

I have a simple input box with an on-screen keyboard. When I type into the box using the on-screen keyboard (adding characters to the box programatically) the Selection class overall isn't letting me control the input.I'm assuming this is a scope issue of some sort. The input belongs to one class while the onscreen keyboard belongs to another.Is the Selection glass global or is it class-scoped? Even when I pass a reference from one class to another and request Selection.getCaratIndex() from the class that generated the input it continually returns -1 which is not correct.The kicker is I can make a new AS2 document, put an input box on the screen, add text to it (all programmatically), Selection.setFocus() the input, run Selection.setSelection() to the last index of the input and Selection.getCaratIndex() returns the valid number. So there's something funky going on when classes are involved.

The only way the Selection class is working is if I use a real keyboard or mouse click, then it works fine. This isn't very useful in an on-screen keyboard context however.Are there any mines I should avoid when using the Selection class in an application where multiple other classes are involved? Is Selection really global or should I worry about scope with it?

View 3 Replies

Actionscript 3 :: Flex App Not Working Without Debug Version Of Flash Player

Jul 16, 2009

Recently, when I tried to show the results of my work (some Flex app) to my boss, i was quite suprised that application which run perfectly well on my pc, on my boss' pc wasn't displayed properly (the only thing visible was a default grey background). After 3h of trying absolutely everything, finally the app showed up when I changed his Flash Player version from standard one to debug (both was v. 10.0.22.87). Does anyone know what can be the reason of this (any compiler flag or sth). Forcing my boss to installing debug FP was quite ok, but forcing final user of the app to do so is unacceptable.

PS: By showing I mean deploying to Tomcat on my pc and giving my boss a link to the app. We both use Win XP. Also when I installed debug FP for Netscape browsers and standard FP for IE (on my pc) the result is the same - working in Firefox, Opera, Chrome and grey background in IE. I've compiled both as a Debug and as a Release. I'm using Flash Develop 3.0.2 RTM After stripping my app to sth like this - it still works only in debug FP

[Code]....

View 4 Replies

Actionscript 3 :: Global Error Handler For Flash Player 10.1 Not Working?

Jul 23, 2010

Trying to implement the new FP 10.1 Global error handler into my projects but no matter what I do any uncaught error will still show up the Exception window (both in debug and release versions of the SWF). All I want to do is to prevent these popups but instead send a message to my logger. Here's my code ...

EDIT: I simplified the code now. Could somebody do me a favor and test the following class and see if it's works for him? Because it's doesn't for me! ...

package
{
import flash.display.Sprite;
import flash.events.UncaughtErrorEvent;

[code]....

View 4 Replies

Flex :: Flash Player On Ubuntu 10 Not Working After Builder Installation

Aug 16, 2010

I've just installed Flash builder on my machine, which went ahead and installed the debug version of Flash on my machine as well. It appears now that this has broken Flash in my browsers or at least the browsers have no idea where flash is located on my machine. When I open a browser and navigate to a Flash page I get the message,

"Alternate HTML content should be placed here. This content requires the Adobe Flash Player. Get Flash "

This is from Google chrome but FF is also effected.

View 1 Replies

Flash - YouTube Player Not Working Without Continuous Mouse Movement Over It?

Oct 15, 2010

What can be the cause of the YouTube player not working (playing, buffering, firing api events) if I don't continuously move the cursor over the player?

View 1 Replies







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