Publishing a flash with AS3.0 on website does not work

Okay, I'm finally at the end of my flash card. Here's the whole code.
//import classes
import com.greensock.TweenLite;
import com.greensock.easing.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
//end of importing
//start of sound section is for sound
var cssLoader:URLLoader;
var css:StyleSheet;
var soundReq:URLRequest=new URLRequest("audioFiles/PaukenBrumfiel_AngelsOnHigh.mp3");
var sound:Sound = new Sound();
sound.load(soundReq);
sound.addEventListener(Event.COMPLETE, onComplete);
//end of sound section
//Loading external texts
var weiss:Font = new Weiss();
var weissBold:Font = new WeissBolder18();
var weissBolder:Font = new WeissBolder();
var slideXTween:Tween;
var txtAlphaTween:Tween;
var txtNextText:Tween;
var txtContainer:Sprite;
var txtField:TextField = new TextField();
var myTxtField:TextField = new TextField();
var txtFldwebImages:TextField = new TextField();
var textRequest:URLRequest=new URLRequest("happyHoliday.txt");
var textLoad:URLLoader = new URLLoader();
var txtFormat:TextFormat = new TextFormat();
var myLinkFormat:TextFormat = new TextFormat();
var strLink:String;
var numXPos:Number;
var numYPos:Number;
//end of loading external texts
function onComplete(event:Event):void {
    sound.play();
function textReady(event:Event):void {
    //txtFormat.font= weiss.fontName;
    txtFormat.color=0x000066;
    txtFormat.size=24;
    //txtField.x = stage.stageWidth;
    //txtField.width = 800;
    txtField.autoSize=TextFieldAutoSize.LEFT;
    //txtField.height = txtField.autoSize
    txtField.wordWrap=false;
    txtField.text=event.target.data;
    txtField.setTextFormat(txtFormat);
    //txtField.y = 350;
    txtField.embedFonts=true;
textLoad.load(textRequest);
txtFormat.font= weiss.fontName;
textLoad.addEventListener(Event.COMPLETE, textReady);
txtField.x=stage.stageWidth;
addChild(txtField);
txtField.y=350;
TweenLite.to(txtField, 40, {x:-stage.stageWidth*2.25, ease:Linear.easeNone, delay:0.5, onComplete:Inspiration});
function Inspiration():void {
    txtFormat.font= weissBolder.fontName;
    textLoad.load(new URLRequest("inspiration.txt"));
    txtField.x=130;
    txtField.y=330;
    txtField.alpha=0;
    TweenLite.to(txtField, 5, {alpha:1, onComplete:GoogleFunc});
function GoogleFunc():void {
    //create and initialize css
    addChild(myTxtField);
    strLink = "<a href='http://www.google.com/' target='_blank'>Google</a>";
    numXPos = 180;
    numYPos = 370;
    var myCSS:StyleSheet = new StyleSheet();
    myCSS.setStyle("a:link", {color:'#000066',textDecoration:'none'});
    myCSS.setStyle("a:hover", {color:'#FF6600',textDecoration:'underline'});
    txtFormat.font = weissBold.fontName;
    //txtFormat.color=0x000066;
    txtFormat.size=20;
    //txtFormat.bold = true;
    myTxtField.setTextFormat(txtFormat);
    myTxtField.defaultTextFormat=txtFormat;
    myTxtField.styleSheet = myCSS; // Linking CSS to TextField
    myTxtField.htmlText="";
    myTxtField.htmlText=strLink;
    myTxtField.wordWrap=false;
    //myTxtField.embedFonts = true;
    myTxtField.width = strLink.length*2;
    myTxtField.x=numXPos;
    myTxtField.y=numYPos;
    //trace("Third txtField.y: " + txtField.y);
    myTxtField.alpha=0;
    TweenLite.to(myTxtField, 1, {alpha:1, onComplete:webImages});
    //trace("tween done");
function webImages():void {
    addChild(txtFldwebImages);
    var myCSS:StyleSheet = new StyleSheet();
    myCSS.setStyle("a:link", {fontsize:'20',color:'#000066',textDecoration:'none'});
    myCSS.setStyle("a:hover", {fontsize:'20',color:'#FF6600',textDecoration:'underline'});
    txtFormat.font = weissBold.fontName;
    //txtFormat.color=0x000066;
    txtFormat.size=20;
    //txtFormat.bold = true;
    txtFldwebImages.setTextFormat(txtFormat);
    txtFldwebImages.defaultTextFormat=txtFormat;
    txtFldwebImages.styleSheet = myCSS; // Linking CSS to TextField
    txtFldwebImages.htmlText = "";
    txtFldwebImages.htmlText="<a href='http://www.google.com/webImages/' target='_blank'>Google Images</a>";
    txtFldwebImages.wordWrap=false;
    //myTxtField.embedFonts = true;
    txtFldwebImages.width = 300;
    txtFldwebImages.x=300;
    txtFldwebImages.y=370;
    txtFldwebImages.alpha=0;
    TweenLite.to(txtFldwebImages, 1, {alpha:1});
//end of loading external texts
Okay, the problem is when I publish the .swf files and put it in an html or .aspx page, it does not work. The audio is not there and a few others things ar enot working. However, it does work if I click on the.html file that Flash created during the publication.
Here are the folder structions:
www.mysite.com/myFlashPage.aspx
www.mysite.com/flashFileFolder/
www.mysite.com/flashFileFolder/audioFiles/
So, the myFlashPage.aspx containsthe myFlash.swf file that is inside the flashFileFolder. For some reason, it does not work. Any suggestion is much appreciated.

The .html file does work if I publish it into the same folder as I created the Flash project. However, when I publish the
flash .swf to my web site folder (mapped), it's no longer working. The mapped web site drive structher are as follows:
D:\Mysite\ contains the .html file
D:\Mysite\flashFileFolder\ contains the .swf file
D:\Mysite\flashFileFolder\audioFiles contains the PaukenBrumfiel_AngelsOnHigh.mp3 file
D:\Mysite\flashFileFolder\greensock-tweening-platform-as3 contains all the tweenlite files
The .html file does not work either. What else do I need to change?

Similar Messages

  • Flash with full path link does not work, does anyone know how?

    Hey guys do not think many people now needed it, but to kill me and I can not.
    I need the following: Place a swf with the full path of another server.
    Until then beauty is only put http://www.outrodominio.com.br/flash/arquivo.swf right?
    to ai beauty, opens td bem ... easy ....
    More link is broken
    If anyone can help.
    anyway...thanks!

    Cute site! I like it!
    Regarding your links at the top of the page. Things to try:
    1. In the Inspector Page tab, try adjusting the header height value to 0.
    2. Move your links/buttons down the page slightly.
    3. Instead of making the text hyperlinks, maybe overlay a 1% transparent rectangular shape over the whole button to make your button a "hotspot" hyperlink.
    I think the problem right now is that there is a reserved area at the top of the template pages where the navigation menu usually lives. For some reason links placed here sometimes to not work even if the navigation menu is turned off. Seems to be an iWeb bug.
    Give the above suggestions a try. Any one of them could help. Let me know what happens! Good luck.

  • Adobe photoshop cs2 download on adobe website does not work-  the serial number does not work?

    photoshop cs2 download on adobe website does not work - the serial number given isn't recognised when you enter it when trying to install. the live chat at adobe cannot help and suggested that I may find the answer here. Can anyone help with this?

    Adobe has decommissioned the CS2 activation servers, so your old serial number is no longer usable.
    If you download the special non-activating version of CS2 that Adobe has made available to licensed CS2 users, you MUST also use the new serial number provided by Adobe on that download page:
    https://www.adobe.com/cfusion/entitlement/index.cfm?e=cs2_downloads
    That S/N does work.  I double checked.

  • TS1292 How do I redeem a card with a code that does not work?  The support store takes me in circles?

    Help and support sends you in circles and does not help redeem a card with a code that does not work.

    Well, they have a website, but here is a link to their information about unlocking iPhones.
    http://www.att.com/esupport/article.jsp?sid=KB414532&cv=820#fbid=6d7EKuCF_dr
    You may not qualify for an unlock though.

  • Hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?

    Have you changed the system voice to an English one in system preferences?

  • [svn:fx-trunk] 5019: ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/ AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spa

    Revision: 5019
    Author: [email protected]
    Date: 2009-02-19 13:17:21 -0800 (Thu, 19 Feb 2009)
    Log Message:
    ASDoc updates to indicate that some Halo containers do not work with the Spark equiv (ControlBar does not work with Spark Panel/AppControlBar does not work with Spark Application), and indicate that Canvas, Box, Tile, Panel have Spark equivs
    QE Notes: None
    Doc Notes: None
    Bugs: -
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Accordion.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Box.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Canvas.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/HBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Panel.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/TabNavigator.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/Tile.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/VBox.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ViewStack.as

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

  • You must have connected the Time Capsule with a router that does not work with my direct cable from my ISP

    you must have connected the Time Capsule with a router that does not work with my direct cable from my ISP

    I tried to answer in your other post.. please stick to one thread ..
    What method of internet do you have.. is this fibre install.. if so the TC should just plug in and use dhcp in router mode.. press and hold the reset and it will go back to router mode by default.

  • OBI 11g Enterprise Manager (EM Website) does not work with IE8 (v8.0.6)

    I am unable to login to the 11g EM website on Windows x64 2003 server. I get the below error:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0)
    Timestamp: Wed, 6 Oct 2010 10:41:18 UTC
    Message: Object doesn't support this property or method
    Line: 4354
    Char: 1
    Code: 0
    URI: http://YZU-1:7001/em/afr/partition/ie/default/opt/boot-11.1.1.3.0-0084.js
    Any help is appreciated.
    Thanks
    B

    Hi,
    OBIEE 11g does not work with IE8.
    Check this......What's wrong in OBIEE 11g
    Regards,
    Srikanth

  • Flash video with cuepoints and skin does not work

    Hi guys, i created a SWF file based on the template available
    here
    http://www.adobe.com/devnet/flash/articles/vidtemplate_mediapreso_04.html
    Basically the movie has navigation buttons on the left side
    of the video display to enable users to jump to predefined sections
    (topics) within the video. It also has the video controls under the
    video.
    I imported my video as well as the sample provided in the
    webpage above and the clip does not work in Presenter. I can see
    the skin but the buttons flash and we cannot see the video. I'm not
    a Flash or Presenter expert. Just wondering if anyone can help
    troubleshoot this. We would really like to embed a swf with
    navigation buttons into Presenter. is this possible? ideas
    appreciated.
    Thanks

    I'm sure someone will post a workaround for you (there are about 4 or 5 different workarounds people have posted at various times). But I wanted to thank you for your post. My experience as a very recent PC to Mac convert has been frustrating, mostly due to Keynote. When I first started using Keynote I was amazed at what it could do. I spent a lot of time working on a project (several days) only to spend another several days trying to figure out why it wouldn't Export. I finally logged onto the forums and see that people have been posting about this problem for MONTHS. It's been very frustrating to say the least and is a major flaw.
    Your note is the first indication I received that Apple is truly working on this issue. I feel for people who posted months ago waiting for an update every day. Like them, I sent a support email (not answered).Your note shows both hope and progress. Apple could really convert a lot of people if it got software like Keynote to work correctly. I'm still blown away by its power. But it's like owning a Ferrari with now wheels. It has a lot of power, but there's nothing you can do with it until you get wheels.
    Cheers!

  • Linking to a website does not work

    I am new to captivate and am having a problem. On one of my slides, I have a link to a website. I placed a click box over the text and set the action to Open URL or file and specified the URL to open in a new window.
    When I publish the project, the link works when I am in the published PDF file but it does not work when I am in the published SWF or HTM file. Can someone give me some advice on what I may be doing wrong? IF this has been addresssed elsewhere, I am sorry for the duplication. I have searched and could not find anything.
    Thanks in advance.

    Hi there
    "Whitelisting" is a process that is used to identify something as being a "safe" or "trusted" source. I believe what is meant in this context is that you need to add the location to the trusted locations list in the Flash Player as described in the link below:
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Centre Page with wrapper div tag does not work

    Hi there,
    I am trying to centre the content of my website with a 'wrapper' div tag but the div tag just does not seem to have any effect on the layout at all.
    Here is how I do it:
    1.) Select all the html in the body.
    2.) Creating 'wrapper' div tag --> width: 768, left & right margin: auto, bottom & top margin: 0
    I found this in an adobe tutorial and it sounds logical to me, but somehow it just does not work.
    I hope someone can help me out.
    Thanks a lot!
    Anja

    You need three basic things to center a page.
    1) A valid X/HTML document type.  This declaration always appears in the first line of HTML code. The good news is that DW does this for you when you create a new page.  The bad news is that some other apps such as graphics editors don't always do this for you.  If your page has no document type, hit File > Convert > choose one that fits your coding skills.
    2) You need a container width in pixels or percentages.  Most often this is applied to a #wrapper but it can be applied to your body.
    3) Finally, a margin-left and margin-right of auto (browser default).
    CSS:
    body {
    width: 900px;
    margin: 0 auto; /*centers page*/
    text-align:center; /*centers older browsers*/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Converting .docx with chart to .pdf does not work correctly

    I have a docx file with an excel chart and a hyperlink in it. The chart is a line chart with data makers on the lines. One set of data markers are circles. The chart is simply copied from excel and pasted into word. I am using word and excel 2007 and adobe acrobat 8 standard on windows XP SP2. all software is fully updated.
    When I convert this doxc file to pdf, the circle data markers from the chart are greatly enlarged and obscure the text and chart. The hyperlink works fine. This occurs when I use the acrobat plug-in within word to create a "quick and simple" pdf. this also occurs when I open adobe and choose create pdf from file. I cannot use the word plug-in to create a "fully functional" pdf. This feature simply does not work.
    When I convert the file to a pdf using the adobe printer/distiller, the circle data markers on the chart are fine, but the hyperlink no longer functions.
    I can copy the chart from excel and paste it into powerpoint and publisher and the conversion to pdf works fine. i can also create a pdf of the chart from excel to pdf without problems, so it appears to be a word to pdf issue.

    Thanks Bill
    Perhaps I was not clear enough though. I am not really concerned with the hyperlinks.
    The main problem is the excel chart. When I use PDF Maker the circle data markers from the chart are greatly enlarged and obscure the text and chart. The only way to make the chart look normal is to use the distiller, which kills the hyperlinks. I would rather use PDF Maker, keep the functionality of the hyperlinks, and have the excel chart look normal. The PDF Maker distorts the circle data markers on the chart and makes the page unreadable. That is what I need to fix.
    I realize the simple solution is to use something other that circles for data makers, but I have a lot of charts and don't want to spend the time remaking them all.

  • Adobe Flash v11.2.202.233 does not work

    hi,
    We are experiencing a problem with adobe flash and the managed add ons in IE9.
    OS - Win7 64bit
    Browser - IE9
    I install flash across our company using GPO startup scripts and the MSI for IE. Flash has always been successfully deployed by this method.
    Now, when I recently updated to the latest version of flash, initially flash installs fine and can be seen in the managed add-ons within IE9 (Shockwave Flash Object). BUT upon rebooting the pc flash no longer appears in the managed addons of  IE9 but it is still installed, for this can be viewed through add/remove programs.
    Therefore no flash content can be viewed after the reboot of the Win7 pc.
    Active X filtering is turned off.
    We also updated to this flash version for our xp 32bit pc's using the 32bit flash msi and have no problems after a reboot.
    Any advice. ?

    We are also having a similar problem with 11.2.202.233.
    Environment is Windows 7, IE 9 and Firefox 12 on a new pc.
    I have tried everything including a 'clean' install as described elsewhere on Adobe.
    There are some differences. 
    After unchecking 'Active X Filtering' and using Windows Media Center to force the download of the Netflix app, we
    can watch Netflix video on IE 9.  No other video site works, instead you can see the 'Movie not downloaded' message
    when you right click.  Strangely, it correctly identifies the Flash version.  Even more strangely if I click on 'Check Now' in the Flash Player Settings Manager, the validation video runs.  I will note that the URL launched from that button uses HTTPS.  If I go to the same page with HTTP the video does not run.
    If I CHECK 'Active X Filtering', Youtube will complain that I should update, but I can watch video.  No other site works, including Netflix and the https://www.adobe.com/software/flash/about link.
    We have the CA security suite and there are no complaints about blocked sites etc. in the firewall logs.
    Perhaps Adobe should have some way to log what the active x control is seeing?

  • How can i make a soft return with pages shift enter does not work!

    how can i make a soft return with pages shift plus enter does not work!!

    On full keyboards with a numeric keypad, the key above the right shift is "return" & the one on the numeric section is "enter." On a Mac (or Apple IIgs ) they do have separate functions. On the "mini" keyboards, both names are on the same key, but "enter" is written in smaller letters. I'll have to check to see how that works on another Mac later today.

  • I have a license for CS3 Design Premium but no disk. Where exactly can I download the software? The solution offered on the Adobe website does not work ...

    I have a license for CS3 Design Premium but no disk. Where exactly can I download the software? The solution offered on the Adobe website (CS3-Produkte herunterladen) does not work ...

    If the page you linked does not work then it should so what happens when you try?  It is possible that it might be a simple matter of you enabling cookies or trying another web browser.
    You can also try to download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS3 and CS4: http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html

Maybe you are looking for