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


Similar Posts:


ActionScript 3.0 :: BitmapData Mapping To Scaled Movieclip Then GetPixel?

Aug 18, 2009

I'm building an application where the user can upload a photo of their head, scale it and position it, and then pick a colour from the photo.The photo gets put into a movieclip called 'head'I'm stuck at the colour picker part and I just can't seem to work out the whole bitmapData thing. Here's my colour picker code -

ActionScript Code:
private function beginColourPick():void
{
_bmd = new BitmapData(head.width, head.height);

[code]...

This code kind of works, but not correctly.

Problem #1: The colour picker only works in the bottom right quarter of the image because I moved the head mc so the registration point is bang in the middle. So the problem here is that I can't figure out how to move the bitmapData in line with the head mc.

Problem #2: If the user scales the head mc (even a tiny bit) the colour picker stops working altogether. Now I'm thinking I've got to use a transform matrix - but I read up on it and haven't got anywhere.

View 7 Replies

Actionscript 3 :: Loading Swf-fonts With Loader Works Perfectly In SDK 3.5 - Not In SDK 4

Jul 12, 2011

For a large project I have the following setup:

a content editor made with Flex SDK 3.5
a content viewer made with Flex SDK 4.1

Both need to work with dynamically loaded fonts as the user can use the fonts he wants.

So we used this approach:

convert the font files with Flash Professional to SWF-files (Creating a Font SWF)
editor: load the fonts with Loader (Loading a SWF font) the fonts can then be perfectly used within the application to generate htmlText viewer: the same approach to load the fonts + register them with Font.registerFont (Flex 4 Embed font from swf)

Now the problems: although the loaded fonts are listed when you trace Font.enumerateFonts(false), they are not used in the textarea. There the text is shown with the default font.

Maybe the problem is the fonts are loaded as embedAsCFF for the Text Layout Framework, and that way are not usable in an mx.controls.TextArea? But as I can not change that to a spark TextArea for multiple reasons, I need a solution to use the loaded fonts in that mx.controls.TextArea.

View 3 Replies

Android :: Camera Works Perfectly In Flex Emulator But Not On Device?

Dec 31, 2011

I have a project that uses video for a chat application, I can get it to work in the flex emulator but when I deploy it to the device the button that initiates the video doesn't change and video never starts. My devices all have 2 cameras except my computer but specifiying Camera.getCamera([1]) didn't change anything except mess up my emulator and cause a NullPointerException. Camera.getCamera([0]) works just the same as not having the ID. I have tried messing with different values quality and nothing makes a difference

private function publishVideo():void{
_publishingVideo = true;
_ns = new NetStream(_nc);

[code]......

View 1 Replies

ActionScript 2.0 :: Created Xml Driven Menu That Works Perfectly On Html Page

May 3, 2010

I created a xml driven menu that works perfectly on a html page but would like to use it in a flash site. I loaded the the external menu movie in by using the:loadMovie(); reference but when I try to point the movie link from the menu to the empty movieclip it wont work. below is the code for the button action:[code]

View 0 Replies

Data Integration :: SendAndLoad XML Request That Works Perfectly But Inside Of Any Browser It Stops ?

Sep 20, 2006

I have a simple sendAndLoad XML request that works perfectly on 95% of the computers I have used. I have check crosssite stuff and everything i can think of. Its not browser specific ,os specific, or flash version specific. On these computers I can run the same flash file on a standalone player and everything works flawlessly but inside of any browser it makes the request for the XML file and stops right there. After a while like 10 minutes flash gets tired of waiting and returns not found. I can navigate to the xml file via the same browser. Upgrading Flash doesn't help.The only thing consistent is it only happens to windows computers. The requested URL is the complete URL. I have changed this and still the same.IE or Firefox still the same. Version 9 player in both. I have montiored network traffic and see the request made and maybe a response but flash has moved.

View 1 Replies

ActionScript 2.0 :: Right Button Code Works Perfectly, But When I Press Left It Doesnt Rotate?

Sep 24, 2008

I have a movieclip that will rotate by 10 right if the right button is pressed, or 10 left if the left button is pressed.Now, some genius tell me why the right button code works perfectly, but when i press left it doesnt rotate. It moves left, but no rotation to be found .heres the code

onClipEvent (enterFrame) {

if (Key.isDown(Key.LEFT)) {
xspeed -= power;[code].....

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

Load The .swf, And Click "Play Trailer" Locally It Works Perfectly?

May 30, 2009

I have a problem with a FlvPlayBack movie. So when I load the .swf, and click "Play Trailer" locally it works perfectly. But when I load the .html page, and click "Play trailer" the player doesn't show up and it won't play the video.
 
Link to .html page What files exactly need to be on my server in order for the video to play? Have I called the video wrong? (the .flv file is on my server)

View 3 Replies

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

ActionScript 3.0 :: SWF Works Differently When Uploaded?

Feb 3, 2010

Player :Flash 9Script : AS3IDE : Adobe Flash CS3I have 9 dynamic text fields; each is filled with text (a title). When you click one it updates two larger text fields at the top to display the title in the first one and the description in the second. When you hover over the text fields, the cursor remains an arrow.In the IDE, this script works just fine. However, when I upload it to my website, clicking on the titles does not change the large fields above them. Also, when I hover the mouse over any of the text fields but the very first one, the pointer changes to a text editing line.

View 6 Replies

Swf Works Perfect Offline But Not When It Is Uploaded On The Internet?

Oct 12, 2009

this is my first flash test and I have been stuck for weeks to solve this issue. I am currently with Mediatemple, standard gs plan, and I have three files that I wish to upload:
 
index.html (html file)
ProgBar.swf (Preloader)
Main.swf (External Swf that is being loaded)
 
If you open the html file locally on a computer, it works fine, however the problem arises when these files are uploaded to the internet,. It doesn't seem to work at all... Please help me figure out why. Thank you for your consideration.

View 2 Replies

Website Looks Distorted When Uploaded But Fine On Local Machine?

Mar 21, 2010

I am building a site off of a template and I have a major issue. The site looks fine when previewing it on my computer or in flashBut as soon as it is uploaded it distorts the siteNotice the non-centered tabs and messed up text

View 3 Replies

ActionScript 3.0 :: BitmapData.draw() Failing To Draw Entire MovieClip?

Dec 15, 2009

I'm trying to do some lean blitting for an object that rotates by rotating it once at startup and capturing a BitmapData snapshot of each 5 degrees. The problem I'm having is that the draw() method of the BitmapData object is only picking up pixels in the MovieClip that are below and to the right of the registration point. If I change the MC so that the registration point is in the top left corner, I sometimes get what looks like most of the pixels, but the entire object rotates into and out of the frame, since it's rotating around the corner and not the center.

View 5 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 :: Won't Publish Correctly In Cs5 After Making Changes To A Perfectly Working Fla

Jul 27, 2010

After making changes to a perfectly working fla it won't publish correctly,meaning:1. When previewing all the components jump (as usually happens when there isa compile error) but no error is displayed in the log.In this case when used with the whole project, the project doesn't load,even though the corrupted fla is not the first loaded (non of the fla loadsbesides the preloader).2. When previewing and running with the whole project the labels on thebutton components disappear, but only the ones that are dynamically changedby an external as file.*there are other similar bugs as well like unable to enter the table in thegame etc.The changes I make before it happens:- changing the size of a shape inside a movie clip.- changing the size of a movie clip.- changing anything in an already existing code (like changing the size of afont).- adding new basic code anywhere (like trace code).

- changing button skins.Basically, any change I make corrupts the file but not consistently,meaning, I can make the same change twice and the file will break only one of thetimes, or, I can make several changes until it breaks.It also happens on every computer but also, not consistently, I can work fora while, making the same change, deleting, making the change again etc, onlyon the fifth or sixth time the file will break. On a different computer itcan take only two or three times.The corrupted file start working again after I change the name of the foldercontaining my project or move all the files to a different folder anywhereon my computer. After a short while the file crushes again.

View 1 Replies

Professional :: Which Swf Video Converter Can Support Flash Player 10.1 Perfectly?

Nov 28, 2011

Flash Player 10.1 published with creative new features including filters & effects, text, native device interactions, support for multitouch, gestures, mobile input models, accelerometer input and periodic timer, etc. Among them all, the introduction of periodic timer is the most innovative and significant one. This new feature functions as a double-edged sword which, on one hand, can lower CPU utilization and save battery life, on the other, it may cause troubles for some SWF converters to capture the flash content under such extremely low frame rate.

View 1 Replies

Flex :: Get The BitmapData From A Local Image?

Jun 21, 2011

The image is already held locally on the client PC and it is an Air application. The image is not embedded, it is in the Application Storage directory.

I have seen this question: How can i get a BitmapData object out of a File object from a local jpeg file in AIR? but it uses URLRequest which I don't think is what I need because the file is local.

View 2 Replies

ActionScript 2.0 :: Upload BitmapData To (local) Server?

Mar 19, 2009

I have a webcam script that takes screenshot when you click the snapshot button. Now I would like people to have another button to upload their photo on the server. How can this be done?

import flash.display.BitmapData;
mycam = Camera.get();
vid.attachVideo(mycam);// vid is videoobject on stage
bitmapData = new BitmapData(160, 120, true, 0);

[Code].....

View 1 Replies

Actionscript 2.0 :: BitmapData And Local Vs Remote Images

Feb 27, 2012

I am creating an interactive post-it for an upcoming event that allows for us to tap into a sql database and post tweets, survey answers and images. We've already tapped into the Twitter API and the survey, so those are A-OK.The problem lies within loading the images from a location other than the local interactive board's server.If the image itself is locally hosted, it loads just fine.If the image is hosted elsewhere, the image will not load, even though I have a trace on the URL of said image.I'm loading all tweets, surveys and images through an XML load and all the data is loading properly.I AM loading the image through a smoothing filter so that when the "post-its" are slightly rotated, they are not jagged. Here is THAT code:[code]

This is a two part script where the bulk loads in the image and places it into an empty movieclip, then adds the smoothing filter. The second part is a resizer that automatically resizes the image and keeps the aspect ratio.When I test the flash piece (not embedded in HTML) the thing works 100%.As soon as I put the swf into an html and view it on a web page, the remote images will not load.I'm a bit stumped on why this is, could this be a firewall or security issue? Because I work in a high security firewall environment.

View 1 Replies

Mp3 Player Works On Local But Not On Server?

Jul 7, 2009

I have a mp3 player that i purchased from a site. It works fine on my local drive but when uploaded to a server (and I've tried both Linux & Windows) doesn't work. It loads in setting & the mp3 file names from an XML file. I was able to verify that the XML data is in fact loading. The hitch seems to come when trying to create and load the XML data into an XML object.I added text field & changed the value of the text property at different points of the script to narrow down where the script gets stuck. The exact line of code that doesn't run from the server is:

Code:

var xml:XML = new XML(e.target.data);

I tried adding a crossdomain.xml file that allowed all domains but that didn't seem to help. Below is the code that loads the XML file & calls a function when loaded with the offending line of code.And my test site is here: SWF

Code:

public function MusicPlayer() {
//Security to load music
Security.allowDomain("*");[code]..............

View 1 Replies

Flash Works On Local Machine But Not Server?

Mar 23, 2010

flash works on local machine but not server?

View 1 Replies

ActionScript 2.0 :: TotalBytes Works Only On Local Machine

Mar 10, 2004

I have made a preloader showing the progress of dynamically added images. The code works fine when i play the movie on local machine, but when i play the movie from the server bytesTotal is always 0. It even says 0 after the images has finished loading. what i'm doing is basically: createEmptyMovieClip() , i then use a movieClipLoader to load jpeg into that empty movieclip. the movieClipLoader has a listener attached and with the listener i use the function onLoadProgress() to display bytesLoaded and bytesTotal all of these things occur within one function.. bytesLoaded works fine both on local machine and from the server

View 2 Replies

IDE :: Socketserver Works From Flash But Does Not On Local Webserver

May 5, 2009

I have followed the tutorial here by obiAdmin (raymond) [URL] on how to connect flash to a php socketserver. The problem is in the development environment it works like a charm but when I put the swf on my local server (wamp) it fails to connect to the socketserver.

View 1 Replies

ActionScript 2.0 :: TotalBytes Works Only On Local Machine?

Mar 10, 2004

I have made a preloader showing the progress of dynamically added images. The code works fine when i play the movie on local machine, but when i play the movie from the server bytesTotal is always 0. It even says 0 after the images has finished loading.what i'm doing is basically: createEmptyMovieClip() , i then use a movieClipLoader to load jpeg into that empty movieclip. the movieClipLoader has a listener attached and with the listener i use the function onLoadProgress() to display bytesLoaded and bytesTotal

View 2 Replies

Flash :: Php Communication - Multiplayer - Local Works - Another Computer Does Not

Dec 19, 2011

I made swf file that sends id to php, than php collects info from mysql by this id, and returns result, than flash does his work with that result. The problem is here, I will try to explain it as clearly as I can: everything works fine when I do that on the computer that has all the source files and of course xampp running.

[Code]...

View 1 Replies

ActionScript 3.0 :: Remote XML Works, Local XML Brings Error?

Sep 8, 2009

Been given the following actionscript

Code:
package menu
{

[code].....

View 1 Replies

ActionScript 3.0 :: Webcamera: Script Works On Local But Not When Upload It?

Feb 28, 2011

I have a webcamera test .swf, html file plus .swfobject file. When I run it on my computer, the webcamera works correctly (i.e. I see my image flipped) however, when I upload it along with the .html and .swfobject file, I see my flash file (with graphics) but my webcamera video isn't showing up? I also am not seeing the "adobe flash player settings" prompt to enable my webcamera (I always see this prompt when testing it on my computer, however it's not showing up now that I uploaded the file) I can tell my camera is on because the light on my iSight is showing up, what gives?

View 1 Replies







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