Flash And Jpeg
I'm having a problem importing certain jpegs into flash. I'm uploading the pics from an html form, which gets a php file and sends the pic to the appropriate location and creates a thumbnail of the pic. The thumbnail works fine, however, the php i'm using contains if(uploadedpic_type !="image/pjpeg"){ echo "please choose a jpeg image";} This is also working. HOWEVER, nearly every picture i try to upload (and yes i've checked their file extension to make sure they are jpeg or jpg) comes up saying "please choose a jpeg image". I could take out the file check to upload the image anyways, but then when i try to import those images into flash, they won't load. Its really confusing to me. I also have a question about changing the name of the jpg, to see if that might work. Is there a way to have the php change the name (ex. me and friend.jpg) to (meandfriend.jpg) eliminating the spaces? I've noticed that pics that don't have spaces in the name do load, however, this is not always the case. Its a very confusing problem for me. I hope i didn't make it more confusing than it should be! Sorry if its cluttered!!Thanks in advance!
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-02-2005, 03:45 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
JPEG Loading... How Do I Wait Until The Jpeg Has Loaded
Hi everyone!
this is the code that I currently use. I want to be able to wiat until the jpeg is loaded before going trought the loop again.....
any ideas? I have tried to use the getBytesLoaded and getBytesTotal but they always show up as 0. Very annoying.
Code:
var currentX = 0
for (k=0;k<galleryVar.items;k++){
_root.thumbslider.createEmptyMovieClip("thumb" + k,(50 + k));
eval("_root.thumbslider.thumb" + k)._x=currentX;
loadMovie(_root.categoryList+"/thumbnails/"+_root.imageArray[k]+".jpg",eval("_root.thumbslider.thumb" + k));
currentX = currentX + eval("_root.thumbslider.thumb" + k)._width;
trace("Pic" + k + " " + currentX);
}
the "currentX" (2nd line from the bottom) doesn't get a value because the jpeg doesn't get loaded quickly enough. How can I wait for the jpeg to load before going through the loop again.
I don't want to use frames becasue I am creating everything dynamically!
Am i making sense?
Hope someone can help me!
Thanks
A
What Is Up With Jpeg.s In Flash 5?
How do I appropriately import a jpg without a white outline? I know that Flash seems to prefer jpgs (they look much better than imported gifs and pngs), but how do I get them to stand seperately, without the white box?
The "Break Apart" (cmnd + B) command used with the wand tool really does not do a great job taking off the white. I'd really have to sit down for quite awhile with the lasso tool to get a perfect edge, around image... What else can I do? This seems like it should be such an easy & common sense kind of thing!
Help!
Flash To JPEG?
Is there a way to dynamically create a JPEG image of the swf stage? Say, for a user making ecards or something.
Thanks.
frozenpeas
How To Save A Jpeg From Flash?
I need to make a postcard system where people can create thier postcards by dragging moives around, adding text, choosing photos ...etc... but they need to then be able to email the postcrad they have created as an jpeg to a freind. Any idea how I can do this? will I have to use director instead? I'd rather keep it in flash if at all possible.
thanks for any help.
JPEG Substitute For Flash
When someone doesn't have Flash installed (what kinda browser are they using?) or if it's just disabled or what not, what is the code you need in order to provide alternate JPG or Code for the Flash area content.
I know you could create a javascript program to detect it and then either show the JPG or embed the SWF, but is there code that's built into the Flash Object or Embed tags?
Loading A Jpeg Into A Swf With Flash 6
I'm loading a jpeg into a movie clip in a swf with flash 6 with the loadMovie function, and it works perfectly
But I wanted to restrict the size of the file that comes in...
say something like...
if the picture's width is greater than 500, shrink the image proportionately to make the width 500
if the picture's height is greater than 400, shrink the image proportionately to make the height 400
but I'm not sure how to change the size of the jpeg as it's loaded in. I tried defining the size of the movie clip that it's loaded into, but it doesn't effect the image. Anyone know if this is possible, or does the jpeg pretty much have to be the size I want it before I load it in?
JPEG. Quality In FLASH.
Question:
I work in photoshop to save all of my images for the web,
by the **save for web** option.
I am on a Macintosh with a plasma flat screen, and I optimize the images usually around 60-70 percent, and don't ever see any pixelation.
After, I published my site, and viewed it on, PC's and other older monitors, the JPEG quality looks like ****e.
Does anyone know anything about this?
Check My site: www.carpeinternational.com
look at jpegs. give me some info..
cheers.
happy 300th post to me!
Jpeg Images In Flash
hi ive noticed that when i insert jepg images i have made into my flash movies, when i export the finished movie and view it, the quality of the images goes down, and they get all fuzzy. how do i sort this out? ive tried changing the jpeg quality option to 100 in the xport movie options, but that doesn't help.
Bad Quality Jpeg An Gif In Flash
Im making a screensaver with flash, with imported jpegs and pngs and such, but the quality changes for the worst when its published as swf or exe. I allready changed the directory of the pictures so flash doesnt compres it but the quality is still bad..
anybody got suggestions? (working in flash 4)
Flash 6.0 External JPEG Tip
Hi,
I've just this minute, found a resolution to
the 'streteched pixel' effect sometimes
noticable on jpg images when they're loaded
into placeholders.
Sometimes, you get this:
Top pixel row is duplicated, creating
a stretched pixel effect.
Even if you try changing the placeholder's
X or Y position to 240.0 co-ordinate for
example, there is no change . . .
. . . but on close inspection, this is only
true when co-ordinates are changed when the
stage is at 100%.
If you zoom in to the stage to about 800%,
you will find that the 240.0 co-ordinates
that you've entered at 100%, have actually
changed to something like 240.1 or 240.4
which causes the off-pixel effect.
With the stage at 800%, simply change the
co-ordinate back to 240.0 and then try
viewing the result.
It should now look like this:
Pixels are all correct.
Note: I've only tried this in Flash 6.0
Oops - Just noticed that I posted this thread
from a Boadroom thread I was reading.
Would someone be so kind as to move it some
place more appropriate. Thanks.
Space Between Flash And Jpeg :(
Hey guys, i am using dw mx and i have a banner for a page and also a flash object that has to go RIGHT NEXT TO THE JPEG BANNER (with no pixels in between). I cant seem to do this, there is like a pixel width space between the flash and the jpeg, how do i fix this? thx
Flash Strips 1px Of My Jpeg
Hi there,
I'm working with flash mx 2004, but I want a v6 compatible swf in the end.
When i place a jpeg in my movie and i export it to a v7-swf, everything works fine, but when I export the same fla to a v6-swf my jpeg is incomplete. On the right and the bottom border of the pic a 1px line is missing.
Any ideas how to circumvent this issue?
Thanks in advance
Rick
--
mac/osx10.35/flash mx 2004 7.2
Webcam-> Flash-> PHP-> Jpeg
I was wondering if it wouldbe possible to let flash take pictures with a webcam (eg when a user clicks a button), then send this pictures to the $_POST array in php and, then display a jpeg of it... for example to make a collection of pictures of visitors on your site.
And all this without Communication Server. I know that you can access the webcam with flash, but can you send its data through php to the server?
Jpeg Quality In Flash
I'm currently creating a flash site for a photographer and the image quality is becoming a problem. The Jpegs seem to really decrease in quality when published to the web. I have put the "Quality = Best" script in the first frame of the movie but my general question is....
do jpegs just look better in non-flash sites?
[MX] Upload A Jpeg With Flash And Php?
I am new to action script and new to php. Looking at some previous threads, I was able to create an email form in flash with php that included basic stuff like name, email address and a message.
Is it possible to set it up so that the user could also attach a jpeg through the form? Any help is much appreciated.
Here is the action script I have so far on my submit button:
Code:
on (release)
{
var sMessage = "Fullname:" + tFullname.text + "Email: " + tEmail.text + "Subject: " + tSubject.text + "Message: " + tMessage.text;
lvSend = new LoadVars();
lvReply = new LoadVars();
lvSend.msg = sMessage;
lvSend.address = "evilredcardinal@yahoo.com";
tFullname.text = "";
tEmail.text = "";
tSubject.text = "";
tMessage.text = "";
lvReply.onLoad()
{
tName.text = "";
}
lvSend.sendAndLoad('mail.php', lvReply, 'POST');
getURL("http://www.texasclay.org","_self");
}
And here is my php code:
Code:
<?php
$message = $_POST["msg"];
$address = $_POST["address"];
mail($address,"E-mail Form Message",$message);
?>
Thanks!
No Flash? Load A Jpeg...
hi there,
I'm looking to display an image if the user doesnt have flash on their computer.
e.g. if browser doesnt detect flash, then load a jpeg.
Is there any script to offer this alternative automatically?
Cheers
James
Export To PNG / JPeg From Flash On The Fly Using AS3?
Hi there everyone,
Thanks in advance for any answers...
I'm looking for an efficient way to export the content of my Flash movie as a PNG file or Jpeg.
I created a version in AS2 which got the pixel data for each pixel, compressed it using my own algorithm and then sent it to an ASP.Net file but the problem was it took a while to run the analysis of the file in AS2 and pass the data to ASP.Net (around a minute for each and sometimes caused Flash player to crash).
I was told there was a simpler way to achieve this in AS3.
Does anyone know how??
Thanks very much.
Modify Jpeg With Flash
The other day my friend on his pc showed me how to import a jpeg image with macromedia flash and modify it by moving vectorial points.
Today that i have bought my software and im so desperate now because i cant work it out how he did it and even worse i wont be able to be in touch with him before the next week
Let'see, I have a simple jpeg image that can be viewed on the canvas but not modified as i would like by vectorial points.
I even looked for it on the guide with no results.
I would appreciate anyone who could help me!
Thanks in advance.Apologize for language mistakes.
Dynamic Flash Swf To Jpeg
I've created Flash page which allows users to create business cards and see a real time proof before ordering. I would like to create an image of the swf to store in my database for use in the shopping cart and for some other purposes. I need to create an image for every card that is created in realtime. Is there a way to do this?
Thank you,
Chris
Jpeg Quality In Flash?
hey just a quick on here.
if youve read my ealier thread on the shout box you would know that i am currently making my web page zacusonline.com, ive been using flash for the buttons and navbar and stuff like that, but for some reason one of the button panels i have made using (i think exactly the same technique(drawing in photoshop and animating in flash) seems to be low quality, not pixelated really but kinda like the loss of qulity when saving somthing as a giff. file
thanks any help is appreciated
Flash Stage To JPeg
Hellow,
Would it be possible to generate Jpeg-files (or gif/png) from the content that is on your stage?
I'm working on a Coloring game in flash, but my client want that the visitors can make a wallpaper of their coloringwork
Help would be very welcome
Thanks a lot!
JPEG 2000 In Flash
Has anyone read about JPEG 2000? http://www.jpeg.org/jpeg2000/ It sounds totally awesome. I am wondering why it hasn't gotten more mainstream exposure. Is it going to be supported in Maelstrom?
Export JPEG With Flash/PHP Help
Hi guys,
I have downloaded the source file for the Export JPEG with Flash/PHP sample from http://www.sephiroth.it/tutorials/flashPHP/print_screen/ . What this script does is it lets you print the flash screen you have using the new flash.display.BitmapData class.
I was able to run it on my server however I also want to be able to save the jpg image that it generates on a folder on my server. What I did is I added a an image file name in the imagejpeg() function
imagejpeg($img, "filename.jpg", 90);
The image is being saved on my server however, now the image is not being displayed on the browser. Both on IE and Firefox.
I hope someone has the answer on this.
Thanks,
Chris
Save Flash As Jpeg
hi, i hope someone can help me on this... stuck on tis..
i m creating a t-shirt customization by using flash, ASP.NET and MSSQL..
there are 3 main functions of customization which are add color, add image and add text. and finally save as jpeg file.. and store into database
is tat possible to do this?
how to write e code which save t shirt as jpeg file?(by using flash and asp.net)
anyone can help ??
Import Jpeg's Into Flash 8?
I'm doing a flash animation and I would like to import one of my jpeg's into the movie (http://kimages.be/share/79510107.jpg). Now so far the only way I have been able to do this has resulted in a pixelated image and I need it to look just as good, its not a complicated image if you look at it.
Any help at all would be great.
A Flash That Creates JPEG?
Hey guys,
Or more precisely, a flash application that export jpeg files.
Can anybody tell is it possible to use flash to create an application that, it create jpeg files and allow the user to store the file into their computer?
I'm actually trying to create a greeting card page that allow users to "write" on the greeting card rather than having a space outside of the greeting cards like normal greeting cards sites.
So after the user type whatever he wants to on the greeting cards, he could click on a button and export the greeting cards in jpeg form, with the text he typed on the greeting card.
So its just my crazy idea but i'm wondering if flash could help me to achieve this?
Many thanks in advance.
Download Jpeg From Flash
How can I make a jpeg that is used in flash downloadable?
If i have a sample picture of the file and then a text button under it that says "Download This Picture" what do I need to do to make that picture be downloadable once the end user clicks on the button?
thanks guys
p.s. i'm using as2
Hey i also need to know what the as2 code is to have a new swf load ontop of the entire movie or the top most level or at least be able to pick the level that this new swf will load into IDK like level 70 or something high like that.
this.newSwf_btn.onRelease....
something like that
Just figured out the 2nd part to my question, i used
on (release) {
_level0.myMCL.loadClip("yourSwfFileName.swf", 70);
}
After creating the variable & the listener.
thx
Jpeg Quality In Flash?
hey just a quick on here.
if youve read my ealier thread on the shout box you would know that i am currently making my web page zacusonline.com, ive been using flash for the buttons and navbar and stuff like that, but for some reason one of the button panels i have made using (i think exactly the same technique(drawing in photoshop and animating in flash) seems to be low quality, not pixelated really but kinda like the loss of qulity when saving somthing as a giff. file
thanks any help is appreciated
Flash Stage To JPeg
Hellow,
Would it be possible to generate Jpeg-files (or gif/png) from the content that is on your stage?
I'm working on a Coloring game in flash, but my client want that the visitors can make a wallpaper of their coloringwork
Help would be very welcome
Thanks a lot!
Animating A Jpeg In Flash
I was wondering if there is any way to get a jpeg moving across the screen smoothly without it flickering. I have tried increasing the frame rate but that has not helped, used the easing and tried to trace the bitmap.
the image size is a 590x380.
they would like the image to move from the right onto the screen and then off the screen to the left.
thanks.
No Flash? > Load Jpeg...
I am making a flash ad. My boss wants to know if there is a way to load a jpg image intstead of the flash applet in case there is someone out there who doesn't want Flash installed.
Thanks.
Controlling Jpeg's In Flash....
Ok, this is quite a hopeful post....
I have an image that has been sliced into many smaller images via photoshop, via a grid. These images have then been imported into flash, where I want to place each in it's own movie clip.
Problem is, that if I go ahead with my plan, there will be about 200 or so mini-images and it would obviously take a while to make each one into a movie clip manually.
I'm looking for a way to get flash to loop through all the mini-images in the library, and dynamically put them into movie clips.
Any kind of method or function for manipulating images in a similar way to attachMovie or duplicateMovieClip works for movie clips would be ideal but I'm not aware of any such thing existing....
Any pointers to resources or custom written functions that might be helpful would be welcome. A complete solution and I'll send you $500,000 (maybe).
Thanks for taking the time to read this...
Cheers
Flash Window Into A Wallpaper (or Jpeg)
flash window into a wallpaper image (or jpeg)
I am making a flash site where the user (a child) creates an on-screen image in the flash window,
then I want the user to be able to press a button that would "take a picture" of the flash window contents and makes it the wallpaper. (no movement or interactivity; just a flat image)
This would be easy to do if it weren't a flash window in a browser;
for example if the image was a jpeg image in the browser they could just hold down the right mouse button and "save as wallpaper"
1. Is there any way to do this in flash?
2. Is there any way to trick the browser into seeing the flash movie as a single image (like a JPEG) so the user could right-click save it as wallpaper?
3A. I believe Flash Generator can create a GIF image from the users flash file, but I can't afford Generator.
3B. Swift Generator doesn't create JPEG or GIF images, Correct?
3C Is there any other software out there that does this?
4. Are there any other ways to convert the active flash window into a solid, flat image? (Like a JPEG or GIF)
Macs used to have a "print to file" function. Does this exist on the PC?
What about the print screen/window key which captures the image to "clipboard". Any way to use that?
I would like to make it work w both PC and Macs but will settle for PCs if I have to.
Thanks a lot. This sounds so simple...
Jpeg/gif To Banner To Non Flash Browsers,how ?
i want to put a flash banner on top of my html page.Is there any way i can show a jpeg or gif image to the browsers not having flash pugin.If i dont want to refresh the whole page or redirect the page.Is their anything like ALT tag,or probably through javascript???
Flash, GIF/JPEG, And Database Path
Hello,
does anybody alreay a thing like that :
load into a flash, gif or jpeg dynamically using a field of a database containing the path of the file ...
[Edited by maquejp on 12-14-2001 at 05:45 AM]
External Jpeg & Their Titles (flash Mx)
Hey all,
I need help with this one... its a file from macromedia flash samples folder...
I am posting the FLA, hope this helps
1- I want to display the text descriptors using XML
2- I want the images to have a fade-in & fade-out
SO the end result could look somewhat like this
http://www.macromedia.com/desdev/mx/...ad_images.html
just that the images would be loaded using XML and so wud their descriptions
thanks for the extended co-operation
Download JPEG From A Flash Projector?
Hello folks,
got a couple of questions for ya:
1.Does anyone know how to download a JPEG from a Flash Projector (.exe) into the user's computer harddrive directly? The projector will load automatically from a CD-ROM and all the JPEGs are within that same CD (the same root directory with the .exe file too).
I've managed to open up a new window browser and the JPEG is 'downloaded' there. So the user need to take an extra step by right-clicking that image and "save target as". Is there a way to do this straight away when you press the download button inside the projector (instead of opening up a browser window first)?
2. My projector is set to fullscreen, so all of the new windows that contains the JPEGs, open behind my projector. Is there a way to make these windows open in front of my projector without setting the "fullscreen" to false ?
Import Jpeg-animation Into Flash°°
Hi,
if you rendered an animation in Swift or 3ds max into jpegs and want to import it into Flash, how can you make it?
I mean if i import many jpegs that will give an animation into Flash there only appears one keyframe -hmmm
I know it works but not how
I would appreciate some advice
THX
&
O mi to fo
Attila
Set JPEG Quality In Flash Or Photoshop?
What is the general concensus about optimizing jpegs for use in Flash;
Exporting from PS at 100% and then setting the image quality in the publish settings of Flash, or the reverse?
Detect Flash Or Show Jpeg - HELP
Hello everyone,
I have a problem that I need help with, my client has requested that if a person visits their website and does not have a flash player installed in their browser, a jpeg must be displayed instead of flash. For some reason the client doesn't want their website visitors to have to download the player if they don't want to.
I remember we could set this option to display a jpeg instead of flash in Dreamweaver 3 but can longer find this option in MX, is there any code I can use or a form of flash detection script that can help?
Thanx
Saving Flash Movie As A Jpeg?
Hi Guys,
Im building a custom t-shirt flash application. Once the the t-shirt is colored and designed i would like them to be able to save the movie clip or even the whole flash as a screenshot (jpeg) from a simple save button.
I have seen it been done in director, is flash capable of doing this??
Heres the example link:
http://www.bluegum.com.au/virtshirt2.html
Any help or advice would be excellent.
Thanks-Shaun
Flash Built In JPEG Encoding?
Hi everyone.
I'm pretty new to Flash, so I'm not familiar with action scripting. I'm currently doing a website in director which involves the user uploading an image to the site. Unfortunately, shockwave doesn't have built in JPEG encoding, and uploading the image uncompressed would be too time consuming. There are however some pretty expensive xtras out there, which I'd rather not use.
I was just wondering if Flash had the ability to encode images to JPEG? If so I could probably pass the image to a flash movie, encode it and then pass it back - or upload it from the flash movie.
Or if that ain't possible, can anyone suggest anything else I could use to encode the image?
Thanks!
Tim
Flash To JPEG - Master Challenge
Ok I have found something that is quite hard to do and wanted to know if any one knew the solution. If any of you have ever used MSN's WeeMee feture to create the WeeMee for your display pic. Well when your done they put the designed character into a JPEG for you to download (at £1.50 mind you). Anyway I was wanting to know how is this done?
TedTLogan
It has boggled me for all day!!!
REQUEST: Flash Images (not JPEG Or GIF)
hello dears..
I need flash images.. images created by flash MX.. i dont want jpeg, gif or bmp images they are bigger than flash ones.. images created by flash are smaller in size and used in a better way than other pictures..
i want a picture of an eagle flying.. his wings are open and not closed. it would be much nice if it is already animated in a loop.. like flying in a circle.
a picture of a cammel.. from the left or right side.. i dont want a picture from corners.. details are not important at all! just the shape.. it would be much better if the cammel is walking in a loop.
i dont want to invent the wheel again.. please tell me where can i find these things.. i searched in google, and also in flashkit.com but i didnt not find what i want..thanks in advance
best regards
eech55
Making A Jpeg Editable In Flash?
is there anyway to make a jpeg editable in flash mx? like say you have a black and white picture that you want to color in flash, without having to trace the picture with onion skinning. Is this possible?
|