[flexcoders] Security Cameras

2010-03-28 Thread archtechcomputers
Hi
  I have a Flex3 application that is displaying images from a security camera.  
The camera doesn't stream video but I can get a jpg from it. Because the camera 
is on a different network, I had to write a php application to get the jpg and 
send it to the flex app (due to security)

The flex app has an auto update that after the image has loaded, a 10 sec timer 
runs and reloads the image.  I load the image into a new bitmap and then swap 
the images.
Currently it stopped working.  it seems to only show the last image, like a 
caching issue.  If I call on the php app the image updates with every reload.  
I don't see what might be causing this.

Any suggestions.

I was just looking at Tour de FLEX, and there were Effects like Crossfade that 
could switch between images, but could I make the images dynamic, not embedded?

Thanks



[flexcoders] Blank Images

2008-07-21 Thread archtechcomputers
I am testing something with Flex3 and need some guidance.

I have a security camera that I can only see as a jpeg 320x240 and I
am trying to get a flex program to display an image every 3 seconds.

I have used the  control and created a timer event to refresh
the image every 5 seconds.  
The problem is that the image blanks out during the reload, so in
effect I get a 2 second image, 3 second blank.

What would be a good solution to remove the blank times?
URLLoader?, is there some part of the image controls to remove the
blank during load?

Thanks

Joe



[flexcoders] Re: Landscape printing in Flex

2007-06-07 Thread archtechcomputers
How did you get the reading of the orientation to work?
print orientation is a property of PrintJob, and not FlexPrintJob.
I have a page designed in a vbox component, which contains my form to 
be printed.
PrintJob uses a sprite.  The LiveDocs show to do something like:
var pj:PrintJob = new PrintJob
if (pj.start() != true) {
return;
}
if (pj.orientation != PrintJobOrientation.LANDSCAPE)
 Alert.show("Choose Landscape", "Error", Alert.OK);
 return;
}

I can't do this using FlexPrintJob

Thanks

Joe

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Wednesday 06 Jun 2007, archtechcomputers wrote:
> > I even tried to design the page rotated, but when you rotate a 
label,
> > you can't see it anymore :-(
> 
> You need to change to an embeded font to make that bit work, but 
yes, when I 
> try to print a rotated PrintDataGrid it hasn't been scaled 
correctly (it no 
> longer fills the page width).
> 
> We've done the same thing for now - tell the user landscape is best.
> Maybe Flex 3 will add this ability.
> 
> 
> -- 
> Tom Chiverton
> Helping to apprehensively reinvent revolutionary clusters
> on: http://thefalken.livejournal.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Landscape printing in Flex

2007-06-06 Thread archtechcomputers
Hi Mike, 
  Thanks for your input, I also am tring to print a certificate.

Like I posted earlier, I need to print the page landscape.  
I've been working on it for hours.. 

I've done the following:
  // The function to print the output.
public function doPrint():void {
var pj:FlexPrintJob = new FlexPrintJob();
if (pj.start() != true )
{
return;
}

var myPrintview:FormPrintView = new 
FormPrintView();

myPrintview.width=1100;
myPrintview.height=900;
myPrintview.rotation=90;
this.addChild(myPrintview);
pj.addObject(myPrintview, 
FlexPrintJobScaleType.FILL_PAGE);


pj.send();


Where FormPrintView is a Vbox component.
The rotation just doesn't seem to work right.  It seems that the 
width, height and origin seem to get confused along the way, so the 
Scaling gets confused.
I even tried to design the page rotated, but when you rotate a label, 
you can't see it anymore :-(


So I am going to resort to Telling the user to select Landscape in 
thier printer preferences and check that they have done it.

Joe


--- In flexcoders@yahoogroups.com, Mike Weiland <[EMAIL PROTECTED]> wrote:
>
> Unfortunelty there is no way to set the orientation, it is read 
only. What I do for http://www.CertificateCreator.com/ is when 
someone prints is to tell them to set their printer to landscape. 
Once the print job is processed I check the orientation and if it was 
not set to landscape I alert them that their printer was not in 
landscape mode and for full page printing they need to set their 
orientation to landscape.
> 
> This has been one of my requests since printing was added to Flash 
4.
> 
> Good luck,
> 
> Mike Weiland
>  
> Original Message ---
> Is there anyway to define landscape to the printer?
> 
> I am working on a project that I need to print a single page that 
is in 
> landscape.  I've created a component that is 800 x 600, the print 
job 
> adds that component as an print object and sends.  If under the 
system 
> printer dialog box, I don't choose landscape, it won't print out 
> properly.  I've tried rotating the object 90 degrees during the 
print 
> process and no luck.
> 
> Any suggestions?
> 
> thanks
>




[flexcoders] Landscape printing in Flex

2007-06-04 Thread archtechcomputers
Is there anyway to define landscape to the printer?

I am working on a project that I need to print a single page that is in 
landscape.  I've created a component that is 800 x 600, the print job 
adds that component as an print object and sends.  If under the system 
printer dialog box, I don't choose landscape, it won't print out 
properly.  I've tried rotating the object 90 degrees during the print 
process and no luck.

Any suggestions?

thanks




[flexcoders] SWFLoader Problems

2007-01-03 Thread archtechcomputers
I am working on an app and having troubles trying to get content to
play properly.

The user selects an item from the menu which trigers SWFLoader to load
a Flash 8 swf file.

When loaded, the sound doesn't play, popups aren't working.  After
researching, it seems to be a issue with Flex and Flash 8.
I recreated one of the files as a Flex application, I copy the Flex
SWF to the server and run (testclient.swf).  It now plays the audio track.
I tried to use SWFLoader.SoundTransform to adjust the volume and it
didn't work (I don't know why).

My last attempt has been to move the volume controls into the external
app, which works, but I need the main app to know / set the volume and
mute (to maintain settings between pages).

I have been trying SystemManager and am able to set a variable in the
client app, but I haven't been able to determine when the app is there
and available.  SWFLoader creationcomplete="initSWF();" gets called
when SWFLoader object is created.  SWFLoader complete="initSWF();"
also seems to get called when the SWFLoader is completed.

I have been trying in the initSWF() routine waiting for
LoadedSM.application (LoadedSM is an earlier created SystemManager
object pointing to my SWFLoader id);

If I put a button on the screen, the click event will update a text
label on the child using 
   LoadedSM.application["lbl"].text = "Testing";

Am I missing something with SWFLoader?  can I get my original flash8
files to work properly?  Should SoundTransform actually control the
sound of the SWF?

Any help would be greatly appreciated.

Joe