Loaded SWF file CANNOT be made into button DIRECTLY?

I'm experiencing a problem which may have no solution, but I
would like to know why I cannot do what I want to do.
PROBLEM:
I am attempting to load in an external SWF file and once it
is loaded, I wish to directly make the new Sprite/MovieClip into a
button. However, the newly loaded Sprite/MovieClip seems to be
resistant to be made into a button DIRECTLY. I would like to know
why this is.
WORKAROUNDS:
Here are a couple of workarounds, but again I wish to know
why I cannot do what I want to do.
1) I place the new Sprite/MovieClip into an empty Sprite on
stage and make the once empty sprite into a button.
2) Construct the external SWF in such a way so i can refer to
a MovieClip within the SWF file and make that MovieClip into a
button.
CODE EXAMPLE:
I am loading a SWF file thru a Loader and then taking the
loaded SWF file and adding it to an existing sprite on the stage. I
then attempt to make a button out of the newly loaded swf file, but
it fails to be clickable.
The following is some quick code to illustrate my problem. I
already have workarounds in place, so please let me know WHY the
following code is impossible. thanks!
==============================================================================

There should be no problem with what you are trying to do. If
you want someone to look at what you've done, you have to be
careful to show that and not possibly errant code because that is
the substance of your post and what you requested be looked at--we
cannot guess what you may have done wrong in setting things up or
for code that you do not show.
I tried your code before posting my response and it worked
fine except for your error with the COMPLETE aspect. I did not
utilize any objects for loading things into, so I suggest you look
there.

