Flash CS3 Help (Shape With Bitmap in Runtime)

HI,
I am A Beginner in Adobe Flash CS3
Now, i make a fla (Flash Document) file.
say, there is a bitmap (image) in the asset/Library (imported).
I create a shape with that image. (fill type as bitmap).
Now. what i want, i want to change that shape bitmap in run time using external image file (jpeg) file. I can load and change images of movie clip. But i don't want that. I want to change the bitmap of a shape (graphic symbol) by loading an external file (image file ex.jpeg)  and also want to keep aspect ratio. (say my shape size is 800X600 px and i want to load 1486x1020px image in that shape. So, it will keep aspect ratio and resize to 800x600.
could anybody help me out..
****Pleaese At least give me a suggestton or Feedback****
please check this File, May be it will help you guys about my requirement.
Don't Panic File Size is Only (410 KB) And No Password Or Any Kind of Virus) As the file extension is (.fla And .jpg)
(http://rapidshare.com/files/316519572/Flash_CS3_1.rar)
First watch test.jpg file
i heighlight some point :
1. The Graphic Symbol (Shape 2)
2. Shape 2 Fill Type (Bitmap)
3. The Image In Assest Library
4. The Shape 2 (with fill type as bitmap)
Now, The point is what i want. If you already watch the movie (Test.fla). Then, say i have a picture (D:\Pics\Load.jpg). i want to load that jpeg file on runtime in shape 2 (as bitmap fill type) and also keep aspect ratio.  I don't want to add the image to my library (asset).
Ok, could anyone help me out ....
Thanks in Advance...

Not entirely sure what you're looking for, but you use a Loader to load images at runtime. You can size them as you like by setting the width and height.

Similar Messages

  • Flash CS3 HELP!

    Ok, I am using adobe flash cs3, and creating a photo slide
    show with buttons and all. I am stuck in the very beginning!!! When
    I drag my Jpegs into the Library on the right side, they all show
    up, but then when I go to drag them into the workspace, it just
    shows a grey box around them. They do not fill!!! I know there is
    probably something very simple im missing but I cannon figure it
    out. I cannot even create a rectangle or shape with it filling a
    color. I know the fill lock is not on either. This makes no sense
    to me please tell me what I am doing wrong. I just started having
    this problem, it has not happened before.. PLEASE HELP :)

    No I do not. Thats not the problem, but I still cannot figure
    it out. I cannot really continue to work either until I can get
    this figured out.

  • Embed fonts in Flash CS3 and load in Flex at runtime

    Hi,
    I want to embed fonts in the library of Flash CS3, compile it into a SWF and load it in my flex up at runtime and register the embedded font.
    I'm able to get the linked class in Flex but the font doesn't show.
    The FLA has a font called Viner Hand embedded as a library item, with linkage VinerHand and baseclass as flash.text.Font
    Here's the code in flex to register the font -
    var FontLibrary:Class = ApplicationDomain((event.target as LoaderInfo).applicationDomain).getDefinition('VinerHand') as Class;
    Font.registerFont(FontLibrary);
    When I do Font.enumerateFonts after this, I see [Font VinerHand] in the array but the textField doesn't show the font embedded.
    Nishant

    Hi there,
    Try taking a look at the following links:
    http://www.trajiklyhip.com/blog/index.cfm/2007/7/18/Embedding-Fonts-in-Flex
    http://blog.flexexamples.com/2007/10/25/embedding-fonts-from-a-flash-swf-file-into-a-flex- application/
    Hope it helps.
    With best regards,
    Barna Biro

  • Adobe Flash CS3 help needed

    I need help very badly....
    Here is the reader's digest version.....
    I purchased a flash website template for my local band to try
    to elimate the pain of creating one from scratch. I never used
    Adobe Flash CS3 before, but figured I could figure out enough
    (through reading & forums) to change what I needed to
    personalize my site. Well, I have spent countless hours learning,
    and changing, and have come up with a pretty sweet website using
    this template. I now have only 2 problems left that I can not
    figure out no matter what I try.
    One of my pages is set up so that fans can listen to and/or
    save any of 3 songs that I have recorded in MP3 format. I have
    basically 3 columns set up: the 1st column has the song name, the
    2nd has speaker icons, and the 3rd column has floppy disk icons. I
    want to be able to click the speaker graphic, and play the MP3
    song, or click the floppy disk graphic and enable any fan to save
    the file. I figure there has to be a fairly simple way to do this,
    but I sure can't figure it out, and I'm starting to pull my hair
    out. Please help....
    Remember, I have just basic Adobe CS3 skills so a description
    of what to do has to be fairly easy to understand....
    Thanks in advance!!!
    CyberFly

    Please help.......

  • Flash CS3: Help me make my movie play, please!

    URL: http:schoolsignsonline.com
    This is an electronic sign company, so I'm trying to put a Flash movie of one of their signs onto their preexisting site. No sound, no skin, no controls, just the movie, looping endlessly.
    I imported an .avi video (from a PC) from the client into Flash CS3 (on a Mac), and made sure my stage was the same size as the file parameters.
    Saved the file. Tested the movie in Flash. **The movie plays just fine**. It's a picture of brightly colored balloons ascending on a black background.
    I publish the movie.
    I copy the .fla and .swf into the flash folder at the root level of the site on my local server.
    I go into Dreamweaver CS3 to insert the movie using their Insert>Flash into the div I've created for it on the index page (which uses server side includes for the nav & footer only - no PHP involved - so each page has an .shtml extension).
    I test the movie in DW by clicking on the green arrow in the properties toolbar. Nothing but white. Movie doesn't play, or if it is playing, it's only white.
    What the heck. I save the page, letting DW generate the script.
    I upload the revised index page, the flash folder (with the .swf and .fla files in it), and the Scripts folder to the site on the remote server.
    Go to a browser. Nothing but white where the movie is supposed to be.
    I asked about this on the Adobe DW group on Yahoo Groups, and they really didn't know, thinking it was a Flash problem. One of them said the movie couldn't be found. Dang it! This is a script that DW generated when I placed the movie into the page! I don't know anything about JavaScript (yet), so I'm not going to muck about in the code to break it.
    BTW, the HTML for the page with the movie on it no longer validates - I hear this is typical of a CS3 Flash insertion by DW.
    Can anyone PLEASE help me figure out what I've done wrong? What other info do you need from me?
    Thank you in advance.
    Theresa

    For the Flash-generated html file, you basically want to copy the script tag in the head section....
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    into the same place in the head section of the real file.
    and copy the entire section of code in the body starting with and including...
    <script language="javascript">
    if (AC_FL_RunContent == 0) {
    .... all the stuff between....
    </object>
    </noscript>
    into the div you mention
    And in the case of what's shown above, you would want to have the AC_RunActiveContent.js file in a Scripts folder.

  • Flash CS3: Getting Started with AIR

    Ok, heres the manual i'm following
    http://livedocs.adobe.com/air/1/devappsflash/help.html?content=FlashHelloWorld_1.html
    1. Start Flash. <-- oke i can figure out how to do that
    :P
    2. In the Welcome Screen, click Flash File (Adobe AIR) to create
    an empty FLA file with Adobe AIR publish settings. <--
    no?..i dont see anything about AIR ?
    soo..what now?..
    apparently this is the way you'do it..according to the manual
    which says:
    Creating an Adobe AIR application in Flash is much like creating
    any other Flash application. The differences are that you begin by
    creating a Flash File (Adobe AIR) from the Welcome screen and
    conclude by creating application and installer settings and
    installing your AIR application. -- great =/
    EDIT: i found i might have to update my version of
    flash.

    AIR Update for Flash CS3 can be downloaded from this link:
    http://www.adobe.com/support/flash/downloads.html

  • Adobe Flash CS3 serial number with trial version problem

    I have been trying to install Adobe Flash CS3 but when i
    click on the icon it tells me my trial version has expired, to
    enter the serial number so I do but it does not work.
    I have manage to install Flash CS3 but everytime I click on
    the icon to start the program it ask the trial version has expired.
    I don't know how many times i have to uninstall it
    Does anyone have any idea how to fix this problem?
    Help please

    Delet the file "Lightroom 1.0 Registration" in the following places:
    ~:Library:Application Support:Adobe:Lightroom:
    (~ = your home folder).
    and
    Library:Application Support:Adobe:Lightroom:
    (The library-folder att the root of your harddrive).
    If you only have that file in one place. Just delet that one.
    Restart LR and register again.
    I think this will work for you.
    /Andreas

  • Flash CS3 seams sluggish with text and if actionscript window open

    I have a movie clip on the stage that has a large text box
    inside with 18-20pt font, 3-4 paragraphs of text. When I try to
    scrub the timeline, the playhead on the timeline does not keep up
    with my mouse... it lags way behind. It's like the Flash CS3
    software starts to freeze or hang. And the text in the final swf
    movie doesn't animate on the timeline.
    What I did finally discover is that if I hide (turn off
    visiblity) the layer on the timeline that has the text movie clip,
    voila! I can now smoothly scrub the timeline. What gives??? I think
    others have had similar issues with the CS3 actionscript panel.
    My pc specs are as follows... (I think it should be beefy
    enough to handle this simple text animation).
    Vista Ultimate SP1 64-bit, Intel Quad Core, 8G Ram, 512MB
    eVGA 9800GTX graphics card

    You have to switch the focus back to the application and then
    to the test window. Evidently between Flash MX04 (the one I have to
    test) and CS3, they made it so that just clicking in the AS editor
    window doesn't return the focus to the application. In that case
    the Testing Environment intercepts the apple-enter and just
    re-tests the already compiled version.
    If you click the application window, then click the
    actionscript window, it will recompile the swf. However I
    personally don't find apple-w to close the window so
    onerous.

  • Flash CS3 help URGENT

    Im working on a flash project and im trying to copy the
    frames of one file to another but it has motion tweens and motion
    guides....and the frames are specifically place at certain times.
    how do i copy the frames to another file with out getting the
    motion tweens detached from the motion guides and withough have the
    frames get shifted. Can anyone help me? my friend suggested that i
    have to copy the frames and 'reorganize' all the frames.. but then
    i dont know how to re attach the motion and the motion guides..im
    am pretty postive thats theres a more efficient and easier way to
    copy frames from a file to another. help please!
    on another note...does flash on a mac work diffrently on a
    pc? cause my animation is getting pretty glitchy >.<

    All you need to do is make sure your text is Static text and
    flash embeds the font on your .swf so other users can see it as
    is.

  • Flash pros help needed with code

    I have been given task and dont know where to start.
    I need to produce a small quiz that sends the selected values to an asp.net application form there populates the database with the values chosen.
    Ive been told this is the best way to send values from flash to a database.
    Can anyone help in how id even go about this?
    below is a work flow of what i need to do.
    thanks,

    if all your radio buttons have the same group name (say gn), you can use:
    var sendLV:LoadVars=new LoadVars();
    var receiveLV:LoadVars=new LoadVars();
    receiveLV.onData=function(src){
    // do whatever
    sendLV.data=gn.selection.data;  // assuming your radio buttons have data assigned
    etc
    sendLV.sendAndReceive("submit.aspx",receiveLV,"POST");  // assuming your asp si expecting posted variables.

  • Flash CS3: Help panel too large to resize

    Hi!
    I feel quite stupid but...
    for some reason my Help panel is too large, making it
    impossible to scroll down to all the items.
    Here's a screenshot:
    http://tinyurl.com/2aycu4
    When I open the Help Panel, e.g. by pressing F1 the grey
    header bar is flush with the top of the screen - no way to drag it
    higher up. The problem now is that the bottom of the panel is
    somewhere well below of the lower edge of the screen - so there
    seems to be no way to drag the lower corners of the panel in order
    to make the panel smaller, small enough to fit the window. As it
    is, it is impossible to scroll down to the lower parts of the Help
    panel.
    Any help is very much appreciated!
    Thanks!
    Andreas Weber

    Can't you resize from the top? In Windows you can usually
    resize from any window edge. So, just move the window down then put
    the mouse of the top edge until you get the resize arrows...
    Or am I wrong I notice the help window is
    non-standard.

  • Creating metadata in Flash CS3 and reading it in AS3

    Is there a way to store metadata in a library symbol in Flash
    CS3, and then read it in AS3? For example, I want to have the
    following code run:
    m_Metadata = 'You're cool!'
    I need this data before I can play the movie clip. Is there a
    way to store this? I've been trying to find a solution, but it
    looks like I'm just going to have to load in a separate XML file
    with the data.
    Thanks!

    Unfortunately there's no simple way to add instance level
    code in Flash CS3 or CS4 with AS3. This is a significant authoring
    tool deficiency in my opinion.
    Making a component... depending on what you want to do, there
    can be a lot of overhead. There may also be some very flaky/buggy
    behavior in Flash CS3 with custom components if your experience is
    anything like mine. However, for basic metadata, try this:
    1. Select the Symbol in the Library
    2. Right click, choose Component Definition...
    3. In the Parameters data grid you can add
    parameters/properties. Make sure you set the "Variable" field as a
    unique identifier for each parameter. These are the properties
    you'll use in AS at runtime to retrieve the values.
    4. Now on each instance on the canvas you can go to the
    Parameters tab and enter custom values for each parameter.
    5. At runtime, you should be able to access the values via
    instance_name.variable_name
    I believe that will work without actually creating a
    component class and making it functional.

  • Error publishing Air in Flash CS3

    Hi All
    On the Adobe Air Flash CS3 wiki page
    http://labs.adobe.com/wiki/index.php/AIR:Flash_CS3_Professional_Update:Getting_Started_wit h_AIR_for_Flash_CS3_Professional)
    I found a simlpe tutorial "Creating an Adobe AIR application
    in Flash"
    I thought well this can't be hard can it?
    However when I use the Publish Air File button in the 'AIR -
    Applications and Installer Settings' window I will get the
    following error:
    "namespace is invalid in the application descriptor file"
    Now I have tried to look into the XML file but I cannot see
    any problems.
    I also tried to use the descriptor-template.xml which came
    with the Air - SDK
    However also that will not work.
    Has anyone got an idea why I get this error?

    Hi FragFood!
    I received the same error "Namespace is invalid in the
    application descriptor file" repeatedly on many computers
    (XP/Vista) and here is how i repeatedly worked around it.
    I made a step-by-step sheet explaining exactly how to install
    Flash CS3 (9.0) with the Latest Flash Player (v9.0.124), and with
    Adobe AIR (1.0) as of today (3/May/2008).
    If you have already installed Flash CS3
    Uninstall Flash CS3
    Goto all the "Program Data" folders, RENAME/DELETE the "en"
    folder
    Goto "Program Files" folder, RENAME/DELETE the "en" folder
    Now to get the latest version of Flash CS3 installed!
    Please follow these steps exactly; each one is extremely
    important.
    Installing Adobe Flash CS3
    #1. Install Flash CS3
    #2. Open Flash, Close it
    Installing Adobe AIR Runtime
    #3. Download & Install "AdobeAIRInstaller.exe"
    --->
    Adobe AIR Download Center
    Installing Adobe Flash Player Update for Flash CS3 Professional
    (9.0.2) -- 12/12/2007
    #4. Download & Install "flash9-en_US_9_0_2_Update.exe"
    --->
    English/Windows,
    English/Macintosh,
    Other
    Languages
    Installing Adobe AIR Update for Flash CS3 Professional --
    2/25/2008
    #5. Download & Install "flash9-en_US_9_0_3_Update.exe"
    --->
    English/Windows,
    English/Macintosh,
    Other
    Languages
    Installing Adobe AIR update beta 3 for Flash CS3 Professional
    – Updated 12/14/07
    #6. Download & Install
    "flashcs3_air_extension_p3_en_121407.exe"
    --->
    Multi-lingual/Windows,
    Multi-lingual/Macintosh,
    Other
    Languages
    #7. Open Flash, Close it
    Installing Adobe AIR Update for Flash CS3 Professional --
    2/25/2008
    #8. Install "flash9-en_US_9_0_3_Update.exe" again
    ---> see #5
    #9. Open Flash, Close it
    Installing Adobe Flash Player Update for Flash CS3 Professional
    -- 04/17/2008
    #10. Browse to "C:\Program Files\Adobe\Adobe Flash CS3",
    DELETE the "Players" folder
    #11. Download "flash_player_update6_flash9.zip"
    --->
    Multi-lingual/Windows/Macintosh
    #12. Copy the "Players" folder from
    "flash_player_update6_flash9.zip"
    #13. Paste into "C:\Program Files\Adobe\Adobe Flash CS3"
    To test your Flash Player installation... (Optional)
    Open Flash
    Create New > Flash File (AS 3)
    File > Publish Settings
    Checkmark "Windows Projector .exe", OK
    File > Save, Save it someplace with any name
    File > Publish
    Now browse to the folder you saved the FLA File
    Look at your EXE File
    You should see a "Red colored square" icon instead of the
    usual "Blue colored circle" one
    To test your AIR installation... (Optional)
    Open Flash
    Create New > Flash File (AIR)
    Click OK on the message that appears
    File > Save, Save it someplace with any name
    Commands > "AIR - Create AIR file"
    Then on the dialog that appears asking you for a Digital
    Certificate:
    Press Create...
    Type some info, and a password, and save it into the same
    folder you saved the FLA File
    Now type the same password again, Press OK
    If you see an error "Unable to contact timestamping server",
    press "Continue without timestamping"
    You should see a message "AIR File has been created" !!!
    Enjoy Flash CS3 with the Latest Flash Player (v9.0.124), and
    with Adobe AIR (1.0) !!
    Faithfully,
    Robin.

  • Flash CS3 - Odd button problem

    Hello, Ive upgraded to Flash CS3 and I'm having a problem
    with buttons.
    When I open up my site, the old buttons work fine to navigate
    the site and open up URL links. I have the actions on their own
    layer instead of having an onRelease on each button.
    However, when I create new buttons, they don't work.
    I've even tried copying the existing working buttons,
    applying the exact same actionscript to figure out what's going on,
    but that also doesn't work, those buttons won't open up the URLs.
    Am I perhaps using the wrong publish settings/flash player
    choice?
    Thanks

    The answer is "skins" just search under "Creating skins for
    some instances" in the Flash CS3 help file.

  • Why is AS1 documentation not a part of CS3 help

    hello;
    in my flash CS3 help, there is AS2 and AS3 documentation, but
    no AS1 documentation;
    I have come to the understanding that AS1 would continue to
    be supported in future flash authoring environments;
    any thoughts?
    thanks
    dsdsdsdsd

    dsdsdsdsd,
    > I am still not convinced that AS3 is necessary
    It isn't.
    > just because an engineer can build a 800hp engine,
    > powerful enough to thrust a wing-adapted minivan
    > into flight
    > doesn't mean it is the right approach: do soccer moms
    even
    > want to fly?
    I do get your analogy. Really, I do. What I don't get is why
    you're
    the one making it -- because based on what you've described,
    it sounds like
    you're the engineer in this analogy, not the soccer mom.
    After reading
    Colin Moock's article, I would think even the soccer moms
    should find
    encouraged, but regardless ... of course you don't have to
    use AS3. ;)
    If you don't, you're stuck with a different set of
    complexities, so it
    all comes down to what you're comfortable with. In AS1/AS2,
    you have on()
    and/or onClipEvent() for handling events. You also have the
    dot notation
    equivalents (e.g. myClip.onRelease = handlerFunction). But
    wait, there's
    more! You also have addListener(). How's that for consistent?
    Ah, but
    then you also have addEventListener() -- just depends on
    which datatype
    you're handling the event for. If you're a longtime Flash
    user -- and you
    are -- then each new event handling model was something you
    took in stride.
    If you're new to the scene, it could seem like a completely
    arbitrary mess.
    In AS3 (outside of a drop-in-the-bucket NetStream exception),
    you have
    addEventListener(). Easy to learn and easy to remember,
    because it's very
    nearly consistent.
    In AS1/AS2, if you want to instantiate a new MovieClip
    instance, you
    have to refer to an existing MovieClip instance and invoke
    the
    createEmptyMovieClip() method, give the new instance an
    instance name and
    assign it a depth. In AS3, you just invoke the constructor:
    new
    MovieClip(), then add the new instance to the display list.
    It comes down to personal taste, I guess. To me, the newer
    models are
    easier to use ... once you learn them (of course). There are
    trade-offs in
    either camp, obviously.
    > if someone could tell me some concrete thing
    > that AS3 can do that AS1 cannot
    > I would appreciate it;
    I'm sure there are more, but here's a concrete thing off the
    top of my
    head: AS3 allows you to reparent movie clips (and other
    visual display
    objects) simply by removing them from the display list of one
    object and
    adding them to another. A practical example that comes to
    mind is a jigsaw
    puzzle, in which snapped-together pieces stay together,
    making it easy to
    move snapped-together pieces as a single group. Each
    individual piece could
    initially belong to the display list of the main timeline,
    but could be
    moved to the collective display list of a group of
    snapped-together pieces.
    Not that a single example should sway you. The example I
    made might
    just be meaningless to you, because you might not be
    interested in
    Flash-based jigsaws (or you might be interested, but would
    rather move
    snapped-together pieces by way of some algorithm that tracks
    the position
    and movement of each individual piece -- again, you're
    trading one set of
    complexities for another; on the main, I personally find the
    complexities of
    AS3 worth the learning curve).
    > I am working on my first AS3 project - shopping cart -
    but
    > I will not use external packages );
    And you shouldn't, unless you feel that external classes
    would help you.
    For me, I like the idea of utility classes (at least). In
    order to create a
    dynamic text field in AS1 -- let's say a non-selectable text
    field, that
    resizes as needed to fit the text, with a sans serif font --
    you might do
    something like this:
    var tf = this.createTextField("myTextField", 0, 0, 0, 0, 0);
    tf.selectable = false;
    tf.autoSize = "left";
    var fmt = new TextFormat();
    fmt.font = "_sans";
    tf.setNewTextFormat(fmt);
    tf.text = "Lorem ipsum dolor sit amet";
    (Note, this assumes Flash Player 8 or higher, because prior
    to Flash Player
    8, the MovieClip.createTextField() method returns Void.)
    So ... to me, that's a lot to type. Again (this is my mantra
    in this
    post) ... one set of complexities for another. To reuse this
    code, I could
    certainly throw it into a function. Let's say something like
    this:
    function makeTextField(target, text) {
    var tf = target.createTextField("myTextField" +
    target.getNextHighestDepth(),
    target.getNextHighestDepth(), 0, 0, 0, 0);
    tf.selectable = false;
    tf.autoSize = "left";
    var fmt = new TextFormat();
    fmt.font = "_sans";
    tf.setNewTextFormat(fmt);
    tf.text = text;
    makeTextField(this, "Lorem ipsum dolor sit amet");
    That's a tried and true procedural way to make your work
    easier. I
    think, so far, you would agree ... and I think, for you,
    there's nothing new
    so far. Notice that to keep instance names unique, I used
    MovieClip.getNextHighestDepth() to append a number to the
    instance name, and
    also to ensure that a safe depth is met. A real
    implementation would
    probably include x,y positioning parameters, to make sure
    text doesn't
    overlap ... but you get the idea.
    I could use AS2 to create a utility class called, say,
    SimpleText.
    Here's a stab at it. Quick and dirty AS2 external class file.
    // Class file
    class net.quip.utils.text.SimpleText {
    public function SimpleText() {};
    public static function makeTextField (target:MovieClip,
    text:String):Void {
    var tf:TextField = target.createTextField("myTextField" +
    target.getNextHighestDepth(), target.getNextHighestDepth(),
    0, 0, 0, 0);
    tf.selectable = false;
    tf.autoSize = "left";
    var fmt:TextFormat = new TextFormat();
    fmt.font = "_sans";
    tf.setNewTextFormat(fmt);
    tf.text = text;
    More complex? In a sense, sure. Not by a whole lot, if you
    really look
    at it. The AS1 function version was a teensy bit bigger than
    the
    non-function version. The AS2 class version is a teensy bit
    bigger than the
    AS1 function version. But once it's done, it's done. If I
    ever want this
    functionality, I just import my class and use its (in this
    case) static
    method:
    import net.quip.utils.text.SimpleText;
    SimpleText.makeTextField(this, "Lorem ipsum dolor sit amet");
    In my experience, that saves me time and effort. And this
    same sort of
    approach applies to non-static methods as well. It's just a
    way to organize
    your code. Many people find it more efficient. If you don't,
    then you
    don't. ;) It's as simple as that.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

Maybe you are looking for