AS3.0 Question dealing w/ the stage

I had a question if there is a way to set the stage as not visible?  Meaning the .swf stage is transperent and takes the properties of the bg image of the bg of the page its laid on?  I'm trying to steer away from just using flash for the site and using a mixture of flash elements in a css site but I can't seem to get the stage to be transparent.  Any help on this would be great.  Thanks in advance.

What if we add
<param name="wmode" value="transparent">
I meant, inside html where you publish your swf.
<object classid="clsid:bala" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="250" height="50">
<param name="movie" value="bala.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="bala.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="250" height="50"></embed>
</object>

Similar Messages

  • How can I search the stage for a given Movieclip and then add all instances of it to an Array? AS3

    I would like to Add multible instances of one Movieclip, (Library Name = Bats | instance name = none), inside of another Movieclip (instance name = back.visuals) // (By HAND) NOT by addChild(mc_name); // Easy
    If anyone could help me out with code to do the next steps:
    Search the Movieclip, (instance name = back.visuals), that contains the Movieclips, (Library Name = Bats | instance name = none), manually added to the stage by hand.
    Then for all instances of this movieclip (Library Name = Bats | instance name = none) add them to an Array.
    Thank You,
    Dyami

    I think we are having some missed communication. I do not wish to Change Flash's IDE or deveolp new features for flash. I was wondering if there was a way to do my question with AS3. something along the lines of :
    var enemyList:Array = new Array;
    for (var index:int = 0;index < back.visuals.numChildren;index++)
        var wall:MovieClip = back.visuals.getChildAt(index) as MovieClip;
    /* Check to see if wall is of a Specfic MovieClip */
    /* if (Above is True){ enemyList.push(wall) };

  • Access object on the stage using an as3 widget

    I am trying to use a FlashPro as3 widget and Captivate 6, to toggle an image on the Captivate stage (hide/show) and can't find enough information on how to access the stage objects.
    I can use 
    var numKids:int = parent.parent.parent.numChildren() 
    to see the number of children (of the stage object?) , but can't seem to figure out how to hide or show the child objects (image, button or anything).
    My image names in my Captivate Project are Img_Einstein1 and Img_Einstein2.  They reside on a blank slide along with two buttons and another widget.
    I have looked at Tristen's web site and found a lot of useful information, but I guess I am just not putting it all together.  Because I am a contractor I can't use the Widget Factory or purchase outside widgets.
    Any help will be greatly appreciated!

    On 6 you don't have shared actions yet. I don't understand the explanation with 20 and 10. There are several examples of toggle buttons on my blog. For showing/hiding here a simple one:
    http://blog.lilybiri.com/blog-after-posterous-clickclick

  • QUESTIONS: I have an iphone 3gs.just updating to ios5. am at the stage where I chose to restore iphone via itunes. sync seems stuck at step 7 of 7: syncing artwork. Is this necessary and if not how do I get around it?

    QUESTIONS: I have an iphone 3gs.just updating to ios5. am at the stage where I chose to restore iphone via itunes. sync seems stuck at step 7 of 7: syncing artwork. Is this necessary and if not how do I get around it?

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • HT1848 How to transfer Ipad music NOT purchased from Apple to Macbook Air. Answers found in the Community does not seem to deal with the questions some members already ask.

    how to transfer Ipad music NOT purchased from Apple to MacBook Air.  Answers found in the Community does not seem to deal with similar questions posted to the Community.

    You can only transfer purchases from iTunes on the iPad into iTunes on your computer. If you bought the music from another source, you need to use the source app to transfer the music, or you need a third party app to transfer the music.
    http://www.wideanglesoftware.com/touchcopy/

  • Dragging the stage newbie question part 2

    Hi guys. I posted a thread on 16th November http://forums.adobe.com/thread/525138 and have created an animation (see attached) where the stage can be dragged from left to right to reveal hidden areas off the edge of the stage. Unfortunately I need to add buttons containing links to websites within the dragable movie symbol and I can't work out how to do it. Any ideas?

    Stealing the code from the old thread, for ease-of-use, here is what you will need to do.  Like the alert button that tells people what to do, you need to add the other links/buttons separately from the draggable clip, and move them with it.  This is fairly simple to do.
    mc_portletlist.onPress = function()
         btn_popup._visible = false;
    btn_popup.onPress = function()
         btn_popup._visible = false;
    mc_portletlist.onMouseDown = function() {
         mc_portletlist.startDrag(false,462,35,462,737);
         mc_portletlist.onEnterFrame = function(){
              buttonToMove._x = mc_portletlist._x;
              buttonToMove._y = mc_portletlist._y;
              updateAfterEvent();
    mc_portletlist.onMouseUp = function() {
         mc_portletlist.stopDrag(false);
         mc_portletlist.onEnterFrame = null;
    You will need to play with this a bit, as you want the buttonToMove to move with the draggable clip, you will need to add/subtract from the mc_portletlist x and y as appropriate.  If you want to have multiple items, I would place them all in a MovieClip, make sure its on a layer above mc_portletlist, and have that one item move.
    See the attached zip for a working example SWF and Flash CS3 FLA

  • Cannot view images on the stage in AS3

    Hi guys, I've had Flash CS4 for a while but never been able to use Actionscript 3 as any images dragged to the stage just disappear -- but of course are there when you preview the movie.  I've reset the program, tried changing all around the views and resetting preferences -- and it works fine with new AS2 documents, but this problem has got me annoyed!  I can't see anyone else with this problem while surfing the web, but thought it was time to get proactive and ask for your help and ideas!
      Cheers guys, any help is much appreciated.

    Hi guys,
    First off - thanks so much for taking the time to read this and answer to help me out. It's much appreciated, and better than anything that Adobe have offered (except to host these forums I suppose).  I don't want to set myself up for a big fall and say that it can't be something simple as I could well be missing something, but it's definitely not a case of just adding a new layer and importing to the stage again.  I've used Flash since way back in version 5, and like I said it works fine for Actionscript 2 documents, just seems a weird issue with (my) Actionscript 3.
    I've looked at other suggestions, but as you can see from these screenshots all the layers are visible and not locked.  Alpha is 100%, and it doesn't just affect new library objects but al drawing objects on the stage -- they can be drawn, but then quickly disappear.  They are still there, and the cursor will change when hovered over the spot where they should be.  The paths can also be seen when highlighted by the subselection tool. I've tried using the bring to front etc and anything else I can see.  Also, I reinstalled the Flash Pro kit, so it must be something with my default setup.
    Image 1 - just about to drag a Facebook gif icon to the stage.
    Image 2 (it's different, honest!) - The layer has been filled, but the library item can't be seen.  Also makes no difference if the Flash file is saved first or not.  The cursor changes to the "move" type graphic when hovered over the invisible graphic too.
    Any of you guys have a fix I'll buy you a drink next time you're near Durham (UK)!
    Jordan

  • Dragging the stage newbie question

    I'm using Flash CS3 and wish to create a movie where the stage is a certain size but the actual content of the movie extends further than the stage. The user will be able to drag the stage from left to right to show hidden parts of the movie. Similar to the idea of a horizontal scrolling image gallery but without the scrollbar (see attached for example image). Does anyone know how this is done or where I can find a tutorial explaining how to do it?
    Cheers

    I have done this type of interaction (AS2), not left to right, but up and down, so you will have to make some adjustments.
    I placed the large image on the stage converted it to a movieclip and gave it an instance name of mc_portletlist.
    I then created a mask for the area I wanted the image to be visible.
    This is optional, but I created a popup that tells the user what to do (btn_popup).
    I then placed the code below on the actions layer.
    The numbers limit the movement of the image, so if you want the user to be able to move the image around without limits, just remove them.
        mc_portletlist.onPress = function()
    btn_popup._visible = false;
        btn_popup.onPress = function()
    btn_popup._visible = false;
    mc_portletlist.onMouseDown = function() {
    mc_portletlist.startDrag(false,462,35,462,737);
    mc_portletlist.onMouseUp = function() {
    mc_portletlist.stopDrag(false);

  • Creating a boundry in the stage...

    I'm new here and I'm taking a class on Director.
    Unfortunately, my teacher does not know how to do much himself
    which is leaving me to come here and seek advice. Please forgive me
    in advance for any stupid questions and the like since I have not
    learned much.
    I am creating a video game similar to
    Arakanoid but
    with a small amount of moving objects instead of stationary
    objects. I am not trying to make an exact recreation but at least
    something that is playable and fun that can be made in Di.
    I am just taking it one step at a time so my question is, am
    I able to create a border around
    this
    portion of my picture. The black border is also part of the same
    PNG. Is it possible to create a border in the code so nothing
    passes that section or does my picture have to be separate from the
    black border?
    I hope this question makes enough sense. Thank you for any
    help. ^_^

    Yes, you can set a constraint for any sprite on the stage.
    You might benefit a great deal from reading "Advanced Lingo for
    Games" by Gary Rosenzweig. Don't be afraid of the Advanced part.
    It's a very good step by step book on building games with Director.
    It will explain a lot of the basics that you'll need to
    know.

  • Referring to functions on the stage from a movieclip.

    First of all, I'd like to thank you to anyone who takes their time to read this. I registered to this forum for the sole purpose of getting help to this one issue of mine, as I found most issues were solved in here. By reading my problem (and hopefully responding) you're doing me a huge favour. Thanks in advance.
    I just started "coding" in AS3. By "coding", I actually mean trying around with features and generally trying to grasp the vast amount stuff you can do with this software of. I have some coding experience, however the way   Flash likes to hide code snippets all over my project does tend to confuse me. Not knowing where I tried putting the code and/or rewrote some other stuff keeps me sorta busy.
    I'd also like to apologize for the title, if it in any way confuses you. Shortening down my problem to a single sentence was hard, please keep that in mind.
    Anyway, my issue is this:
    Messing around with movieclips inside movieclips, I've keep encountering the error "1120: Access of undefined property onTimerComplete." I do realize that this error generally is caused by not having defined an instance correctly or not having it defined at all - an error beginners tend to make.
    Nonetheless, I'm not trying to refer to an instance/symbol, I am trying to call a function defined on the stage from within a movieclip that also is placed on the stage.
    I've been reading huge amounts of text/articles and how-to 's, but they all seem to only touch the subject lightly or simply going in head-first - becoming far too complicated for me (a beginner) to grasp.
    So, trying to sum my questions up into something that looks like a tl;dr:
    - What's up with levels, "_root" and referring to functions like in the older versions of flash?
    Flash tells me to use some display-package instead of _root, when I use that... (I do realize the article is from Flash 5.0)
    - How do you refer to a function defined on the stage, from inside a movieclip? (The function is a timer, that is supposed to make the mother-movieclip continue to the next child-movieclip.)
    Please, I really don't know how to define my problem any further than this. Ask as many questions as you would like, I really appreciate any help I can get.
    - Mattimussi

    click file/publish settings/flash and tick "permit debugging".  highlight the line number referenced in the error message.  (and, use:
    Calling:
    stop();
    MovieClip(root).startTimer();
    Defining:
    var myTimer:Timer = new Timer(2000, 1);
    myTimer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);
    myTimer.start();
    function onTimerComplete(event:TimerEvent):void{
    play();
    //myTimer.stop();
    function startTimer():void{
    trace("startTimer function was executed");
    myTimer.start();

  • Adding objects to the stage & acceessing stage properties - I'm a bit confused..

    Hi,
    I'm a little confused on two fronts regarding display
    programming:
    A. What the best way to add objects to the stage?
    B. How to access stage properties.
    I can do both of these when the project is an 'Action Script
    Project', but I'm having trouble when it is a 'Flex Project' (e.g.
    an MXML file). See the two attached files with questions included
    in the comment to see exactly what I mean.
    A. What the best way to add objects to the stage?
    =====================================
    In an action script project that extends Sprite I can just
    call addChild()
    In an MXML project I can add objects to the stage by first
    adding them to a UIComponent, then adding that to the stage.
    1. Is that the best way to do it?
    In this doc:
    http://livedocs.adobe.com/flex/3/html/help.html?content=05_Display_Programming_02.html
    it says that
    quote:
    Each SWF file has an associated ActionScript class, known as
    the main class of the SWF file. When Flash Player opens a SWF file
    in an HTML page, Flash Player calls the constructor function for
    that class and the instance that is created (which is always a type
    of display object) is added as a child of the Stage object. The
    main class of a SWF file always extends the Sprite class
    2. why cant I just add a sprite object direct to the stage
    without the UIComponent?
    3. What is the 'main class', and how can i get access to it?
    B. How to access stage properties.
    =========================
    In an action script project that extends Sprite I can just
    call trace(stage.framerate)
    But in an MXML file I cannot figure out how to access the
    stage properties.
    See the attached code for the things that I tried, but which
    didnt work.
    In the page:
    http://www.actionscript.org/forums/showthread.php3?t=140655
    It says
    quote:
    For stage access you have a couple of rules:
    * natively, only display objects have inherent access to
    stage
    * display objects only have a valid reference to stage if
    they're within the stage's display list (on the screen, after added
    to it with addChild)
    * The only display objects which immediately have access to
    the stage before the use of addChild (in their constructor) are the
    document/application class instance (root) and any instance from
    the library placed on the timeline (not created with AS).
    * Non-display object classes have to be passed or assigned a
    reference to the stage from another object which already has access
    to it - they cannot access it otherwise.
    4. How do I access the stage properties in the MXML project?
    5. I suspect this is related to the "main class", which I
    dont yet understand - is it?
    Sorry for the long post.
    cheers
    tom

    "tom saffell" <[email protected]> wrote in
    message
    news:gd7cm9$d1v$[email protected]..
    > Thanks Luigi - that helps a lot.
    > I hadnt seen the Flex 3 Developer Guide before - it's
    very useful.
    >
    > I now see that I can access properties of the
    application object directly
    > with
    > this.<property>.
    > However, the framerate property cannot be set by
    actionscript, only in
    > MXML (I
    > can set it in the <mx:application> tag). But I
    need to be able to set it
    > programatically, dependent on user input.
    >
    > 5. Is there a way around this?
    > 6. Can I set the stage's framerate to achieve the same
    outcome?
    >
    > I still dont understand why I cannot access the stage
    object. When I call
    > either
    this.stage or
    uic.stage * then I get
    quote:
    Cannot access
    > a
    > property or method of a null object reference.
    My understanding is
    > that I
    > can access the stage object via any display object on
    the display list.
    > I'm
    > confused about this bit..
    >
    > * - uic is a UIComponent that has been added to the
    display list (i think)
    > by
    > calling addChild(uic) from the AS3 within the
    application
    >
    > 7. How do I access stage properties in AS3 in an MXML
    project?
    http://www.adobe.com/livedocs/flex/3/html/help.html?content=05_Display_Programming_10.html
    It seems like possibly your real problem is that you're
    having trouble
    searching the Help effectively:
    http://flexdiary.blogspot.com/2008/07/getting-help-in-flex-builder.html

  • Resolution of the stage

    A simple question. I have my stage at 1280X1024 . Since my
    resolution is much higher, it displays white sections around the
    stage.. How can I make the stage to fill the entire swf depending
    on the computer's resolution please ?

    Oh sorry, that video must be older than I thought, but it
    isn't that much different than AS3.
    http://blog.fryewiles.com/design/07-14-2008/proportional-image-scaling-in-full-browser-fla sh
    http://saravananrk.wordpress.com/2008/02/13/actionscript-3-full-browser-background-image/

  • Relationship between the "Stage" and the "preLoader"

    Other than the "preLoader" loading the project what is the relationship between the 2 elements in the project. Is the "preLoader" on the stage? is there a "stage" for the preloader ?
    In css markup in my html file to I need to deal with them seperately if I want to move there loaction?
    I use...
    sym.$("#Stage").css({"margin": "auto"})
    in compReady to center my stage. I tried do this with the preloader but it doesn't work. The stage is centered but the preloader off to the left.  Is there some code I can add to the project so my preloader will allways center in the same location where my stage is placed?
    If I'm using html css markup to place my "stage" how do I address the preloader so it's goverened by the same markup ?
    Also maybe this should be a seperate post question, but how would i add a timer to report preload times to the console ?
    Thanks
    Joel H

    That doesn't work all the time and sometimes it works with stage but not the preloader, especialy if I want to center vertically also like
    <style>
    #Stage {
            width:350px;
            height:350px;
            position:absolute;
            left:50%;
            top:50%;
            margin:-175px 0 0 -175px;
    </style>
    this doesn't work. But if I apply the same markup to a wrapper div it does work. like
    <style>
    #StageWrapper {
            width:350px;
            height:350px;
            position:absolute;
            left:50%;
            top:50%;
            margin:-175px 0 0 -175px;
    </style>
    then in the <body>
    <div id="StageWrapper">
    <div="Stage"  class="EDGE-blah-blah">
    </div></div>
    this works great, you just can't open your html file in edge again cause it screws your project all up.
    I was just wondering why if I was centering my stage with js in the project file why the preloader wasn't doing the same thing or how to do the same thing with js in the project file
    thanks
    Joel H

  • 1z0-051 Dealing with the exam

    Hi
    I'm preparing 4 1z0-051 exam and i want to master dealing with multi choice questions and lab question and all the detail about the exam technics not the books or references
    thank you

    Amr Halima wrote:
    thnk you for response I've read the resources you support me with, and still have some questions:
    1) How can i review the unmarked questions if i discover that my answer is wrong ??
    Its actually a while since i took an oracle cert exam, and the last one i took the 'skin' had changed so it was a little different to the classic style. But the basics are the same.
    I dont have a exam in front of me as i write this.
    There are buttons to go through to NEXT and PREVIOUS questions. If you are at the end of the exam and wish to go to the beginning the thats a lot of previous buttons. But you an goto the review page at the end and jump to the question you require.
    You have the option of tagging any as marked for review. The idea is if you have time at the end you can focus your review the questions you have tagged
    The final page (and there may well be a button to go this on every page, but dont quote me) while have the means to select
    whether you wish to review all questions: all 'unmarked' questions, or 'all tagged for review' questions. The way this worked varied
    on the last exam i took; the previous classic style use to show all questions with a checked and a colour to show if the question
    had been answered and had been tagged for review. The last exam i took i think the final page worked with buttons used to filter
    the questions it dsipayed to just to from between:
    - All questions
    - Questions not fully answered.
    - Questions not tagged for review.
    A question is not fully answered if the candidate has not given a sufficient number of answers to which satisfies the question criteria.
    To demonstrate this:
    - Let us consider the question:
    Q.34 Choose the following cities where they are not the capital city of the associated country:
    A: Dublin is the capital city of the Republic of Ireland
    B: Beijing is the capital city of India
    C: Moscow is the capital city of Russia
    D: Washington is the capital of England
    Select the best two answers:Notes:
    (1) Now B and D are obviously the correct answers, and A and C incorrect.
    (2) Be aware that maybe 3% of candidates as this point would have failed to read the question correctly and will mark A and C as correct, +(Quote(my old Chemistry teacher): if all else fails read the question)+.
    (3) If the candidate only checked one answer, say 'C' then this question would appear on the list of unmarked questions for review and the candidate would not receive marks for the question.
    (4) The the question had said select one or more correct answers and the candidate had checked C only, then the question would NOT appear on the list of unmarked questions. In general high exams such as OCP will contain more questions of the form select one or more possible answers.
    You may find it is possible to grey incorrect answers by right clicking them. This can be useful to focus on the correct answers. You can actually do the same thing by writing it on the marker board you are given.
    Let us say I come to the question above. Let us say I know for sure 'C' that Russia is the capital of Moscow is true so i eliminate that (Either right to grey it out or write Q34: C-X on my marker board. I know London is the Capital of England so therefore +D: Washington is the capital of england so i check 'D' as I know that is correct.  But let us say i am not sure about A B, which is true and which is false.
    - I mark this question for review as I am not sure about it and perhaps it is worth coming back to later +(If I have time)+. I might make a mark Q34 capitals on by marker board so i know which one to come back to. Even if i dont know the last answer i need to mark i will have wanted to have guessed it by the time i finished the exam. I would certainly want to have made a guess by the end of the exam, so if i am running short of time i would guess as I might not have time to return, if i am well up on time i might leave it unmarked for now.
    - One danger of greying out incorrect answers is one may forget to check the correct answers. I remember finishing an exam and discovering on the review screen i had not answered a question. I had greyed out the wrong answers but forgotten to check the right answers! i would have gotten no marked, as it is checked answers that count. Please be aware greying out of answers are only a help to the candidate and may not be present on all exams
    - Sometimes drag and drop answers may also be present. There may also be exhibits to view; and you should note how these may be tiled onto the screen. Beware of spending too much time looking at these.
    2) for multi choice questions if i have a - choose all that apply- question and i've chose just one answer and it was right .Do I take a part of the mark of the question??
    and if i chose all the right answers and one wrong .Do i loose all the mark of the question??In all cases if you fail to select all correct answers you will recieve no marks for the question
    >
    what's the grading policy?? i didn't find a topic about this
    With Oracle Certification exams one either passes or fails. The pass percentage appears on your exam score report. It does not appear on your certification. The pass mark is chosen after reviewing the exam at the end of beta testing stage, and may be adjusted in production if a revision is demeed necessary.
    >
    thank you

  • Loading flash 8 SWF in adobe AIR, loses the stage width in flash 8 SWF

    Currently i am using a CS3 IDE to compile AIR application.I
    am trying to load the flash 8 SWF inside my AIR application.After
    loading the SWF, when i try to trace the stage width inside the
    flash 8 SWF , it says undefined.Not sure why..
    Googling few hours not able to get the solution.
    Please help me on this, urgently needed.
    Thanks in advance

    This is a fairly common question on these forums. Basically,
    AS2 and AS3(Flex/AIR) can't communicate directly. You will either
    need to use LocalConnection or use ExternalInterface and javascript
    to pass info between the 2.

Maybe you are looking for

  • AS2 receiver error

    Hi Experts, Im getting this error in the AS2 receiver channel: Message could not be forwarded to the JCA adapter. Reason: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to

  • Answer access to other user

    Hi All, How to give Answer access to other users in presentation server.Plz help. Thanks, Sonal

  • Setting up a connection pool to ms sql database

    Hi I am trying to create a connection pool to talk to an MSSQL database, and could not manage to ping the DB (Operation 'pingConnectionPool' failed in 'resources' Config Mbean.) . What set of properties need to be included for connection pool to an M

  • Calling CRM ABAP class from SAP Jco

    Hi, In CRM,  there is a class interface called CL_CRM_DOCUMENTS with static methods. I need to make call to these methods from my Java application that uses JCo. Is it possible to call ABAP methods from JCo? Any help in this regard will be highly app

  • Possible in 8i to rename an instance ?

    I've got an instance that the suits say is a controversial name.... say warrior. They want it renamed to something 'business like' such as ; lx101c or linux1 or something. I couldn't find any cookbook on doing this, so I thought I'd ask the crowd if