Similar Messages

  • Can I import a swf file (created in FC) into Flash?

    Can I import a swf file (created in FC) into Flash?
    ...also, do you need Flash Player 10 to play these files?

    Just did some testing here, and Flash Professional definitely does not like Catalyst projects. Importing to the stage failed silently (gotta love that), while Import to Library appeared to work - I got a MovieClip in my library. However, the clip is empty. I'd guess it is as Chris said, having to do with the fundamental differences in the Flex framework from the way Flash Pro works.
    As this did spark my curiosity, I decided to give loading the Catalyst-created project into a Flash Pro project at runtime using ActionScript. I was able to at least get the Catalyst content to appear through this method, but the effects (in this case, a simply button with a Rotate3D effect applied) was a mess.
    So the simple answer is "no".

  • How to detect the end of a loaded swf file

    Hello Guys
    This is my first time on this forum, come here with a great
    hope
    I have loaded a picture file (jpeg) and a video file (swf)
    into the main flash file using xml
    on frame 3, I load the picture and on frame 7, I load the
    video, there is a stop action on frame 6
    Now when the flash is executed the picture is displayed ( it
    says "Click here to view the video")
    when the user click the picture , the video is loaded and
    starts to play ---- so far everything is working fine
    now what I want to do is, once the video finishes playing (
    not stoped) I want to display the picture again
    can you tell me how to detect the end of an external loaded
    swf files,
    Please help me
    Thanking You
    Shriram

  • Loaded swf file alignment

    when i i design something in a file i have it aligned how i
    want it, however when i load the page into another, although the
    loader component is aligned, the content inside the loaded swf file
    is no longer where it should be. why is that? how can i fix this?
    i've just been

    Also, remember that if you load an external SWF into another
    movieClip, then the _root changes. The loaded SWF will no longer be
    considered _root, unless you specify in frame 1:
    this._lockroot = true;
    this would be the issue of your miss-alignment, if you are
    using ActionScript to align objects dynamically.
    If you are not using actionscript for alignment, then
    Mocaloca's suggestion should be the answer.

  • How can I make my external loaded .SWF file smoothly disappear after 15 seconds?

    Hi,
    How can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:
    var K:Loader=new Loader();
    addChild(K);
    K.load(new URLRequest("clock.swf"));
    K.x = 165;
    K.y = 247;
    K.contentLoaderInfo.addEventListener(Event.INIT, growLoader);
    function growLoader(evt:Event):void {
         K.width = 130;
         K.height = 130;
    I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.
    Please help.
    Thanks.

    Something even better:
    http://www.greensock.com/
    Check out TimelineMax I LOVE it...
    The guy that made this (and gives it away for free!) is a saint.

  • This song cannot be made into a ringtone!

    I JUST purchased a song to use as a ringtone (even though I had this song IN intunes because I owned the CD.
    I downloaded it, and right clicked make ringtone and it says:
    This song cannot be made into a ringtone. XXXX song title can no longer be made into a ringtone.
    I JUST BOUGHT IT!
    HELP!
    Sharon

    After you open the iTunes application select "iTunes Store" in the left panel.
    On the top right corner below the "Search iTunes Store" you should see your ID for the store. Click on it.
    Enter your password and click on "View Account".
    Click "Purchase History" and then click "Report a problem".
    On your latest purchases you should now be able to click on the link "Report a problem", select the "Problem" and enter your "Comments".

  • Ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    On the MBP, in iTunes, switch to Song view and enable the iCloud Status column by pulling down View > View options and selecting the option for "iCloud Status." Close the small window. Look for any tracks that have a status of "waiting." If you see several of them disable iTunes Match while holding down the Option key. Quit iTunes, wait a few seconds, then open it again and turn iTM back on. Let it compelete the scan. Wait until all tracks that are "waiting" have a status of either "matched" or "uploaded."
    On the iPad, turn off iTunes Match then launch the Music app and let the contents clear out. Power cycle the iPad for good measure, then re-enable the service once all the tracks in iTunes have been processed.

  • How to create an xml to load swf files in sequence?

    hello everyone
    I'm new in web design... I know how to animate in flash, using timeline, frames, layers, twins and so on... But I want to move forward so I want to create a xml to load swf files in sequence and in loop. Each swf file has 8 seconds.You can see the example here in www.cm-seixal.pt.
    I'm not a programmer but I understand how actionscript works... I hope you can help me
    Cheers!
    Ana

    you can use the urlloader class to load your xml file.  use the loader's complete event and the loader's data property to retrieve the data in your xml file.

  • Loading swf files from an iPhone Air App

    Although the faq says its possible ( http://bit.ly/gyxmCo  )  I can't seem to load .swf files from my app.
    There's no .AS code in the .swf file I'm trying to load.
    PNG files load with no problems, swf's fail.
    A working example would be appreciated instead of suggestions, I've spent the entire day trying out suggestions
    regards,
    Martijn

    Because I can't see any library assets in an as2.0 file.
    I've discovered that the swf fails to load as soon as you make a symbol 'export for actionscript'
    probably because it will then create a class. So you can only load SWF's as simple pictures or animations, you cant use it as an asset library with multiple animations/images/sounds in it..
    As for you other questions:
    it doesnt matter if the file is local or on the web. same results
    I created the swf file from a fla in CS4,  and I'm compiling my air project that loads the swf  with FlashDevelop.

  • How load swf file (flash 8) with adobe captivate 3 without enter the HTML?

    How load swf file (flash 8) with adobe captivate 3 without enter the HTML?

    Hi SaSQuaCh69247,
    Issue 1 :- Select the SWF file in library, right click, and
    select update.
    Issue 2 :- Actually it could be valid for Issue 1 also. It
    seems like SWF file you are trying to import, does some action
    like, importing another swf or connecting to server on the first
    frame itself. Captivate will try to play the first frame of SWF
    when you import them. Try creating a keyframe with the stop action
    as the first frame in your SWF, and see if you still have the
    issue.
    Issue 3 :- The approach I am mentioning over here is
    generally the last approach which I will take in such scenerios,
    but since you have already experimented a little, so try this.
    Go to C:\Documents and Settings\<user name>\Application
    Data\Adobe\Adobe Captivate
    Rename captivate_v20.dat as captivate_v20_org.dat.
    Restart Captivate Application.
    thanks

  • Can button in loaded SWF file unload or close the file ?

    Hi,
    I am loading 2 SWF files A and B, I have a button on each.
    When I press button on SWF A it loads SWF B. However I cannot get
    the button to close / unload the SWF A.
    Is this possible ?
    To Load I am using:
    Thanks,
    Paul

    No.I am using Loader since I dont need to pass one URL for fetching swf content.I need to get the displayobject from ByteArray which should be free from all the security issues.I heard that we cannot set 'securityDomain' property of loaderContext (using in Loader) in AIR.So please give a solution for getting bytes.

  • Making a loaded swf-file loading images into the movie..

    Trying to convert my problem from norwegian into english
    isn't always that easy... :)
    Anyway..
    I've created som cool buttons that I want to be loaded into a
    movie (let's call i MainMovie.swf) and from there I want the
    buttons to be able to load images into a movieclip (ImageContainer)
    inside the MainMovie.swf.
    Is it possible to make the MainMovie.swf communicate with the
    the loaded buttons (each button is a swf-file containing the
    actionscript, objects, etc.) so when the buttons are clicked they
    load different images into the ImageContainer?
    My idea here is to include an as.file into the MainMovie.swf
    as well containing the url's to the images that I want to be loaded
    into ImageContainer.
    I've tried to create a button on a layer above the buttons
    that's loaded into the MainMovie.swf but I end up with the loaded
    buttons not working properlu because of the button that I've
    created and placed above them.
    Now, I don't want the url's inside the buttons thats loaded
    into the MainMovie.swf as I want the ability to be able to replace
    those buttons-files without having to use too much time writing the
    url's in each button.
    Thanks folks.

    are all your swfs using as3 or as2? if as3, you won't be
    loading into a movieclip: you'll use a loader instance and you can
    reference (or communictae with) the loaded as3 objects using the
    content property of your loader once you cast it as a
    movieclip.

  • Complete code for loading swf file in actionscript 3

    i have a swf
    file which i want to load into a fla file and export as a new swf file. I understand this part but my actionscript 3.0 code that i put on frame one of the timeline does not work. I have tried every version i have seen online including in adobe's actionscript 3 classroom in a book.... and other books..... i want the swf to run immediately so i dont think i need any event listeners since i am not clicking a button or anything like that... just running the swf at start. any help wuld be appreciated... sent two day on this already... i can do it in actionscript 2 but have not figured it our in actionscript 3......... why does eeryone seem to do this slightly different too?   a complete code would be nice since obvously i am stupid........
    thanks

    Show the code you put in frame 1.  I don't think you can do what you say you intend to though.  As far as I know you cannot create a new filein the way you explained you intend to.  If you load the file dynamically as a separate swf, then you will always need to.

  • Loading swf file

    I'm having trouble with loading a swf file in my flash. I am buidling a flash website where I have a lot different sections.
    Main file: index.swf where i have main buttons and an UILoader.
    now i want to load my homepage in the UILoader so I set the UILoader source to homepage/index.swf
    The homepage loads no errors but as soon as I add some actionscript anything (declare one variable) i get this error
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at index_fla::MainTimeline/index_fla::__setProp_loaderr_Scene1_loader_1()
    at index_fla::MainTimeline$iinit()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at index_fla::MainTimeline/index_fla::frame1()
    Anybody can help? I search everywhere. I and only ever write on forums when Im hopeless

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is not in the display list
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with different names assigned.
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • Is it possible to load SWF files from an SQL database?

    Hi all, I am very new to flash (I am primarily a C'# developer!) and I have been asked to investigate the possibility of doing the following;
    Create an application that allows swf files to be uploaded and stored inside of a SQL database as binary data (Why a database is a long story!)
    Allow this binary data to be extracted via a http request to be dynamically loaded inside of a web page.
    Now the first part was easy. I have all of my swf's uploaded and stored inside of the database. I have code that can make a request for the binary and write it to the response, so far so good. Now this is where I am stuck.
    I thought I could dynamically load the swf binary data by creating a very basic swf that simply contains a movie clip holder and for now a simple loadMovie statement. My idea being that I can could provide a url for the loadMovie statement that returns the swf binary data. This is where I have ground to a halt.
    I can see the call being made from the swf, I can see the data being returned but I cannot get it to render. I remember seeing an article some time agao where someone stated that they had used this method with success but I cannot find now. Has anyone ever done anything like? Is it even possible? Am I missing something simple?
    I have tried to return both the raw binary data and also used response.write but to no avail. Can anyone help?

    You are possibly trying to load AS3 swf into an AS2 Container at least the use of loadMovie() points in that direction. Be sure to use AS3 and target at least Flash 9 in your Loader/Main.swf. Also the AS3 concept of how to load swfs  differs a lot from the old concept.
    Look into the docu:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml
    But the biggest Problem seems to me -what you mentioned- that Loader needs a (defined) URLRepuest and since your swf files have no "real" URL and you surely don`t want to let the user directly write to your server, a workaround would be to write the BinaryStream with AIR-functionality to a local installlation directory and load it then from there.

Maybe you are looking for

  • Posting not to be allowed on a particular day

    Hi, Can I restrict the posting for a particular day? For eg. we want to restrict the users to post any transaction with posting date 15-Aug or 26-Jan. Can I do that? If yes, please advice how? To my knowledge I can open & close the posting period for

  • Unit tests for Swing models?

    Does anyone know if someone has made some unit test to test the various Swing models? I didn't find much in a search and checking the OpenJDK6 source bundle there are only about 20 tests (!) for specific bugs. Specifically I'm looking for a test for

  • MQ:OSB Assign action failed updating variable "ServiceRequest"

    Hi We have a problem with the MQ adapters in Oracle Service Bus. If we (by accident/break testing) put messages on the queue that are invalid XML (such as "Banana" as plain text), the OSB goes into an infinte loop with this message, as it can never b

  • Web Server 6.0sp9 - Reliable shutdown and restart

    We have set the internal cron to rotate the logs nightly at 11:30pm. When tries to restart, there is a stray process left behind and we get this in the errors log. This happens 85% of the time: [11/Oct/2005:23:30:21] info ( 7689): successful server s

  • Multicash - Outgoing Payments

    Hey guys, Does anyone have any documentation on how Multicash works with SAP i.e. configuration, file formats, interfaces (if applicable).  This is in relation to outgoing payments and not incoming bank statement (alot of entries on th later on vario