Actionscript not working!!
For some reason i cant get
onClipEvent (enterframe) {
if (Key.isDown(Key.TAB)){
gotoAndStop(2)
to work!
even when i export it to an swf file it still doesnt work
I am using Flash MX 2004 version 7.0.1
and I am using a Mac
Nevermind... stupid mistake. Safari was being
difficult...
Similar Messages
-
In my flash project i am using ActionScript to get FULLScreen and mouse hide action. I hv already used the AS3 in Adobe Flash CC and AS2 in Adobe Flash CS6. All my files are working well, both .SWF and .EXE (projector..) . But the client is saying in his pc the Full SCREEN and Mouse hide is not working. I instructed to update the flash player plugins, still they are getting the same issue. What is the matter pls any one guide us. My code is in the first frame of Flash file which is mention below.
/*AS2 code*/
fscommand("fullscreen","true");
Mouse.hide();
/*AS3 code*/
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
stage.scaleMode = StageScaleMode.SHOW_ALL;
Mouse.hide();Hi all, few days ago the client told , one of the project file (.SWF and .EXE) showing full screen. Again day before yesterday the client again said, all the project files working Full Screen and Mouse hide action. Still i do know such happens ? if any technical issue is behind its problem than anyone pls inform me. However it is running well in their PC now.
-
Actionscript not working right
hi
sorry if this is the wrong place to post this, but it seems like the right place.
basically, i have some actionscript which works fine when i export an SWF using flash, or run the swf as a standalone, but when i make the SWF a projector / exe file, the actionscript fails to work correct.
what the actionscript is, is an rss feed that scrolls, and when it gets to the end its supposed to refresh and continue scrolling. as an exe its scrolling fine, but not refreshing. it picks it up when it first runs, but nothing after that. when i run the SWF it refreshes fine.
is there something in the settings that i need to change?
hope that this makes sense.
Thanksignore this, i've sorted it. didn't realise that in the flash player settings manager you could put in EXE's as well. put it in, and it works fine.
sorry should have looked at that first!!! -
ActionScript not working after save
Hello
I installed flash CS4 Pro on 3 computers and i have this problem:
I create a new project (CS4 + AS3), create a simple animation and put ActionScript on first keyframe. When I run this project (CTR+Enter) everything is working perfect....
BUT... when i save this project and run it once again, scripts are not working. Debugger says, that there are no scipts, console is empty, but scripts are still in the same place. (i can see them in editor). Only change i made is that i click on Save in menu and put a name in dialog.I uploadet files here:
http://wagoon.sweb.cz/pokus-aktivita3.fla
http://wagoon.sweb.cz/pokus-aktivita3.swf
... and thanks for you help and time... -
when i do it using mxml, the list populates but when i try
doing it using actionscript 3 it is not working.
//DOESNT WORK...
var catList:List = new List;
catList.dataProvider = multiDArr;
catList.labelField = 'label';
this.addChild(catList);
//WORKS...
var catList:List = new List;
catList.dataProvider = singleDArr;
catList.labelField = 'label';
this.addChild(catList);
//WORKS...
<mx:List dataProvider="{multiDArr}" />
// here is the array i am passing from amfphp and putting
into multiDArr ...
$arr[$i]['label'] = mysql_result($result,$i,'feature_name');
$arr[$i]['_type'] = mysql_result($result,$i,'feature_type');
$arr[$i]['_value'] =
mysql_result($result,$i,'feature_value');well i got a solution to my problem...for now!
-
Actionscript not working on Mac
I am creating a simple mouse over button on my PC computer in
Flash for a website. When I upload the .swf, and the html file, the
file works fine on my PC, but does not work on my mac... any ideas?
Also, when you click on the button, the website comes up, so
that portion works fine on my mac... but why not the stop and play
function?
This is the code:
on (release) {getURL("
http://www.sammijdesigns.com/");
on (rollOut) {play();
on (rollOver) {stop();
}Nevermind... stupid mistake. Safari was being
difficult... -
Actionscript not working on the HTML file PLEASE HELP
Hello,
I made a website in flash, you can download everything here, because I need this problem fixed by Monday http://www.mediafire.com/?sharekey=e5d0b30598ff413aa0f2f20c509059d9e04e75f6e8ebb871
The problem is, when I publish the file, and run the html file, the actionscript doesn't work. When I run the project in flash it works perfectly. I do not believe it is the player or anything of that sort that is wrong, although I can not be sure. I've tried this on like 10 different computers, and none were able to load the actionscript. Does anyone know why the actionscript wouldn't be working when I run the html file for the site?
Please Help, Thank you.Hi !
Don't panic yet
I think you didn't select the Flash with SFCommand in the HTML tab inside the Template dropdown menu, that's the reason your Actions Scripts doesn't work in the html view.
To access hold down CTRL+SHIFT+F12--->HTML tab--->The first dropdown menu at the top
Hope this solve your problem. -
Imported SWF actionscript not working in _root movie...
Hello.
I will tell you below what I want to accomplish, then I'll
tell you what I have done (that didn't work). I'm hoping that
someone here can tell me where I went wrong, and also how to fix it
and pull off what I'm trying to do. Thanks!...
WHAT I WANT TO DO:
I want to have a Captivate SWF loaded into the bottom half of
a main Flash "shell" SWF, and then when the Captivate SWF is done
playing, a text field on the main "shell" SWF puts the word "DONE!"
in it.
WHAT I HAVE DONE (that didn't work):
I have a Flash SWF that loads a Captivate3 SWF in its bottom
half (that works fine). The top half of the main Flash movie has a
dynamic text field on it called "doneText_txt".
I then made another SWF that is just 10x10px and all that is
on it is ActionScript on the first frame that says:
_root.doneText_txt.text = "DONE!";
I then went on the last slide/frame of my Captivate project
(in Captivate) and did an "Insert-->Animation" to insert that
small 10x10 SWF onto that final slide.
When I load that main "shell" and then the Captivate project
loads at the bottom and finishes playing, nothing is displayed in
the "doneText_txt" text box.
THINGS I NOTICED:
When I imported the SWF into Captivate, it was transparent
(didn't show up). I adjusted the transparency on it (in Captivate)
to both 0% and 100%, and it still didn't show up. I thought that it
may be just because it had nothing on it (just the default white
background), so I went back into Flash and re-exported the 10x10
SWF after filling it with black. I re-imported it into Captivate,
and still it didn't show up. Like, I figured you'd see a black
square on the slide. It was on the timeline, and I could move it
around on the slide, but it was just a clear transparent box. This
made me think that the reason the "DONE!" text wasn't getting
passed was because there was a problem with the SWF even being on
the slide in the first place.
Any ideas???? Or, if there's another way to pull off what I'm
trying to do, that would be fine with me as well. Thanks!!!quote:
Originally posted by:
jbradley88
I don't think inserted objects are placed on _root, so I
wouldn't expect it to work.
But isn't "_root" just the top-most object? So, if I'm
loading the Captivate project from my main Flash SWF, then that
main Flash SWF is the "_root" no matter what, right? Or am I wrong
about that???
quote:
Originally posted by:
jbradley88
Perhaps you need to have your object identify itself via a
global variable, then have your code reference the object via the
variable?
Can you explain in more detail how to do this? I REALLY need
to get this working, but I'm just at a total loss!
Thanks!!! -
ActionScript not working for buttons
I tried making a button in Flash 8 and then I click on the
button and go into actions and it works fine. But in Adobe CS I
make a button, click on it and go to actions and all of the
timeline controls are blanked out. Even if I drag a generic button
from libraries and try to add actions it won't let me.
Can anyone help?
Thanks.I'm afraid attaching code to buttons was against
best
practice in AS2, and is
no
longer available in AS3.
Have a look at the help - Programming ActionScript 3.0,
Getting started with ActionScript. The Animation portfolio piece
introduces buttons. -
X / Y positioning with actionscript not working
Hi all,
I've got a panel with id="myPanel".
I'm trying to move it on the Application canvas to x/y using
actionscript function:
public function movePanel():void
myPanel.x = 100;
myPanel.y = 100;
and it doesn't budge.
I've tried setting autoLayout = "false" in the panel, in the
panel's parent, etc. Nothing.
Inside mx:Application I've used
applicationComplete="myPanel.x = 100; myPanel.y = 100" and it works
only once, but then I can't move it again using actionscript on an
event.
I've made the application layout absolute, and I've also
tried removing all layout properties to see if that would help, but
it doesn't.
I've tried wrapping it in an mx:Canvas and moving the canvas
by its ID, but nothing.
I must be missing something obvious, because it seems that it
should be simple.
Any pointers are appreciated. Thanks.
RFXyu.wei.qian.07,
Thank you my friend, for your advice...
I got it working, but the cause is still a mystery.
I tested out a new application just for moving around stuff
and it was working fine, so I went back and tested it again in my
main application, and it worked with a test button that I placed on
the canvas and it worked... so I looked a little deeper, and the
linkbutton that I was first using to call the function had other
functions in the click event, e.g. click = "function1();
function2(some parms, some parms); movePanel();"
The above didn't work... went into pulling hair out mode,
testing all kinds of different configs like I stated in the above
posts, then tried the click="movePanel();" by itself, and it
worked.
Ok... so then I try click = "movePanel(); function1();
functon2 ... etc", and it works.
Soooo, now the behaviour of the click is calling the
movePanel function first, and it's setting the x/y with no problem,
and the other functions are still working as before. No idea why.
No errors reported either.
Anyway, thanks again for the advice.
RFX -
Flash CS5 ActionScript not working after 2-3mins
Hi,
I am using CS5 Design Premium and encounter a very crazy flash problem..... i used the AS3 and made an object move for 100 frames. Added a AS to stop at 50th frame. basically using stop(); for the AS. but it doesnt work when i test it. so i close and open the flash CS5 again and tested it and it worked. after about 2-3mins into using the program i didn't touch anything and test the movie again and it doesnt stop at the frame with the AS. So i tried closing the program and opening it again and tested it and worked again.....so i did a few try and error and found the software i open for the first few minutes tested the movie and it function normally but once after a couple of minutes the AS no longer worked.
can i know if there is any settings to ensure AS is being detected through out the using of the software or it is the software having some problems?You should provide the code you're using and describe what it's supposed to be doing. While it might be a bug in CS5, it is possible the code is causing the performance issue.
-
Javascript called from actionscript not working properly
I have a flash file that I want to change the background of
an HTML frame when Scene2 begins. The code I have works fine in
Safari and gives the desired result. However, calling it from
firefox own Win IE, results in the javascript being placed in the
address bar, and the name of the bkg image placed in the upper left
corner.
Here is the code in the flash file...
getURL("javascript
ocument.body.background='fork.jpg'");
Here is the URL to the site
http://www.nealstudio.com/ametricstest/flashtest.html
Surely, it's something simple that I'm missing.MacManSC wrote:
> I changed the code to make it work. Previously, I had no
javascript in the HTML
> document. I went in and changed the js in the flash to
just a call for the code
> in the HTML. It was my understanding that with my
original code, that I didn't
> need to have any further js.
>
yes that's quite correct although you'll find it's much more
robust to
put all your javascript into functions, which should be
stored in an
external .js file. That way, if you need to change anything
you mostly
won't need to go into flash at all, just edit the function in
the .js
file. Having the external .js then allow you to include the
same
functionality on different pages in your site whilst keeping
all
functions in one place.
MOLOKO
Macromedia Certified Flash MX 2004 Developer
Macromedia Certified Flash MX Developer
::remove _underwear_ to reply::
'There ain't no devil - it's just God when he's drunk' Tom
Waits
GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+
w+++$ !O M+
VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e
h-- r+ y++ -
SWC buttons not working in a Flash Builder 4.7 ActionScript Project
Howdy,
I have this BIG issue. Every button in my swc causes issues when compilling in Flash Builder 4.7. Two things will happen, one or the other:
1. I get this error in the class that extends a linked library item:
Error #1107: The ABC data is corrupt, attempt to read out of bounds.
2. The swf compiles with no errors but all buttons display the wrong art.
Both problems go away when I remove the buttons.
I found this article:
http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-useflashsdk/
I tried this solution but it did not work.
This problem occurs with all my projects. I'm creating SWCs via Flash Pro, and using them in a Flash Builder ActionScript Project.
Does anyone have any solutions?
Thanks!Hi,
I followed the directions here: http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-u seflashsdk/
But the only "Use Specific SDK:" options are Flex 4.6.0 and Flex 3.6a.
When I select Flex 4.6.0 (under "Use Specific SDK:"), I get errors, it seems that some sub classes don't have access to their parents protected methods and properties. The only way to fix this is to delete the project and create it again.
I downloaded the apache flex SDK, and added it via the Flash Builder preferences. Then went into the project and set "Use Specific SDK:" to the appache flex. This brought up more errors, double clicking the errors wouldn't take me to any class, they where mostly something about bitmap...
And the only way to fix it is to delete the project and create it again.
Should I not use Flash 4.6? or not use SWCs? This is really frustrating. -
Actionscript error checking not working?
Does error checking only work on actionscript files that are imported by main file?
Also...will error checking not work on the current open file if another file contains errors?from where u are loading the external SWF
possible problems are
check the URL
check for crossDomain problem -
ActionScript 2 issues: previous button not working
Hello,
I am trying to create a slideshow in Flash CS4 using ActionScript 2.
I have imported "pause" and "play" buttons from the libraries, and I have created "next" and "previous" buttons by using the PolyStar tool.
Here is my problem: The "previous" button is not working. However, the other buttons (even the "next" button, which only really has the opposite code) do work.
I am writing all of my code in the frames, which probably isn't the best idea, but it would be hard for me to change now.
Code (an example code frame)(currently on the 1st frame):
prev.onPress = function(){
gotoAndStop("14");
begin.onPress = function(){
play();
pause.onPress = function(){
stop();
next.onPress = function(){
gotoAndStop("2");
previous.onPress = function(){
gotoAndStop("14");
"prev" is an instance of "previous". "begin", "next", and "pause", are instances of a play button, "next", and a pause button. I am using frame labels that go from "1" to "14".
What am I doing wrong?
feffer1218Thanks for your advice, but it didn't work.
1. I changed all of my frame labels so that they have the letter "p" in front of all of them. (ex: "p1" instead of "1")
2. I commented out the "previous.onPress" code.
2 examples of code:
//p1 (first photo)
prev.onPress = function(){
gotoAndStop("p14");
begin.onPress = function(){
play();
pause.onPress = function(){
stop();
next.onPress = function(){
gotoAndStop("p2");
/*previous.onPress = function(){
gotoAndStop("14");
//p2 (second photo)
begin.onPress = function(){
play();
pause.onPress = function(){
stop();
next.onPress = function(){
gotoAndStop("p3");
prev.onPress = function(){
gotoAndStop("p1");
I don't know what I'm doing wrong! The Properties window says that "prev" is an "instance of: previous."
Any ideas? Thanks for the attempt, though.
feffer1218
Maybe you are looking for
-
When I run my app at the target, I get an error (show stopper) that says (more or less) Error in call to LoadPanel. Tsc_Setup_uir.uir, Panel Resource ID: 2, Error Code: -86. Callback function QuitLoginInstCB not known. Background: I'm using LabWindow
-
Downloaded iMovie 10. I find I can no longer burn DVDs in my iDVD app.
Downloaded iMovie 10 and find now I cannot butn DVDs w/iDVD. Why not or am I missig something???
-
Photo Booth makes others apps crash in Snow Leopard when exporting pics.
I use PhotoBooth to take pictures of patients and I put the pictures in Word documents or in a Filemaker database. In Tiger, all we needed to do was drag the picture from Photo Booth directly in our app. Since upgrading to SL 10.6.1, if we attempt th
-
CreateJavaVM fails with JNI_ENOMEM (-4) even though there is enogh memory
Hi, I am creating a VM on Win XP using JNI_CreateJavaVM. It fails when I add an option "-Xmx1024M", error code being JNI_ENOMEM (-4). It works with "-Xmx500M". The system has 2GB memory, other java processes (non-JNI) start without problems even with
-
Prevent app sync between devices
I am new to iCloud and was wondering how you prevent app snycing. I don't want apps to be downloading to my iphone when I download them to my ipad without me personally saying to. By the way, this happens without any kind of iTunes connection. Tha