ActionScript 2.0 :: BitmapData Stuff Doesn't Work When Uploaded?

Jul 3, 2007

For some of the menus and stuff, I have it grayscale the screen with BitmapData.draw and ColorTransform. It works perfectly when played through Flash and Flash Player, and even when played locally through a browser.

However when I upload it to a server and try and play it online, the BitmapData stuff apparently clunks out. It displays a white screen, suggesting that BitmapData.draw isn't working for some reason.

As it only doesn't work when on a server, you'd think it was some form of security violation. But I cannot think of anything that would cause this to breach Flash's security. I'm only drawing the _root of the movie clip, nothing located on another domain.

Even weirder, the exact same code worked a while ago when uploaded. It only stopped working a short time ago after I was adding some menus and such - and as much as I've been trying to pinpoint it to an exact moment in time when it stopped working, I can't.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Bitmapdata.draw() Doesn't Work With Blend Modes?

Feb 2, 2012

I am trying to save an image from flash, just load a image into flash place some decorative clip art and then save the image to the disk. I was able to do this via BitmapData + PNGEncoder + FileReference.

Now as an experiment I have introduced new clip sprites for decoration, where in each of these have multiple sprite children with different blend modes say "ERASE", "OVERLAY", etc. As far as the flash runtime is considered I am getting the expected effect for blend modes.

But as soon as I try to save the image, the output is weird, it doesn't resembels what I see in the flash player. I also tried to print the page as pdf using PrintJob class, but the pdf would not show the filter effects or the blend modes ones.
 
As far as I am using the plain clip arts with no effects, no blur, no blend modes the image is generated. But when i try to use the BitmapData.draw() method with the image that has clip arts with blend mode or blur it fails.

BitmapData.draw() with blend modes, as I feel if the we could possibly see the blending effects in the player then we could possibly print it as well.

View 3 Replies

ActionScript 3.0 :: BitmapData Not Working When Uploaded?

Oct 20, 2010

I'm loading thumbnail images from youtube and upon adding them to the stage I have encountered some issues.

If I simply addChild the loader to my parent it all works nice and dandy both locally and uploaded, if I convert it to bitmapdata, it works locally but not uploaded.

Note: The commented section is the one that is working locally but not uploaded.

Code:
private function buildThumb() : void {
$loader = new Loader();
$loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);

[Code].....

View 2 Replies

Professional :: BitmapData / GetPixel Mystery - Works Perfectly On Local, Failing When Uploaded?

Dec 13, 2010

I'm working with a video in Flash where I am capturing each frame and testing the color of a single pixel. I'm using it to determine when a white/transparent background changes to be a color. The following AS2 code works flawlessly when I preview it in Flash and on my desktop in the browser (the direct SWF and placed inside HTML using SWFObject) but as soon as I upload it to my server it fails and produces "FFFFFF" continuously regardless.

this.onEnterFrame = function()[code]..........

There is no difference in the files; they are both pulling from the same video source (hosted on an Flash FLV server).The only difference is one set of files is hosted on my local computer and the other is hosted on my web server.

View 2 Replies

Flash Won't Work When Uploaded To Server

Sep 30, 2009

I made a flash website for a client and there is only ONE thing wrong with it. Everything works when I preview it in Adobe Flash Player. And I have it embedded in a Dreamweaver CS3 file, and when I preview it...it works. THEN when I upload it to the server, two of the INTERNAL links fail. I have two links that say "Behind the Camera" and "Contact". [URL] You can see when you click on either of the links, it just randomly skips ahead in the first scene. What I really want them to do is when you click Behind the Camera you go to Scene 2 and Contacts you go to Scene 3. I have coded everything correctly, because everything works when I preview it. But once I upload the .swf file to the server, those links fail.

The code I used for the buttons are:

BTC.onPress = function(){
gotoAndPlay("Scene 3", 1)
}

[code]....

View 1 Replies

