Swf integration

The problem.
I am using actionscript 3 to pull swfs into a main fla.  For some reason when I do this it causes the animation in the main fla to loop continually.  I've tried resolving this issue for two weeks now and time is running out.  Because of the sensitivity of this project, I can not post it for download.  If someone wants to help me with this you may send your email address to [email protected] and I will forward you the files.  Please title the subject line. Actionscript 3 resolution. Thank you in advance.

Rob,
   Thanks for that suggestion.  After looking at the error report I discovered that a closing bracket was missing.  The swfs are being imported correctly without the looping.  HOWEVER, my new issues are; I have a song playing when the main movie plays. The bottom section is for the holder that is dynamically drawing the external swfs in.  The first one is a video(managers) which automatically plays and when you click to remove that swf and play another it does but the sound from the video(managers) continues to play until the end. And if you click the managers button again it plays another instance of the video.  Therefore the issues which need to be resolved are 1.> Get the song to fade out (stop) when the video plays. 2.> Stop the video from automatically playing until button is clicked and make it so that if you clicked the managers button again while the video is playing that it doesn't play another instance of the video.  3.> when a different button is clicked to play another swf make the sound from the video of the first swf stop as well.  I understand this is a tall order.  Any help or pointing me in the direction of a solution will be greatly appreciated.   Here is the complete code.
