AS3 centering and resizing a background in existing code

I have a code for a page I am using and I would like to add a background and have it resize with the screen like the rest of the page.  I have created a movie button named "pic" with the image in it but I don't know how to write the code and place it in the existing AS3 code file.  Could someone please help.  I am brand new to this so if someone could tell me how to place the code like i was in 3rd grade, that would be great. Here is the existing code.
package com.modules
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
import caurina.transitions.Tweener;
import com.utils.*;
    public class About extends Sprite
private var content_height:int;
private var content_width:int;
private var marginTop:int;
private var marginBottom:int;
private var content_y:int;
private var _content:Content;
private var news:News;
private var array:Array;
private var pan:Panning;
   public function About()
// listen for when this is added to stage
this.addEventListener(Event.ADDED_TO_STAGE, ini); 
// listen for when this is removed from stage
this.addEventListener(Event.REMOVED_FROM_STAGE, remove);
private function ini(e:Event)
stage.addEventListener(Event.ADDED, onStageResize);
stage.addEventListener(Event.RESIZE, onStageResize);
content_y = int(GlobalVarContainer.vars.CONTENT_Y);
_content = new Content;
addChild(_content);
_content.visible=false;
// load xml
if((GlobalVarContainer.vars.XML_PATH!="") && (GlobalVarContainer.vars.XML_PATH!=undefined))
var loadXml:LoadXml;
loadXml = new LoadXml(GlobalVarContainer.vars.XML_PATH);
loadXml.addEventListener(Event.COMPLETE, onXmlComplete);
private function onXmlComplete(e:Event)
// set up content
content_width = e.target.returnData.attribute("width");
marginTop = e.target.returnData.attribute("marginTop");
marginBottom = e.target.returnData.attribute("marginBottom");
var backgroundColor = e.target.returnData.attribute("backgroundColor");
Tweener.addTween(_content.bg, {_color:backgroundColor, time:.1, transition:"linear"});
_content.bg.width = content_width;
_content.masc.area.width = (content_width -_content.masc.x)-20;
_content.holder.txt.width = _content.masc.area.width -10;
// write text
_content.holder.txt.mouseWheelEnabled = false;
_content.holder.txt.styleSheet = GlobalVarContainer.vars.CSS;
_content.holder.txt.condenseWhite = true;
_content.holder.txt.htmlText = e.target.returnData;
_content.holder.txt.autoSize = TextFieldAutoSize.LEFT;
onStageResize();
_content.visible=true;
// create new Panning instance;
pan = new Panning(_content.holder, _content.masc, _content.bg, 4, true);
pan.addEventListener(Event.ADDED, scInit);
addChild(pan);
// Initialize panning
function scInit(e:Event):void
pan.init();
// resize contents
private function onStageResize(e:Event = null):void
resizeContent((stage.stageHeight - ((content_y + marginTop) + int(GlobalVarContainer.vars.BOTTOM_SHAPE_H)))-marginBottom);
private function resizeContent(height_:int):void
content_height = height_;
_content.bg.height = content_height;
_content.masc.area.height = (content_height -_content.masc.y)-20;
_content.holder.mask = _content.masc;
Tweener.addTween(_content, {x: Math.round(stage.stageWidth/2 - _content.width/2) , time:.5, transition:"linear"});
_content.y=content_y+ marginTop;
// used to change colors. here we not use
public function changeTheme():void
// remove listeners, images and unload panning;
function remove(event: Event) : void
pan.unload();
stage.removeEventListener(Event.ADDED, onStageResize);
stage.removeEventListener(Event.RESIZE, onStageResize);
this.removeEventListener(Event.ADDED_TO_STAGE, ini); 
this.removeEventListener(Event.REMOVED_FROM_STAGE, remove);
trace("remove about");

I just wanted to say that the above code works fine, I just need to add the resizing background code to it. Please help.  thanks