ActionScript 3.0 :: Website Does Not Work When Uploaded

Jul 20, 2010

I've created this simple website which consists of a 3d carousel style gallery of images. When I tested it locally everything worked perfectly, however, the version on the web-server is not working. The website is at dansawesomeweb. site11. com. I renamed the html file so you can browse the websites folders if you wish. After much testing I believe the problem of the website lies within me loading external images. You see two of the images(the only two that you can see) are loaded from the same domain and specifically the same directory as the website itself. It seems to be unable to load any image from any where else on the web.It could be to do with the image url's I used: i'm not entirely sure how they should be formatted? (As you can tell I'm not familiar with this kind of stuff) Do you think it's my host? -but from what I hear 000webhost does fully support flash. Or do you think it's purly how I programmed it in as?

The way the website works is that the base.swf loads the caro.swf. The caro.swf's doc class is CaroClass.as. The flash makes use of some custom classes that are in the class folders. The class called 'Obj' is an image holder movieclip that loads an image off the web into itself: These make up the carousel. There is also one class that is supposed to load a higher resolution of images when you click on one of the Obj's, and also show a description. The image url's, captions and descriptions are held in an xml document which is loaded by the caro.swf at the start. Just go to the webpage and click on the CaroData.xml for the XML.

View 7 Replies

ActionScript 2.0 :: Textarea Tests Fine But When Uploaded It Doesn't Load .txt File

Nov 16, 2005

i've created two textarea fields that pull data from a textfile in the same directory and formats it with CSS. it tests fine on my computer, but when i upload it, it doesn't show the txt file contents. It's just blank. I've been looking around everywhere to try and find a solution, but i can't seem to find anything. Also, the scrollbar on the side of the textarea doesn't load in IE but loads in firefox.

[Code]....

View 8 Replies

ActionScript 3.0 :: SWF Resizing Code Won't Work When Uploaded?

Jul 16, 2010

Every time I preview my .swf in flash I can see everything resizing correctly as well as staying centered on the page. However when I uploaded it to the web none of it works anymore and I have no idea why.Check it out...

pixelflexstudios.com/test/test.html
.swf code:
ActionScript Code:

[code]....

View 9 Replies

ActionScript 2.0 :: Button/transitions Don't Work When Uploaded

May 3, 2005

I have made some buttons that call in external swf files and these work perfectly on my own machine when tested in various browsers. My problem is when i upload to the server and then test in the browser, the buttons don't work anymore. perhaps if you have server space you can test it out for me and then delete them?

View 5 Replies

ActionScript 1/2 :: Flash Paths Don't Work Once Uploaded To Server?

Feb 23, 2010

I have a bunch of loadMovie() scripts in my flash files and everything loads fine when I open the flash files from my folder.Once I preview them online on my test server, the loadMovie() scripts no longer work. Has anyone encountered this? Does my paths need to change in order to view the flash files online?Right now, I have everything realitive to the flash file so:My main file is test.swf. that loads in fine in the website.But test.swf loads in test2.swf which is contained in a flash folder so my loadMovie script itloadMovie("flash/test2.swf", 2)

View 1 Replies

Media Server :: Visualizer Does Not Work When Uploaded To Host

Apr 29, 2010

I have a media player on my website. Visualizer of media player works when I test it on xampp localhost but it does not work when I upload it to my hosting.
My website: [URL]

View 4 Replies

Professional :: SWF File Do Not Work Accordingly When Uploaded To The Browser/online

Sep 2, 2010

iv been having this problem  with swf file iv created, it consist of images somewhat like a gallery.  when played offline it works smoothly, navigating frame to frame / image  by image. iv used AS3 to compose the animations in my flash file. now  my problem is when its uploaded online, the swf is shown but once iv  clicked on a link to proceed on showing the gallery it lags and  continously loop when it should actualy stop on a frame and wait till  the next button is clicked to procced to the next image. plus the  animation iv added in doesn't seem to working at all.

