Swf into link

Hi there,
I am trying to embed a link into a swf file so that when the
user clicks on the movie, they are directed to the main page. As of
now, I have drawn a rectangle over the entire movie, dropped the
alpha to 0%, converted it into a button, and then pasted
getURL(
http://www.shootingheadcowboys.com);
into the actionscript.
It doesn't seem to work and I get this error when I try to
test the file:
**Error** Scene=Scene 1, layer=Layer 10, frame=1:Line 1: ')'
or ',' expected
getURL(
http://www.shootingheadcowboys.com);
Total ActionScript Errors: 1 Reported Errors: 1
any help or ideas?...

> The result may be the same, but the "invisible button"
(defining the hit
> area only) is a better approach because alpha
transparency requires more
> processing...
For sure. Also has the advantage that you can actually *see*
the button in
Flash itself.
Remove '_spamkiller_' to mail

Similar Messages

  • Load SWF into empty movieClip?

    Hello,
    Could anyone please point me in the right direction to find
    out how to load an external SWF into an already existing movieClip
    instance that is already placed on the stage? This is the way I've
    always worked in AS2, but I can't find how to do it in AS3. Can
    anyone point me to an example where URLRequest works with a
    specified movieClip instance?
    Thank you!

    I understand why you might think I was ignoring your advice,
    but this isn't the case. You're expertise is much valued and
    respected.
    My purpose for continuing to experiment with loading into a
    movieClip was an attempt to find an easy way to layer the SWF
    behind other elements, but as you know, although it works for this
    purpose, it doesn't allow control of the loaded SWF from the main
    timeline. For others struggling to learn as I am, here's a link
    where I found the answer to my question above:
    http://www.hostingforum.ca/776586-as3-controlling-loaded-swf.html
    The transition to AS3 is not as easy for some as for others,
    and there are new concepts to understand.
    Don't know what "nvm" means... curious, but might be better
    off not knowing ;) Thanks again for all the help you offer to all
    of us who are struggling.

  • Embed SWF into blog

    Hope this is the right place to ask.  I am having trouble embedding a SWF file that I created into my blog page. I tried to upload it to sites.google.com but the direct link to the SWF file is hidden behind an https:// that I can't get rid of and other people can't see it. How can I embed a SWF into blogger?  Are there other free sites where you can simply upload files and link directly to them?

    I have also had this issue since www.megaswf.com started charging for hosting services.  The solution I found was to host the file on Google Sites as you mentioned, however I created a FileCabinet page, using a blank google template (you can google how to do this) and this enabled me to host the file.
    Once the file was hosted, I simple looked up an appropriate html code to embed into Blogger, such as the one here: http://www.free-video-hosting.net/embed-flash.php
    When you paste in the url from the google site, it creates a ton of numbers at the end of the URL.  You need to delete everything after the .swf of your filename.  You need to replace the words "video-filename.swf"  with your url both times that it appears.
    I hope you have solved the problem by now and hope this is able to help some others...

  • Swf into pdf

    Hi there
    This is my first post, so please be kind
    I I am trying to create a pdf with page curl as it is easier for clients to view a design than in a conventional pdf.
    I have been following the steps in this rather helpful video http://tv.adobe.com/watch/csinsider-design/indesign-creating-interactive-pdfs-with-page-tu rn-and-flash-animations/ and can create a working swf file.  I then place it in the document and export it as a pdf as per the instructions and the pdf it creates is blank  
    Has anyone had any success with this?  Any pointers/common errors/stupid user issues to be aware of.  I am new to In Design too, so maybe I am doing something wrong?
    If all else fails how do I contact the guy who made the video?
    Thanks

    You will need to use Acrobat to insert a Flash file (pagecurl swf) into a pdf and have it function properly. There are some alternatives, send the standalone swf, but this requires recipient to have Flash Player to view. Upload swf and html to a site, if you have access, then send a link.

  • Can I load a swf into my Flex app that loads other swf's?

    The code below loads an AS2 swf into my Flex mobile for IOS app and it works.  If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     initialize="init()">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.UIComponent;
                                  private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
                                  private var loader:Loader = new Loader();
                                  private var myComponent:UIComponent = new UIComponent; 
                                  private function init():void{
                                            myComponent.percentHeight = 100;
                                            myComponent.percentWidth = 100;
                                            loader.load(request);
                                            myComponent.addChild(loader);
                                            player.addElement(myComponent);
                        ]]>
              </fx:Script>
              <s:Group id="player"
                                   height="100%" width="100%"/>
    </s:Application>
    But if that AS2 swf loads other swf's, they don't load or display.  My FlashBuilder debugger reports no errors or security sand box violations.   I'm using the most elemental code in my AS2 swf so as to not cause problems.  This is it in its entirety:
    this.onLoad = function(){
              _root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
    The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app.  They also load and run fine if I cut out the AS2 swf and access directly from my Flex code.  So I know there isn't a path issue.  More likely not accessing the right layer in the AS2 swf from Flex or something.  Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console.  When run console just reports:
    [SWF] SwfMobile.swf - 2,639,761 bytes after decompression
    [SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
    Is there something inherently wrong with loading swf's that load other things?  Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue.  Just the act of embedding a swf that loads other things seems to be the problem.

    Ah, yes. Using an AVM1 SWF could prove difficult...
    I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
    Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
    That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
    But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
    *a few moments later*
    Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
    To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
    So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
    Keep me posted!

  • Insert SWF into PowerPoint 2010?

    When I wanted to insert a SWF into a PowerPoint 2007 presentation, I would use the More Controls dialog in PowerPoint's Developer tab to insert a Shockwave/Flash object. But in PowerPoint 2010, that control is missing from the dialog. Where did it go? When I click the Register Custom DLL, there's no obvious file to choose, either.
    Has anyone else run into this? I'm not looking for a way to convert a SWF into a video that can be embedded or using a 3rd-party plug-in or anything like that. I know how to do those things. I'm specifically looking to insert a SWF using only what's built into PowerPoint and Flash, so if anyone has info on it, please let me know!

    I have installed PowerPoint 2010 beta release on my machine. I was able to attach a SWF file to the presentation successfully. All options to insert a video are located on the Insert tab, in the Media group. Please refer to the link below on how to insert a flash movie to the presentation.
    http://office.microsoft.com/en-us/powerpoint-help/embed-a-video-in-your-presentation-HA010 374729.aspx?CTT=5&origin=HA010338310
    Also Microsoft have provided support for Flash in PowerPoint 2010. To find the list of supported formats please visit the following link:
    http://office.microsoft.com/en-us/powerpoint-help/compatible-audio-and-video-file-formats- in-powerpoint-2010-HA010336709.aspx?CTT=1

  • Loading external swf into Fla. not working

    I have created a Flash page that loads an external swf into
    it when you click a button. The swf loads but the actionscript
    assigned to the swf which scrolls images across does not work. When
    i open the swf in a browser window with the direct link to it the
    scroll works but inside the fla file the swf loads but the scroll
    buttons are not working at all. Would this be something in the
    actionscripting in the swf or fla file. Any advice would be greatly
    appreciated, thank you.

    var imageRequest:URLRequest = new URLRequest("my_gallery.swf");
    var imageLoader:Loader = new Loader();
    imageLoader.load(imageRequest);
    addChild(imageLoader);
    is as3 code.  that won't work in your as2 project.
    here's the equivalent in as2:
    this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
    targetMC.loadMovie("my_gallery.swf");

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • I'm having trouble with popups on my mac book pro constantly along with words on every page that have turned into links. how do i fix this???

    i have pop ups constantly from mackeeper and many other websites. i also have noticed that some words on all websites have turned into links... how do i fix the problem??

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • After adding a flashfile .swf into a dreamweaver page and trying to run it, I get an error message related to Javascript

    after adding a flashfile .swf into a dreamweaver page and trying to run it, I get an error message related to Javascript
    I have no trouble viewing other websites with (most likely), flashfiles.
    Here is the the PopUp message:
    "Adobe-warning Adobe Flash PLayer has stopped a potentrially unsafe operation......"

    In newer versions of Flash Pro, you can export to HTML5 Canvas, that's probably what they're talking about: Flash Professional Help | Creating and publishing an HTML5 Canvas document
    .FLV and .SWF are Flash formats that won't show up on iOS (or an ever increasing number of other mobile devices). Mobile Flash was killed by Adobe a couple years ago, so the number of mobile devices that can see it is dwindling rapidly, don't use those formats if you want your viewers on mobile devices to see your content.

  • I'm no longer able to successfully import SWFs into AE

    Hi and apologies for the NOOB question. I've been searching for hours for information on this situation but have had no luck.
    I've been using AE CS5 since last year, primarily to convert SWFs into high quality MOVs. Everything was working fine until bbout 3 weeks ago. Since thenm whenever I import a SWF, it displays  in the Project area as a 72px black box without any data regarding dimensions or file size.
    I can open older files and everything displays fine, but if I try to import a SWF (or even one that worked before), it shows up as the 72px black square.
    I'm guessing that it may have been an inadvertant upgrade of some sort that caused this, but have no idea how to solve it. I'm running AE 10.0.2.4 on a MacBook Pro (Intel Core 2 Duo) running OS 10.6.8.
    If anyone can help me resolve this problem, I'd greatly appreciate it.
    thanks,
    Mike

    Well, I've resolved the problem, kinda.
    I uninstalled Flash CS5 and AE CS5 last night, then reinstalled them. I then opened one of the AE files with the "junk" SWF in it, and nothing had changed.
    I then tried to import one of the questionalbe SWFs into AE on another machine and the same problem. But I could import a SWF made on that machine into AE (running on that system).
    Then I brought that SWF back to my system, and was able to successfully imported it into AE. I then imported one of the questionable SWFs made before the software reinstall, and got the 72px black square. So I opened the FLA made a new SWF and happened to move it to the desktop. I was able to successfully import that SWF.
    This is where it gets weird. I then made a new SWF and left it in the local folder with the FLA and tried to import it. black box again. I then drag-copied that SWF back to the desktop and I was able to import that.
    So at the moment, it seems to have something to do with the location of the SWF in relation to the AE file? That's the best that I can figure at the moment. Though I'm not sure why this would, or should, be a factor. I wish I had tried this before doing all the software uninstall/reinstalls… but I never would have thought that it could have been an issue.
    Thanks again for your prompt input yesterday.

  • Embedding Swf into to forum signature

    Hi, i have been trying to find this everywhere but no good.
    How can i embed swf into forum Posts and signatures ? Its my site s
    o i change settings etc.....is there some mod that should be
    installed on the forum ? Any help at all would be really
    appreciated =)
    J

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • Embedding swf into HTML+JS AIR app

    Hi
    I'm trying to embed swf into HTML+JS AIR app with no luck.
    First, I created flash library with this class in default package.
    package
         import mx.controls.Alert;
         public class Utilities
              public function Utilities()
                             //asdfasdf              
                   Alert.show("asdasd","");
    Then I compiled the project with Flash Builder and got library.swc as result. Then I extracted swf file.
    After this is added required code into my html:
    <html>
    <head>
        <script type="text/javascript" src="AIRAliases.js"></script>
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        <script type="text/javascript" src="jquery-1.6.2.js"></script>
        <script src="library.swf" type="application/x-shockwave-flash"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                alert('loaded');
                air.Introspector.logError("aaa");
                var v = new runtime.Utilities();
        </script>
    </head>
    <body>
    </body>
    </html>
    Then after I run application, I get error that result of expression is not constructor, function etc.
    Could you help me please?  Thanks in advance.
    Here is sample code:
    http://depositfiles.com/files/jztpnlb3a

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • Make photo grid objects into links?

    I would like to make the photos and captions in the photo grid into links. When I select a photo or a caption in the photo grid, the link inspector is grayed out and I can not click "enable hyperlink". Every thing works fine for images and text not in the photo grid. Is it possible to do this?

    That is the way photo page works, photo grid thumbnails can not be hyperlinked because they are rendered by javascript widget. But you can put a full URL in thumbnail caption and it is hyperlink as discussed in this thread:
    http://discussions.apple.com/thread.jspa?messageID=7358077&#7358077
    However, when you click on the thumbnail to go to detail view, the caption is no longer a hyperlink; because caption in detail view is rendered by javascript widget.
    That said, what you like to do is very possible but you need to have very good understanding how photo page widgets work and a lot of javascript. Here is one of my example:
    http://widgets.cyclosaurus.com/Lytebox/Photos.html
    All thumbnail image links in the page had been changed using javascript.
    Send them a feedback: http://www.apple.com/feedback/iweb.html

  • Loading an external SWF into movie?

    I am trying to laod an SWF into and empty movie clip using no
    human interaction. I.e the ovie laods once a certain point in the
    timeline is reached.
    Here is the code I have
    Can anyone help?

    i dont see how that code would work at all, to be honest...
    But, there are sooo many variations of a pre-loader, that it
    wouldnt surprise me if it did work.
    your formula is wrong. it should be...
    Math.round((loadedbytes/totalbytes) * 100)
    by your code i see that you are sending the playhead to the
    frame equal to the ammount loaded.
    In this case, you need the ammount loaded to be a WHOLE
    number, and not decimal numbers, as you can't say
    gotoAndPlay(5.22984749); for eg..
    ok this code should go on the first frame of the SWF you are
    loading into your main SWF.
    If its not there...it needs to be there.
    second: this pre-loader does what it's supposed to...but it
    doesnt specify the "who" part of the code.
    try thiese 2 alternatives..
    loadedbytes = this.getBytesLoaded();
    totalbytes = this.getBytesTotal();
    frame = int(loadedbytes/(totalbytes/100));
    if (frame > 100) {
    frame = 100;
    if (loadedbytes == totalbytes) {
    // this takes you to the next scene
    this.gotoAndPlay(5);
    OR
    this._lockroot = true;
    loadedbytes = _root.getBytesLoaded();
    totalbytes = _root.getBytesTotal();
    frame = int(loadedbytes/(totalbytes/100));
    if (frame > 100) {
    frame = 100;
    if (loadedbytes == totalbytes) {
    // this takes you to the next scene
    _root.gotoAndPlay(5);
    let me know how you go.

Maybe you are looking for

  • Time and Date not correct

    Hi to all. Does anybody know how to save your cmos settings to a floppy or CD? Is there a program that can assist with saving the cmos settings to floppy or CD? Is there anyway to perform saving the cmos settings within the BIOS to floppy or CD? I re

  • HT204053 why doesn't my 5s back up all my photo's and info from my 4s?

    why can I not back up all my info from my 4s to my 5s? It only backs up my contact lisy but no pix or any other information. And how do I log into my icloud account on my pc?

  • Can I use a dictionary in iPod?

    Hi. I'm from asia.(It's secret that where is my country :D) In my country, I can buy iPod Video, too. but I have a problem. I'm really curious. Is there a dictionary, designed for iPod? If I can use dictionary in iPod, I'll buy iPod immeadiately!!!!

  • Motion. Compressor and FCP

    Really pleased that FCP now supports 720/50p but the ProApps 2007/02 update has broken Motion, FCP and Comprossor. In Motion I can't open the Library or File Explorer. In FCP the Motion Master Templates won't let me drop clips into the drop zones, wh

  • Verizons best kept secret

    I purchased a new iPhone 6 plus when it first came out was on a waiting list to get one. after I received the phone in less than 2 weeks the phone died. T took the phone back to the Verizon store and they told me they would replace the phone but I ha