Help with AS 3.0 in CS4 (Links)

I have been building a site, and on the home page I have some images, and text fields that I have converted to buttons. I am trying to link these button to webpages. I use this code:
var getYahoo:URLRequest = new URLRequest("http://www.yahoo.com");
homeibd_btn.addEventListener(MouseEvent.CLICK,goToURL);
function goToURL(event:MouseEvent):void
  var targetURL:URLRequest = new URLRequest("http://www.yahoo.com");
  navigateToURL(getYahoo);
This code works with 1 image. if I change the instance name to another button i get the 1009 error that it cant access a null object. I dont understand what is going on. why does it work with 1 button but not another?

Another possibility is that you used some kind of transition for the object but didn't name it in all of the keyframes.  When you transition an object in a timeline tween and don't name it in the first keyframe, the latter keyframes adopt that lack of a name event though you might assign a name in them.
What you should do is go into your Publish Settings and in the Flash section select the option to Permit Debugging.  This will add a line number following the frame number in the error message.  Once you know which line is causing the problem, try tracing the object that is in that line.  You will most likely find out it is null, and it will be because of one of the reasons I've mentioned (I don't think I forgot any others, but it's possible).

Similar Messages

  • Urgent - help with Text direction in InDesign CS4

    Hello,
    I use InDesign CS4 on Windows 7. It's a standard version (without options for right-to-left languages).
    Whenever I make a new text frame, it seems to have a right-to-left "logic" of the text. The text types left to right, but the period in the end would go all the way right.
    It also mixes up tabs. It looks like this:
    Instead of:
    Usually I get around it by pasting another correctly formatted text-frame or text, and it works.
    Now I'm trying to create a new document with master frame (in order to be able to easily change the layout successively of a many-paged document), where I need to insert existing (formatted) text. But this text take this "right to left logic", whether I past the text, or even a whole text frame.
    I could find nothing in the character/paragraph options to get rid of this.
    I would greatly appreciate if you could help me.
    with respect,
    Jerusalem Nun.

    This behaviour is normal. Changing the default property of any style, when no document is open, changes the style for every new document, but not for existing document.
    Take a look what is your basic style where all other styles are build up on it, in your case, go to the paragraph style and look what is the basic style which was used.
    If the default style was used (it is the one in brackets), you have always a problem. You should not use it in any case.
    Because you don't have a ME version of InDesign you can't change direction directly, but you can create a new document with the default settings and the same paragraph (and character, table and cell styles) in a new document without RTL styles. Save this document, no content is required.
    Go to the 'infected' document, open the paragraph style panel and in the panel menu take "Load all text styles", select the new document and overwrite with the incoming styles.
    If necessary you might repeat it with the Table, Cell, Character and Object Styles, as all of them have some kind of direction settings.
    I don't know how good your styles were created, you have to adjust your document. And I would strongly recommend—I repeat—I strongly recommend to work always with styles.

  • Need help with 24fps in Premiere Pro CS4

    I am having issues  working with 24fps imported video. My computer hardware is an AMD dual core processor running at 2.6GHz. It has 2GB of Kingston Hyper-X memory, 2x 300GB hard drives (not RAID), and an Nvidia 7900GS video card with 256MB video ram. My operating system is Windows Vista Ultimate with SP1. I am running Premiere Pro CS4 with all the current updates.
    So here is the issue I am having. I captured video on a Canon XL2 in 24fps, 16:9 widescreen, and 2:3:3:2 pulldown. My CS4 project settings were set up as DV-24P Widescreen 48KHz. I did not try changing other settings on the other tabs. I captured the video directly from the XL2 with no dropped frames. The resulting AVI plays back in Windows Media Player 11 correctly. What I mean by that is the is no jerky video, I get no raster lines, and the video quality is very clear. When I load the video into the time line and play it back in the program monitor the video jerks like it is dropping frames, I get raster lines and it looks like video clarity fades in and out.
    At first I thought nothing about it. I used Adobe Media Encoder, and burned a DVD. Playback on my widescreen TV looked jerky, rastered, and the video was only clear in static scenes. So I made some test projects with different settings. Still had no success. The original capture looks good, but whatever I do in Premiere the video jerks and looks like old VHS video.
    I did another test. I set the XL2 to 30P and 4:3, and captured the video. Again the captured AVI looks good. Put it on the Premiere timeline and played it in the program monitor. It plays fine - good video quality, no rastering, and no jerking. Made a DVD with no problems in the video. So my question is what setting in Premiere do I need to capture, edit, and export 24fps 16:9 widescreen video so that it plays back with with the same video quality as it was captured? Do you think it is an encoder problem? The captured AVI is what ever encoder came with Windows/Premiere as I have not added any other encoders.
    Any help would be apperciated. If I have not supplied enough information, please just ask.  

    If the video is playing back badly in Premiere Pro from the timeline, then the things I would check would be the program monitor quality - is it set to highest...if you don't know where that it is, click on the 4 horizontal lines in the top corner of the program monitor - make sure highest quality is selected. It also may be a video card issue - are your drivers up to date? If the clips are only playing back badly on the PPro timeline (and anything exported from it), but fine in Windows Media Player - something is up.
    As for the frame rate - no, you don't have to work at 24P...as mentioned before, the camera actually records at 29.97 fps, but is able to be played back and edited at 23.976 fps (or 24P)...it's a complicated explanation on how it all works...
    If you're going to finish to a regular DVD, then working at 29.97 is the way to go. As for the interpret footage command, highlight the clips in your bin, then right click on them - in the menu, you'll see interpret footage - click on that and a new window should open...you should see a box with a check next to it that says remove 24P pulldown - click it (removing the check) and the footage frame rate should change to 29.97 - then click OK...create a 29.97 sequence (DV NTSC Widescreen 48Khz), and edit away.

  • Help with copying contents of file to link list please

    Hi,
    Below is a snippet of code I am playing with. As you can see I have created a LinkList, I now need to copy the contents of a csv file in to that list. The file is several lines long and I need each line in the list.
    I know how to add to the list manually i.e.,
    list.add("First entry in list");
    Could someone help me out with this please.
    Many thanks.
    (***CODE***)
    private LinkedList list = new LinkedList();
         public LinkTest()
              // ** List content START **
              // Open the file today.csv
              File inFile = new File("C:\\today.csv");
         // Create a file stream, wrapping the file
         FileReader fileReader = new FileReader(inFile);
         // Create a second wrapper,
    BufferedReader bufReader = new BufferedReader(fileReader);
         // Read in the first line...
         String s;
         s = bufReader.readLine();
         list.add(s);
         StringTokenizer st = new StringTokenizer(s);
         while (st.hasMoreTokens())
    System.out.println(st.nextToken());
         // ** List content END **
         

    I looked at your code and I thought, what's the question for, it's already adding lines to the list. And then I looked again and had the same thought. The third time I looked I noticed you didn't code the loop that read all the lines from the file. Silly me, I thought your question had something to do with linked lists.
    Anyway, to answer your real question, which is how do you read all the lines from a text file:while ((s = bufReader.readLine()) != null) {
      // do something with the String s here
      // such as adding it to a linked list
    }

  • New to Flash AS3, Need help with some weird issues, have .fla link attached...

    Basically, the buttons are not visible when siteplan_mc is replayeed after floorplan closes, but they still work. Most things are only working on double click for soe reason, tho I have them to function on click. and the back button only woorks on unit 1 floorplan, tho the code it the same for all floorplans. I have a feeling it has something to do with levels... but I really have no idea... hopefully someone can help!
    thanks in advance,
    Sarah
    http://www.30eastroosevelt.com/RRHA_SITE.fla

    There are at least two things you're doing wrong. You can't go to a frame where something exists for the first time, and immediately do something to it. Like in your playunit functios for example:
    gotoAndStop("unit1")
    unit1_mc.alpha = 1
    unit1_mc hasn't yet drawn itself on stage to have its alpha set, and so there's an error. That is something that was improved in Flash 10, so if you had set the Flash to publish for Flash 10 and not Flash 9, then the floor plans and the back buttons appears ok. It would sometimes work with double clicks because by the second time you clicked, the movieclip now existed. You might be able to do what you want by having all of the room units on frame 1 of the siteplan_mc, and then set their visible to true or false as you need them, instead of doing the gotoAndStop().
    The other problem is that you're trying to set listeners on the Back buttons that don't yet exist. Wait until you're on the frame where the buttons exists, and then set its listener for the mouse click.
    Other things you're doing could be improved too, but really you might want to get together with someone who has done more AS3, to help you become more familiar with how it works.

  • Help With Buttons In Adobe Flash CS4

    Hello, I am trying to create a satellite map where the user scrolls over each satellite button and displays an overlay and some information about the satellite.
    I have got a test site where you can look at what I am trying to do. (home.exetel.com.au/jasdemo)
    The first map has the satellites on the equator and the second one is the map with Overlays of where the satellites cover.
    When the user scrolls over each Yellow spot on the equator I want the overlays and information to be different for each button.
    At the moment I have a problem where you scroll over where the overlay sits and it still comes up which I don’t want only when you scroll over each yellow spot on the equator.
    Each spot on the maps have been converted to buttons, they all have a mouse over keyframe so the name of the satellite can show up.
    The First map on my test site works fine except no overlays for each spot and no information which I need.
    Hope I make sense...
    Please either email me or post me back if you need more information or if you have a solution to this..
    Thanks

    Im not sure what you mean sorry ill link my .fla file and you can see what I have done.
    Link to file
    http://www.mediafire.com/?z3ryzt0za0z
    Justin

  • Can someone help with this Actionscript 2.0 URL link problem

    Hi
    I've created a button that when clicked needs to jump to a
    frame, play the
    animation and then load a web page from the net.
    I've got the first bit alright with
    on(release) {
    gotoAndPlay(81);
    But what Actionscript 2 do I need to put in to jump to an URL
    after that?
    Any help would be appreciated.

    on the last frame of your animation, place a keyfame on the
    timeline in a layer called 'actions' then use the code:
    stop();
    getURL('
    http://www.thesite.com',
    '_self');

  • Help with Illustrator CS6 and Flash CS4

    Hello I use Illustrator CS6 and Flash CS4. When I export a drawing realized in Illustrator in the size(format) .sof Flash, this one is imported in the library(bookcase) of Flash CS4 but he(it) is created with a multitude of graphic symbols and symbols Bipmap. In the scene(stage) of Flash, the image is illegible it is floutée, apparently it is not a vectorial image. Thank you for your answer. Very cordially.
    Thank You !!!

    Sometimes a picture is better than a description. I had to use a translator to find out that floutee means blurred.
    Generally bitmaps (raster images) are not a strong suite for illustrator. It can do some things with them, just not as much as photoshop. Maybe if you could explain what you want to do with the symbol, then maybe we can give some ideas. Also by posting a screen shot, we might know of where there is a vector alternative.

  • Help with straight-up answer on CS4 Extended and Windows7 64-bit

    As a student, I just bought CS4 Extended (actually Design Premium Suite) last year. I can't buy 5 because my AGP video card is crapping and I must buy a whole new system - most of which seem to only offer Win7 64-bit. I haven't read anything that definitively states CS4 Extended (et al) will run on Win7 64-bit. Adobe contact people have all been vaguely yessy/no-ey maybe/so-ey on the subject - they just want to sell me CS5 and that's the end of it. I can't afford a new system *and* CS5. Will I be okay with CS4?
    Thank you very much.

    Photoshop CS4 will run without emulation or special compatibility settings on Windows 7 x64.
    -Noel

  • Help with I Web- Pages not showing links

    Hi,
    I was wondering if someone can help me out. I tried to publish a default page, just the welcome page and podcast page (all default). It published ok to the server but when I visited the site it doesnt show any link to the podcast page.
    When I tried to only publish the podcast page (Ive deleted the welcome screen), the podcast page doesnt even show the default video and sound i.e. no entries, however I can see it in Iweb and I can also subscribe to it from the Itune using RSS feed.
    Can someone Please Please help. Thanks

    It would be a lot easier to see what you are talking about and perhaps see what the problem is if you would provide your url.

  • Need help with creating a brush

    Hi guys,
    I wanted to ask for help with creating a brush (even a link to a tutorial will be goon enough ).
    I got this sample:
    I've created a brush from it, and i'm trying to get this kind of result:
    but it's only duplicates it and gives me this result:
    Can someone help me please understand what i need to define in order to make the brush behave like a continues brush instead of duplicate it?
    Thank you very much
    shlomit

    what you need to do is make a brush that looks like the tip of a brush. photoshop has several already but you can make your own that will be better.
    get a paintbrush and paint a spot kind of like what you did but dont paint a stroke. make it look kindof grungy. then make your brush from that, making sure to desaturate it and everything.
    EDIT:
    oh, and if you bring the fill down to like 10-20% your stroke will look better

  • Help with Layers

    Hi,
    I need some help with Layers? Here is a link to a simple page
    layout with 1 blue table, and 1 small green box. Both have a
    capital "I" on the left. The table was aligned to "center" in DW.
    http://sfrcreations.com/tbe.html
    When I built this page at home, on my tiny 12" monitor, the
    letters lined up over each other. When I look at it on larger
    monitors, they no longer line up. I did have a suspicion that this
    would happen due to my lack of knowledge of layers. So, my question
    is. How does one, with a centered table, get a layer to always
    appear where the designer wants it to no matter what the browser
    size is. For instance if you move the browser to different sizes,
    the blue box follows, but the layer stays where it is?
    Are the menus on this forum site and the Adobe site in
    general done by using layers? I ask, because if so, this site is
    centered, and the layers seem to adjust to any browser size.
    By the way, I am using Dreamweaver 8.
    Thanks for any help!

    8). I'm a shameless thief.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Nadia : **AdobeCommunityExpert**"
    <[email protected]> wrote
    in message news:[email protected]...
    > Took the words right out of my mouth - thanks Murray ;-)
    >
    > Nadia
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> The wrapper div is relatively positioned and auto
    centering with a fixed
    >> width. This has two consequences. Being auto
    centering is obvious. The
    >> relative positioning is not.
    >>
    >> When an element is relatively positioned, it takes
    its position from its
    >> location in the flow of the code. Since the wrapper
    is the first thing
    >> on the page (wrapping everything else) its position
    will be at the top of
    >> the page (unless you would apply top page margins,
    or top margins on the
    >> wrapper), and centered (since relatively positioned
    elements *can* move,
    >> unlike absolutely positioned elements). Now - since
    it is relatively
    >> positioned *IT* will serve as the point of reference
    for all internal
    >> absolutely positioned elements. That's because the
    definition of
    >> absolute positioning is that its position is
    calculated from the location
    >> of its closest positioned ancestore.
    >>
    >> Thus, as the relatively positioned wrapper 'floats'
    to the center of each
    >> different browser viewport, all internal absolutely
    positioned elements
    >> are forced to 'float' along with it (I use 'float'
    in quotes to indicate
    >> that I am NOT talking about CSS floats, which are
    very different
    >> creatures than what I am describing).
    >>
    >> That's why it works.
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "engmix" <[email protected]> wrote
    in message
    >> news:[email protected]...
    >>> Hi Nadia,
    >>> Could you please explain how you designed this
    layout with some degree
    >>> of
    >>> detail. I could easily cut and paste your
    layout, but I really want to
    >>> understand how you went about it. What did you
    start with and so on.
    >>> Hope this
    >>> isn't to much to ask?
    >>>
    >>> Thanks again!
    >>>
    >>
    >>
    >
    >

  • How can I contact Adobe support to get help with deactivating my cs4 license on a computer that I cannot access anymore?

    My mac laptop recently went kaput. So I got a new one and I restored my most recent time machine backup to it. The restore went well, but I am not unable to open my cs4 programs.
    When I try, I get a message that says "Licensing for this product has stopped working..." and it gives an error code 150:30
    I have tried looking for solutions myself, but nothing that I have seen on the forums has been able to resolve the issue. As far as I can tell, I think that I have to reinstall my master collection and reactivate it, however, in order to do that, I think that I will need to deactivate my old version, that is installed on my dead laptop.
    So, I need help with a couple things.
    1. I need to get in touch with adobe support in order to get my license deactivated. But the new adobe support system just basically sends me to the forums without providing any way to get in touch with an actually adobe support person directly.
    2. I think that I will need a link to download my install media because my original media came on a series of disks, but my new laptop does not have a disk drive.
    Thanks in advance for your help.
    Cheers,
    James

    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html
    OLDER previous versions http://www.adobe.com/downloads/other-downloads.html

  • Dreamweaver CS4 link help................

    I recently built a site on Dreamweaver CS4.  Here is the basic layout of what i did.  My site is based off of a template, i have set it up using both a spry menu bar (vertical) and using a image based nav bar (not at the same time, but tried both in my efforts to get rid of my problem).  I have run into the same issue with both nav options.  I linked all of my pages together and everything worked fine, until i decided to add a couple of extra pages and change a few things on the site.  when i try linking to these pages from the nav bar the links will not work.  The only links that will work are the original ones i set up.  Hope somone can help............
    Thank You

    shane,
    here is the code,  it is actually a hyperlink that is not working
    <div align="left">
          <h2 align="center"><u>Demand Industrial Packing</u></h2>
          <p><a href="packing_graph.html">Graphite</a><a href="packing_graph.html"></a></p>
          <p align="center"> </p>
          <p align="center"><a href="packing_ptfe.html">PTFE</a></p>
          <p> </p>
          <h2 align="center"> </h2>
          <p> </p>
        </div>
    thank you,
    jesse

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

Maybe you are looking for

  • Images turn greyscale when saving Postscript/PDF or Print Preview but text remains in colour?

    It is in colour, until I turn on Overprint preview, or try to save the booklet as a Postscript or PDF file. In print preview or when doing any of the above things, it goes to greyscale but the text and rectangles remain in colour? The images have bee

  • Problem after update to 10.9.3 rMBP - no login panel

    Hi, After update to 10.9.3 I don't run the rMBP. After press power button I pressed Cmd+S, then mount -uw / and cat /var/log/system.log. fsck ok What to do? I can't work. I must run MBP without reinstall OSX.

  • Expdb using Unix pipe command for max compression

    I think the answer to this is NO, but I thought I'd ask the questions anyway, in case some of the Oracle geniuses on this site have figured out a way around this. We have been using the existing exp/imp commands for years, due to the fact that we can

  • Anyone having trouble with full screen shortcut key?

    For no reason, the shortcut keys for full screen window quit working. They started working after a reboot once but just quit again and restart did not correct this time. Quite annoying, any fix for this?

  • Upgrading from old CS?

    I have CS on my 5 year old MacBook. I am not able to upload the software to my new MacBook Pro due to the newer processor.  If I want to upgrade the software, what should I buy?