View 1 Replies

Actionscript 2.0 :: Sending Mail With PHP Wont Work When Uploaded?

Jan 19, 2009

i have tried my hardest to get this mail form working but am having one final problem. When i test the form inside of flash it works fine, i get the email with all inputted information however: when i upload the swf containing the form to my server the form no longer works? i don't even get the message not sent info?

View 9 Replies

ActionScript 2.0 :: Button/transitions - Dont Work When Uploaded?

Apr 20, 2012

I have made some buttons that call in external swf files and these work perfectly on my own machine when tested in various browsers. My problem is when i upload to the server and then test in the browser, the buttons don't work anymore

View 1 Replies

ActionScript 3.0 :: Flash Form Doesnt Work When Uploaded To Site

Oct 18, 2009

i've created a basic flash form which uses the following script for the send button:[code]it works well when i test it locally in the flash IDE.. it also works when i upload the SWF and the corresponding HTML file that holds it to url...but when i upload it to a subdomain (ex. url..), it doesnt work anymore.. after pressing the "send" button, my "sending input" animation shows up as expected, but then it gets stuck there and never proceeds to the "input sent" animation.. the message never gets sent to my email..

View 1 Replies

ActionScript 3.0 :: Button Does Not Work When Site Is Uploaded To Linux Server

Jun 27, 2010

I am building a flash intro page, but when I publish the file on my computer and even run for errors, everything works and comes clean... But when I load it onto the server, the ENTER button, no longer works...

If someone could check the actionscript for the button... I checked and double checked my code, and it seems to be right

View 2 Replies

XML Gallery Works Fine Offline But Doesnt Work When Uploaded To Server?

Sep 1, 2009

I have decided to attempt making my sisters website. I have used an XML gallery in the website and all works well when viewing the website just in flash, .fla or the .swf file. My problem is, when i come to put it into dreamweaver ready to upload and I preview it in Firefox, or any other broswer, all the pages work but no the XML gallery? Im gettin very stressed out now as all my file routesetc are correct?I have googled the problem and all I have found out is that it could be something to do with security?Does anybody know how to resolve this problem

View 4 Replies

ActionScript 2.0 :: XML Gallery Works Fine Offline But Doesnt Work When Uploaded To Server?

Sep 1, 2009

Im in my first year studying a web design course, over the summer I have decided to attempt making my sisters website. I have used an XML gallery in the website and all works well when viewing the website just in flash, .fla or the .swf file. My problem is, when i come to put it into dreamweaver ready to upload and I preview it in Firefox, or any other broswer, all the pages work but no the XML gallery? Im gettin very stressed out now as all my file routesetc are correct?I have googled the problem and all I have found out is that it could be something to do with security?

View 1 Replies

Professional :: .flv Will Not Play Once Uploaded To Server But Plays Fine Before It Is Uploaded

Aug 6, 2010

I have a flash template that I bought and customized with dreamweaver, flash and Coda html editor, the website test PERFECTLY when I test the index.html file, all of the buttons work fine, I have a total of 12 .flv videos and they ALL play back fine, when I play the index.html file, the problem occurs when I upload the files to my godaddy server, 11 of the videos play fine, the whole site is fine, it is one particular .flv file that will not play once it is uploaded to the server. I have changed the orders the video play, renamed the file and changed the html flv path to reflect the name change, I have deleted all the files off my server, refreshed the server logged out and re logged on and uploaded everything again, I have re-encoded the original .mov file to a .flv file again using Adobe media encoder, still nothing, I am wondering why would the index.html play this particular .flv file fine, but once uploaded to the server it will not play, the path is correct I have checked it, if the path were the problem the index.html for that particular file would not play when I test the index.html file before I upload it, but it plays fine until it is uploaded, I am uploading the whole folder on the root, and this particular video file is in a folder with all the rest of the .flv files, I even tried changing the path and putting this particular .flv file in a seperate folder and change the path still nothing.