var audio:Sound = new Sound();
var req:URLRequest = new URLRequest("American Pie.mp3");
audio.load(req);
audio.play();
//var channel:SoundChannel= new SoundChannel();
//URL of the external image content
var myRequest:URLRequest=new URLRequest("displacement.swf");
//Create a new Loader to load the image
var loader:Loader = new Loader()
//Load the external image into the Loader
loader.load(myRequest)
// Listen when the loading of image is completed
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadTheImage);
function loadTheImage(evt:Event):void {
//Display the Loader on the MainTimeline
Placed empty MovieClip "holder_mc" on stage
holder_mc.addChild(loader)
//This is the video and swfs I want to be on top of everything
var Xpos:Number = 872;
var Ypos:Number = 128;
var swf:MovieClip;
var lLoader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/managers.swf");
lLoader.load(defaultSWF);
lLoader.x = Xpos;
lLoader.y = Ypos;
addChild(lLoader);
// Btns Universal function
function btnClick(event:MouseEvent):void {
removeChild(lLoader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
lLoader.load(newSWFRequest);
lLoader.x = Xpos;
    lLoader.y = Ypos;
addChild(lLoader);
// Btn listeners
managers.addEventListener(MouseEvent.CLICK, btnClick);
stingray.addEventListener(MouseEvent.CLICK, btnClick);
demon.addEventListener(MouseEvent.CLICK, btnClick);
strongman.addEventListener(MouseEvent.CLICK, btnClick);

Similar Messages

  • Actionscript / swf integration with Adobe Presenter

    I need to do some Actionscript / swf integration with Adobe Presenter content.
    Is there any way to access information about current slide nr., total number of slides and "end of presentation" information from swf(Actionscript 3.0) inserted into Adobe Presenter?
    I am using Adobe Presenter 8 with Adobe Connect 8.

    First, the best place is probably the Presenter forum, which somewhat curiously is under the Connect umbrella:
    http://forums.adobe.com/community/connectpro/connectpro_presenter
    Out of curiousity, why are you using AICC? Because the content is on a different domain?
    To the point, it's great to have a logging or debugging tool for these sort of things to view the communication between the LMS and the lesson. Perhaps the lesson is sending the 'completed' status but also sending some other value that the LMS is using to change the status back to incomplete?
    My first suggestion would be to try the lesson in a tool like TestTrack...but I don't think that handles AICC. Does the Saba LMS have any kind of debugger or logging tool you can use? You really need to see if the lesson is sending the status back to the LMS as you suspect it should. If it IS, then the issue lies with the LMS and how it's interpreting that result. If it's NOT, then you can then perhaps figure out what to adjust in the lesson.
    In general, just play with the settings. If it's set to Complete/Incomplete and has a Mastery Score, try NOT setting the Mastery Score... And other such combinations.
    I hope the folks in the Connect/Presenter forum can provide more insight.
    Erik

  • SWF integration into Safari

    Hello All,
    I have a problem with the way my page is displayed in Safari:
    I have a few DIVs, some overlapping others.
    One of these DIV is in the background (lowest Z-index) and contains an SWF. (a kind of liquid picture/video in Flash)
    My problem is :
    In all common browsers it's fine, the website is displayed correctly, with DIVs overlapping or being overlapped according to their Z-Index.
    Though, in Safari, the DIV containing the SWF always show on the foreground and hide all other DIVs, whatever the Z-index attributed to all the DIVs.
    Would you have an idea how to fix this ?
    Many Thanks
    Mike

    Hi Ned,
    Thanks for the reply.
    Though I have tried this already, my code is already showing :
    <param name="wmode" value="transparent" />
    I changed from "opaque" in the past but cannot see any difference ...
    I was wondering if I should use that famous library that takes care of integrating SWF properly (no longer remember the name of that library)
    Could this also be related to the containing div being positionned as "absolute" with width=100% and height=100% ?
    I use absolute but I may use "static" and "float" instead maybe. (I have never been able to spot the difference between "absolute" and "float")

  • Error after Integrating of Xcelsius SWF into Enterprise Portal

    Hi all,
    I integrated Xcelsius SWF file into portal using Business Objects Integration Kit - iView Template. I can see dashboard in Portal. Its working fine. I have Refresh Button in the Dashboard.  If I refresh the dashboard , it shows cannot access External Data. Failed to get the document information(LO26315).
    How can I resolve? Help me in this regard.
    I am using BOE 3.1 and LO 3.1.
    Thanks & Regards,
    Hemalatha J

    With a Live Office connection, you would typically use the URL iView and the opendocument URL to integrate the dashboard into the Enterprise Portal. There are existing posts on this forum about opendocument and Xcelsius dashboards.
    Obviously you need to make sure the dashboard refreshes fine outside of the portal, for instance from Infoview.
    Then, you need to look at the cross domain constraints : have both Infoview and Enterprise Portal in the same domain or use crossdomain.xml. They are lots of posts on this forum about that too.

  • [svn] 4023: Interim check-in for FXG as SWF graphics primitives, integrating Kaushal' s prototype of programmatic linkage of TextGraphic instances with the appropriate parent DefineSprite in the SWF display list .

    Revision: 4023
    Author: [email protected]
    Date: 2008-11-05 11:10:38 -0800 (Wed, 05 Nov 2008)
    Log Message:
    Interim check-in for FXG as SWF graphics primitives, integrating Kaushal's prototype of programmatic linkage of TextGraphic instances with the appropriate parent DefineSprite in the SWF display list. This change temporarily adds awareness to [Embed] to allow sprites to be constructed from .fxg files.
    QA: No
    Doc: No
    Checkintests: Pass
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Transcoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/AbstractTextNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GraphicContentNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GraphicNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GroupDefinitionNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GroupNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/TextGraphicNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/text/ParagraphNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/text/TextNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/sax/FXGSAXScanner.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TypeHelper.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineSprite.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FXGTranscoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/AbstractFXGGraphics.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/SpriteClass.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TextFXGGraphics.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TextHelper.java
    Removed Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/FXGSWFGraphics.java

  • Integrating a link to .swf (on same computer) from powerpoint?

    This is a bit "off base," but I thought someone here may be able to help. I am working on some interactive animations for an upcoming meeting. Ideally, I would love to be able to have an interactive slide within powerpoint, however – don't think that is even possible.
    That being said, I would like to place a link within a powerpoint presentation, so that when you click it, it launches a browser window and displays the .swf – preferably not online, just within a browser window.
    Currently, when I try this, it is trying to open up flash to read the .swf, anyone have any experience with something like this?

    I don't know what's involved or limited with embedding Flash in a PP presentation... If it were mine to conquer, I'd probably avoid PP and just use Flash for the presentation.
    If you want to link to a browser then you need to link to an html web page containing the Flash content, not an swf file.  That will trigger opening a browser.  If you target the link at the swf file it should open the Flash Player, not the Flash editing software, though it may kick and scream along the way regarding security issues.

  • Integrating a .mov file inside a swf?

    Just wondering how I could integrate a .mov or even .wmv
    inside of a flash sile... it's integrated, not in it but through
    it... externaly, like a .flv would work. Any ideas?
    Thanks for all your time and effort.

    hey! hang on. see our website www.lumenphon.com. lots of
    streaming lowband/ broadband video in gallery section.
    how make a video in Flash 7-
    step1: open a flash document
    step2: File > import > import to Library
    step3: choose ur mov file
    step4: u see the video import dialog
    step5: say next
    step6: click on compression profile > select quality 80
    step7: import the video
    step8: go to library > choose the video and save as FLV
    step 9: use the external video with media display component
    good luck and dont give up. flash video give terrific control
    and cross platform independence

  • Help integrating swf in blogger

    Hello, and sorry if this is not the correct place to post this question but i am new. if not please remove to the correct forum.
    I have this blogger site [link removed by moderator] and i have already managed to add some flash games. The problem is i dont know how to add a flash introduction to play a small video automatically. Is it possible to do it as for example in this site:  [links removed by moderator]
    Thank you in advance for your kind reply

    That's the defaul behaviour of SWF files, you could open that file in
    another tab or page.

  • Adobe Captivate / External Files of integrated SWF

    I have an Captivate File that contains an SWF, that loads an external XML File. The SWF works perfect / AS3 and the files are in the correct folder.
    However, Captivate does not link to the relative path, that is given by the swf, but to a very strange temporary path in my documents.../local.../temp...:
    Error #2044: ioError unverarbeitet. text=Error #2032: Stream-Fehler. URL: file:///C|/DOKUME%7E1/cpe/LOKALE%7E1/Temp/cp4Temp/%7ECa292/config.xml
        at test_xml()
    This is somewhat spectacular, since I didn't thought that captivate could top the main bug of not providing right-click opportunities on local machines without setting a trusted path (this file goes to customers...).
    Whatever: I would be very thankful if someone would provide me with a solution for this bug, since I'm running towards a deadline and captivate confuses me with ridicoulous errors on problems that I would have never imagined of.

    Hi again
    All of it boils down to security. Thanks hackers! NOT!!!
    Basically, if you will be deploying on CD-ROM, you need to trick Flash into thinking it is running from a server. This is easily overcome by using a freeware application called Server2Go.
    Additionally, you need to ensure that the latest patch has been applied to Captivate, as it resolves some linking issues.
    The process below should work to install Server2Go on CD-ROM
    Download the Server2Go software from http://www.server2go-web.de/download/download.html
    Choose the Micro package
    This should result in receiving a zip file named distribute_apache1.3_micro.zip
    Unzip the contents of the zip file to the root of your hard drive ( C:\ )
    This should create a folder named distribute_apache1.3_micro
    Open this folder and delete the following files and folders inside:
    Files:
    splash.bmp
    logo.ico
    readme.txt
    Folders:
    dlls
    dbdir
    cgi-bin
    Open the htdocs folder and delete all files and folders inside.
    Copy all of your Captivate output files to the htdocs folder
    Rename the HTML page Captivate created to index.htm
    Copy the contents of the distribute_apache1.3_micro folder to the CD-ROM and test!
    Hopefully this helps! Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Integrating SWF built using SDK 4.1 into application built using SDK 4.5

    Did anyone integrate SWF built using Flex sdk 4.1 into SWF built using Flex SDK 4.5 using SWFLoader?
    I am facing some issues while doing so. Can someone please point me to the right direction.

    See past threads or my blog about the ”Marshall Plan”
    Alex Harui
    Flex SDK Team
    Adobe Systems, Inc.
    http://blogs.adobe.com/aharui

  • Newbie question: integrating SWF, movie files

    Hi all!
    Thanks in advance for your help--I'm trying to use Flash to
    integrate several files into a slick screencast. Basically, I need
    to use Flash to play a movie file, then play a SWF file, then
    another movie file and be done. I was hoping to also put in some
    text and animation (PowerPoint-like, not too intense) in between
    those things, but can jettison that if that's difficult.
    I know the import command does wonders with one video, but
    I'm trying to use multiple types of files including SWFs, which is
    throwing me off a bit. I realize I'm being incompetent here, but if
    anyone has any suggestions, I'd really appreciate it. And this goes
    without saying, but I don't mind coding at all.

    I strongly recommend you to use Compressor. It is easy to use and there a lot  of presets.

  • Integrating swf with dreamweaver

    I created a swf file to replace my current static background image (page properties) in dreamweaver (the files are the same dimensions). When I try to select it, the swf file is grayed out. So I deleted the background image and inserted the flash swf. When I preview it in my browser (safari) it doesn't work. I like the position of the static file and would like the swf to stay in the same place. Please Help!!!!

    Hello oliver(?),
    using your source code in my DW I got these messages:
    what means something like: "With the current document encoding can not be stored correctly all characters in the document. It is recommended to change the encoding in UΤF-8 or another format that supports the special characters in this document."
    and:
    what means:
    "Copy Dependent Files:
    On this page and an object behavior is used which requires supporting files. The following files have been copied to your Iokale page. You have to upload these files to the server, so that the object or behavior does operate properly.
    Scipts / expressInstall.swf
    Scipts / swfobject_modified.js"
    Please control whether you have uploaded all the necessary files and maybe the coding.
    Good luck!
    Hans-Günter

  • Integrating Flash swf or html with Dreamweaver

    I created a swf file to replace my current static background image (page properties) in dreamweaver (the files are the same dimensions). When I try to select it, the swf file is grayed out. So I deleted the background image and inserted the flash swf with a transparent bkgd. When I preview it in my browser (safari) it doesn't work. I like the position of the static file and would like the swf to stay in the same place to compensate for different user monitor sizes. Please Help!!!!
    The current/live site is http://www.sistercirclemedina.com you will see the static image (header_11_01.jpg). I added the revised homepage (index.html) to my site you can find that at http://www.481gddr.com/sistercircle/index.html  The script files required are in a script folder on the hosting server. I also inserted the swf into a completely new dreamweaver document and it does not work.
    If the swf file won't work...why? Should I try to use the js and input that into the dreamweaver code?
    Thank you so much for your assistance and time.

    Check, if all the paths in your projects are "relative" paths.
    If you drag&drop files or link in dreamweaver, DW will most likely use absolute paths.
    Then when you upload  your files, some of this paths won`t exist.
    I also inserted the swf into a completely new dreamweaver document and it does not work.
    You cant really "insert" a swf into a dreamweaver document.
    DW in this case does nothing else then telling the browser (via the <flash> tag where to find the swf. that has to go into a <div>

  • Integrating Flex created SWF into Flash project

    Hi all,
    Hopefully some one here will be able to help. I am using
    Flash CS4 so I was hoping this would work fine as it can target the
    flex library. I have a contact form created in flex which uses the
    accordion component and flex's great validate functions and the
    alert box. Now I can load the contact form into the flash project
    via a loader and I have no problem with it bieng viewable or
    opperational in the final swf. However when the user clicks the
    submit button, nothing works and I get a bunch of error messages:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at
    mx.core::UIComponent/setFocus()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\UIComponent.as:6857]
    at
    mx.controls.alertClasses::AlertForm/commitProperties()[C:\autobuild\3.2.0\frameworks\proj ects\framework\src\mx\controls\alertClasses\AlertForm.as:243]
    at
    mx.core::UIComponent/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framewor k\src\mx\core\UIComponent.as:5807]
    at
    mx.managers::LayoutManager/validateClient()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\managers\LayoutManager.as:811]
    at
    mx.managers::PopUpManagerImpl/addPopUp()[C:\autobuild\3.2.0\frameworks\projects\framework \src\mx\managers\PopUpManagerImpl.as:347]
    at
    mx.managers::PopUpManager$/addPopUp()[C:\autobuild\3.2.0\frameworks\projects\framework\sr c\mx\managers\PopUpManager.as:169]
    at
    mx.controls::Alert$/show()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\contro ls\Alert.as:519]
    at UV_Website_Contact_Form/submit()[E:\Documents\Flash\Flash
    Projects\Flex
    Workspace\UV_Website_Contact_Form\src\UV_Website_Contact_Form.mxml:46]
    at
    UV_Website_Contact_Form/__Submit_btn_click()[E:\Documents\Flash\Flash
    Projects\Flex
    Workspace\UV_Website_Contact_Form\src\UV_Website_Contact_Form.mxml:97]
    It looks like Flash is having problems creating the Alert box
    from the flex library, but surely this has been exported into the
    flex swf when that was compiled? Dunno......can anyone shed any
    light?
    Thanks
    Shane

    My guess is this won't work as Flash 8 player isn't
    compatible with ActionScript 3.

  • Integrating a Flash "swf" file in portal 7.0

    Hi experts,
    I would like to integrate a flash animation created with Flash Professionnal CS5 in a Netweaver portal 7.0. I've created a KM directory with my flash file, xml files and others. I use javascript in a html page to read the swf file and when I preview my html page in the KM, it works but when I preview the html page in a iView KM Document, it does not. The swf file is in place but is not read and displays a white screen instead.
    Can someone help me ?
    Thank you.

    Hi,
    Did you also check out Display mp4 video from KM in an iView ?!
    You description is not very detailed in concern of what's (not) happening in the background. But I would advise to follow the thread from above and if there is still trouble, you'd need to deliver more details; for instance you should analyze the http traffic and check what's the difference between the working and the non-working szenario.
    Hope it helps
    Detlev

Maybe you are looking for

  • How do I get the ratingrank to show up in the list view of a web app?

    I'm trying to add a review section to my site and can get the form to work correctly on my web app detail view. However I also need the list view to show the rating count. Does anyone know how I can accomplish that? Many thanks in advance! Jake

  • Adobe Acrobat 9 Standard y Linux

    Hola: Tengo instalado Acrobat 9 en un portátil con Windows XP. Como cesa el soporte a este SO he pensado cambiar a alguna de las versiones de Linux y me pregunto si podría reinstalar Acrobat 9 en el nuevo SO. Alguna sugerencia?

  • Lead time for Purchase items

    I had read that Lead time for Purchased items is calculated per 7 working days / week, by default. However, when I checked this, I found that the MRP planned orders were always considering our mfg calendar that has 5 working days / week. Anyone tried

  • Using "Archive All" with individual clips?

    When importing video from my AVCHD camera, I like to use the "Archive All" option at the bottom of the Import window.  That way I can quickly just transfer the raw files to a hard drive and import the clips I want for editing into iMovie later. Ideal

  • Unable to install on Windows 7 Pro

    I can't seem to install my HP envy 4500 series all in one on my windows  pro machine. It keeps giving me a data error about a cyclic redundancy check. I have tried to install this printer three times with the same thing happening. It's not even a yea