Similar Messages

  • How to center and resize (flash background) in every browser?

    hello there ..
    i‘m working on my first website so i dont have much experince in dreamweaver and the codes confuse me a lil bit ..
    so i ll appreciate if u help me ..
    ok .. my problem is that i made a flash file and put it as a background to my web and i couldnt find the right code to resize it . So the size of the web is fit in my monitor but not to other monitors. .. i found that most of the solutions that resize the web depends on an image background but i dont have that .. so would you plz help me
    here is my flash background ... and plus i have top and bottom frames .. thnq
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1412" height="628" align="middle" id="FlashID">
        <param name="movie" value="flash/background-1.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <param name="swfversion" value="6.0.65.0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <param name="SCALE" value="noborder" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object data="flash/background-1.swf" type="application/x-shockwave-flash" width="1412" height="628" align="middle">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <param name="SCALE" value="noborder" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>

    I have to agree with Ken.  Even if you manage to get Flash into the page background (no small feat) people won't be able to interact with it. That's usability problem #1. 
    #2 Flash is a dead web technology because the world's most popular mobile & tablet devices cannot see Flash content.  So you're alienating a lot of people before you've even begun.
    Depending on what your Flash file contains, you might want to switch to a responsive jQuery image slider like the ones below. 
    ResponsiveSlides
    http://responsiveslides.com/
    Cycle 2
    http://www.malsup.com/jquery/cycle2/
    Or, use Adobe Edge Animate instead of Flash. Edge Animate outputs to HTML5, CSS3 and JavaScript which are supported by all modern devices except IE8 and earlier.  For tips on making Edge Animations adapt to screen size, see the following link.
    http://www.webdesignermag.co.uk/tutorials/create-a-responsive-animation-with-adobe-edge-an imate/
    Nancy O.

  • Last night suddenly when I right-click-view-images in firefox, they appear centered and against a black background. It's usually meant to be a white background and the image appearing at top left. How to revert it?

    I'm having trouble with something in firefox, it's quite minor but still bugs me. Last night suddenly when I right-click-view-images in firefox, they appear centered and against a black background. It's usually meant to be a white background and the image appearing at top left. I can't remember what I did to change this if it's my fault; if someone knows how to revert it I'd be thankful.

    cor-el : thanks for the pointers! I wish the solution isn't an add-on every time ... if such long-standing behaviour is going to change, the least that could be done is put in an about:config option to get back the old behaviour.

  • What is the best way to move and resize layers?

    When I click on a layer to move and resize it in Elements 8 in Windows 7, it disappears.  After I go to Edit/Undo, it reappears.  What should I do?

    I have PSEv.8 and Windows 7, and the Editor works like a charm for me.
    Try the following:
    Open picture 1, duplicate the background layer.
    Open picture 2, make a selection of something in the picture with one of the selection tools, and then go to Edit>copy. This puts the selection on the clipboard.
    Go back to to picture 1, go to Edit>paste, and the selection will be on its own layer
    Use the move tool to position and resize the selection.
    The middle layer can be dragged to the top. Here, this process will obscure visibility of Layer 1, but you can drag the layer structure back, of course.
    http://www.pixentral.com/show.php?picture=1D3wrzjD5r24U8LfdTA1sdUb0zJOY0
    I opened a picture of the house on the lake, copied/pasted the "Slick Rock Divide" sign as per above. The layer structure is represented in the print screen.
    You should note that it is best if the resolution of the picture files is the same, or close to it.

  • Use of Java Swing +Applescript to move and resize Mac OS X windows using

    Here is an interesting use of Java on Mac OS X and Applescript to
    enable moving and resizing of windows using mouse and keyboard:
    [MoveResize tool|http://code.google.com/p/sandipchitalesmacosxstuff/#Move_and_resize_windows_on_Mac_OS_X]
    How it works:
    The implementation uses Applescript to get the front most window and
    it's bounds. It sends the bounds rectangle to a server implemented in
    Java over a socket connection. The Java server takes the screen shot
    of the full Desktop and uses it as the Image label (a JLabel with
    ImageIcon) as the content pane of an undecorated JFrame which has the
    same bounds as the Desktop. A JPanel with semitransparent background
    and a dark rounded rectangular border is given the same bounds that
    were received over the socket. This JPanel is added to the
    PALETTE_LAYER of the JFrame's layered pane - which makes it appear
    floating in front of the front window. A Mouse and a Key listener
    added to the JPanel allow moving and resizing of the JPanel. When the
    user types the ENTER key the JFrame is hidden and the new bounds of
    the JPanel are sent back to the Applescript over the socket connection
    which moves and resizes the front most window.
    Enjoy!
    Sandip
    Edited by: chitale on May 14, 2009 4:12 AM

    Copy the /Home/Documents/ folder to the NAS drive. That drive needs to support AFP or you may run into filename problems and/or other file related problems due to filesystem differences.
    Once the folder has been moved to the NAS select the folder on the NAS and CTRL- or RIGHT-click. Select Make Alias from the drop down menu. You should now have an alias named "Documents alias." On the Mac put the /Home/Documents/ folder in the Trash but don't delete it. Copy the alias file from the NAS to the /Home/ folder. Rename it to simply "Documents." Double-click on it to be sure it opens the folder on the NAS. If so you can empty the Trash. You're done.

  • Cropping when moving and resizing a cropping rectangle

    I created a program that crops an image and displays the cropped image but I'm trying to add more functionality
    by making it movable and resizable. The rectangle moves and resizes but it only crops an image when user draws the rectangle and not when moved or resized. I know that the X,Y, height and width position of the rectangle would need to be updated but I'm not
    sure how I can accomplish this being new to WPF. Below is my user control "CropControl and the code behind. Also, I'm implementing my code using MVVM framework.
    XAML: 
    <UserControl x:Class="Klein_Tools_Profile_Pic_Generator.CropControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:s="clr-namespace:Klein_Tools_Profile_Pic_Generator"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
    <ControlTemplate x:Key="MoveThumbTemplate" TargetType="{x:Type s:MoveThumb}">
    <Rectangle Fill="Transparent"/>
    </ControlTemplate>
    <!-- ResizeDecorator Template -->
    <ControlTemplate x:Key="ResizeDecoratorTemplate" TargetType="{x:Type Control}">
    <Grid>
    <s:ResizeThumb Width="3" Height="7" Cursor="SizeNS" Margin="0 -4 0 0"
    VerticalAlignment="Top"/>
    <s:ResizeThumb Width="3" Height="7" Cursor="SizeWE" Margin="-4 0 0 0"
    VerticalAlignment="Stretch" HorizontalAlignment="Left"/>
    <s:ResizeThumb Width="3" Height="7" Cursor="SizeWE" Margin="0 0 -4 0"
    VerticalAlignment="Stretch" HorizontalAlignment="Right"/>
    <s:ResizeThumb Width="3" Height="7" Cursor="SizeNS" Margin="0 0 0 -4"
    VerticalAlignment="Bottom" HorizontalAlignment="Stretch"/>
    <s:ResizeThumb Width="7" Height="7" Cursor="SizeNWSE"
    VerticalAlignment="Top" HorizontalAlignment="Left"/>
    <s:ResizeThumb Width="7" Height="7" Cursor="SizeNESW"
    VerticalAlignment="Top" HorizontalAlignment="Right"/>
    <s:ResizeThumb Width="7" Height="7" Cursor="SizeNESW"
    VerticalAlignment="Bottom" HorizontalAlignment="Left"/>
    <s:ResizeThumb Width="7" Height="7" Cursor="SizeNWSE"
    VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
    </Grid>
    </ControlTemplate>
    <!-- Designer Item Template-->
    <ControlTemplate x:Key="DesignerItemTemplate" TargetType="ContentControl">
    <Grid DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}">
    <s:MoveThumb Template="{StaticResource MoveThumbTemplate}" Cursor="SizeAll"/>
    <Control Template="{StaticResource ResizeDecoratorTemplate}"/>
    <ContentPresenter Content="{TemplateBinding ContentControl.Content}"/>
    </Grid>
    </ControlTemplate>
    </UserControl.Resources>
    <Canvas x:Name="BackPanel"
    MouseLeftButtonDown="LoadedImage_MouseLeftButtonDown"
    MouseMove="LoadedImage_MouseMove"
    MouseLeftButtonUp="LoadedImage_MouseLeftButtonUp"
    Background="Transparent">
    <ContentControl x:Name="contControl" Visibility="Collapsed"
    Template="{StaticResource DesignerItemTemplate}">
    <Rectangle x:Name="selectionRectangle" Fill="#220000FF"
    IsHitTestVisible="False"/>
    </ContentControl>
    </Canvas>
    </UserControl>
    CODE BEHIND:
    namespace Klein_Tools_Profile_Pic_Generator
    /// <summary>
    /// Interaction logic for CropControl.xaml
    /// </summary>
    public partial class CropControl : UserControl
    private bool isDragging = false;
    private Point anchorPoint = new Point();
    private bool moveRect;
    TranslateTransform trans = null;
    Point originalMousePosition;
    public CropControl()
    InitializeComponent();
    //Register the Dependency Property
    public static readonly DependencyProperty SelectionProperty =
    DependencyProperty.Register("Selection", typeof(Rect), typeof(CropControl), new PropertyMetadata(default(Rect)));
    public Rect Selection
    get { return (Rect)GetValue(SelectionProperty); }
    set { SetValue(SelectionProperty, value); }
    // this is used, to react on changes from ViewModel. If you assign a
    // new Rect in your ViewModel you will have to redraw your Rect here
    private static void OnSelectionChanged(System.Windows.DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e)
    Rect newRect = (Rect)e.NewValue;
    Rectangle selectionRectangle = d as Rectangle;
    if (selectionRectangle != null)
    return;
    selectionRectangle.SetValue(Canvas.LeftProperty, newRect.X);
    selectionRectangle.SetValue(Canvas.TopProperty, newRect.Y);
    selectionRectangle.Width = newRect.Width;
    selectionRectangle.Height = newRect.Height;
    private void LoadedImage_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    if (isDragging == false)
    anchorPoint.X = e.GetPosition(BackPanel).X;
    anchorPoint.Y = e.GetPosition(BackPanel).Y;
    Canvas.SetZIndex(selectionRectangle, 999);
    isDragging = true;
    BackPanel.Cursor = Cursors.Cross;
    private void LoadedImage_MouseMove(object sender, MouseEventArgs e)
    if (isDragging)
    double x = e.GetPosition(BackPanel).X;
    double y = e.GetPosition(BackPanel).Y;
    contControl.SetValue(Canvas.LeftProperty, Math.Min(x, anchorPoint.X));
    contControl.SetValue(Canvas.TopProperty, Math.Min(y, anchorPoint.Y));
    contControl.Width = Math.Abs(x - anchorPoint.X);
    contControl.Height = Math.Abs(y - anchorPoint.Y);
    if (contControl.Visibility != Visibility.Visible)
    contControl.Visibility = Visibility.Visible;
    private void Image_MouseMove(object sender, MouseEventArgs e)
    if (moveRect)
    trans = selectionRectangle.RenderTransform as TranslateTransform;
    if (trans == null)
    selectionRectangle.RenderTransformOrigin = new Point(0, 0);
    trans = new TranslateTransform();
    selectionRectangle.RenderTransform = trans;
    trans.Y = -(originalMousePosition.Y - e.GetPosition(BackPanel).Y);
    trans.X = -(originalMousePosition.X - e.GetPosition(BackPanel).X);
    e.Handled = false;
    private void LoadedImage_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
    if (isDragging)
    isDragging = false;
    if (contControl.Width > 0)
    //Crop.IsEnabled = true;
    //Cut.IsEnabled = true;
    BackPanel.Cursor = Cursors.Arrow;
    contControl.GetValue(Canvas.LeftProperty);
    // Set the Selection to the new rect, when the mouse button has been released
    Selection = new Rect(
    (double)contControl.GetValue(Canvas.LeftProperty),
    (double)contControl.GetValue(Canvas.TopProperty),
    contControl.Width,
    contControl.Height);

    Hello HotSawz,
    The ResizeThumb and MoveThumb is not in your code so I cannot compile. Anyway, it is not the problem.
    Anyway, can you clarify more details about "it only crops an image when user draws the rectangle and not when moved or resized", it is already normal behavoir for you to draw a rectangle and then move it. What kind of action do you want? Do you
    mean some controls like this:
    http://www.codeproject.com/Articles/23158/A-Photoshop-like-Cropping-Adorner-for-WPF
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to remove a plot and resize the plot legend in LV 8.6 as in this link to a LV 7.0 example

    This VI ( ftp://ftp.ni.com/pub/devzone/epd/201150.vi ) works exactly as I want an 8.6 application to - but the property node used in the example is no longer supported.
    I can add/remove plots and resize the plot legend with 8.6 using the "LegNumRows" property however this property does not appear to behave the same way.
    It seems this should be straight forward but I must be missing something.
    Solved!
    Go to Solution.

    Hi again!
    I have implemented a method to shuffle the plots in the legend and was satisfied with one exception- the plot colors. This application allows the user to add or delete plots from the graph, adding a plot is easy as the new plot name gets appended to the next place on the legend and the number of rows grows by one. Deleting a plot is also quite easy but this action brought up a usability issue in that the existing plots that were shuffled on the legend would also shift their colorsaccordingly. To eliminate possible confusion I want to keep the correlation between existing plots and their assigned colors so I tried to use the plot color property to change the plot color programmatically with unexpected results.
    Programmatically changing a color from the "Plot Colors" array does not change the color of that plot if it is set to any of the "Common Plots" wih the exception of "Common Plot 0" - i.e. this doesn't seem to work for Bar Plots which is what I am using.
    I have attached a demo VI to illustrate this behavior - there are detailed free labels on the front panel which describe this in more detail.
    Regards and thank's in advance!
    Attachments:
    Plot color behavior.vi ‏27 KB

  • After moving and resizing control, some controls don't redraw properly as the cursor passes over them.

    I have a top-level VI with three panes (two splitters).  One of the panes contains nested tab controls.  One of the tab pages contains six XY-graphs, a table and some decorations.
    I use a subVI to resize and relocate the tabs and contained controls.  All this is working fine, and everything looks fine after the resizing is complete.
    The problem is when the cursor passes over certain controls (the chart legends and the table column headers for example), they redraw with gray boxes.  The problem only occurs after enlarging the window from its minimum size.  It goes away if the window is resized back down to minimum.
    Anything that causes the window to redraw, like another resize or minimize/restore, properly refreshes the screen.
    Has anyone seen this problem, and have a workaround?
    The problem exists in development environment or built in LV 9.01 or LV 2010.
    Thanks!
    Matt Dennie
    Attachments:
    Resize Redraw Problem.zip ‏125 KB
    Resize Redraw Problem.JPG ‏210 KB

    Thanks again for taking a look at my problem.
    force redraw - This is apparently only available in LV2010.  I did give at a try, but it did not prevent the problem, nor did it correct the problem once the gray boxes appeared.
    disable updates (on a graph) - This apparently only applies to 3-D graphs, which is not what I am using in this case.
    disable front panel updates - I tried disabling updates before moving/resizing the front panel controls, then re-enabling updates afterwards.  The problem is exactly the same as before.  Once the move/resize is complete, passing the mouse over the table column headers or the graph plot legend results in the gray boxes.
    I would appreciate any other suggestions you may have. 
    Again... the problem is not that the moving and resizing don't work.  They work fine.  But once the resizing is complete, passing the mouse over the legend or table column headers causes gray boxes to appear.
    Thanks!
    -- Matt

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • Object Custom Program Name of class RE and language EN does not exist

    Hi All,
             We are getting this bbelow error while running a custome program ,
    Object <Custom Program Name> of class RE and language EN does not exist
    Do any one has faced this similar issue earlier.
    Regards,
    Sen

    Hi,
    How did you resolve this problem ?
    Re: Object <Custom Program Name> of class RE and language EN does not exist.
    I am also encountering the same issue when I am executing the report.
    Regards,
    SSR.

  • Mac OS 10.5 /  I deleted the " Private" folder ... and emptied the trash. So the folder and its contents no longer exists on my computer at all !!!  I do have the OS dvd that i purchased years ago...  But my computer will not start from it on its own. My

    Mac OS 10.5 /
    I deleted the " Private" folder ... and emptied the trash. So the folder and its contents no longer exists on my computer at all !!!
    I do have the OS 10.5 dvd that i purchased years ago...
    But my computer will not start from it on its own.
    My question is what is the open source or terminal language code used to tell my mac to look in the DVD rom drive for startup info?  I know that im not the only person in this world who has deleted the "PRIVATE" folder and emptied the trash so it no longer exists on their machine...
    That said theres gotta be a common fix for a Power PC G4 that has the OS X dvd in the rom drive but wont look to it to reinstall the vital contents of the PRIVATE folder.
    Once again there is not a copy of this file or its contents in the recycle bin...
    Also rebooting the machine , pressing and holding the letter C does not prompt the machine to look to the dvd rom drive.
    I was reinstalling pro tools and figured I would make some room by cleaning my computers HD...
    Lol It was a bad choice to delete this file ...
    Thanks guys

    Okay sorry it took forever to respond... But for a while there I gave up on this computer!!!!
    Money's been tight lately , so taking it in to a professional was not yet an option... though I did consider it eventhough.
    Anyway long story short im glad I didnt spend any money because I already had all the tools necessary to fix this issue but was going about it in the wrong way. Okay so here is my scenario and the breakdown... Though this may not fix the issue for everyone :( which *****... But I know we all will have different circumstances.
    Anyway here we go...
    Okay so first things first....  Years ago I purchased the OS 10.5.1 disk ... So that has always been in my possession!!!!
    I realize that some may not have a disk to reflash your OS to your hard drive... but if you do your in luck.
    2ndly ... I had an external harddrive with all of my itunes downloaded music so it was more than okay with me to delete my primary HD because all the important stuff could either be copied over or repathed to be located.
    -------If you dont want to read through the whole story the fix is summed up in the bottom section-------
    Okay so now the SOLUTION!!!!
    By trial and error , and pure boredom I opened up my computer to clean the inside...
    AND
    "Disconnected the primary HD"
    and just because ....... REBOOTED my computer. Just to see what it would do.
    Upon restart and though it looked like it would repeat its usual cycle...
    About 1 minute in to that process my computer froze for about 2 seconds and flashed to the OS installation screen.
    Mind you I havent seen this screen yet... Probably hasnt been since I installed the OS years ago.
    After a bit of trial and error...
    I decided to tell my computer to startup from the OS 10.5 disk located in my dvd rom drive and restarted once again...
    this setting is under
    Utilities / startup disk
    After a little more trial and error ... I realized that I could reconnect the primary HD , restart the machine and return to the OS installation menu.
    So upon this discovery
    I went to the Disk Utility located under Utilities
    Highlighted my primary HD located in the left hand column
    Once highlighted ...
    In the heading section on the right I selected the option
    Erase
    in which I erased My current OS on my primary HD ...
    I used the first option in the list under security... Because it seemed like the least invasive and would take the least amount of time to see if this process would actually work.
    I FORGOT to add something... 
    Another reason why I deleted my primary HD!!!!!
    I forgot to say that it WOULD NOT!!!!! Show up in the STARTUP list as an option...Even After multiple reboots....
    But like clockwork... Once I deleted its name IT SHOWED UP as an option!!!!
    So back to the next step...
    I returned to the STARTUP option under utilities ... And was then able to see MY primary HD now as a startup option...
    But ofcourse it had no name because it we previously erased it.
    So when Clicking my newly erased HD ... I was almost immediately prompted to REINSTALL the OS ...
    Which said it would take about 57 minutes ... But I believe was alot less...
    My issue was resolved ... My computer then stated the install was SUCCESSFUL!!!!!!! :))))))))))) lol ;)
    It was like I was setting up for the first time ;) asking for my registration info...
    The dilemma of deleting the private folder and emptying the trash is finally over resolved. Done ... and no extra money spent!!!!!!!!! 
    Its really crazy that the information for such a simple thing is not readily available. Especially being such a simple fix.
    I know im not the only person who's had this issue , because i've seen numerous posts with similar wording.
    I also know I wont be the last person to have this issue... So I hope this synopsis makes sense.
    -------One more time the fix------
    *Insert your OS dvd into your dvd rom drive.
    *Unplug your primary HD or corrupted startup disk
    *Reboot your machine...
    Upon restart your primary HD will not be recognized...
    * you will then be prompted to select your language.
    Once selected
    *Click Utilities/startup... Highlight the the selection that refers to the OS dvd located in the dvd rom drive.
    * Click restart...
    !!!!!!!!!!Be sure to reconnect your Primary HD Before your computer restarts and you hear the chime!!!!!!!!
    If you do not replug your HD before the chime it will not be recognized.
    In that case restart again.
    Upon restart once again
    *Choose your language...
    *Click Utilities / disk utility
    In the left column select and
    *Highlight your HD ...
    Then towards the top portion / center of the page
    *Click the heading Erase
    Then on the page toward the bottom
    *Click security options
    This will then provide erase options.
    I USED THE FIRST OPTION
    "Dont erase data"...
    *click OK
    * click erase...
    Once erased which should take a few seconds
    *Cancel the disk utility...
    * Click Utilities / startup
    And your newly erased HD should now appear in the list.
    * Select your drive from the list by highlighting
    It should no longer have a name.
    *Once selected, you will then be prompted to restart and install the OS to your newly erased HD...
    Thats it!!!!
    Once everything reinstalls re-add your personal info or registration info and you are up and running.
    Goodluck ;)

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

  • Attempting to upgarde itunes and I get an error message looking for "an alternate path to a folder containing 'iTunes.msi' location.  I've searched my hard drive and the file doesn't exist.  What to do?

    Attempting to upgarde itunes and I get an error message looking for "an alternate path to a folder containing 'iTunes.msi' location.  I've searched my hard drive and the file doesn't exist.  What to do?

    This worked...found on a prior discussion:
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page)...
    http://majorgeeks.com/download.php?det=4459
    From the link above (near the top of the page)....Under 'download locations'   click on 'download@majorgeeks'
    To install the utility, doubleclick the msicuu2.exe file you just downloaded and ran.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Restart your computer.
    Re-download Itunes (latest version form Itunes website) and install.  It worked!

  • Upload and Resize Image not inserting filename in database

    I have a form that I created using the insert record form wizard. One of the fields is a file field and my form enctype is set to multipart/form-data. I then used the upload and resize image behavior and set the parameters. When testing the form the file uploads to the correct directory but no entry is made into the database for that particular field. The other fields are entered into the database just fine. If it helps, here is the code generated before the  tag:
    <br />
    <br /><?php require_once('../../Connections/test.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('../../includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('../../includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("../../");<br /><br />// Make unified connection variable<br />$conn_test = new KT_connection($test, $database_test);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />//start Trigger_ImageUpload trigger<br />//remove this line if you want to edit the code by hand <br />function Trigger_ImageUpload(&$tNG) {<br />  $uploadObj = new tNG_ImageUpload($tNG);<br />  $uploadObj->setFormFieldName("picture");<br />  $uploadObj->setDbFieldName("picture");<br />  $uploadObj->setFolder("../images/");<br />  $uploadObj->setResize("true", 120, 0);<br />  $uploadObj->setMaxSize(1500);<br />  $uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png, bmp");<br />  $uploadObj->setRename("auto");<br />  return $uploadObj->Execute();<br />}<br />//end Trigger_ImageUpload trigger<br /><br />// Make an insert transaction instance<br />$ins_team = new tNG_insert($conn_test);<br />$tNGs->addTransaction($ins_team);<br />// Register triggers<br />$ins_team->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_team->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$ins_team->registerTrigger("END", "Trigger_Default_Redirect", 99, "../team.php");<br />$ins_team->registerTrigger("AFTER", "Trigger_ImageUpload", 97);<br />// Add columns<br />$ins_team->setTable("team");<br />$ins_team->addColumn("id", "NUMERIC_TYPE", "POST", "id");<br />$ins_team->addColumn("sort", "NUMERIC_TYPE", "POST", "sort");<br />$ins_team->addColumn("name", "STRING_TYPE", "POST", "name");<br />$ins_team->addColumn("title", "STRING_TYPE", "POST", "title");<br />$ins_team->addColumn("description", "STRING_TYPE", "POST", "description");<br />$ins_team->addColumn("picture", "FILE_TYPE", "FILES", "picture");<br />$ins_team->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsteam = $tNGs->getRecordset("team");<br />$row_rsteam = mysql_fetch_assoc($rsteam);<br />$totalRows_rsteam = mysql_num_rows($rsteam);<br />?>

    If the reason is about memory, warning message should be happened when upload the image, because "show thumbnail" means resize at second time, how come you failed to resize the picture that system let it upload succeed at the first time by the same resize process?
    upload procedure
    a.jpg: 2722x1814, 1.2mb
    upload condition: fixed width 330px, 1.5mb
    "upload and resize" a.jpg -> file upload -> "resize engine" -> passed (but not work and no warning message)
    "show thumbnail" a.jpg -> "resize engine" -> failed (not enough memory)
    it doesn't make sense.
    and you miss an important key point, I upload the same picture myself, and resize work, so I said it happened at random, and that's why I am so worried.

  • The network on my airport express works, have wifi on the ipods,etc. But when I open airport utility on my mac and on the iphone nothing exists. Why?

    The network on my airport express works, have wifi on the ipods,etc. But when I open airport utility on my mac and on the iphone nothing exists. Why?

    Reboot the modem. Just pull the power for a few seconds. No settings are lost.  The laptop getting through to the internet is not relevent.

Maybe you are looking for

  • I cannot update my apps to both my iphone4 and ipad2.

    I cannot update my apps to both my iphone4 and ipad2. They both have the same apple id. I Cant update for almost a month now. But i can download new ones. Pls help. I have done the logout-reboot-login thing but still it cannot update. I also checked

  • DBAN reports 250 tablescans within 60sec - how to find the statements/field

    Hello, I try to fix performance/cache-hit-rate problems on a MaxDB v 7.5.00.44. I've fixed and improved several effects but there is still a pure Data-Cache-Hitrate > Cache Sizes > > >  I/O Buffer Cache:          1.562,50 MB > >     Data Cache:      

  • How to apply 11i July CPU Pathes.

    Hi How to apply Apps 11i July CPU Patches OS: Linux.. Thanks in Advance.

  • Procedures/packages security. Hide source code?

    Hi. I was wondering if it is possible to hide the source code of a procedure for a user or avoid him to recreate it, but let him to execute it. Im doing a sandbox procedure who edit and run an external job. It works fine but I see a bunch of security

  • Is my iPhone glitchin or has the clock app color got lighter

    MMy clock app stock used to blend in with dark black background wallpaper. Now it no longer blends in and the app now shows. Ive had trouble with apps grating out before and a hard reset fixed it but I'm curious to know of the app color has changed o