Movie clip resize not working when image is loaded

Hello,
I'm having some strange luck in building an image slide
show. I load the image paths into an array from an XML
page and then step through the array elements w/ forward and
back buttons.
I have an empty image clip on the stage where I create an
empty movie clip inside each time a new image is loaded. I load the
image into the second movie clip like this:
[code]
_root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader.unloadMovie();
_root.picsPage_mc.mc_pic_loader.createEmptyMovieClip(
'mc_individual_pic_loader', 1 );
_root.load_movie_and_stop(
_root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader,
_root.photo_array[_root.photo_index].image,
_root.picsPage_mc.mc_pbar, 'regular_load');
[/code]
The load_movie_and_stop function is as follows:
[code]
function load_movie_and_stop( target_mc:MovieClip,
movie_clip_to_load:String, p_bar:MovieClip, action:String )
mc_loader._width = 0;
mc_slider_bar.mc_drag_pan._x = 0;
if( action != 'simple_load' )
p_bar._visible = true;
p_bar.bar._width = 0;
var mclListener:Object = new Object();
mclListener.onLoadStart = function( target_mc )
if( action != 'simple_load' && action !=
'regular_load' ){ target_mc.stop(); }
if( action == 'load_and_play' ){ target_mc.play(); }
mclListener.onLoadInit = function( target_mc )
_root.resize_movie_clip(target_mc, 160, 120, 250, 190);
if( action == 'load_and_stop' ){ target_mc.stop(); }
mclListener.onLoadProgress = function( target_mc )
if( action != 'simple_load' )
percentLoaded = Math.floor( (
target_mc.getBytesLoaded()/target_mc.getBytesTotal() )*100);
p_bar.bar._xscale = percentLoaded;
p_bar.txt_percent = percentLoaded + "% loaded.";
mclListener.onLoadComplete = function( target_mc ){
p_bar._visible = false; }
var my_mcl:MovieClipLoader = new MovieClipLoader();
my_mcl.addListener(mclListener);
my_mcl.loadClip( movie_clip_to_load, target_mc );
}//___endFunc___
[/code]
After the image is loaded into the movie clip, I then resize
the image to be a specific width.
The image resizing is done w/ this function:
[code]
function resize_movie_clip(clip_loader_name:MovieClip,
max_width:Number, max_height:Number )
orig_width = clip_loader_name._width;
orig_height = clip_loader_name._height;
aspect_ratio = orig_width / orig_height;
if( (orig_width > max_width) || ( orig_height >
max_height ) ) // If either dimension is too big...
if( orig_width > orig_height ) // For wide images...
new_width = max_height;
new_height = new_width / aspect_ratio;
else if( orig_width < orig_height )
new_height = max_height;
new_width = new_height * aspect_ratio;
else if( orig_width == test_height )
new_width = max_width;
new_height = max_width;
else { trace( "Error reading image size."); return false; }
else { new_width = orig_width; new_height = orig_height; }
clip_loader_name._width = Math.round(new_width);
clip_loader_name._height = Math.round(new_height);
[/code]
Now, 98% of the time this works perfectly, but there is some
certain times where the image resizing is completely ignored and
the image gets loaded as it's normal size.
Can anyone see why the image sizing get's ignored in some
instance?
Thanks for any help,
Clem

