ActionScript stuff

I wonder if there is a way to make a flash document full screen with action script?

Thanks if you can help!
Jak

Jak14713,

> I wonder if there is a way to make a flash document
> full screen with action script?

There is a way to make the * browser * go full screen. The Flash
size of the document depends on the browser and the way in which the SWF is embedded
(100% width and height, for example).

There are a number of ways to trigger JavaScript of Flash. And old
standard is getURL() JavaScript: Protocol instead of http:. The
new security model in Flash 8 which is a little more frustrating to use, when
test files locally, but for starters, you can do something like this...

ActionScript
getURL ("javascript:expand ()");

JavaScript in the HTML page
function expand() {}
window.resizeTo (screen.availWidth, screen.availHeight);
}

David
Stiller (at) quip (dot) net
Dev test: http://www.quip.net/blog/
"Luck is the residue of good design."

Tags: Adobe Animate

Similar Questions

  • [Issue] [CS5] With the help of. send() and some other questions

    Hi guys in these last days I made research Stratus in CS5 hoping to be able to reproduce some kind of multiplayer game of him. The main problem that I ran in use. send(), I can't understand how to use the correctly. This is what I understood would work, but it doesn't seem to register that something happened:

    var myString:String;

    function sendmsg(2) (event: MouseEvent): void
    {
    myString = textInput.text;
    outgoingStream.send ("msg", myString);
    }

    function msg (myMsg:String): void

    {

    myLog.text += myMsg;

    }

    Any help to do this would be greatly appreciated.

    Just a few small questions about Stratus I want good answer:

    1. Use. more faster/more efficient send() then post where a fraction of a second account (sending players positions) where there are 4-8 people?
    2. When you use a NetStream with an attached how GroupSpecifier know when a person has joined or left?

    Note: All questions are regarding the CS5, not Flash Builder as I am not very aware if there is any difference in coding.

    NetStream.send () should generally be faster than NetGroup.post (), especially when using NetStreams 1:1 (vs. Group NetStreams).

    When groups are great, there is no average liabilities to say when members join or leave.  However, for small groups (less than 15 members), they will be "full mesh", meaning that each Member is a direct connection to every other Member.  When this is the case, you can see the events of NetGroup.Neighbor.Connect/Disconnect on a NetGroup.  to receive people, you create a network group with the same groupspec than your NetStream and listen for events from NetStatusEvent.NET_STATUS.

    your "msg" function must be a method on the 'customer' object of the NetStream subscribed to receive the NetStream.send (s) of the editor.

    It's all generic ActionScript stuff.  I don't know how to use Flash CS5, but such things should all be the same in Flash and Flash Builder.

    -mike

  • Wait on Flash Builder 4.5 and other stuff

    Initially, I wanted to ask a question, but after trying to find information on when FB 4.5 will be communicated, I came across a little information.  I hope someone rim reads this.

    Can anyone confirm if the final FB 4.5 will allow the use of design with the libraries of qnx?  It has been said in this post, he does.

    While I was trying to find that out I came across this little nugget on Adobe 4.5 FAQ:

    Flash Builder 4.5 now requires AIR 2.6 for mobile applications. RIM plans to deliver an over-the-air update for AIR 2.6 later in 2011, allowing developers to then use Flash Builder 4.5 for PlayBook application development. This means that developers will be able to recompile applications built for Android at that time for deployment to the BlackBerry PlayBook.
    

    Anyone know when this might be?

    I am mainly interested in can quickly access my screens with actionscript, mxml and design mode and use or C++ for complicated stuff.  Currently the design mode does not work and I'd rather not have to wrap each qnx component that I want to use so it will work even in mxml.

    Currently, we have not shared a release date for future updates to the runtime LOOK on the PlayBook. I can tell you that we are working on it well.

  • Read the file from the system of files in Flash with Actionscript

    Hello world. I am in the design phase and want to make sure that what I intend to do is possible. I use Flash CS5 and you want to review the system of the PB, or a folder of music files. Is this possible? If so what part of the Actionscript API should I watch?

    Locate the flash.filesystem stuff, and note that your application must have a blackberry file - tablet.xml so that specifies the permission of "access_shared". The forum for this search should appear many in past messages with details.

  • Questions of beginners on fms and actionscript 3

    OK, as I said I'm a newbie, but I do not understand the difference between as3 and ssas. Not all, but most everything written everything I see in SSAS can be written in an external AS3 file. Which results in a me a few questions I hope you kind people can enlighten us on for me.

    (1) what is the advantage of writing a SSA file on an external AS3 file?

    (2) can I write a file in AS3 .asc or should I use AS1? Please understand that I use tuts of fmsguru.com and the "Programming Flash Communication Server" books "Learning Flash Media Server" (pdf). I'm not a javascript programmer, so I have nothing in AS1 seems to make any sense, unlike anything I've done in AS3. It may not seem like it to you people who are programmers, but for those of us who are not, AS1 and AS3 are miles away.

    (3) type of off topic, but a security issue. I'm not a 'hacker' and don't like the jolts which are. My question is on external ACE / SSAS files and swf files. When my fla is compiled into a swf file is my external AS files are external? I suppose they do, but then, what is the threat of the file swf be decompiled? In most of the projects I would, I could less keep if someone has access to my fla as long as they do not have my actionscript files.

    I do not know. Maybe for questions 1 and 2 I'm confused because I use equipment. Yet once, I guess while fms was built the javascript engine, it should be able to read and run my AS3 file. Otherwise what was the point of evolution of actionscript in a functional programming language?

    Thanks for any help you may have...

    (1) I did not get this question correcly - besides THAT SSAS can be in AS1 - so I don't see reason in comparison

    (2) there must be AS1

    (3) if you do 'include' stuff - I think that code would go into swf decompiler and compiled appropriate would give you the code.

    Last para - engine on the server side includes only AS1, so he won't be able to read and understand your AS3 file.

  • New to ActionScript 3.0

    I started as an ActionScript developer. However I noticed in the new Flash Creative Suites, basic ActionScript is not longer supported. (at least since the file menu create) So now I'm trying to figure out AS3.0 and I'm having a difficult time in my head around it to packaging.

    I think I write good code, but I get a lot of errors on things like properties and data types.

    Honestly, I thought I had at least some control after watching the ActionScript code with Doug on Adobe TV videos, but apparently I don't know what is happening with what or how to navigate the new menu of Classes. I open it only to get hundreds of commands that I don't know how to use.

    What are some good places where I learn ActionScript 3.0? Because I don't know how to use the classes and the places where even pull the data or functions, that I even need. I then pair of all those other things I don't know. The manual is quite... dense with stuff to sift through. (that I don't know what it is)

    Some things I'm doing are variables loading from an external text file... but for some reason when I try to use the information in the text file it says I'm to access data with no defined properties, etc. I have an integer and a string that I loaded the text file. I'm trying to work around it by using some of the standard stuff I know but no luck... still undefined and I do not know what to do.

    I'm back to basics in this situation, it seems. What are good resources or referral sources?

    I offer the following, but for me it's all hear them - say - offers provided by others in response to the same question...  Mainly, I travel the path of learning by trying due to an aversion to the texts and rely more on the Internet (Google search) resources and documentation to bring down the walls I meet aid...

    AS3 - references
    ----------------

    Essential ActionScript 3.0 by Colin Moock, Adobe Dev Library; 1 edition (June 22, 2007), ISBN-10: 0596526946

    University of programming ActionScript 3.0 game, Gary Rosenzweig, Quebec; 1 edition (September 8, 2007), ISBN-10: 0789737027

    ActionScript 3.0 Cookbook: Solutions for Flash Platform and developers of applications Flex, Publisher: Adobe Dev Library; 1 edition (October 1, 2006), ISBN-10: 0596526954

    ActionScript 3.0 Bible, Wiley; 1 edition (October 29, 2007), ISBN-10: 0470135603

    Learning ActionScript 3.0 - by Rich Shupe and Zevan Rosser beginner's Guide

    The site of Adobe TV - video based material teaching: http://tv.adobe.com/product/flash/

    Site http://www.gotoandlearn.com/ Lee Brimelow is ideal for video tutorials

  • ActionScript Noob question 3

    It's the number two issue for me today.

    The use of Actionscript 3

    Have a button called "breckenridge".  I also have a stage called "breckenridge".

    On an image key is the following code.

    breckenridge.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler40);

    function mouseDownHandler40(event:MouseEvent):void {}

    gotoAndPlay (1, "breckenridge");

    }

    When I test the movie and I press the "breckenridge" button it takes me to the "breckenridge" scene and stops on the first image.

    Then I get the following error message

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to key_explore_fla::MainTimeline/frame302()

    my main timeline, which I assume is my first scene called "tremble", stops to frame 300. What gives?

    Well, I know that everybody hates the scenes because it causes navigation problems.  However, I have this .fla divided into sections, and I intend to add more things to each section in the future.  The best way I can think to organize these sections with some having a meli melo of stuff added pell-mell on a single line of time is to break it into scenes.

    Thanks in advance for any help.

    When you compile a fla in a swf, the compiler combines all the elements in a timeline.  Sounds up to 302 straight based on what you say about the Aspen scene.

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...

    n ' is not in the display list
    n ' is not have an instance name (or the name of the instance is misspelled)
    n ' is not in the frame where this code tries to talk to her
    -animate the object in place but you assign instance names in each keyframe for her
    -you have consecutive keyframes of instances of the same objects with different names assigned.

    If you go to your section to publish the Flash settings and select permit debugging option, your error message should have a suite of line number the number of the frame that will help you to isolate the object that is involved.

  • Newbie Q: HTTPService in ActionScript

    I am a complete newbie - I looked at the stuff "learn flex in a week" and read a few tutorials, but otherwise I'm from scratch.  I'm trying to create an HTTPService object purely in ActionScript, mainly because I just think it seems cleaner that to have all parts of separate functions, tags object declaration, etc..  Feel free to convince me that stylistically, this is the wrong choice.

    I started by doing the opposite, which is in all the examples.  This loads a configuration data object.  One of the elements is another URL which must be loaded, so I did this:

    private void configLoadedOK(event:ResultEvent):void {}
    config = event.result.thisMoment;
    trace (config. LINKS. GET_META_DATA.value);
    var metadataHTTP:HTTPService = new HTTPService;
    metadataHTTP.url = config. LINKS. GET_META_DATA. Value;
    metadataHTTP.fault = function (): void {}
    Alert.Show ("Unable to load metadata.", "Error");
    }
    metadataHTTP.result = {function(metaevent:ResultEvent):void}
    metadata = metaevent.result.moment_info;
    trace ("metadata loaded" + metadata);
    }
    metadataHTTP.send ();
    }

    They do not compile.  The "metadataHTTP.fault =" and "metadataHTTP.result =" lines give the following error: "1119: access the fault of property may be undefined by a reference with static type mx.rpc.http.mxml:HTTPService." "" "»

    In the documentation, it lists fault and the result as the HTTPService class events.  I guess you can't just define how you set a property to an event?  How are you?

    When you specify event handlers in the ACE, you must use addEventListener():

    
    
      
        
      
    
    

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Flex / development, training, AIR and Support Services

  • How to create a sequence using Actionscript?

    Suppose I've got 2 video clips on the stage. box_mc and triangle_mc

    I would like to set up a way for that every time I have raise the event, for example by pressing a key (such as

    {if (Key.isDown (Key.Space))}

    stuff that activate

    }

    It performs the following operations in the order, spaced 1 framework, or 1 second (or a number of frames)

    [1] box_mc._rotation = - 45;

    [2] triangle_mc._rotation = 45;

    [3] box_mc._rotation = 0;

    [4] triangle_mc._rotation = 0;

    If I press the SPACEBAR once again, it will start from the top (1) and repeat the sequence. Otherwise, the sequence stopped at 4. Previously, I use counters within an onEnterFrame as counter = counter + 1; If counter > counter n = n; etc. This seems tedious, and I hope that there is a better way to do it. I do not understand the power-saving features and actionscript timer (they never seem to work for any project, I'm busy with).

    Thank you!

    function startSequenceF() {}
    rotateF (box_mc,-45);
    clearTimeout() (rotate1I);
    clearTimeout() (rotate2I);
    clearTimeout() (rotate3I);
    rotate1I = setTimeout(rotateF,2000,triangle_mc,45)
    rotate2I = setTimeout(rotateF,4000,box_mc,0);
    rotate3I = setTimeout(rotateF,6000,triangle_mc,0);
    }

    boxF function (mc:MovieClip, angle: number) {}

    MC._rotation = angle;  or make an animation that

    }

  • ActionScript 2 or 3?

    I want to refresh my ActionScripting and learn more, but find it me hard to know what to focus on. As a graphic designer, I don't feel that it is really necessary for me to learn the more complicated AS3. But if AS3 will eventually replace AS2, I certainly will jump right to AS3...

    We should I focus on?

    [edit] Sorry for the double posting... adobe.com seem to have problems.

    turbotape,

    > I want to refresh my ActionScripting and learn even more.
    > but find it me hard to know what to focus on.

    In my experience - that does not match your own, granted-, the ideal is
    to feel as comfortable as possible to the largest number of versions of ActionScript as
    possible. Know AS3 for novelties and know AS2 (and same AS1, sometimes)
    for the old stuff, or for projects targeted to mobile content.

    > As a graphic designer, I don't think it is really necessary for me
    > learn more complicated AS3. But if eventually going to AS3
    > to replace AS2, I certainly will jump right to AS3...

    AS3 will be finally via AS2, just like AS2 finally resumed
    AS1 (and as AS1 eventually resumed Flash ActionScript 4-era, who)
    could easily, with a slight smile, be called AS0). So, there's the front
    March of progress, Yes. But it is important to realize that it engenders AS3
    encessarily corresponds to the most complicated. True, advanced projects are the best
    suitable for AS3 and AS3 is that Flex programmers use. But AS3 is also
    suitable for good, old fashioned picture key to coding than any other version of
    ActionScript.

    Read this article by Colin Moock, which is very encouraging for me
    the first time I read it:

    http://www.InsideRIA.com/2008/01/ActionScript-30-is-it-hard-or.html

    > We should I focus on?

    If you are not familiar with the coding at all, you'll probably find AS3
    much easier to learn from scratch. I suggested a few arguments in this direction
    in this article here (an excerpt from a book on the migration of AS2 AS3):

    http://www.communitymx.com/abstract.cfm?cid=16D76

    If you have had a bit of intro to AS2, you can always focus on
    AS3 simply because it is newer, but ultimately, your decision should be
    decided by the version of Flash Player, you are targeting. If you are with a
    Agency that requires all content to be available for Flash Player 6, 7 or 8,
    then your only choice AS1 or AS2 (in this case, the purpose for AS2). If most
    of your job ends upwards with the help of Flash Player 9 or later, then I recommend AS3 as
    your first step.

    David Stiller
    Co-author Foundation Flash CS4 for designers
    http://tinyurl.com/5j55cv
    "Luck is the residue of good design."

  • ActionScript 3.0 in Flash Studio8 development?

    My company has licenses of Flash Studio 8.0 and I would like to start learning how to develop applications that use the latest version of actionscript (in this case 3.0). I see only references to 2.0 in the IDE. Studio 8.0 is able to develop for flash player 9.0? Maybe some sort of plugin is available? Forgive my ignorance, but I really want to learn this stuff. We do not want to buy Flex 2. Any help would be great!

    Thank you
    Dave

    Dave,

    > OK, so this kind of help. I downloaded and installed
    > but when I went to create components as I have in my
    > Flash 8.0 application I write, there is none is available.

    These are the v2 user interface components, which means that they are written
    ActionScript 2.0 and are therefore incompatible with AS3. In using this
    special version of Flash, you can still post in AS2 if you wish (see
    Publication parameters), in which case these components will reappear.

    > What is a watered down version so you can do anything
    > with Forms.

    What you have is not a watered-down at all. On the contrary, it has a
    souped version of Flash 8, which is otherwise not capable of editing
    for Flash Player 9 (in other words, ActionScript 3.0). The title is a
    bite, but Flash Professional 9 ActionScript 3.0 Preview is an * overview
    release * of Flash 9, which gives all the indications that release the full following
    Flash support ActionScript 3.0 and probably new AS3-based
    Components to match.

    > That I don't have to have to return Flex2? I hope not.

    Of course not! ;) If you want to develop with AS3 now already, then
    you will have to do with something that can compile to Flash 9 SWF. Flex
    Builder 2 is an IDE and costs money, but the compiler (Flex 2 SDK) is
    freeware.

    http://www.Adobe.com/products/Flex/SDK/

    If you can wait for Flash 9, so that could be yet another choice-
    no doubt improved the pre-release in your hands.

    David Stiller
    Adobe Community Expert
    Dev blog, http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Is there an automatic ActionScript OLD/NEW converter?

    Hi all
    I've been using Macromedia Flash version 4 & 5 in 1999 ~ 2001. -I'm an old man.
    Then I stopped using Macromedia Flash.
    Now, I need more 100 swf flash files that I created at this time (8 years ago) to resurrect.
    Yes, all these SWFs that have been written in AS1 still work in current browsers (maybe the browsers automatically detect the correct version of flash player for my swf files)
    However, now the problem is I have to add more animals to & edit these old .fla files using the latest version of flash. And the new Macromedia Flash does not seem automatic conversion my old AS1 scripts for the new flash 8 player or higher... and displays only error messages.
    So my question is, is it ActionScript auto conversion software to convert the old AS1-AS2/AS3 files which can be read using the flash player version 8 or higher?

    URMyLuckyStar,

    > Yes, all these SWFs that have been written in AS1 still work
    > in current browsers (maybe the automatic detection of browsers the)
    (> good version of flash player for my swf files)

    Browsers does not inherently detect Flash Player, but the HTML that incorporates
    your SWF can be programmed with JavaScript to do it. More than likely,.
    what you see, is simply the fact that (for the most part) Flash Player
    is backward compatible. I can only think of one or two discouraged
    Terms of ActionScript (for example, the concatenator "add") are no longer
    supported. Seems like your SWF AS1 happens to be free of those very
    a few scenarios.

    > However, now the problem is I need to add more stuffs to &
    > change these old .fla files using the latest version of flash.

    This shouldn't really be a problem. :)

    > And the new Macromedia Flash does not seem automatic conversion my
    > old AS1 scripts for the new flash 8 player or higher...

    Unless your changes need the new features of Flash Player, you can
    keep on using AS1 and published for Flash Player 4, 5, 6 and so on.

    > So my question is, is auto conversion to ActionScript
    > software to convert the old AS1-AS2/AS3 files which
    > viewable with flash player version 8 or higher?

    There is no, I know. But what error messages are getting you?
    Why do you need to specifically target the Flash Player 8 (or higher)? (I ask)
    Because maybe you don't have.) Flash Player 8 is the version to drop support
    for the concatentor 'Add', so that's the only issue. Let's see some of
    your error messages and who should bring solutions to light.

    David Stiller
    Co-author, Foundation Flash CS3 for designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Is there a list of spyware or other malicious stuff, I can find in my computer

    I want to eliminate spyware or other malicious stuff that ends up on my computer. I know that I can look in 'Library' etc, but I don't know what to look for. I would appreciate if someone could tell me WHERE to find a list of malicious downloads, etc. that I can find and eliminate on my computer. THEN, I would appreciate it if someone could tell me OTHER ways to search for, locate and eliminate

    Google will be the answer to your problem

  • Got a new iPhone, has new things with it, like my old stuff.

    I got a new iPhone (old) because my last was lost in an unfortunate event. I have photos taken and sent texts with her and want to keep them, but I also want the old stuff from the iPhone I used on it from my backup. Is this possible?

    You can import the photos to the computer to save, but if you restore the new phone to backup old phone, you will lose your messages. Backup restore deletes all phone and it brings back to the date and time of the backup. After the restoration, you can synchronize the photos you took on the phone with iTunes.

  • Thunderbird has started printing stuff unwanted header when I try to print emails I sent.

    Thunderbird has started printing stuff unwanted header (X-Mozilla-status:..., references:, Message-ID, etc.) when I try to print emails I sent.

    How can I get rid of these?

    Thank you.

    View-Headers-Normal instead of all

Maybe you are looking for