Twitter - load into a frame

Hello again,
I have been searching the forums looking for something about this.  I know that Twitter changed something on their end to make it difficult to load a twitter feed into DPS.
Has anyone found a fix for this?  I know that you have to use a web content overlay... but for some reason I just can't get it to appear properly.
help please!
thank you.

The best that I've been able to achieve is to load Twitter widgets into DPS's In-App browser. Directing a plain Twitter feed into a web overlay on an InDesign page makes it look pants.

Similar Messages

  • Web Photo Gallery - load into a frame?

    Hi,
    I have created a Web Photo Gallery using Photoshop CS2 and its URL works fine on its own.
    When I try and load it into a frame, none of the links or the the slide show feature work anymore.
    Does this meen that a Gallery cannot be loaded into a frame? Does it have to be standalone?
    Thanks if you can help! :)
    Steven

    The best that I've been able to achieve is to load Twitter widgets into DPS's In-App browser. Directing a plain Twitter feed into a web overlay on an InDesign page makes it look pants.

  • I'cant load SPRY content into a Frame

    HOw can i load spry content into a frame.. i wrote a code..
    and in the preview version works.. but when i upload to server..
    it's not working.. this my code.. thk
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- Copyright (c) 2006. Adobe Systems Incorporated. All
    rights reserved. -->
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Collapsible Panel Group Sample</title>
    <script language="JavaScript" type="text/javascript"
    src="widgets/collapsiblepanel/SpryCollapsiblePanel.js"></script>
    <script language="JavaScript" type="text/javascript">
    function load_content ()
    if (parent.document.getElementById('main_div')) {
    parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame ').innerHTML;
    if (!parent.document.getElementById('main_div')) {
    window.location=('index.html') ;
    </script>
    <link
    href="widgets/collapsiblepanel/SpryCollapsiblePanel.css"
    rel="stylesheet" type="text/css" />
    <link href="css/samples.css" rel="stylesheet"
    type="text/css" />
    <style type="text/css">
    #cp1 .CollapsiblePanelContent {
    overflow: scroll;
    height: 300px;
    .CollapsiblePanel {
    width: 300px;
    .CollapsiblePanelTab {
    font-size: 1em;
    </style>
    </head>
    <body onload="load_content()">
    <h3>Collapsible Panel Group Sample</h3>
    <p>By default the panels in a collapsible panel group
    are open.</p>
    <div id="inner_frame">
    <div id="CollapsiblePanelGroup1"
    class="CollapsiblePanelGroup">
    <div class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Panel
    23</div>
    <div class="CollapsiblePanelContent">
    <p>Test 1.</p>
    </div>
    </div>
    <div class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Panel
    2</div>
    <div class="CollapsiblePanelContent">
    <p>test 2</p>
    </div>
    </div>
    <div class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Panel
    3</div>
    <div class="CollapsiblePanelContent">
    <p>test 3</p>
    </div>
    </div>
    </div>
    </div>
    <script language="JavaScript" type="text/javascript">
    var cpg1 = new
    Spry.Widget.CollapsiblePanelGroup("CollapsiblePanelGroup1", {
    contentIsOpen: false });
    </script>
    </body>
    </html>

    Im not sure if i'm doing it right, but it wont work for me
    var scriptEle= document.createElement("script");
    scriptEle.text = s;
    ele.appendChild(scriptEle);
    is this the exact code witch i have to replace the old one
    with?
    i also added the
    Spry.Data.initRegions(ele);
    on the end of the Spry.Utils.setInnerHTML function
    i havent included the spry related javascripts in the main
    page could tha be a problem?
    actually i've tried to but it did'nt help
    really thanx tha you willing to help

  • How can I reference the main timeline on a swf once it was loaded into another?

    I have an swf with some custon animation functions using actionscript 3. I'm refering to the main timeline with Movieclip(root) and it works just fine.
    However, this swf is going to be loaded inside another (a custom player), and when that happends, everything stops working.
    I think it's because the Movieclip(root) is now referencing to the loader swf and not the loaded anymore, but I just can't find any information on how to fix that.

    This is basically what I´m doing here:
    I'm placing this code on frame 1, and calling the function textAnimate() whenever I need to insert some text.
    // This is a variable I created for tracking the timeline
    var base:MovieClip = MovieClip(root);
    function textAnimate(movieName:String, espera:Number):void {
              //var espera:Number = 1; //Waiting time
              var objeto:MovieClip = base[movieName]; //Variable to select the object
              var posFinal:Number = objeto.x; // Object position
              var posEnter:String = "-160"; // Animation start (relative)
              var posExit:String = "+160"; // Animation end (relative)
              // enter animation
              TweenMax.from(objeto, 1, {x:posEnter, alpha:0, blurFilter:{blurX:40}, ease:Back.easeOut});
              //call exitAnimation() after X seconds
              TweenMax.delayedCall(espera,exitAnimation);
              //exit animation
              function exitAnimation() {
                        TweenMax.to(objeto, 1, {x:posExit, alpha:0, blurFilter:{blurX:40}, ease:Back.easeIn});
    The swf works fine, but once it´s loaded into the player, nothing works anymore. Unfortunately, I don't have the code for the player, and can't change anything about it... :/

  • TS5192 After updating with 4.09 my photos which I store on an external hard drive will load into Aperture for 15 or so photos and then I just get the same photo repeating despite clicking on a different one in the group.  I have to stop working and come b

    After installing the 4.09 fix to process RAW from Sony RX100 (after updating to 3.5.1), photos do not continue to load into Aperture from the external hard drive where they are referenced.  The same photo is stuck in the adjustments frame to be worked on and the photos will not advance, no matter what I try, so i can work on the next one.  I can only work on a few at a time and then i have to go away and come back another day.  4.09 does fix the barrel distortion but it has completely gummed up the uploading of the referenced photos.  It's taking me days and weeks to process a couple of hundred photos.

    The Macbook Air is a low end Macintosh for graphics apps and you are asking it to perform a heavy pro workflow using a pro application. The integrated GPU of MBAs is a serious limiter to heavy graphics. Personally I would expect flaky performance with certain operations. In general I recommend that Aperture users choose boxes with independent GPUs and capable of taking 16 GB RAM if necessary.
    It will be important to carefully optimize workflow. How much RAM is in the MBA? The most Apple specs is 8 GB but you can check OWC to see if you can go to 16 GB. My Aperture/Photoshop workflow paged out at 8 GB RAM before I upgraded to 16 GB RAM.
    You should evaluate whether or not you have adequate RAM:
    Look at the Page Outs number under System Memory on the Activity Monitor app before starting a typical Aperture/Photoshop work session and write the number down. Recheck the Page Outs count after working for a few hours and write the number down again. If the page outs change (manual calculation of ending page outs number minus starting page outs number) is not zero your workflow is RAM-starved.
    Ignore the pie charts and other info in Activity Monitor because they can be misleading regarding RAM usage. For RAM analysis, manually count page outs before and after a work session.
    HTH
    -Allen

  • GetURL not working when swf is loaded into another swf

    Ok, I need some help for something relatively simple which
    for some reason I've not been able to find any information on at
    all?
    Hopefully it will be something easy to fix.
    Essentially I have the following:
    my main movie "Home.swf"
    another movie "Sub.swf"
    I've loaded "Sub.swf" into "Home.swf" via an empty movieclip.
    Within "Sub.swf" I have some links which when clicked call
    getURL and open a HTML page in the browser.
    But for some reason the getURL isn't working and I believe
    its because the getURL is called from a loaded movie within
    "Home.swf".
    I've tried changing the actionscript to:
    _root.getURL('/mypage.html');
    _parent.getURL('/mypage.html');
    but neither (_root / _parent) seems to work?
    Need help here please.
    Many thanks.
    Kind regards,
    M.

    Hi kglad,
    Yes the button is definitely firing ok.
    In the "Sub.swf" movie, on the second frame of the timeline
    (the first frame is some preloader code) there is the following
    code:
    imgMC.mascara.onPress = function() {
    //trace('mc[activo] = ' + mc[activo]);
    switch(mc[activo])
    case _level0.imgMC.MC0:
    trace('0 - ' + mc[activo])
    break;
    case _level0.imgMC.MC1:
    trace('1 - ' + mc[activo])
    break;
    case _level0.imgMC.MC2:
    trace('2 - ' + mc[activo])
    break;
    case _level0.imgMC.MC3:
    trace('3 - ' + mc[activo])
    break;
    case _level0.imgMC.MC4:
    trace('4 - ' + mc[activo])
    break;
    case _level0.imgMC.MC5:
    trace('5 - ' + mc[activo])
    break;
    If I run this movie in Flash (ctrl-enter) then the trace
    works fine.
    But the trace stops working when I run the main "Home.swf"
    movie in Flash (ctrl-enter) when the "Sub.swf" is loaded into an
    empty movie clip.
    And when I change the trace for a getURL and test in a
    browser it still doesn't work?
    What do you reckon?
    Thanks.
    M.

  • Control external swf file that is loaded into main movie

    I've loaded an external movie into Scene2 of the main movie,
    I want a button in the main movie, in scene two, which shows
    up right now under the external loaded movie, to be able to
    onRelease gotoAndStop at the first frame of the external movie
    which is loaded into that scene. Do I just write that as:
    AssociateSelected_btn.onRelease = function() {
    gotoAndStop("RGSassociate.swf","frame1")
    ? I thought I tried this, but since the ext.movie is loaded
    automatically on entering the scene it is not put into a level
    (which would be easier to navigate)....
    Any help/thoughts would be much appreciated, thanks!

    Just a thought- can i refer to the external movie through the
    loading component instance name?
    Still wondering if I can control the time line inside the
    external movie from the main movie...

  • As being a novice with my Mac Pro computer and Cannon 5D mark 3 camera my issue has arisen while over the last year and half, when down loading into my Photoshop Lightroom 4, my 18,000  photograph were not catalogued correctly, or hardly at all, so now ov

    As being a novice with my Mac Pro computer and Cannon 5D mark 3 camera my issue has arisen while over the last year and half, when down loading into my Photoshop Lightroom 4, my 18,000  photograph were not catalogued correctly, or hardly at all, so now over several months time my photos have apparently been redirected in my libraries and have begun not appearing in their allotted frames next to their number in the library they are in. they also have a small question mark (?) next to the photo space. The frames are blank but indicates that there is a photo there. The majority of photos are blank but about a tenth are seen . i apparently need to retrace where they went but do not know how to get that done . can someone help please?

    It would be difficult to tell you where to begin. If you moved photos around to different folders and didn't use Lightroom to move them, that would cause Lightroom to lose track of where they are. You have to remember that your images are not "in" Lightroom. Lightroom simply points to them wherever they are on your computer. All of the location information as well as the changes that you make to your images is stored in the catalog, which is a database. This catalog is central to the operation of Lightroom, and it's essential that you understand how it works and how to make it work for you. For all of those images that have "?" On them, or the folders that have the same, you will have to go through the process of locating them and showing Lightroom where they are located. With 18,000 images, and many of them missing, it might just be easier to start a new catalog and organize things properly from the beginning in that catalog.

  • Converting an applet into a frame

    hello.
    this is james mcfadden. I am developing a 2-player BlackJack card game in java. how do i convert the following 2 pieces of code from an applet into a frame?
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Blackjack extends Applet implements ActionListener,Runnable{
         private Deck deck;     //The deck...
         private Hand player_hand;//player hand
         private Hand dealer_hand;//dealer hand.
         private Button bHit=new Button("Hit");
         private Button bStay=new Button("Stay");
         private Button bRestart=new Button("New Game");
         //lets do some double buffering.
         Image offIm=null;
         Graphics offGraphics=null;
         Dimension offDimension=null;
         Image[] card_images = new Image[52];
         private boolean cards_loaded = false;
         private int current_card_loading = 0;
         String message;                         //print a message...
         int width;          //The width of the applet
         int height;          //The height of the applet
         int card_width = -1;
         int card_padding = -1;     //How much should we pad the cards by..?
         private int games=-1;     //How many games have been played?
         public void init() {
              Thread card_loader = new Thread(this);
              card_loader.start();
         public void newGame(){
              bHit.setEnabled(true);
              bStay.setEnabled(false);
              player_hand = new Hand();     //Create new hands...
              dealer_hand = new Hand();
              //shuffle the deck.
              deck.shuffleCards();
              games++;
         public void hit(){
              bStay.setEnabled(true);
              player_hand.addCard(deck.dealCard());
              if(player_hand.getValue() > 21){
                   message = "You loose! (score:"+player_hand.getValue()+")";
                   //disable the hit and stay buttons...
                   bHit.setEnabled(false);
                   bStay.setEnabled(false);
                   return;
              message = "Score: "+player_hand.getValue();     
         public void stay(){
              while(dealer_hand.getValue() < 17){
                   dealer_hand.addCard(deck.dealCard());
              if(dealer_hand.getValue() <= 21 && player_hand.getValue() < dealer_hand.getValue())
                   message = "You loose! (" + player_hand.getValue()+
                             " - "+dealer_hand.getValue()+")";
              }else if (player_hand.getValue() == dealer_hand.getValue())
                   message = "You draw! (" + player_hand.getValue()+")";
              }else {
                   message = "You win! (" + player_hand.getValue()+
                             " - "+dealer_hand.getValue()+")";
              bHit.setEnabled(false);
              bStay.setEnabled(false);
         public void actionPerformed(ActionEvent e) {
              if(e.getSource() == bRestart)
                   newGame();
              }else if (e.getSource() == bHit)
                   hit();
              }else if (e.getSource() == bStay)
                   stay();
              repaint();
         public void paint(Graphics g) {
              update(g);
         public void update(Graphics g) {
              //lets sord out double buffering
              if(offGraphics==null){
                   offIm=createImage(getSize().width,getSize().height);
                   offGraphics=offIm.getGraphics();
              if(!cards_loaded){
                   //display a message saying we're loading the cards...
                   offGraphics.setFont(new Font("Arial",Font.PLAIN,14));
                   offGraphics.setColor(new Color(171,205,239));
                   offGraphics.fillRect(0,0,getSize().width,getSize().height);
                   offGraphics.setColor(Color.black);
                   offGraphics.drawString("Loading cards... ",5,20);
                   offGraphics.drawRect(15,40, 102 ,10);
                   offGraphics.drawRect(13,38, 106 ,14);
                   offGraphics.setColor(new Color(171,205,239));
                   offGraphics.fillRect(0,0,150,35);
                   offGraphics.setColor(Color.black);
                   offGraphics.fillRect(15,40, (current_card_loading)*2 ,10);
                   offGraphics.drawString("Loading card: "+current_card_loading+1,15,20);
              }else{
                   Image currentCard;
                   while(card_width == -1)
                        card_width = deck.getCard(0).getImage().getWidth(this);
                   if(card_padding == -1)
                        card_padding = (width - (card_width * 2) - 4) / 4;
                   //clear the background...
                   offGraphics.setColor(Color.blue);
                   offGraphics.fillRect(0,0,width,height);
                   offGraphics.setColor(Color.black);
                   offGraphics.fillRect(1,1,width-2,height-2);
                   offGraphics.setColor(Color.white);
                   offGraphics.drawString("PLAYER:",card_padding,40);
                   offGraphics.drawString("DEALER:",(width/2) + card_padding,40);
                   offGraphics.drawString(message,5,height - 20);
                   if(games > 0)
                        offGraphics.drawString(games + " game(s) played...",5,height - 10);
                   //Draw the players hand...
                   for(int i=0;i<player_hand.getCardCount();i++){
                        currentCard = player_hand.getCards().getImage();
                        offGraphics.drawImage(currentCard, card_padding, 70+(20*(i-1)), this);
                   //now draw the dealers hand...
                   for(int i=0;i<dealer_hand.getCardCount();i++){
                        currentCard = dealer_hand.getCards()[i].getImage();
                        offGraphics.drawImage(currentCard, (width/2 ) + card_padding, 70+(20*(i-1)), this);
              //draw buffered image.
              g.drawImage(offIm,0,0,this);
    public void run(){
              MediaTracker t=new MediaTracker(this);
              System.out.println("Applet getting cards...");
              for(current_card_loading=0; current_card_loading < 52; current_card_loading++){
              //try{
                   card_images[current_card_loading] = getImage(getCodeBase(),
                                                                "cards/" + (current_card_loading+1) + ".gif");
                   if(card_images[current_card_loading] == null){
                        System.out.println("Null card... ["+current_card_loading+"]");
                   }else{
                        t.addImage(card_images[current_card_loading],0);
                   try{
                        t.waitForID(0);
                   }catch(InterruptedException e){
                        System.err.println("Interrupted waiting for images..>");
                   //lets show our new status.
                   repaint();
              //create the deck object now
              deck = new Deck(this,card_images);     //Create a new deck object.
              card_width = deck.getCard(0).getImage().getWidth(this);
              bHit.addActionListener(this);
              bStay.addActionListener(this);
              bRestart.addActionListener(this);
              bHit.setEnabled(false);
              bStay.setEnabled(false);
              width = getSize().width;
              height = getSize().height;
              this.add(bHit);
              this.add(bStay);
              this.add(bRestart);
              player_hand = new Hand();     //Create the hands...
              dealer_hand = new Hand();
              //make sure that the buttons appear properly.
              this.validate();
              message = "";
              cards_loaded = true;
              System.out.println("End of thread...");
              repaint();
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    class Deck {
         Card[] cards = new Card[52];
         int currCard;
         public Deck(Blackjack myApplet,Image[] card_images) {
              // These are the (initial) values of all the cards
              int[] values = {11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10,
                   11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10,
                   11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10,
                   11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10};
              // Make all the cards, getting the images individually
              for (int i=0; i<52; i++) {
    //               Image image = myApplet.getImage(myApplet.getCodeBase(), "cards/" + (i+1) + ".gif");
                   cards[i] = new Card(card_images, values[i]);
              // Shuffle the cards.
              shuffleCards();
         public void shuffleCards(){
              Card temp;
              //loop through each card in the deck and swap it with some random card.
              for (int i=0; i<52; i++) {
                   int rand = (int)(Math.random()*52);
                   temp = cards[51-i];//take the current card...
                   cards[51-i] = cards[rand];//and swap it with some random card...
                   cards[rand] = temp;
              //now, reset the currentCard to deal...
              currCard = 0;
         public Card dealCard() {
              Card card = cards[currCard];
              currCard++;
              return card;
         public Card getCard(int i) {
              return cards[i];

    thanks for the advice.
    i've done what you suggested. but when i went try to compile the 2 programs i get error messages (shown below along with the modified code). do you know what are causing these error messages?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class Blackjack extends JFrame implements ActionListener,MouseListener{
         private Deck deck;     //The deck...
         private Hand player_hand;//player hand
         private Hand dealer_hand;//dealer hand.
         //private Button bHit=new Button("Hit");
         JButton bHit=new JButton("Hit");
         //private Button bStay=new Button("Stay");
         JButton bStay=new JButton("Stay");
         //private Button bRestart=new Button("New Game");
         JButton bRestart=new JButton("New Game");
         //lets do some double buffering.
         Image offIm=null;
         Graphics offGraphics=null;
         Dimension offDimension=null;
         Image[] card_images = new Image[52];
         private boolean cards_loaded = false;
         private int current_card_loading = 0;
         String message;                         //print a message...
         int width;          //The width of the applet
         int height;          //The height of the applet
         int card_width = -1;
         int card_padding = -1;     //How much should we pad the cards by..?
         private int games=-1;     //How many games have been played?
         public static void main(String[] args){
               Blackjack bj =new Blackjack(); 
              bj.pack();
              bj.setVisible(true);
         public Blackjack(){
            Thread card_loader = new Thread(this);
              card_loader.start();
              bHit.addMouseListener(this);
          bHit.addActionListener(this);
          //bHit.addMouseMotionListener(this);
              add(bHit);
              bStay.addMouseListener(this);
          bStay.addActionListener(this);
          //bStay.addMouseMotionListener(this);
              add(bStay);
              bRestart.addMouseListener(this);
          bRestart.addActionListener(this);
          //bRestart.addMouseMotionListener(this);
              add(bRestart);
              JFrame frame=new JFrame("BlackJack");
              frame.setSize(400,200);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.add(this);
            frame.pack();
            frame.setVisible(true);
         public void newGame(){
              bHit.setEnabled(true);
              bStay.setEnabled(false);
              player_hand = new Hand();     //Create new hands...
              dealer_hand = new Hand();
              //shuffle the deck.
              deck.shuffleCards();
              games++;
         public void hit(){
              bStay.setEnabled(true);
              player_hand.addCard(deck.dealCard());
              if(player_hand.getValue() > 21){
                   message = "You loose! (score:"+player_hand.getValue()+")";
                   //disable the hit and stay buttons...
                   bHit.setEnabled(false);
                   bStay.setEnabled(false);
                   return;
              message = "Score: "+player_hand.getValue();     
         public void stay(){
              while(dealer_hand.getValue() < 17){
                   dealer_hand.addCard(deck.dealCard());
              if(dealer_hand.getValue() <= 21 && player_hand.getValue() < dealer_hand.getValue()){
                   message = "You loose! (" + player_hand.getValue()+" - "+dealer_hand.getValue()+")";
              else if (player_hand.getValue() == dealer_hand.getValue()){
                   message = "You draw! (" + player_hand.getValue()+")";
              else{
                   message = "You win! (" + player_hand.getValue()+" - "+dealer_hand.getValue()+")";
              bHit.setEnabled(false);
              bStay.setEnabled(false);
         public void actionPerformed(ActionEvent e){
              if(e.getSource() == bRestart){
                   newGame();
              else if (e.getSource() == bHit){
                   hit();
              else if (e.getSource() == bStay){
                   stay();
              repaint();
         public void paint(Graphics g){
              update(g);
         public void update(Graphics g){
              //lets sord out double buffering
              if(offGraphics==null){
                   offIm=createImage(getSize().width,getSize().height);
                   offGraphics=offIm.getGraphics();
              if(!cards_loaded){
                   //display a message saying we're loading the cards...
                   offGraphics.setFont(new Font("Arial",Font.PLAIN,14));
                   offGraphics.setColor(new Color(171,205,239));
                   offGraphics.fillRect(0,0,getSize().width,getSize().height);
                   offGraphics.setColor(Color.black);
                   offGraphics.drawString("Loading cards... ",5,20);
                   offGraphics.drawRect(15,40, 102 ,10);
                   offGraphics.drawRect(13,38, 106 ,14);
                   offGraphics.setColor(new Color(171,205,239));
                   offGraphics.fillRect(0,0,150,35);
                   offGraphics.setColor(Color.black);
                   offGraphics.fillRect(15,40, (current_card_loading)*2 ,10);
                   offGraphics.drawString("Loading card: "+current_card_loading+1,15,20);
              else{
                   Image currentCard;
                   while(card_width == -1){
                        card_width = deck.getCard(0).getImage().getWidth(this);
                   if(card_padding == -1){
                        card_padding = (width - (card_width * 2) - 4) / 4;
                   //clear the background...
                   offGraphics.setColor(Color.blue);
                   offGraphics.fillRect(0,0,width,height);
                   offGraphics.setColor(Color.black);
                   offGraphics.fillRect(1,1,width-2,height-2);
                   offGraphics.setColor(Color.white);
                   offGraphics.drawString("PLAYER:",card_padding,40);
                   offGraphics.drawString("DEALER:",(width/2) + card_padding,40);
                   offGraphics.drawString(message,5,height - 20);
                   if(games > 0){
                        offGraphics.drawString(games + " game(s) played...",5,height - 10);
                   //Draw the players hand...
                   for(int i=0;i<player_hand.getCardCount();i++){
                        currentCard = player_hand.getCards().getImage();
                        offGraphics.drawImage(currentCard, card_padding, 70+(20*(i-1)), this);
                   //now draw the dealers hand...
                   for(int i=0;i<dealer_hand.getCardCount();i++){
                        currentCard = dealer_hand.getCards()[i].getImage();
                        offGraphics.drawImage(currentCard, (width/2 ) + card_padding, 70+(20*(i-1)), this);
              //draw buffered image.
              g.drawImage(offIm,0,0,this);
    public void run(){
              MediaTracker t=new MediaTracker(this);
              System.out.println("Frame getting cards...");
              for(current_card_loading=0; current_card_loading < 52; current_card_loading++){
              //try{
                   card_images[current_card_loading] = getImage(getCodeBase(),"cards/" + (current_card_loading+1) + ".gif");
                   if(card_images[current_card_loading] == null){
                        System.out.println("Null card... ["+current_card_loading+"]");
                   else{
                        t.addImage(card_images[current_card_loading],0);
                   try{
                        t.waitForID(0);
                   catch(InterruptedException e){
                        System.err.println("Interrupted waiting for images..>");
                   //lets show our new status.
                   repaint();
              //create the deck object now
              deck = new Deck(this,card_images);     //Create a new deck object.
              card_width = deck.getCard(0).getImage().getWidth(this);
              bHit.addActionListener(this);
              bStay.addActionListener(this);
              bRestart.addActionListener(this);
              bHit.setEnabled(false);
              bStay.setEnabled(false);
              width = getSize().width;
              height = getSize().height;
              this.add(bHit);
              this.add(bStay);
              this.add(bRestart);
              player_hand = new Hand();     //Create the hands...
              dealer_hand = new Hand();
              //make sure that the buttons appear properly.
              this.validate();
              message = "";
              cards_loaded = true;
              System.out.println("End of thread...");
              repaint();
    ----jGRASP exec: javac -g X:\NETPROG\Assignment2\Blackjack.java
    Blackjack.java:7: Blackjack is not abstract and does not override abstract method mouseExited(java.awt.event.MouseEvent) in java.awt.event.MouseListener
    public class Blackjack extends JFrame /*Applet*/ implements ActionListener,MouseListener/*,Runnable*/{
    ^
    Blackjack.java:53: cannot find symbol
    symbol : constructor Thread(Blackjack)
    location: class java.lang.Thread
         Thread card_loader = new Thread(this);
    ^
    Blackjack.java:209: cannot find symbol
    symbol : method getCodeBase()
    location: class Blackjack
                   card_images[current_card_loading] = getImage(getCodeBase(),"cards/" + (current_card_loading+1) + ".gif");
    ^
    3 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    import java.awt.*;
    import javax.swing.JFrame;
    import java.net.*;
    import java.io.*;
    class Deck {
         Card[] cards = new Card[52];
         int currCard;
         public Deck(/*Blackjack myApplet*/Blackjack myFrame,Image[] card_images) {
              // These are the (initial) values of all the cards
              int[] values = {11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10,
                   11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10,
                   11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10,
                   11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10};
              // Make all the cards, getting the images individually
              for (int i=0; i<52; i++) {
                   cards[i] = new Card(card_images, values[i]);
              // Shuffle the cards.
              shuffleCards();
         public void shuffleCards(){
              Card temp;
              //loop through each card in the deck and swap it with some random card.
              for (int i=0; i<52; i++) {
                   int rand = (int)(Math.random()*52);
                   temp = cards[51-i];//take the current card...
                   cards[51-i] = cards[rand];//and swap it with some random card...
                   cards[rand] = temp;
              //now, reset the currentCard to deal...
              currCard = 0;
         public Card dealCard() {
              Card card = cards[currCard];
              currCard++;
              return card;
         public Card getCard(int i) {
              return cards[i];
    ----jGRASP exec: javac -g X:\NETPROG\Assignment2\Deck.java
    Blackjack.java:6: Blackjack is not abstract and does not override abstract method mouseExited(java.awt.event.MouseEvent) in java.awt.event.MouseListener
    public class Blackjack extends JFrame implements ActionListener,MouseListener{
    ^
    Blackjack.java:45: cannot find symbol
    symbol : constructor Thread(Blackjack)
    location: class java.lang.Thread
         Thread card_loader = new Thread(this);
    ^
    Blackjack.java:201: cannot find symbol
    symbol : method getCodeBase()
    location: class Blackjack
                   card_images[current_card_loading] = getImage(getCodeBase(),"cards/" + (current_card_loading+1) + ".gif");
    ^
    3 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.

  • SWF loaded into MainNav SWF - Rollovers & Links Don't Work

    Hi all,
    This is probably a very basic question!
    I have a Fla file with Text and Movie clips in it. The Text
    is animated when rollover occurs and thumbnail images click and
    link to the full size versions.
    It works when published (Say "LatestText.SWF").
    But when I call it from my Main Nave FLA/SWF, upon loading
    the Text.SWF, the rollover anim doesn't happen and the picture
    links don't work when clicked.
    I have the latest flash player installed and the actual
    weblink cursor appears as if the SWF acknowledges everything is
    working, but nothing dynamic actually works.
    Any Ideas? THANKS ALL! Much appreciated!

    I'll try to flesh it out, although I don't think there's need
    for any code behaviours as they all work fine - until the info.SWF
    is loaded into the main.SWF.
    So i'll try my best to flesh this out:-
    I have a Navigation FLA which publishes to SWF (at the moment
    Allow access to Local Files - tried network).
    This Nav.FLA is the main bulk of the website, it has all the
    links and window panes.
    I have a downloaded window pane style component which is an
    autoscroller (in case this could be the problem).
    I can load my info.SWF's straight into the container, by way
    of an Actionscript Anim Frame (1) and when the Nav.SWF is tested or
    published, it indeed loads in the smaller info.SWF no problems and
    scrolls around beautifully,
    The Info.SWF's I'm creating is just basically embedded
    dynamic text, with a few movie clips that have Behaviours when
    clicked or rolled-over.
    These Behaviours do not seem to work when the Nav.SWF's
    window pane loads in the Info.SWF - they APPEAR clickable (mouse
    pointer changes to hand) but nothing clicks and THEN works. The
    rollover animations (actioned via behaviours from LABELS - not
    frame numbers) also do not work?
    Any ideas from those that know to those that struggle would
    be greatly appreciated! It's the first time I've encountered a
    problem with my Flash website that I can't seem to find an answer
    to in all my tutorials and books!
    There's a challenge!

  • Loading into the library at runtime?

    I have built a flash animation (for a web site) that requires a number of decent quality JPG images.  I don't display all of these at the start, so I don't want to wait for them all to load before starting the animation.  Thus I want to be able to load these images in the background - the obvious process would involve MovieClipLoader.loadClip() method.  This works fine if I am loading into an INSTANCE of a moveclip (either existing on the stage or one that I creat in actionscript) - but I really want to load into a library movieclip.
    The problem is that I end up using these images in two different movies on the stage - each pulls from a movieclip in the library (that contains the image I want).  So my original thought was simply to load (using loadClip()) into the library movie - which in turn would show up in the two stage movieclips that have this library clip in the timeline.  However, I cannot seem to get loadClip() to work with a library object.
    I tried exporting the library movieclip to actionscript (giving it a name) - but loadClip() doesn't seem to want to load into it.  I can only get loadClip() to load into an instance that exists on the stage.
    Sorry if I am asking a stupid question - I don't do a lot of flash programming - although I have extensive programming experience in other languages.
    So can this be done?  Is there another way to accomplish what I want to do?
    I can easily load into an instance of a movieclip - but I don't want to load each image twice (into two different movieclips that I need to manipulate) - hence my desire to load into a single library object that end up having multiple instances on the stage.
    My other thought was to load into an instance and then COPY that instance to the second instance.  But I can't seem to find a way to copy one clip into another clip?
    Any pointers would be very much appreciated.
    Just to clarify, here is an example.
    *  I have several library movieclips (call them clip1, clip2, clip3... )  which contain a single frame with a JPG image in that frame.
    * I have a library movieclip called bkgnd which has 10 frames in it.  Each frame has an instance of the different clips above (e.g. frame 1 has clip1 in it, frame 2 has clip2 in it, frame 3 has clip3 in it etc).  At run time, this move is manipulated through gotoAndStop() to display a particular image.
    * I use this bkgnd library movieclip in TWO places on the real stage (two instances).  Each is controlled through actionscript to display particular frames (particular images) through the gotoAndStop() method.
    * I want to be able to load the individual images at runtime - my thought was to use loadClip() to load JPG files into the clip1, clip2, clip3... library clips.  However, loadClip() doesn't seem to want to load into a library clip.

    Thank you.  I was able to use the bitmap class draw function to accomplish what I wanted.
    It got pretty convoluted though.  Used actionscript on instances of hidden movies to initiate the loading.
    Had a loader bar on images when they are used - but wanted them to load asynchronously in the background (use the first while others are loading).
    There are lots of little "gotchas" with this stuff, and while flash is very powerful, it is difficult to document / take apart.  Because action script is all over the place and interacts in very funny ways, it can be very complicated to figure out how all the timelines mesh and what code is running when.
    I have to say I am quite disappointed in a few items - one of which is that if you associate actionscript with a particular item on the stage (a movie clip), you don't see it highlighted in the timeline and you don't see it on the movie inspector.  It is kind of hidden out there unless you know to look for it.
    Anyway - thanks again.  Definitely did the trick..... Warren

  • BIA Index Loading into Mmeory (for SAP) ....

    Hello all,
    I went to www.sdn.sap.com and chose <b>Business Intelligence</b> from the left menu.
    In the <b>BI Knowledge Center</b> (Right side), I chose <b>BI Accelerator</b>, which is under <b>Key Topics</b> section.
    Then I opened a document "<b>SAP Business Intelligence Accelerator (PDF 154 KB)</b>".
    Go to the section "<b>SAP BI Accelerator at Work</b>", which is at page# 5. The third point says like this -
    BI accelerator indexes are loaded into memory where the query is processed. In memory, joins and aggregations are done at run time. Loading of indexes into memory happens automatically at first query request, or it can be set for <b>preloading</b> whenever new data is loaded.
    I had an understanding that it will be loaded into memory only when query was first executed. But this says it can be set for preloading as well wherever new data loaded.
    My question is that where this setting can be done for preloading?
    It says that preloading option is available whenever new data loaded so does that mean that it can only be set for rollup of BIA Index and for initial load, it will still load data into memory when the query is first executed.
    I would appreciate if somebody has knowledge of this as it is new technology.
    Others, who has a knowledge can also answer.
    Your help will be greatly appreciated.
    Thank you to everybody in advance.
    Sume

    Hi,
    I found it.
    It is an option on BIA Index Property button in the wizard. It appears only after the initial load is done. There is check box for to keep the BIA Index in main store. I thin it is only applicable to Roll-up.
    Thank you.
    Sume

  • .gif files will not load into site

    I posted a question earlier about pages not loading and the question was answered, but now my .gif files will not load. Below is the log:
    Started: 4/9/2012 2:41 PM
    imageshomepage\Announce35.gif - error occurred - An FTP error occurred - cannot put Announce35.gif.  Access denied.  The file may not exist, or there could be a permission problem.
    File activity incomplete. 1 file(s) or folder(s) were not completed.
    Files with errors: 1
    imageshomepage\Announce35.gif
    Finished: 4/9/2012 2:41 PM
    I have them loading into the images folder that is in the htdocs folder.
    I stated in my previous question that I am self taught via the adobe DW tutorial. I had a catastrophic computer crash and had to reload everything. I apparently did not tell DW which file to load into before and now that is fixed. Any help would be greatly appreciated.
    Thanks

    I was never a big fan of using DW to FTP. There are several FTP programs that you might find work better than DW. For example Filezilla, free and works pretty darn well.
    http://filezilla-project.org/
    For me, being able to graphically see my local site on one half my screen and the site as it sits on the server on the other half of the screen really helps me quickly spot problems if I upload something and it doesn't display.
    Anyway... DW is not the only option for loading files to your server.
    Best wishes,
    Adninjastrator

  • Qosmio F - Unable to load into Windows or anything

    Yesterday, while studying other day outside another student bumped the table I was studying on. I would say "tapped" as it was not that hard. The normal message appears where it says the laptop will move the harddrive to a safe location etc.
    Shortly after maybe 10-20mins, I get a message on the laptop screen asking me to "backup the laptop" as there was some major error or failure. I clicked on the "additional information" and it basically said all my drives C:, G: and whatever I had disk failure or something. Unable to backup the laptop as I did not have CD's present to back it up with I took it home to do i today.
    The laptop is refusing to even load into windows at the moment. Unable to back up or anything. Keeps loading into options about system repair, restore, memory diagnostics etc. nothing fixes it.
    I've only purchased the laptop since oct/nov of 2010. Didnt start using it till jan/feb of this year also. Should I attempt to open up the HDD as it might have loosen out at the back or? Should I send it back to manufacturer to look at? It's critical exam time for me and this is devastating! Also flying overseas late June after exams and wishing to take the laptop over there. Please help! Thanks advance for all advice and suggestions.

    Hi Kyo,
    Your posting is a little bit hard to understand and a screenshot of this error message would be useful but if you get an message about defective HDD and all partitions you should contact an authorized service provider in your country.
    Your notebook should be still under warranty so the guys can replace the HDD for free. If you need some important data you can ask if they can rescue some files and do a backup. Alternative you can try it yourself if you buy an external HDD case for example. Then you can connect the HDD via USB to another computer.

  • Report XML output fail to load into .RTF layout [EBS r12]

    Hi,
    In EBS r12, we have requirement to have a standard report output in excel.
    I got the report's xml output to create the xml template (.RTF layout) using BI Publisher.
    I created the .RTF layout and it works fine on my laptop using Bi Publisher.. the xml loads into it and i can preview xml data on layout with all format (Excel, PDF...)
    I uploaded the layout to EBS, and assigned it to the standard report.
    I changed standard report out put to XML
    When i go to submit report request, the template is assigned with report and everything seems correct.
    [See screen shot: http://img35.imageshack.us/i/xmlt.jpg/]
    But after i run the report.
    The report is Completed with Warning status.. and output is only XML with Error message :
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    The Log file says :
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2350601 on node CLONE at 13-APR-2011 09:03:47.
    Post-processing of request 2350601 failed at 13-APR-2011 09:03:48 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Why this is happening ? i have done this many times with other standard reports and it worked fine.
    Please advise.
    Standard Report: Supplier Aging Report
    EBS : 12.1.1

    please check the log file and post the output here
    How to find OPP log file?
    To investigate on XML issues or other publishing problems, often the OPP logfile is needed.
    OPP stands for Output Post Processor. Below are the steps to find log file
    1. Login to the application as SYSADMIN
    2. Responsibility: System Administrator
    3. Function: Concurrent --> Manager --> Administration
    4. Select the Output Post Processor
    5. Click on the Processes button
    6. Select the Concurrent Process which was active during the time that the request ran
    7. Click on the Manager Log button to open the Output Post Processor log file

Maybe you are looking for

  • How do I add a wifi repeater to my network

    I am trying to add a repeater but the instructions are written for a PC

  • Sound Icon Greyed Out - Midi AutoAggDevice auto-created

    Whenever I restart my computer or log out/back in, the sound icon in the menu bar is greyed out. When I check the sound preferences in system preferences, it says that the output is: "AutoAggDevice". I gain back control after selecting "Internal Spea

  • Data format in rows and columns

    I have a table and have the following data,I need to transpose int he required form. The number of rows are dynamic and i dont want decode and string concatenation. 1     Tamil     1     1000 2     English     2     2000 3     Hindi     3     3000 4 

  • Use of tokens in AMT

    Can anybody explain me what the tokens are in AMT and how they must be used. Are tokens only for security on control level ? And what are the advantages of using these? Thanks for your help.

  • When I try to sign in to Creative Cloud it tells me I have been signed out.

    When I try to access my desktop appication of Creative Cloud it repeatedly tells me I have been signed out and will not access my apps.