View 7 Replies

ActionScript 2.0 :: Dynamic Masks - Trail Doesn't Resize And The Mask Still Doesn't Work

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

ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies

ActionScript 2.0 :: How Does Bitmapdata Hittest Work

Sep 23, 2009

import flash.display.BitmapData;
import flash.geom.Point;
//
var BitmapA:BitmapData = new BitmapData(550, 400, true, 0x00);

[code]....

This is using the bitmapdata.hittest way to check whether the one bitmap is overlapping the other. Throug pixel-to-pixel detection.But I'm having trouble understanding this line:

Code:

if (BitmapA.hitTest(destPoint, 255, BitmapB, currPoint, 255))

I know that destPoint is the topleft point from which it is determining all opaque pixels. No value is given to destPoint so basically it is checking from 0,0. Having determined all opaque pixels from that bitmap it should compare them with the opaque pixels of the other bitmap. But why does currPoint use the topleft coordinate of its movieclip? Couldn't it just as well use 0,0 too? I mean when determining the opaque pixels of bitmap two it might as well start checking for those from 0,0 as the topleft position as well?

View 2 Replies

ActionScript 3.0 :: BitmapData Method Lock Not Work?

Mar 30, 2012

import flash.display.BitmapData;
import flash.display.Bitmap;
import flash.geom.Rectangle;

[code].....

View 4 Replies

Actionscript 3.0 :: Can't Make Scale BitmapData Work

Mar 19, 2010

I'm trying to resize each image without success. After pulling my hair a few time, I can't figure out to make the smoothing works on Stage. Basically I want to be able to resize any pics: 600x900 -> 400x600

Code: Select all // Call LoadBitmap class, bitmapWidth & bitmapHeight are the desired 400x600
loadBitmap = new LoadBitmap(bitmapWidth, bitmapHeight);
loadBitmap.loadBitmapData(theImage);

[code]....

View 2 Replies

Media Server :: It Doesn't Allow Flash Clients To Make Stream's Screenshot (with BitmapData.draw)

Mar 23, 2011

I got serious issue while using adobe flash media server (I have media server streaming license). It doesn't allow flash clients to make stream's screenshot (with BitmapData.draw) because this is restricted from server side by default. I found that this trouble can be resolved my updating main.asc file but it seems like replacing main.far with mine main.asc causing error. Could you please help me with resolving this issue because it's extremely important  to allow this screens making for user.I used CentOS 5.3 and FMS 4.0.1 r2009 (instaled in /opt/adobe/fms include Apache 2.2). All video is stored in a directory  /opt/adobe/fms/applications/vod/media and I put the main.asc file in the directory /opt/adobe/fms/applications/vod/ from the directory  /opt/adobe/fms/samples/applications/vod.

View 5 Replies

Swf Into Fla Doesn't Work?

Jul 23, 2009

I have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.

I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting.

View 16 Replies

ActionScript 2.0 :: CS3 'if' Doesn't Work But 'else' Does

Apr 8, 2010

I am trying to more between frames using the data returned from a node n_EventID in an xml, when the node returns "1408" I want to move to frame 1 but if it returns anything else I want to move to frame 2. The part where the code moves to frame 2 seems to work perfectly but I can't seem to move to frame 1 when "1408" is returned.

xmlResultFinish = new XML();
xmlResultFinish.ignoreWhite = true
xmlResultFinish.onLoad = loadXmlResultFinish;

[code]....

View 5 Replies

Flash Doesn't Work On Some IE's?

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

.swf Fullscreen Doesn't Work?

Nov 19, 2009

But my proublem is that I have a flash presentation.The defalt for moving the slide screens back and forth are left and right arrows.It works fine when tested or even the .swf fileBut then the left and right buttons don't respond when I go to fullscreen.

View 5 Replies







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