Found the solution that worked (used ._xscale and ._yscale
instead of ._width and ._height
[code]
function resize_movie_clip(clip_loader_name:MovieClip,
max_width:Number, max_height:Number, center_offset:Number )
if( (clip_loader_name._width > max_width) || (
clip_loader_name._height > max_height ) ) // If either dimension
is too big...
if( clip_loader_name._width > max_width )
_root.picsPage_mc.txt_test = "func if 1";
clip_loader_name._width = max_width;
clip_loader_name._yscale = clip_loader_name._xscale;
if( clip_loader_name._height > max_height )
_root.picsPage_mc.txt_test = "func if 2";
clip_loader_name._height = max_height;
clip_loader_name._xscale = clip_loader_name._yscale;
else { new_width = orig_width; new_height = orig_height; }
[/code]

Similar Messages

  • Preloader not working when image scroller present

    Hi:
    I designed a .fla that involves a large panoramic image that
    I stitched together in PhotoShop, then imported into the library
    and made into a movie clip, I then have the movie clip of the
    panoramic load into an image scroller (the one in the components
    library) on the main timeline so you get the sense you are panning
    through the photo. Within the movie clip of the panoramic there are
    buttons in it that then call other movie clips to load another
    movie clip on top of the image scroller.
    code attached to the buttons is:
    on(release){
    _root.attachMovie("myMovie", "screen",1);
    _root.screen._x =10;
    _root.screen._y =425;
    My issue is the file is so large that I have made created a
    preloader.
    If I load the movie clip of the panoramic directly onto the
    timeline the preloader works fine...
    When I try to load the imagescroller that calls the movie
    clip my preloader does not work at all...
    Does anyone have any ideas?
    I will gladly supply you with any code you may need.
    Thank you
    Janalese

    Thank you for your information. It worked great as far as...I
    could build a preloader and have the movie show up on the screen as
    I wanted. Now for problem number two that has developed...
    The MovieClipLoader that calls external .swf file. This is a
    movie that has an image scroll bar that calls a movie clip that
    scrolls a panoramic photo. Within that movie clip of the panoramic
    I have buttons that then call other movie clips from the library
    using
    on(release){
    _root.attachMovie("myModelScroll", "screen",1);
    _root.screen._x =10;
    _root.screen._y =425;
    This is an example of what I am doing
    I have a panoramic shot that is in an image scroller, that
    panoramic is of a group of buildings each building has a button
    next to it. Those buttons then call up another movie clip from the
    library using the attachMovie clip to show another mini movie clip
    of what the building looks like inside, and what the purpose is.
    Issue:
    The buttons within the movie clip that is loaded into the
    image scroller fail to work. If I just load the .swf files into the
    browser it works just fine...
    but the issue is I have a huge file with an image scroller so
    I need a progress bar and a MovieClipLoader function.
    How do I now get the other code attached to the buttons
    within the movie clip that says attachMovieClip to work within the
    context.
    I am so baffelled as to why it won't work...
    Here is the code to my preloader and movieClipLoader
    My actionScript skills are very limited so any help is
    greatly appreciated but needs to be supplied in simple language.
    Thank you very much

  • Movie Clip Button Not Working

    I'm working on creating buttons right now as movie clips so when you roll over it they rise up. The third one "print" is jumping around like crazy and I can't figure out why. I've deleted and re-done it 3 times without luck. I've attached my file - if anyone can spot where I've made a mistake that would be great. Thanks!

    Got it - realized the text wasn't staying as static text and was a movie clip before the final frame. So if anyone else has this problem, create a new keyframe on the ending frame, and make THAT the movie clip.

  • Movie Clip Button not working within an Movie Clip

    Hi,
    I'm trying to create a movie clip on my my main timeline that has a movie clip button within it that pops up a box in the middle of the site that contains text and links. On Frame 1 I have the Up state, frame 2 the roll over state, and frame 3 my Down State (where Box appears).
    on (rollOut) {
        this.gotoAndStop("1");
    on (rollOver) {
        this.gotoAndStop("2");
    on (release) {
        this.gotoAndStop("3");
    I have stop(); on each of the 3 keyframes
    The problem is that on the main time line, the button is clickable but doesnt do anything
    Any suggestions, what am i missing?
    Cheers

    Ok, i have this assigned to a movieclip, is this wrong? Especially for MovieClip Buttons. Anyway, just tried this and it works!
    on (rollOut) {
        this._parent.gotoAndPlay(1);
    on (rollOver) {
        this._parent.gotoAndPlay(2);
    on (release) {
        this._parent.gotoAndPlay(3);

  • 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.

  • ActionPerformed method not working when applet is loaded in browser window.

    Hey there guys. I need urgent help from anybody who has experience in deploying websites whose code is in java.
    I am having two problems as mentioned below...
    first, I have made a simple login screen using java swing and JApplet. there is a single button to login. the action performed for this button accesses a private method to check the username and password which are there in atext file. the applet is working perfectly in appletviewer but when i load the applet in a Internet Explorer window using HTML's Applet tag, the button is giving no response at all even when i enter the correct username and password.
    I guess it is either not calling the private function that is checking the username and password from the tes=xt file or it can not access the file. Please help as soon as possible as this is related to my college project.
    I am attaching the code herewith. Suggestions to improve the coding are also welcome.
    the second problem is that while writing my second program for generating a form which registers a user the html is not at all loading the applet into the browser and also if im trying to access a file to write all the details into the console is showing numerous amount of error after i press the button which i can't not understand. the only thing i can understand is that it is related to file access permissions. If anybody could put some light on the working of worker threads and thread safe activities of SwingUtilities.invokeandWait method it would be really appreciable.
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.plaf.*;
    <applet code = "UserLogin" width = 300 height = 150>
    </applet>
    public class UserLogin extends JApplet implements ActionListener, KeyListener {
         private JLabel lTitle;
         private JLabel lUsername, lPassword;
         private JTextField tUsername;
         private JPasswordField tPassword;
         private JButton bLogin;
         private JLabel lLinkRegister, lLinkForgot;
         private JLabel lEmpty = new JLabel(" ", JLabel.CENTER);
         private JPanel panel1, panel2;
         public void init() {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                   SwingUtilities.invokeAndWait(new Runnable() {
                        public void run() {
                             LoginGUI();
              catch(Exception e) {
                   e.printStackTrace();
         public void start() {
              setVisible(true);
         public void stop() {
              setVisible(false);
         private void LoginGUI() {
              super.setSize(300, 150);
              super.setBackground(Color.white);
              lTitle = new JLabel("<HTML><BODY><FONT FACE = \"COURIER NEW\" SIZE = 6 COLOR = BLUE>Login</FONT></BODY></HTML>", JLabel.CENTER);
              lUsername = new JLabel("Username : ", JLabel.CENTER);
              lPassword = new JLabel("Password : ", JLabel.CENTER);
              tUsername = new JTextField(15);
              tPassword = new JPasswordField(15);
              bLogin = new JButton("LOGIN");
    //          bLogin.setEnabled(false);
              bLogin.addActionListener(this);
              bLogin.addKeyListener(this);
              panel2 = new JPanel();
              GridBagLayout gbag = new GridBagLayout();
              GridBagConstraints gbc = new GridBagConstraints();
              panel2.setLayout(gbag);
              panel2.addKeyListener(this);
              gbc.anchor = GridBagConstraints.CENTER;
              panel2.setMinimumSize(new Dimension(300, 200));
              panel2.setMaximumSize(panel2.getMinimumSize());
              panel2.setPreferredSize(panel2.getMinimumSize());
              gbc.gridx = 1;
              gbc.gridy = 1;
              gbag.setConstraints(lUsername,gbc);
              panel2.add(lUsername);
              gbc.gridx = 2;
              gbc.gridy = 1;
              gbag.setConstraints(tUsername,gbc);
              panel2.add(tUsername);
              gbc.gridx = 1;
              gbc.gridy = 2;
              gbag.setConstraints(lPassword,gbc);
              panel2.add(lPassword);
              gbc.gridx = 2;
              gbc.gridy = 2;
              gbag.setConstraints(tPassword,gbc);
              panel2.add(tPassword);
              gbc.gridx = 2;
              gbc.gridy = 3;
              gbag.setConstraints(lEmpty,gbc);
              panel2.add(lEmpty);
              gbc.gridx = 2;
              gbc.gridy = 4;
              gbag.setConstraints(bLogin,gbc);
              panel2.add(bLogin);
              panel1 = new JPanel(new BorderLayout());
              panel1.add(lTitle, BorderLayout.NORTH);
              panel1.add(panel2, BorderLayout.CENTER);
              add(panel1);
              setVisible(true);
         public void keyReleased(KeyEvent ke) {}
         public void keyTyped(KeyEvent ke) {}
         public void keyPressed(KeyEvent ke) {
              if(ke.getKeyCode() == KeyEvent.VK_ENTER){
                   String username = tUsername.getText();
                   String password = new String(tPassword.getPassword());
                   if(username.length() == 0 || password.length() == 0) {
                        JOptionPane.showMessageDialog(new JFrame(),"You must enter a username and password to login", "Error", JOptionPane.ERROR_MESSAGE);
                   else {
                        boolean flag = checkUsernamePassword(username, password);
                        if(flag)
                             JOptionPane.showMessageDialog(new JFrame(),"Username and Password Accepted", "Access Granted", JOptionPane.INFORMATION_MESSAGE);
                        else
                             JOptionPane.showMessageDialog(new JFrame(),"Username or password Incorrect", "Access Denied", JOptionPane.INFORMATION_MESSAGE);
         public void actionPerformed(ActionEvent ae) {
              String gotCommand = ae.getActionCommand();
              if(gotCommand.equals("LOGIN")) {
                   String username = tUsername.getText();
                   String password = new String(tPassword.getPassword());
                   if(username.length() == 0 || password.length() == 0) {
                        JOptionPane.showMessageDialog(new JFrame(),"You must enter a username and password to login", "Error", JOptionPane.ERROR_MESSAGE);
                   else {
                        boolean flag = checkUsernamePassword(username, password);
                        if(flag)
                             JOptionPane.showMessageDialog(new JFrame(),"Username and Password Accepted", "Access Granted", JOptionPane.INFORMATION_MESSAGE);
                        else
                             JOptionPane.showMessageDialog(new JFrame(),"Username or password Incorrect", "Access Denied", JOptionPane.INFORMATION_MESSAGE);
         private boolean checkUsernamePassword(String username, String password) {
              String user = null, pswd = null;
              try {
                   FileInputStream fin = new FileInputStream("@data\\userpass.txt");
                   DataInputStream din = new DataInputStream(fin);
                   BufferedReader brin = new BufferedReader(new InputStreamReader(din));
                   user = (String) brin.readLine();
                   pswd = (String) brin.readLine();
              catch(IOException ioe) {
                   ioe.printStackTrace();
              if(username.equals(user) && password.equals(pswd))
                   return true;
              else
                   return false;
    }PLEASE HELP ME GUYS......

    RockAsh wrote:
    Hey Andrew, first of all sorry for that shout, it was un-intentional as i am new to posting topics on forums and didn't new that this kind of writing is meant as shouting. Cool.
    Secondly thank you for taking interest in my concern.No worries.
    Thirdly, as i mentioned before, I am reading i file for checking of username and password. the file is named as "userpass.txt" and is saved in the directory named "@data" which is kept in the same directory in which my class file resides.OK - server-side. That makes some sense, and makes things easier. The problem with your current code is that the applet will be looking for that directory on the end user's local file system. Of course the file does not exist there, so the applet will fail unless the the end user is using the same machine as the server is coming from.
    To get access to a resource on the server - the place the applet lives - requires an URL. In applets, URLs are relatively easy to form. It might be something along the lines of
    URL urlToPswrd = new URL(getCodeBase(), "@data/userpass.txt");
    InputStream is = urlToPswrd.openStream();
    DataInputStream din = new DataInputStream(is);
    So the problem is that it is reading the file and showing the specific output dialog box when i run it through appletviewer.. Huhh. What version of the SDK are you using? More recent applet viewers should report security exceptions if the File exists.
    ..but the same is not happening when i launch the applet in my browser window using the code as written belowHave you discovered how to open the Java Console in the browser yet? It is important.
    Also the answer to your second question
    Also, the entire approach to storing/restoring the password is potentially wrong. For instance, where is it supposed to be stored, on the server, or on the client?is that, as of now it is just my college project so all the data files and the username and password wiles will be stored on my laptop only i.e. on the client only. no server involved.OK, but understand that an applet ultimately does not make much sense unless deployed through a server. And the entire server/client distinction becomes very important, since that code would be searching for a non-existent file on the computer of the end user.

  • 16 gig nano problem- nike+ did not work when photos were loaded by iTunes.

    I recently got a lovely new purple nano for my birthday which appeared to work fine right out of the box. I let iTunes fill it up with a random selection of music and then there was no room for photos, but that was fine.
    I used it for 5 runs without problem, but today, every time I tried to start a workout, the nano would reset itself. Luckily I could revert to my trusty old nano.
    The first 4 runs had taken place without much customisation of the nano, and then I decided to choose my own music instead of having iTunes do it for me, but I also let iTunes choose and load photos on it. The 5th run seemed to work ok after this customisation, but that was it, attempting another run made the nano reboot itself.
    I have since deleted all the photos and Nike+ worked just fine again. I then chose to upload just a few photos, instead of letting iTunes fill the nano up, and again Nike + is working fine. So I've fixed my own problem, but thought I would post in case anyone else is having similar problems

    Jochemd,
    Since Black Monday, I have now deleted cookies, cleaned the cache and deleted all Temp Internet files 4x. I am on IE7.0.5xxx.x, on an XP-Pro SP3 laptop. All of the problems mentioned in my original post have continued, totally unabated.
    If you have a suggestion for me, please share it. I will try about anything now.
    Please note that, related to my OP, everything worked perfectly on Sunday PM, and well into the day on Black Monday. Since then, the issues that I outlined haver been present, and have not changed. The issue is not on my part, though I will attempt to correct anything on my end.
    The pleasure of helping others in these fora has been greatly diminished. I'd guess that about 10% of my posts used to include screen-caps, to direct the various posters, to the correct Panel, switch, Tool, or fly-out menu, to solve their problem. Now, all of my screen-caps have to go to queue. I have about 1500 of them in my Adobe folder, and add more, as the questions come.
    I can live with having to do Block Quotations a half-dozen times, and can Backspace out of those line breaks, but my camera icon is part of my life. Over in the PrE forum, I posted on Saturday afternoon, and that image just came out of queue tonight! Think about some poor Adobe user, lookng for the fix to their problem, with maybe a family event, at which they are hoping to present a DVD, and my answer has been in queue for 2.5 days.
    We do, what we do, with little thanks, and no remuneration, and it should behove Adobe to help us, help other users - ones who have given Adobe their $, and only want their program to function. We, the forum subscribers, can often help them, and save the bacon. That is something that the current Adobe T/S cannot do. Maybe next quarter, but not yet.
    Please help me to help others in the product fora.
    Hunt

  • How do I move aiff files from the viewer to the timeline-it is not working when I try to drag and click or clicking on overwrite or insert in Final Cut Pro 7. Thanks

    How do I move aiff files from the viewer to the timeline-it is not working when I click and drag or when I try to move the files to the overwrite or insert buttons-Thanks.

    hi
    You cannot move audio from the viewer
    Mark your in and out points then in the browser grab hold of the audio tracks icon and drag that to the time line
    PJ

  • Sound not working when watching movies from MacBook Pro 15'' in full screen

    after a recent iTunes upgrade the sound will not work when I watch a movie or anything else in iTunes on my Thunderbold Display. I have the 15'' retina MacBook Pro connected to the display and it used to work flawlesly. has anyone had the same problem?

    When I upgraded the volume control in iTunes (at the top) defaulted to off (all the way left) so no sound.  I just slid the slider all the way to the right.  Also be sure display audio is set in the preferences, sound menu

  • I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS

    Any idea why is Bridge latest version not working when trying to open it in Photoshop CC 2014 ? (French version) ? When trying, Creative Cloud app will open to ask if I want to download newest version, which I did numerous times now.
    Thank you
    Guy Deschenes
    Shawinigan (QC) Canada

    Hi Eric,
    Here's how a similar problem was resolved between PS and BR.
    The issue was confirmed by ChunXiaYang at Adobe staff and solution put in the forum discussion on June 19 (no. 13). Here's a copy:
    I have confirmed that this is a known issue before release. And the workaround is to uninstall and reinstall PS 2014. Then Bridge can be launched by selecting 'Browse in Bridge' in PS2014.
    Please try the installation, and let me know whether it works. Thanks!
    It woks just fine since I unistalled and reinstalled PS 2014.
    Guy
    Le 2014-07-17 à 1:13 PM, ericboerner a écrit :
    I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS
    created by ericboerner in Bridge General Discussion - View the full discussion
    I did this with a fresh install of the entire CC package. As soon as the CC packages updated, CC Bridge broke. Unistalled CC PS, reinstalled again, CC Bridge works, but CC PS updates itself again, and breaks CC Bridge.
    You know... The whole move to CC has been a massive cluster... I've struggled with the CC packages for my entire subscription year, and now I'm 1.5 month away from needing to throw down another $720 for no reason what-so-ever, just so we can Beta test your really screwed up subscription services.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6559164#6559164
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Bridge General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Links not working when I export to HTML or PDF

    I am a longtime Mac fanatic, but new to using Keynote. I am creating lectures for a class I teach where the computer in the classroom is Windows, so I have to export my Keynotes to another format.
    First I tried exporting to Powerpoint. That was a disaster. Since, I've tried exporting to HTML, exporting to PDF, and print -> Save as PDF (to get a PDF that prints nicely).
    My problem? Hyperlinks within my Keynote work fine when I play the presentation in Keynote. They also work when I export to PDF. However, they do not work when I generate the printable PDF OR when I export to HTML.
    I guess I understand them not working in the printable PDF, but not the HTML. Am I doing something wrong?
    Ideally I would like to export one PDF that I could use up on the projecter (with links working) and that students could view and/or print from their computers.
    Should I really have to have 2 PDF's - one for students who want to view it on screen with working links and one for people that want to print it out?!?!
    TIA for any help/advice!

    Do you have any filters applied to your clips?
    This happened to me before, I accidently had applied a broadcast safe filter to a color matte that was black....
    I figured it out by duplicating my sequence and deleting items from my timeline 1 by 1 until I was able to export a reference movie.
    Anywho, export again, this time with "self contained" movie selected.
    Then try to import to Compressor.

  • ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.

    ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.
    It seems that flash movie is identifed as 'undefined' inside document.
    //a statically placed div
    var staticdiv=document.getElementById('PropDiv');
    //dynamically placed div with object tag
    var dynDiv =staticdiv.cloneNode( true );
    var xD=50;
    var yD=50;
    if(dynDiv)
    dynDiv.style.display  = "block";
    dynDiv.innerHTML="<object classid=" + "\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"" + "codebase=" +
    "\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\"" + "width=" + xD + "height=" + yD +
    "id=" + "\"external\"" + "align=" + "\"middle\"" + ">" +
                    "<param name=" + "\"allowScriptAccess\"" + "value=" + "\"sameDomain\"" + "/>" +
                    "<param name=" + "\"movie\"" + "value=" + "\"external.swf\"" + "/>" +
                    "<param name=" + "\"quality\"" + "value=" + "\"high\"" + "/>" +
                    "<param name=" + "\"wmode\"" + "value=" + "\"transparent\"" + "/>" +
                    "<param name=" + "\"bgcolor\"" + "value=" + "\"#ffffff\"" + "/>" +
                    "<embed src=" + "\"external.swf\"" + "quality=" + "\"high\"" + "wmode=" + "\"transparent\"" +"bgcolor=" + "\"#ffffff\""
    + "width=" + xD + "height=" + yD + "name=" + "\"external\"" + "align=" + "\"middle\"" + "allowScriptAccess=" + "\"sameDomain\"" +
    "type=" + "\"application/x-shockwave-flash\"" + "pluginspage=" + "\"http://www.macromedia.com/go/getflashplayer\"" + "/>" +
                    "</object>";
       dynDiv.style.top=50;
       dynDiv.style.left=100;
    document.body.appendChild(dynDiv);
    In above situation communication is not establised when a  funtion which is retruning boolean is called from flash using
    ExternalInterfcae.call.The return value of this function is getting as false inside flash.But the value is true in javascript.
    if (navigator.appName.indexOf("Microsoft") != -1) {
       return window[movieName];
      } else {
       return document[movieName];
    window["external"] is returning as 'undefined'.
    Please give a  solution to solve this.

    Note that you have different file names for the object (images/banner.swf) and the embed (images/banner1.swf)
    You also placed the embed in the middle of a param tag and nested all param tags.
    Because you didn't include a MIME type and the object doesn't have a classid for an ActiveX control for IE, I'm not sure what Firefox will be using.<br />
    The object doesn't have a data attribute to specify the file.<br />
    A separate embed is only needed when you specify a classid in the object.
    <pre><nowiki><div class="bannercontainer">
    <object width="940" height="445" type="application/x-shockwave-flash" data="images/banner.swf" >
    <param name="wmode" value="transparent" />
    <param name="movie" value="images/banner.swf" />
    </object>
    </div></nowiki></pre>

  • AS3 not working when uploaded to linux server

    Works like a charm when I preview it but when I upload to the
    server (tried 3 different ones) it just ignore the actionscripts
    all together no matter what I use.
    What I have is a rotating banner system. I set it up to
    randomly start at a specific one. If I preview it locally or run in
    in my .html file locally (just using preview in dreamweaver) it
    works like a charm and starts at a random one. When I upload it it
    just starts at the first one like the actionscripts do not exist.
    Using Flash CS3 and AS3.
    Thanks

    Pretty sure it is not a problem with the upload as I have
    been doing this for years the same way with Dreamweaver. In
    diagnosing the issue I rebuilt it and in place of the movie clips I
    just put text and uploaded it. Worked like a charm. Added the movie
    clips and again does not work when I upload it. Ignores the
    actionscript and just plays them in order. Did a build from top to
    bottom and from bottom to top also. Something in the movie clips is
    causing it but darned if I can find the answer. I have done this
    same thing before and it worked just fine. Just at a loss. I am
    attaching the code inside the movie scripts which work just fine.
    It is just ignoring scripts on the Scene 1 level.

  • Movie clips have wrong time when importing

    I use to rename my images before importing to iPhoto. I copy them from my camera to a folder in the desktop, rename everything to my like using Adobe Bridge, and then I import them to iPhoto. That way the name of a file usually corresponds to the one in the internal Library (control-freak as I am). That said, I never mess with the Library.
    But I'm having this problem all the time: After importing, all the image pictures are listed on the event accordingly to their correct date/time, but the movie clips are not. They always have an irregular variation in time, sometimes with a difference of several hours, that I have to change manually using iPhoto "adjust date/time" to have them sorted ok chronologically. The strange thing is: that EXIF data is correct in Bridge! I even use this to view/reference the correct time in Bridge, and change it on the movie file already imported in iPhoto.
    Could this be a bug in iPhoto, or is there something wrong with my way of importing? Again, it happens only to the movie files, not the images.
    Thanks.

    Thank you. I didn't know that.
    But still, for me it's a common issue to have iPhoto reading a wrong "File Created" data on my imported movies, even though it seems to be OK on the original file. Does it ever happen to you, know about that issue? Sometimes I have ten or more movie clips in an event and it's a bit of a hassle to restore manually the correct time for each one.
    Maybe it's Bridge fault, maybe it's iPhoto, maybe my workaround is the only answer to this "bug"?
    Thanks again.

  • [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

    When selecting a menu item I used to click the left mouse button and hold it down, move the pointer to the desired menu item and release the mouse button. Everything works fine in the mine menu, but there's a problem when adding new adjustment layer from the layer panel: when I release the button nothing happens, I have to press the button again. In previous PS version it worked fine. How can I fix this?

    I don't think that is user fixable, meaning you'll have to wait till adobe fixes it with an update.
    Photoshop cc 2014
    windows does not work
    mac does work
    Did you already post over here:
    [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

Maybe you are looking for

  • Open or edit .classpath file?

    Hi, I just want to ask if I can open or edit the .classpath file on my new project? if so, how will i do it? Thanks.

  • Costing problem while running Process order

    Hi, This is a  problem relating to costing of HALB material.. While doing process order for a fert material (BOM of FERT material contains a HALB and two ROH materials) a window occurs while saving ' Error when calculating costs, see log'. Why is thi

  • Function module to verify if date is valid.

    Anyone know a function module to verify if date is valid?thx

  • Looking for Standard datasource

    Hi friends, I need to get following fields from R3 side for one of my operational report . I am just looking that is there any Standard datasource available to extract these fields 1.ContainerType 2.Loading Port 3.Direction Code 4.LoadingYear 5.Loadi

  • I just bought a new IMAC, but my iTunes account is empty?

    I just bought a new IMac, but my ITunes library is empty.  Why doesn't my library automatically come up with my new computer when I log in?