A question about a resizeable loaded object

Guys...
I was searching in the web on how to make an automatic resizeable screen, so it feets on many devices regardless of their size and I found a tutorial that adds the picture to the Flash library and resizes it depending on the screen size...
Now, I have deleted the library object and changed the "bitmap" var from the tutorial for a "Loader" one, so the picture isnt in the library...
My only problem is that when you try the swf, the picture is anywhere in the screen and only fits on it after you expand or decrease the its size...
So how can the picture be on its right spot in the first time?
(The tutorial had as an event trigger a Mouse Click... I have changed it for a timer event and while my pic was in the library it worked fine, but now I have to resize the windows to make it work)
Here is the code:
//Main Class
package{
    import org.display.OffsetResize;
    import flash.display.Sprite;
    import flash.display.Bitmap;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.display.Loader;
    import flash.net.URLRequest;
    public class Main extends Sprite{
        private var _bg:OffsetResize;
        private var t:Timer = new Timer(0,0);
        public function Main():void{
            if(stage) init();
            else addEventListener(Event.ADDED_TO_STAGE,init);
        private function init(e:Event=null):void{
            stage.scaleMode=StageScaleMode.NO_SCALE;
            stage.align=StageAlign.TOP_LEFT;
            var picture:Loader = new Loader();
            picture.load(new URLRequest("FIN1.jpg"));
            _bg=new OffsetResize(picture,OffsetResize.MIN);
            stage.addChildAt(_bg,0);
            _bg.stage.align = StageAlign.TOP_LEFT;
            t.addEventListener(TimerEvent.TIMER, resizeada);
            t.start();
        private function resizeada(TimerEvent):void{
            _bg.offsetType=_bg.offsetType==OffsetResize.MAX?OffsetResize.MIN:OffsetResize.MAX;
            t.stop();
//OffsetResize class
package org.display{
    import flash.display.Sprite;
    import flash.display.DisplayObject;
    import flash.events.Event;
    public class OffsetResize extends Sprite{
        public static const MAX:String="max";
        public static const MIN:String="min";
        private var _offsetType:String;
        public function OffsetResize($child:DisplayObject,$offsetType:String="max"):void{
            _offsetType=$offsetType;
            addChild($child);
            if(stage) init();
            else addEventListener(Event.ADDED_TO_STAGE,init);
            addEventListener(Event.REMOVED_FROM_STAGE,end);
        private function init(e:Event=null):void{
            stage.addEventListener(Event.RESIZE,stageResize);
            stageResize();
        private function stageResize(e:Event=null):void{
            var px:Number=stage.stageWidth/width;
            var py:Number=stage.stageHeight/height;
            var div:Number=_offsetType=="max"?Math.max(px,py):Math.min(px,py);
            width*=div;
            height*=div;
            x=(stage.stageWidth/2)-(width/2);
            y=(stage.stageHeight/2)-(height/2);
        private function end(e:Event):void{
            stage.removeEventListener(Event.RESIZE,stageResize);
        public function set offsetType(type:String):void{
            _offsetType=type;
            if(stage) stageResize();
        public function get offsetType():String{ return _offsetType; }
Thanks in advance!!!

try:
//Main Class
package{
    import org.display.OffsetResize;
    import flash.display.Sprite;
    import flash.display.Bitmap;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.display.Loader;
    import flash.net.URLRequest;
    public class Main extends Sprite{
        private var _bg:OffsetResize;
        public function Main():void{
            if(stage) init();
            else addEventListener(Event.ADDED_TO_STAGE,init);
        private function init(e:Event=null):void{
            stage.scaleMode=StageScaleMode.NO_SCALE;
            stage.align=StageAlign.TOP_LEFT;
            var picture:Loader = new Loader();
picture.contentLoaderInfo.addEventListener(Event.COMPLETE,resizeada);
            picture.load(new URLRequest("FIN1.jpg"));
        private function resizeada(e:Event):void{
          _bg=new OffsetResize(picture,OffsetResize.MIN);
            stage.addChildAt(_bg,0);
            _bg.stage.align = StageAlign.TOP_LEFT;
            _bg.offsetType=_bg.offsetType==OffsetResize.MAX?OffsetResize.MIN:Offs etResize.MAX;

Similar Messages

  • Question about free down loading Mavericks. On checking Mavericks before downloading that there are no Bangla language in the list. I occasionally use Bangla in my present Mountain Lion. My concerns if I down load Mavericks then what will happen to Bangla

    Question about free downloading Mavericks. On checking Mavericks before downloading that there are no Bangla language in the list. I occasionally use Bangla in my present Mountain Lion. My concerns is, if I download Mavericks then what will happen to Bangla language in mountain lion? Samar Laha

    No reason to be embarassed. You are not alone.
    You will need an external drive. If you have a Time Machine drive without enough disk space you can create the clone there however it's advised that you keep your Time Machine and clone on separate drives. If the drive dies you loose both types of backup.
    Download and install the clone software. Everyone has their favorite. These are the two most common applications used. I prefer SuperDuper because of it's simplicity in setting up. It's also free for the first clone where with CCC you have to give a Credit Card then cancel if you do not want to keep.
    SuperDuper! http://www.shirt-pocket.com/
    CCC http://www.bombich.com/download.html
    Select your drive in the To popup. Click on Copy Now. That's it.
    Yes, it really is that simple....

  • Question about SWING and ActionEvent Object.

    When using a graphical component like a JButton,
    one typically adds an ActionListener Object to that button using the
    addActionListener method,
    in order for a click/appropriate action to execute desired Java code.
    One's desired code is within one's own ActionListener Object,
    which implements an appropriate interface and the equivalent of
    that interface's actionPerformed method.
    -How does one program one's own ActionEvent Object,
    and register that object (myActionEvent) with the java virtual machine
    such that your OWN event object is fired, instead of the
    default action?
    -Does instantiating one's appropriate ActionEvent object
    "fire" it as an event?

    Zac1234 wrote:
    When using a graphical component like a JButton,
    one typically adds an ActionListener Object to that button using the
    addActionListener method,
    in order for a click/appropriate action to execute desired Java code.Only for components that accept ActionListeners of course. This won't work with a JLabel for instance or any random "graphical component".
    -How does one program one's own ActionEvent Object,
    and register that object (myActionEvent) with the java virtual machine
    such that your OWN event object is fired, instead of the
    default action?Please explain exactly what you're trying to do here. Perhaps it's just me, but I'm not sure I understand what you mean by programming your own ActionEvent Object. An ActionEvent object can be simply created like any other object and by using the appropriate constructor (the API can help), but I don't think that you're talking here about ActionEven objects -- the parameter of the actionPerformed method, are you? Please give details as they are important here.
    -Does instantiating one's appropriate ActionEvent object
    "fire" it as an event?No, but again I'm stumped as to exactly what you're trying to do here.
    Finally, let's keep this discussion here, but next time, you will probably want to ask your Swing questions in the Swing forum.
    Best of luck.

  • Newbie question about entity and view objects

    Hi everyone,
    My first ADF application in JDeveloper is off to a difficult start. Having come from a forms background, I know that it is necessary avoid using post-query type lookups in order to have full filtering using F11/Ctrl+F11. This means creating an CRUDable view and getting as much of the lookup data as possible into the view without losing the ability to modify the data. In JDeveloper, I do not know how to build my data model to support that. My thought was to start with a robust updateable view as my main CRUD EO and then create a VO on top of that with additional EOs or VOs. But, I have found that I cannot add VOs to another VO. However, if I link the VOs then I have a master-detail which will not work for me.
    For example, I have two joins to CSI_INST_EXTEND_ATTRIB_V shown in the queries below and need to have that show in the table displaying the CRUD VO’s data. It seemed that the best way to do this is to create a CSI_INST_EXTEND_ATTRIB_V entity object and view object. The view object would have two parameters, P_INSTANCE_ID and P_ATTRIBUTE name. Both the building and the unit are needed on the same record, and this is not a master-detail even though it might look that way. (A master-detail data control will not work for me because I need all this data to appear on the same line in the table.) So, I need help figuring out the best way to link these to the main (CRUD) view; I want as much of this data as possible to be filterable.
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'BUILDING NAME'
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'UNIT NAME'
    Ultimately, I need to display a ton of data in each record displayed in the UI table, so a ton of joins will be needed. And, I need to be able to add records using the UI table also.
    James

    Hi Alejandro,
    Sorry if I caused confusion with my first post. What I had in mind assumed that I could have a single CSI_INST_EXTEND_ATTRIB_V EO with a BuildingVO and UnitVO on top of it. So, I wrote the queries individually to show how I would invoke each view. When I realized that confused the issue, I rewrote the query to explain things better.
    Now having seen your 2 queries. You need to create 2 EO. One for each table. Then create an association between the 2 aeO (this will be the join you are talking about). Then, you need to create a VO based on one of the EO and after you can modify and add the second EO (in here you select the join type).
    After your done with this, youll have 1 VO that supports CRUD in both tables.
    There were three tables in the query: CIEAV_BUILDING, CIEAV_UNIT, and T -- the main CRUD table. When you say that I should create two EOs, do you mean that they are to be for CIEAV_BUILDING and CIEAV_UNIT? Or, CIEAV and T? Assuming CIEAV and T, that sounds like it would allow me to show my building or unit on the record but not both.
    By the way, everything is a reference except for the main CRUD table.
    Look forward to hearing from you. Thanks for your help (and patience).

  • Question about table data loading at startup of .jspx page

    I'm trying to debug an intermittent user error - the user loads a .jspx page (jdev 10.1.3.1) - this page contains an af:table that uses a read-only view object with a sql statement containing bind variables. The table uses a partial trigger linked to a command button that when pressed, updates the data in a table by calling a service method on the application module. The pagedef file does not contain an invokeaction, so my assumption is that the table will not attempt to be populated or execute the sql in the view object until the user pressess the command button?
    The error received is a JBO-271222 - it appears (though not 100%) that when the page loads the sql on the view object attempts to execute w/o the user pressing the command button, which gives an error saying the statement parameter 1 (bind variable) is not set. I have not been able to replicate the issue, but a couple of users have experienced this. Is there any reason the table would attempt to execute the view object when the page is first loaded?
    Note one other twist is that the id for the af:table is also used as a partial trigger to another section of the page (so that when the table is populated and a row selected, the other section of the page is updated.) This should not be causing the view object to run at startup though.
    Thanks for any suggestions.

    Hi javaX,
    I'll take a shot at this one...
    Here's my guess: I think the answer may lay in your pageDef.xml file.
    1) You have no <invokeAction> in your file, so you're not running the <action> / <methodAction> to set the parameters.
    2) However, you do have an <iterator> for your viewObject. This <iterator> does infact get executed during the startup of your application.
    My suggestion is to perhaps tweak the refresh= / refreshCondition= for the iterator. This way you can identify when the <iterator> will get executed. Also check the possible use of #{adfFacesContent.postback} in the refreshCondition. This may also help you out.
    The other suggestion is to set some arbritary NDValue= for your <action>/<methodAction> that will cause the query to return nothing, and then <invokeAction> this before your iterator. The execution in pageDef.xml is sequental in the <executables> section.
    Hope this helps!
    Kenton

  • Question about performance (entities & data object)

    Hello:
    I know that this can be, maybe, a silly question, but I've got the doubt
    I get a local reference to a entity ( myEntityLocal ) and I'm going to get many values from it.
    For example
    myEntityLocal.getId();
    myEntityLocal getName();
    myEntityLocal.getAddr();
    etc etc
    My question is
    Would be better, in performance terms, to fill all fields into a data object myEntityData ) and retrieve them from it ?
    I mean
    myEntityData = myEntityLocal.getData() // where getData() calls getter methods on myEntityLocal
    myEntityData.getId();
    myEntityData.getName();
    myEntityData.getAddr();
    I think the result is the same because is a local reference, but I've got that doubt
    Thanks and regards

    This will be san=me if you are considering the Local interfaces.
    For remote interface(like accessing EJB from Servlets resides in diffferent Apps Server) use the DTO(data Transfer Object) patterns.
    Regards
    Sushil

  • Question about Cluster/DSync/Load Balance

    According to the admin doc of iplanet, primary server is
    the "manager" for data sync, is there any impact on
    load balance when the iAS run as primary or backup?
    will the primary kxs get the request first and do dispatching?
    Thanks.
    Heng

    First of all lets discuss load balancing....
    The type of load balancing you are using will determine which process manages the load balancing. If you are using Response time (per server or per component response time) or round robin (regular or weighted) the web connector does the load balancing. If you are using User Defined (iAS based) load balancing then the kxs process becomes involved with load balancing of requests since the "Load Balancing System" is part of the kxs process.
    Now for Dsync and how it impacts load balancing.
    When a server is a sync primary or a sync backup role it is doing more work. For the sync primary the extra work is making sure the backup has the latest Dsync Data and processing requests from the other servers in the cluster about the Distributed data. All state/session information is updated/created/deleted on the sync primary, when this happens the sync primary immediately updates the sync backup(s) with this new information. As you can guess managing the Dsync information and making the updates to the sync backups causes extra processing on the sync primary, so this will impact the overall performance of the machine (whether it be in server load or response time of processing). All lookup of state/session information is done on the sync primary only so the more lookups/updates you have to more impact on the server.
    The sync backup(s) also have the extra work of managing their copy of the Dsync Data which will impact server performance but to a lessor degree of the sync primary.
    Ultimately the extra overhead involved does have an impact on loadbalancing due to the extra load on the sync primary and sync backups.
    Hope that helps,
    Chris Buzzetta

  • Question about handing classes in Objective-C

    Greetings -- I'm pretty new to Objective-C. I do have a few apps out in the app store, but they were simple one-form apps where I was able to dump everything into the main class and be happy with it.
    This new project I'm working on, is huge in comparison. Over 25 views, accessible through TableView driven menus.
    I was able to get all of the menus working, each launching a separate view NIB file (so far, just a label to show me that it's done, but I got that part working.)
    Now what I'm trying to do, is add a "click" sound when a row is selected. But I'm wanting to do this in a separate class, so each .m file can instantiate it's own version of the logic instead of having the same code 29 times.
    So, this is what I've done:
    Click.h
    #import <Foundation/Foundation.h>
    #import <AudioToolbox/AudioToolbox.h>
    @interface Click : NSObject
    SystemSoundID soundID;
    -(void) playClick;
    @end
    Click.m
    #import "Click.h"
    @implementation Click
    -(id) init
    self = [super init];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"click" ofType:@"wav"];
    AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID);
    return self;
    -(void) playClick
    AudioServicesPlaySystemSound (soundID);
    @end
    RootViewController.h
    #import <UIKit/UIKit.h>
    #import "Click.h"
    @interface RootViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource>
    NSArray *controllers;
    Click *clicker;
    @property (nonatomic, retain) NSArray *controllers;
    @property (nonatomic, retain) Click *clicker;
    @end
    RootViewController.m
    #import "RootViewController.h"
    @implementation RootViewController
    @synthesize controllers, clicker;
    - (void)viewDidLoad
    Click *newClicker = [[Click alloc] init];
    clicker = newClicker;
    [newClicker release];
    self.title = @"Main Menu";
    - (void)dealloc {
    [controllers release];
    [clicker release];
    [super dealloc];
    #pragma mark Table View Delegate Methods
    -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    [clicker playClick];
    I cut out the code pieces regarding the TableView that I know works, and tried showing only the parts that I've added to make the sound.
    What I've tried, is when the RootViewController is created, it has a SystemSoundID type variable defined with it named clicker. Then as part of "viewDidLoad", instantiate an instance of the class and have it automatically populate the variable "soundID". Then during "didSelectRowAtIndexPath", I want the "playClick" method of "clicker" to be run, but at this point the app seems to get caught in some sort of perma-loop, and I have to "STOP"/"Home" out of it.
    I'm hoping the problem is my rookie-status at using Objective-C objects, and the solution jumps out at you veterans, and then whatever problem I am having won't be duplicated when I create additional classes that I'd want to merge into my ViewController logic.
    Hope I've made everything clear. If anyone has questions, I'll be checking for replies
    Thanks.

    Dragon's Nest wrote:
    Is it preferred to init a copy and assign it like you did above?
    Yes, it's an accepted pattern which you'll see in most of the sample apps. Asnor's code works just as well in this case, and it might always work for you if you stick to that same pattern. However if you were working on a team and everyone else used the more common pattern it might cause a problem. For example, this code would cause a memory leak:
    @property (nonatomic, retain) Click *clicker; // interface
    self.clicker = [[Click alloc] init]; // implementation
    The above is the flip side of your original code. In this case, because we're not releasing the newly alloced object, its retain count is +2 after the setter retains it.
    There are other advantages to the accepted pattern. Suppose you weren't assigning the new object to an ivar but only using the object in that one block of code. Should you then release it? Yes. Will you remember? Well, if you're using the pattern, you'll always release it. If you always release the local pointer regardless of whether it gets retained elsewhere, you're much less likely to have a memory leak. How bout the case where you return the pointer (i.e. alloc an object and return it's address from that method)? In that case you just autorelease it. So whoever called the method needs to retain the returned object if it needs to be used after the current event cycle.
    Either way, immediate release or autorelease, you're always releasing an alloced object in the same block of code.
    Memory management can easily get out of control without following consistent patterns. Alloc->retainBySetter->release is the accepted pattern for Cocoa. Your original code meant to use the correct pattern, but you just forgot that clicker=object isn't the same as self.clicker=object because the latter retains the object. Once you've consistently used the correct pattern for awhile, you'll almost never make that mistake.
    Also, is there any difference in calling it in the following two ways:
    @property (nonatomic, retain) Click *clicker; // <-- must be considered to answer this question
    @synthesize clicker;
    [clicker playClick];
    [self.clicker playClick];
    In the above case there's no difference since the getter synthesized for that property declaration will simply return the value of the ivar (i.e. the address of the retained Clicker object). But in the general case, there certainly could be a difference. If the property was atomic, for example, the results could be different. Of course there will definitely be a difference if you wrote a custom getter that did something more than the default.
    Is there a rule or convention re when to use the getter and when to use the ivar directly? Not that I know of. I think you just need to be aware of what the getter does when deciding whether to use the dot notation. This is a point you might want to research a little more, though. Maybe someone here with more experience in Obj-C or Cocoa will comment.
    In fact a few of the experts in this forum advise against ever using dot notation. They feel it was invented to crash newbie programs. If you never use dot notation the difference between these two lines is much easier to see:
    clicker = newClicker;
    [self setClicker:newClicker];
    But once again, if you stick to the same pattern all the time, it's much harder to make a mistake.
    - Ray

  • Question  about dynamic class loading with thread built in

    Hi ,
    I am trying to load a class with a thread built in from the network.
    I write my network classloader, convert the class to a byte array and transmit over the network using socket. This step seems fine but when I tried to load the class at the receiver, some exception happens,"
    the reported exception is that :
    Exception in thread "Thread-2" java.lang.NoClassDefFoundError: SampleProject/Application$1
    my class name is "SampleProject . Application", the $1 I think it may refers to the thread built in the "Application".
    Could any one give me some hint for how to dynamic load such class file with thread built in over the network?
    Thank you!
    Best Regards,
    Song Guo

    Exception in thread "Thread-2"
    java.lang.NoClassDefFoundError:
    SampleProject/Application$1That means that the receiving end can't find an anonymous inner class which you have in the Application class. (The anonymous clas is given the synthetic name 1). Check your bin/classes folder you will have a class there with the name Application$1.class
    Kaj

  • Question about resizing a 'decorative' object

    Hi all
    Please bear with me this is tricky to describe.
    I have on a form I have obtained from formcentral an attractive banner: its just a nice colour nothing else but it spans the entire width of the form and is about 2 inches high.
    I wanted to copy & paste this and then shorten the height to 0.5 inches, but I have no height or width handles, just the four corner handles so the resizing maintains the aspect ration and I'm left with a copy which is the correct height but half or less of the width I need.... so I do multiple copies of these just to get coverage across the width of the form.
    This seems daft but I cannot see how to do this slicker....
    Anybody know please?
    thanks
    george

    Hi all
    Please bear with me this is tricky to describe.
    I have on a form I have obtained from formcentral an attractive banner: its just a nice colour nothing else but it spans the entire width of the form and is about 2 inches high.
    I wanted to copy & paste this and then shorten the height to 0.5 inches, but I have no height or width handles, just the four corner handles so the resizing maintains the aspect ration and I'm left with a copy which is the correct height but half or less of the width I need.... so I do multiple copies of these just to get coverage across the width of the form.
    This seems daft but I cannot see how to do this slicker....
    Anybody know please?
    thanks
    george

  • Question about a Class loading error

    how can we obtain to reduce the size of classes throughout run time as the source code of my project alone is about 8 MB and this is too heavy for a me program.
    so anybody has any suggestions?

    I see thanks.
    Did you consider keeping that data outside of device (at some web server)? That way, MIDlet would be installed without it and later would download the data from web. Download, in turn, can be done either every time it is needed, or once at MIDlet first launch - in the latter case, downloaded data could be stored in rms for next time it is needed.
    Another idea that comes to mind is to keep data in "auxiliary" MIDlet(s) in different suite(s). That way, again, "main" MIDlet would be installed without it but there will be need to install "auxiliary" MIDlet suites with data. In order to provide data access for "main" MIDlet in other suite, the auxiliary MIDlet would need to run and store the data in a shared-access record store - that is, in store created with [AUTHMODE_ANY access parameter|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/rms/RecordStore.html#AUTHMODE_ANY].

  • Question about an Array of objects

    I'm writing a program that is supposed to store a String and a double in an array of CustomerBill objects. I just want to know if I am doing it correctly. Heres my code:
    public static CustomerBill[] getCustomerData()
             //Local variables
             int numCust;     //The number of customers being processed
             double amt;
             String customer;        
          //Ask for the number of customers to be processed.
             System.out.print("How many customers are to be processed? ");
             numCust = Integer.parseInt(keyboard.nextLine());
             CustomerBill[] array = new CustomerBill[numCust];
             //Ask user to enter the data.
             System.out.println("\nPlease enter customer data when prompted.");
             System.out.println("Enter customer's last name, then first name.");
          //Get the customer data from user.
             for (int i = 0; i < array.length; i++)
               array[i] = new CustomerBill();
               System.out.print("\nCustomer name:  ");
               customer = keyboard.nextLine();       
               array.setName(customer);
    System.out.print("Total bill amount: ");
    amt = Double.parseDouble(keyboard.nextLine());
    array[i].setAmount(amt);
    System.out.println();
    return array;

    Write a test() method that:
    (1) Gets an array of CustomerBills using getCustomerData()
    (2) In a for-loop print out each of the CustomerBills. It will help if
    CustomerBill has a toString() method but, in any case you should be
    able to see that the aray contains the right number of nonnull elements.
    Then write a main() method that calls the test() method.
    [Edit] And then run it! You may need to do this a few times and check
    what happens with "crazy" data.

  • Question about controlling embed quicktime object with javascript

    Hello,
    I am using javascript to control an embedded quicktime object on my website a la http://www.protofunc.com/2008/02/01/controlling-embedded-video-with-javascript-p art-i-quicktime/ .
    The problem I am having is with the movie.Stop() command. When I hit the pause button on the generic controller, it freezes the current frame. When I call the Stop() command, the movie goes white until it is resumed. Does the pause button do anything more than call "Stop()"?
    Thanks,
    Nick

    any luck with this? i am thinking of trying protofunc.
    fyi:
    i switched from SWF files to QuickTime H264, and have been trying to use the QuickTime/File/Save For Web feature on my movie promo web site.. all the movies play choppy on computers (desktops and laptops), but the technique works well on iPhones and iPads.. it is a bit unfair, IMHO, that apple can make trailers work so smooth on trailers.apple.com, but using their technology does not seem to work for "the rest of us"..
    any web sites other than apple that can help?

  • Question about cutting out an object/removing white background

    Hello,  I will start this by saying that I am very new to photoshop.  Any input will be appreciated.
    What I am having trouble with is cutting a part of a picture out and the resulting white box that comes with the picture cutout.  Here is what I mean.
    I make a selection out of a picture and cut it out from the backround, like for example cutting a person out of a photo.  I cut the person out with the magic wand and what remains is the transparent background.  I then save as psd.  I then place the image in INDesign into a publication with a background color of say blue and have no problems there with the cutout of the person blending into the blue background.  Once the psd image is placed in INDesign I can move the image around anywhere in the publication and it blends in perfectly.  So all is good up until this point.  Here is where my problem is.
    Say I want to paste this image into a website, like a dreamweaver page and say the website page has a blue background.  I go to insert, image, and select the image psd to insert to the page.  What happens now is that the image inserts cutout person with a white background box and does not blend in with the blue background like I want.  The same thing happens if I insert as a gif or jpeg.
    What am I missing here to paste the photo in and NOT have this annoying white background?
    Thank you in advance for help!

    In Photoshop use File > Save for Web & Devices and choose the GIF or the PNG format.
    Note that the PNG has two versions, 8 bit  or 24 bit.
    Check the tranparency checkbox.
    PNG (24 bit) provides the best result but also the largest file size.
    miss marple

  • A question about creating packages as local objects in ABAP

    Hi,
    I have a question about creating packages with SE80. Whenever I create a new package it is assigned a new transport request. After that, I can create new programs inside this package, and each time I can choose whether to assign the new program to a transport request or just save it as a local object (I often do this for test programs that I don't transport and I remove them once my tests have been done).
    What I would like to ask is that, is it possible to create a package (and not just programs inside a given package) as a local object? so that every new object created in this package will be considered as a local object?
    Thanks in advane,
    Kind Regards,
    Dariyoosh

    Thomas Zloch wrote:
    Please also check the F1 help for the package field e.g. in SE80, SAP standard is in range A-S and U-X, namespaces start with "/", so you should be save. I am using the T namespace for temporary stuff since a long time and did not have a problem so far.
    > Thomas
    >
    > P.S. this applies to the package name only, of course
    Thank you very much for this remark, I checked F1 help for the package field and in fact as you mentioned these ranges are for local objects.
    Once again, thank you very much for your help.
    Kind Regards,
    Dariyoosh

Maybe you are looking for

  • Camera not working in Apple apps on ML 10.8.1

    PhotoBooth, FaceTime and QuickTime both say that there is no camera attached when I open them on my MBP mid 2010 Skype works just fine... Please sort this out Apple. /W

  • Help needed with this scenario

    Hi, This is a scenario to be implemented using workflows. Can you tell me how to go about with this. there is a form on the portal. User enters some details there. Then there is a submit button. when the user presses the submit button, a workflow is

  • Different EBS Adapter interfaces generate same object types differently

    Hi, We are experiencing the following behavior when using two different interfaces that are both generated from the E-Business Suite Adapter. Wrapper packages and object types are generated and created in the database. But in both cases the generator

  • How do i club these 2  update stmts into one update

    I got a situation like i want to update table T1 with 2 different flags 260,250 for 2 different colums using a single update the conditions for these update r almost same but they differ by one condition which i mentioned below.please suggest some so

  • Insert Record creates extra blank record

    Hi, all. I'm trying to figure out what I've got going on. I have setup a php/mysql job log system. The problem: At random moments, my insert record page will create a blank record in my db. It doesn't do every time, nor every other time. It may only