SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    swfobject adding a link not working

    Hi all I have added in this line
    Code:
    flashvars.targetURL = "http://www.mydomain.com/aff/index.php";
    to try and get a link on my flash animation. I use swf object. Everything works until I put the targetURL code in. How can I make it work? Thank you



    Code:
    <script type="text/javascript" src="/js/swfobject.js"></script>
    		<script type="text/javascript">
    			var flashvars = {};
    		var attributes = {};
    			
    			
    			var params = {
    			  allowfullscreen: "true"
    			};
    			 flashvars.targetURL = "http://www.mydomain.com/aff/index.php";
    
    			swfobject.embedSWF("/flash/smallpeq.swf", "myContent", "200", "110", "9.0.0.0","expressInstall.swf", flashvars, params, attributes);
    		</script>

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2011
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you make the movie or do you have the source? why not add it within the movie itself?

    you can access just about anything you need outside of the movie from within it if you need it to be dynamic

    basically...
    Code:
    ImALink.onRelease=function(){ getURL("yourtargeturl"); }

  3. #3
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I'll do that

  4. #4
    Non-Member
    Join Date
    Jan 2008
    Location
    N43 44.4824', W079 13.9408
    Posts
    2,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you not preview alternative content within the <object> tag, from SWFObject without completely removing flash ?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •