Php :: Flex - Image Serving Extraneous Bytes Before Marker?
Nov 7, 2010
I'm desperately trying to solve this one. I have a bunch of files stored outside of the webroot and I need to serve them to a user after a few auth checks. These files have been uploaded using a Flex application or have just been manually uploaded through FTP. I have a serving script that looks something like:
[Code]...
I imagine this could be on the Flash side, but honestly it's dirt simple. I just don't see where the extra data is coming in, and why its corrupting the file. Anyone know why this is happening? or better yet, how I can clean these files up now?
View 1 Replies
Similar Posts:
May 10, 2011
I'm using Google Maps with Flex 3. I'm using custom markers (custom icons) to mark places on the map. It works fine. The problem is that in some cases, I don't need a custom icon, I need the standard marker.
For example, how would I set condition C's icon to the standard marker:
public function iconSetter():void {
if (condition A blah blah){myIcon=star; myPointsBuilder(); return;}
if (condition B blah blah){myIcon=circle; myPointsBuilder(); return;}
[Code].....
I don't know how to revert to the default marker where I wrote "STANDARD MARKER".
View 1 Replies
Jul 4, 2005
how can I get the bytes loaded and bytes total, from a JPG i'm loading using loadMovie? the point it's making a loadbar
Code:
image.loadMovie("pic.jpg");
View 2 Replies
Jul 23, 2011
i want get ByteArray of image file with URLLoader class.
PHP Code:
var byte:ByteArray=new ByteArray()
var loader2:Loader
var loader:URLLoader=new URLLoader()
[Code]....
HTML Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.
i can make this with Loader class but i want make with URLLoader class!
View 2 Replies
Jan 13, 2011
I'm working with flex 3.5 and I have a problem with a validator. I have a field that dynamically has o has not an asigned validator, the problem is that in a specific moment the field haven't the validator assigned but the textInput had a red border.I dont know what do I have to remove the red marker?Here is an example of my validator: This is the validator:
<mx:CreditCardValidator id="ccV"
cardTypeSource="{cardTypeCbx.selectedItem}"
cardTypeProperty="data"[code].........
And I have a button that been enable or disable because it has a binding with a boolean var isFormValid.The most weird thing is that when remove the validator the button becomes enables but the red border is still in the textInput.
View 1 Replies
Jul 13, 2009
What I'm trying to do is get the total bytes of all the files I want to load and display the percentage loaded of total bytes and bytes loaded of all the files. Its a slideshow so i want all the files loaded and then it will play. I've looked at bulk-loader but it wasn't what I needed. The image are loaded from an xml file. I think I would need to create an Array and then find out the total bytes but I don't know how to reference the loader in the progress.
[Code]....
View 2 Replies
Aug 15, 2011
I've been working with the flex charting component and I want to embed a custom icon for the marker in the legend. I've run into some strange behaviour where if set directly the icon is mirrored and the text is misaligned but if created using the a class factory and the legendMarkerRenderer property the component renders fine. I've included a snippet to illustrate the problem below. Working around this problem may be possible but I'm curious if anyone has an explanation as to what could be going on here. Additional info: Flex SDK 4.5.0.20967, FlashBuilder 4.5This is the output of the below snippet:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Script>
[code]......
View 1 Replies
Oct 5, 2009
When using map3d, the default marker creation is always perpendicular to the viewport. How can I create a marker that lays down flat against the map? I can't use GroundOverlay because it becomes overly tiny when the map is zoomed out. How can I create a matrix3d object that will rotate/scale/skew my Marker's foreground DisplayObject so it remains flat against the map when in perspective mode?
View 1 Replies
Mar 2, 2011
I have to create a marker with 3 triangles at 120 degrees with each other. The fill colour of the three triangles will be different (to be decided depending upon the value of some other variable).
Google Maps can accept DisplayObjects as markers. How do I go about creating one manually?
View 1 Replies
Apr 27, 2011
I have a utility function that will display a filesize in an appropriate form like Windows Explorer does, i.e; convert it to nearest KB, MB, GB etc. I wanted to know if the code that i wrote is correct, and if it can be made simpler.The function that i wrote is as follows :
public static function formatFileSize(bytes:int):String
{
if(bytes < 1024)
[code].....
View 2 Replies
Jan 2, 2010
I am loading multiple images into a class instance and I would like to keep track of how large the complete amount of loaded data is at any given point.I have grabbed the totalbytes from my directory of images via a PHP script... but collecting the new bytes from the ProgressEvent on each image seems tricky for some reason.Let's assume that the totalBytes variable is correct and that I am totally unfamiliar with the way that ProgressEvent works.Does an event get fired every time ProgressEvent gets a new byte? If not, how do I keep track of the current total bytes?[code]
View 2 Replies
Nov 6, 2010
I want to upload data (not a local file) with Flex (4.1), and show what the progress is of the bytes sent. Now I use a URLLoader, but I know that URLLoader was designed to download data, I can connect a listener to ProgressEvent.PROGRESS but that has no effect. I also know there is a FileReference object which supports uploading. The problem here is, I do not want to browse for a file and upload it. I have a byte array which I want to send to the server, but the data property of FileReference is read-only. How can I send the byte array (which is actually a PNG encoded image) to the server and be able to track the progress of the bytes sent to server?
View 1 Replies
Jul 20, 2009
I have a legacy file format that contains sounds embedded in it (in various encodings). I would like to be able to play these sounds in Flash (Air?) by reading the sound bytes out of the file and instantiating a Sound object with them.
If the sound is unencoded (e.g., raw pcm), I've found that I can use the new flex 4 SampleDataEvent.SAMPLE_DATA event to play the sound.
However, if the sound is encoded (e.g., mp3), then I'm at a loss. The sound expected by SampleDataEvent.SAMPLE_DATA has to be raw pcm. From what I've seen, encoded Sounds can only be instantiated by [Embed]ing them, or by using a URLRequest with Sound.load().
View 1 Replies
Jan 26, 2011
When a client connects to an application (nc.connect) this is catched at server side using application.onConnect; so, when the client asks for a stream (ns.play) ... does this have some correspondence at server side ? Can we catch this event in some way?Or, seen from another point of view: is there any way, from within an application, to know what stream(s) the application is serving ? I mean, if we want the list of connected clients we have the application.clients array; is there any correspondence from streams ?
View 2 Replies
Dec 2, 2010
I want to build an application that will allow the user to upload a movie file, then allow the user to give information about the movie (like synopsis, title, etc.) so that he or she can watch it from the server at a later time. Almost exactly like a youtube clone, for all intents and purposes.
I'm running into a problem, however, with serving up the movie to be watched. I want the user to be able to watch the movie on a variety of different platforms, including over the web in all of the common browsers, on iOS devices and on Android devices (as well as GoogleTV in the future).
I had initially planned on having the user upload whatever file formats they want, store that file, then transcode it on the fly using ffmpeg (or something similar) to serve it up to whichever device is requesting it. This is handy, because I'd be able to transcode it to a smaller size if I needed to to save on bandwidth. Unfortunately, I'm having a tough time finding a method that will do this to display the movie in a web browser.
I've tried VLC to death. I'm able to get it to stream a video on demand over RTSP, but (as I understand it), both the HTML5 video tag and Flash won't accept an RTSP stream. I haven't had any luck finding a method of streaming an on-the-fly transcoded video over HTTP, which looks to limit my options to embedding either a windows media player or quicktime. FFServer with FFMpeg has the same problem; it can create an RTSP stream, but not an HTTP stream.
View 1 Replies
May 24, 2009
We have installed Flash Media Server on a Linux machine.It has 2GB of RAM,Fedora 9 with kernel 2.6.27.5-41.fc9.i686, the install required a few packages (compat-expat1 was one) to be installed before we saw the sample page. The sample page takes a few minutes to load and opening the page to connect to the admin console is about the same.
This is currently on our internal network while we try and see how it works. Are there any specifc TCP related kernel tuning parameters (eg in sysctl.conf) which need to be put in place over and above the out-of-box configuration. Any troubleshooting hints which might identify the problem. The install seemed ok nothing in /var/log/messages and checking to see what is running (ps aux | grep fms) I see
./fmsmaster -silent/opt/adobe/fms/Apache2.2/bin/httpd -f ./conf/httpd.conf -d /opt/adobe/fms/Apache2.2 -k start/opt/adobe/fms/fmsedge -edgeports :80,1935 -coreports localhost:19350 -conf /opt/adobe/fms/conf/Server.xml -adaptor _defaultRoot_ -name[code]....
but when we clear our browser cache and go to a page it is taking forever.It is taking about 5 minutes to open up the initial page, but when it is open the videos all seem to come through fine.The server previously had apache on it but I removed that copy and went with the version included with FMS.
View 3 Replies
Feb 6, 2012
so encore has the 'export to flash" feature. it seems like it might be a good way to go for me becasue it prodcces a flash player with all my chapter markers in place. i have a couple questions though
1. it is limited to 1280X720 - i would have to do custom flash development to overcome that?
2. how is the resulting videos that are called by the flashdvd.swf served? i mean if i have 1-2GB of video clips are they served one at a time when called by the player?
3. is there any way to get the flashdvd.swf to fallback on iOS and maintain all the funtionality ?
View 9 Replies
Feb 9, 2012
We noticed that when we are streaming our own VOD file that we had copied to the server, which is an .MP4 file encoded at 1200 kbps using either HDS or RTMP (, which I suppose the server recodes on the fly ) we are getting the incoming stream at the average bitrate of 14 Mbit/s, and it looks like bursts of 25 Mbit every couple of seconds.
However if we try a sample file, such us sampl1_1500kbps.f4v we are getting an average of 1.2 Mbit/s with peaks of 1.5-2 Mbit. The tests are conducted in our company LAN. So what is the reason for this? And is there a way to control/restrict the output bandwidth for our own file without re-encoding? I'm not talking about several streams with different bitrate for the same source aka adaptive bitrate but rather about the single stream bw)
View 1 Replies
Sep 14, 2010
I have a Flash based game for the browser which sends users' scores to a php backend script which stores the score and the user id in the database.
Now I have a url like www.example.com/update.php?score=200&uid=234
The problem is that this is very much exposed to an intelligent user, and he can use this url to store whatever score he wants in the DB. Also there's no real user authentication, and I don't intend to have one either, because it's really a tiny game.
How can I stop someone from calling the above url and updating his score on his own.
View 2 Replies
Jun 13, 2011
I need to serve live video streams to Flash players, Apple devices, and Android and Blackberry handhelds. Right now I'm using FMS (actually, the CDN I stream through is running FMS), and configuring Wowza Media Server to suck the Flash stream from FMS and reprocess it for Apple, Android, and Blackberry. It works well, but it's kind oif a PITA having to have a separate server just to handle mobile devices.
Is anyone aware of any plans to release a version of FMS that will stream directly to Apple and Android? I saw a video clip on Techtilt of an Adobe presentation at NAB where they were showing live streaming to iPad, but that clip didn't way anything about when we might actually see that version of FMS become available.
View 1 Replies
Jul 13, 2009
i'm working on a flex project where we load in a bunch of swf files from a zip archive using fzip. And whenever i'm running in debug mode, I get a whole bunch of trace statements saying like, [SWF] filepath - 251 bytes after decompression I'm just wondering if anyone knows how to hide these statements in the output window as there are a lot of them as i've got over 200 swf files being loaded in and these statements
View 1 Replies
Jan 25, 2012
I am changing image through flex every time i change it saved into server directory with same name(which i am referring to show). So when i refresh my page my browser didn't send new request to server since it's already in request.so didn't getting new image.Tip:- when i clear browser history it will come with new image
View 2 Replies
Sep 21, 2011
Is it possible to put some sort of a marker along the timeline on a certain frame? I want to select all the frames of all my layers within a certain range so I can paste them in a new document,
View 5 Replies
Dec 27, 2011
Situation: live hls multi-bitrate, livepkgr, m3u8 served on "my" website
(iOS user gets on "my" page, clicks on the m3u8 link and views the live content - no problem there...)
What is stopping other to use my playlist on their website and offer the same service with "my" infrastructure?
If i use protected hls - i still will be giving keys to all the viewers - both those who came through my website and also all others.
View 3 Replies
Dec 18, 2009
I am using google map api. Is there any way to put title in marker?
View 1 Replies
Feb 20, 2006
I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline. Do i target the MC name (from the library) or the instance name? would it be something like Code: _root.mc1.mc2.mc3.gotoAndPlay("label");
View 4 Replies
Oct 18, 2011
I have created a movie that requires the user to click on two points on an image. I want a visual indication to appear (eg a marker of some sort) to appear on the first and second click. Is this possible?
View 21 Replies
May 9, 2011
I am creating a project in Flash using the Google Maps API and docs. I'm trying to add a marker to the map, which is draggable but I don't want it to look like the standard Google Maps bubble-style marker. Is it possible to have a custom polygon or image but still keep the draggability?
View 2 Replies
Jan 1, 2012
I've added a movie clip i've created to the stage and it works fine... the movie clip has 4 frame labels inside it with different content on each label. The main timeline has 4 buttons and I want to be able to click one of these buttons, it will load the movie clip (which it currently does) but goto a specific frame label within the movie clip. The below is a sample of the code from one of the buttons.
[Code]...
View 6 Replies
Sep 16, 2009
I'm interested in understanding the ActionScript 2 code that will allow a random decision on the next marker to jump to. I have five markers on a time line and want the movie to stop after playing a sequence of elements, then randomly choose the next marker to jump to and play, this would continue forever.The goal is to communicate a few concepts without starting from the same concept every time in a linear manner.
View 6 Replies