ActionScript 3.0 :: Flash Class Doesn't Work After Published
Oct 9, 2010
I created a class for showing a Alert Message Window, everything is working OK while I executed it from Flash, but when I published it I can't see nothing... I tryed in differents browsers, I tryed from localhost, uploading to an internet server, creating crossdomain.xml file in the root server, turning to "Access network only" the Flash Publish preferences... and nothing yet.
Here the class
Code:
package com.nuedi.ui
{
import flash.display.Bitmap;
import flash.display.BitmapData;
[Code].....
View 9 Replies
Similar Posts:
Jul 12, 2009
So I'm guessing this is a security issue with Flash player 10, but I don't know how to get around it.
The swf works perfectly when I'm testing from within the IDE, but when I try to run the published one it gives me errors.
No such file/directory: [URL]
When in fact it does exist(the published swf is in "Posada"):
[URL]
So, I tried putting a crossdomain.xml in the same directory as the swf:
Code:
<xml version="1.0">
<cross-domain-policy>
<allow-access-from domain="*"></allow-access-from>
</cross-domain-policy>
[Code].....
View 1 Replies
Oct 7, 2004
I was wondering why my current code for calling a setInterval on a function doesn't work inside my class.I have this code inside one function, calling a second function.
intID = setInterval(selfReferential, dupe, 30, 0x000000);
The selfReferential keyword refers to the current class,but was defined previously (selfReferential = this; ).I get no errors, but the dupe() function is never called.and I had the selfReferential variable replaced with the this keyword at one point as well.
View 5 Replies
Oct 3, 2011
I copied my actions from frame 3 to frame 4 and frame 4's class doesn't work when frame 3's class works fine and normal, here is the source code:
Frame 3:
stop();
var rowNum:int = 10;
for (var i:int=0; i<rowNum; i++)[code]....
View 7 Replies
Jun 1, 2011
I have an MP3 file in Flash 5.5 that I have edited in the properties panel of the frame where the sound is...I basically cut a couple seconds off the beginning by editing the timeline. It plays fine when I'm in Flash, but when I publish the movie, the sound is published unedited.
View 3 Replies
Mar 17, 2005
I was given this piece of script by a friend. It's placed on a movie clip instance and makes it bounce away from the mouse pointer in random directions and distances. It's a great piece and works fine when you publish your flash movie as v6. But I'm wanting to use it in a movie that I have to publish as v7 with as2, and it doesn't work at all when you do that.[code]
View 2 Replies
Mar 17, 2005
I was hoping someone could help me. I was given this piece of script by a friend. It's placed on a movie clip instance and makes it bounce away from the mouse pointer in random directions and distances. It's a great piece and works fine when you publish your flash movie as v6. But I'm wanting to use it in a movie that I have to publish as v7 with as2, and it doesn't work at all when you do that.
[Code]...
View 2 Replies
Mar 29, 2009
So, I'm using this Path Class to make a path and then draw it. I'm having a problem where there are some positions that I draw the path, the entire line does not draw.You can see an example of this here as the dot moves. The line flashes at a few coordinates. Just a small concept example I made. The path is there, it's just not being drawn.
The code :
Code:
import com.senocular.drawing.Path;
// create a path instance that draws in _root
var myPath:Path = new Path();
[code].....
View 2 Replies
Aug 5, 2009
[Code]....
this works in FF and outputs 600 like expected and it doesn't work in IE, instead it outputs 0??? why is this handled differently in different browsers?
View 5 Replies
Jan 25, 2009
Runtime error at the line : var mcp: MovieClipPlus =
MovieClipPlus(mc);
It doesnt work.. how can I let mcp inherit the mc?
View 2 Replies
May 30, 2010
OK, I have my custom class defined in a file called "rootInstace.as". This is what it contains:
[Code]...
View 3 Replies
Aug 28, 2009
bit of an odd problem, I have the following piece of code
Code:
var myCookie:SharedObject = SharedObject.getLocal("mySavedData","/")
if(myCookie.data.mySavedText != undefined)
{
var gallerypath:String = myCookie.data.mySavedText;
}
which retrieves a shared data.
If I put this actionscript on the first frame of a new document, it works fine, however I want to use it in something I already have, which uses an external Document class.
[Code]...
View 1 Replies
Feb 12, 2011
I'm making a class that manages all of my updates with a single ENTER_FRAME. I think I should be getting the OnUpdate trace but it doesn't seem to work?[code]
View 2 Replies
Aug 3, 2010
For some reason, in the past few days, the auto complete feature doesn't work well when I'm creating a new class file. I'm trying to write a new class which uses away3D, and even though the auto-complete works well when I start a new AS3 file, it just doesn't work as far as away3D is concerned when I try to create a new AS3 Class file. Other features of the auto-complete don't work as well, for some reason.
View 1 Replies
May 22, 2010
I produced an ActionScript 3.0, Flash Player 10 swf in a newly downloaded CS5 (trial version). The file loads fine in both Chrome and Safari on my computer. But when I open it on another machine I only get five animated dots - ..... - in a "wait while loading" manner. The swf never starts. Same on my brother's computer.
My browser has Flash Player 10,1,52,14 installed along with CS5 (swf works). My other computer claims to have Flash Player 10,1,53,38 installed (swf doesn't work). My brother's computer has Flash Player 10,0,45,2 (swf doesn't work).I've tried various publish configs such as on/off xml meta data, on/off hidden layers, embed minimal or more of my font etc.When I configure for ActionScript 2.0 and/or Flash Player 9 my animation breaks totally.
View 1 Replies
Oct 16, 2009
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
View 1 Replies
Apr 14, 2010
I'm having a problem, where random IE's are not able to display my .swf file. All the IE's are IE8 with the latest flash pluggins and all security's are set at Medium, however some IE's get just a grey box and other's get the full flash file. What's going on? It works fine in Safari and Firefox of course, but why so much difficulty with AS3 Flash9 in IE? here is a link to the site, and it's the big image changer at the bottom of the front page.
[URL]
View 2 Replies
Sep 12, 2009
I'm trying to export an animated text image, but for some reason, when I publish in .gif format, the text is all screwed up. I have example of it, in the attached file. It worked for me in flash mx, but in flash cs4 it doesn't work. I want the text to be readable and animated, in this .gif.
View 4 Replies
Aug 24, 2007
For some reason the Flash Uninstaller won't do its job. It says 'Installing', then 'Quit' but doesn't do anything. I've got all the browsers shut down.
MacPro, OS 10.4.1
View 0 Replies
Aug 20, 2009
I am developping this video player: In the exemple above, the player is loading this start image, to display it before the playing of the video:Here, I then tell the player to load the same image, but on another domain: As you can see, it doesn't work anymore. I searched on Google and discovered that I theorically had to add a crossdomain.xml, to make sure that there isn't security protection that avoid swf to load images from other domain. so put these two files on my different domains, to tell the swf to accept files from all * domains
View 2 Replies
May 3, 2009
I am a student trying to learn how to take multimedia elements from one class and put them on a webpage using Dreamweaver CS4. From an online tutorial, I created start/stop buttons with ActionScript3 URLRequest to reference a sound file. The swf works fine when played; it plays from the html generated by flash but when I use Dreamweaver CS4 > insert > media > swf and then preview page in browser (firefox), the button doesn't do anything. When I compare the html page generated by flash to the html created by Dreamweaver, they look completely different. I don't have a clue what to do next.
[Code]...
View 2 Replies
Nov 25, 2010
I have Flash CS5 and I'm trying to export SWC from it to use as a library with Flex SDK (FlashDevelop). I have "Export SWC" checked in publish settings and for a while it worked. Now, even if it still is checked, SWC isn't created (at least in the same directory as SWF). I even tried creating a completely new FLA and copied everything from the old library in there. Still it doesn't work.
View 6 Replies
Nov 26, 2010
This sounds quite ridiculous but my space bar doesn't want to work in Flash CS3. I'm a web designer and started recently for a new company. They asked me to include a flash image on one of our websites. When I try to add text to the stage, I can't make spaces. That is all. I've used flash before and I've never ran into this problem
View 2 Replies
May 6, 2011
I have a flash form that although it does exactly the same as its html version (just passing variables) doesn't work. It doesn't redirect to the right page, processing the send variabeles and sending a custom email. [code]As you can see it's just a form - no hidden scripts - and sends variables to the correct url.I've turned it into a flash form which is just a button which sends the exact same variables as above, but now the browser isn't redirected to the same page. Although the variables are sent which I can check in Firebug. It doesn't redirect to the same page as the html form and all variables are therefore not processed and no email is sent. The only thing I had to workaround is the variable name 'function' which in AS is a reserved word. Bypassed that by using array notation.It's just like the url the variables are send to can see whether the form is sent through html or flash?[code]
View 2 Replies
Nov 12, 2010
Why Flash Firebug doesn't work with flex 4.5?
UPDATE:
I have Flex 4.5 and in the main application, in the script tag I write:
import ominds.Firebug;
I use flash player WIN 10,1,85,3 Debug enabled. I export swf as 10.1.85 version.
And when I open the flashFirebug I get this: "No SWF files with the O-Minds package found, you should import the O-Minds package into your flash files. For more information visit: o-minds.com/products/flashfirebug"
View 3 Replies
Dec 30, 2010
When I work on my Air Project, I used stop(); to stay in a frame(which is my menu), I built the .air for testing purposes and the frames keep looping, as in, it plays all the frames, and it won't stop as it's instructed to. I'm building my Application in Flash CS5, not Flex.
View 1 Replies
Feb 4, 2011
My problem is that I am using a variable to identify an element section of the many galleries I have under the tag "galleryType" and nothing is returning for me to display. Am I searching for my galleryType the right way in my code or do I need to loop through my galleryTypes on my XML.
here is my xml code:
<My_gallery>
<galleryType Name="GalleryName001">
<images>
[Code]....
View 2 Replies
Apr 30, 2011
I have a flash swf file which I don't want people to be able to download and decompile it . my first solution was to load this swf file in another swf file and put the container swf file in my site . but something's wrong . when I load my swf file in another swf file using : myloader.loadMovie ("myswffile.swf");it works fine in my local computer but when I load these two swf files to my server and try to use them there , it doesn't work .
View 1 Replies
Jul 4, 2011
I'm new to papervision 3d and I created two display objects in basic view.
Here's a part of the code :
...
_stick = new Cube(materials, 50, 5, 500);
_ball = new Sphere(new ColorMaterial(0xfc0000), 80);
In the onRenderTick method, I tried to check whether two objects are hitted
[Code]...
However, stick.hitTestObject always returns false even if the stick really hits the ball as I see in the flash.
View 1 Replies
Aug 24, 2011
I need to use flash as3 to create a game, and I have tried to use 3 layer to load my swf. My game is in the third layer, and the first and second layers are just a preloader script.My problem is when the game is loaded onto the stage of first layer my KeyboardEvent function is not work until I press the stage.I have try to use Event.ADDED_TO_STAGE to solve it, but I also get a same error.this is my code for preloader
var request:URLRequest = new URLRequest("game.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);[code]....................
View 2 Replies