Dynamic Skinning in Flash

Hello, I have a question. I am a designer by trade, but
recently I have been toying more and more with code as a creative
medium. This is my first attept to play with an API, and this is
basically what I'd like to accomplish:
I need to load the RSS feed into Flash, and then isolate the
hex values and apply them to cretain objects in the flash movie.
Basically dynamically "skin" the page with kuler themes, if that
makes sense. I'm using AS2 and Flash CS3.
I've been scouring the internet for examples but I havn't
been able to find anything specific to my needs. I need to know how
to load the RSS, and how to extract certain data I need (theme
name, hex values, etc.) and finally how to apply them to objects,
to color buttons, header background, etc. I'm not asking for anyone
to write the code for me but any examples or point-me-in-the-right
direction type advice would be hugely appreciated. I'm new to this
and I have the concept all layed out in my head, I just need to
know the syntax to start experimenting.
Thanks in advance for any help you can provide.
Chris

I have made a very simple way to use the kuler API but it
requires as3. Is there a reason for not using a newer version of
action script??
Any ways the klib-as3 framework can be found at
http://code.google.com/p/klib-as3/
if you have any questions, feel free to ask and I see what I
can do.
heres a example of my framework

Similar Messages

  • Can't get dynamic text in Flash 8 pro to work

    Hi,
    This is driving me nuts. I am using SWObject to send a
    variable to my Flash 8 swf. The swf is basically a header that
    plays a video and I want to put the name of the web page
    dynamically on top of it. Sounds simple right. Well I can not get
    it to work. In the past I have done dynamic text boxes without any
    problem.
    I have uploaded all the files to my clients server (
    including the fla and the HTML page that accesses the swobject code
    I have also tried other more conventional means to load the
    Variables ( in the URL address and using Flashvars with a normal
    object and embed tag ) Nothing seems to work.
    Is there a problem with dynamic text and Flash 8?
    I'm pulling my hair out any help would greatly be
    appreciated, Thanks in advance.
    Zip file on the
    server with all the files

    Hi jimWPX, I have no problems with dynamic text in Flash 8,
    and I see no problems in your file.
    Could it be that the js doesn't parse for Flash 8 correctly?
    A quick check for version seems to suggest that it's embedding with
    tags for v 6 Flash. Might be problematic.
    An alternative is FlashTag.js,
    http://www.macromedia.com/go/flashjavascript/
    which works fine for me also. Hope it helps

  • How to use an dynamic text from Flash in FlashBuilder with swf ?

    Hello,
    i'm trying to develop a game in flex builder and i got a problem with the dymanic text i've imported from flash. I want to insert a scoreboard in my application and for doing that i should use dynamic text in flash. I create a dynamic text in flash and then a import it to Flash Builder in a movie clip, and i called the dynamic text "Score". Now i've tried to use the "Score" variable to change the value of the dynamic text box un my flash builder application, but it doesn't change anything.
    I read somewhere that i've got to use the score.text value to change the number of my score but that doesn't works because Flash Builder tells me that this sort of variable don't contain the .text value.
    Thank you for trying to help me.
    bye.

    Thanks Ned,
    I always welcome learning something new.
    I did not know creating a new keyframe,
    creates a new instance.
    Yes, I had used the same dynamic text field instance name in
    numerous, new layers (great observation).
    With the objective to display the User's name throughout
    the timeline (on and off)...
    I'll attempt to paraphrase your solution;
    Use a single layer to display the dynamic text field.
    Extend this layer's timeline throughout the movie, or end use of the dynamic text field.
    Help with this one ??
    Set the visible properties to true or false as need through out the timeline.
    ( Does require an AS3 ? )
    I'll give that a try.....
    ~~
    Side of effect of using the above solution;
    The SWF in it's attempted state, uses the dynamic text field instance, in
    different places, different text sizes, on the stage, throughout the Movie.
    (i.e. the User's first name appears in different sentences...)
    Per the solution above,
    I believe I will be limited to One location, one format setting.
    Is this assumption correct?
    I can make this work from a display / Movie point of view.
    However, your first VAR concept, noted above, might be
    worth exploring should more flexibility be required.
    Thanks for making the time to coach...
    D-

  • Dynamic Gallery in Flash

    Hello everyone,
    I'm trying to build a dynamic gallery in flash, but I need some help on how to implement some special tactics. The downside of it is, its a two step process.
    For starters, my ulimate goal is to build a horizontal scrolling gallery thats similar to the Microsoft Surface touchtable interface as shown here: http://news.cnet.com/2300-1041_3-6211837.html, but implements the transitions of the Pastel Stories header as shown here: http://www.pastelportal.com/stories/
    When the centerpeice icon is in the center focus, its larger than the rest of the icons and you can move your mouse from left to right to scroll through the gallery. Ive seen some variations of this, but none of them offer what I'm trying to accomplish. The main image is not focused in the center and/or the images arent spaced out evenly enough.
    The second part of this process, its kind of difficult. You see when the user clicks on the icon, it takes them to a sublayer where they can view the photos in the same similar fashion as the initial gallery. The only problem is the transition. You can see the transition and/or flash component I'm trying to accomplish in the pastel stories header swf.
    If anyone knows of any ideas on how to implement these tactics or knows of any tutorials or any "for-purachase" files, please let me know! Thanks!

    try:
    txfe.text = xmlFile.section[int(m.currentTarget.details) -1].details;
    instead of
    txfe.text = xmlFile.image.[int(m.currentTarget.details) -1];
    and add your thumbs to gal, not the stage.  when you're done with the gallery, remove gal.

  • Please Help!!!!!dynamically changing a flash movies size...

    Hi i'm working on my final year dissertation and have become
    intensely stressed out/frustrated & almost mental in achieving
    this particular aim!!!!
    what i need to know is how to
    dynamically change a flash movies document size in real time,
    without squashing or stretching the content,much like the banner
    adds frequently seen on hotmail by companies such as orange,lexus
    etc.. where the flash movies size expands on interaction
    Help on this will be greatly greatly appreciated!!
    Thank you.

    RE: "P.S. I  found it aggravating that I couldn't copy and paste text  here, it wanted me to insert as a link or an image, how do you insert plain  text?"
    I take it you tried using the "right click" menu?   That doesn't seem to work, as you noted, but, you should be able to paste text by pressing your CTRL key  and while holding it down, press the "V" letter  key.
    CTRL + C = COPY
    CTRL + X = CUT
    CTRL + V = PASTE
    HTH,
    Ortho_Fan

  • Flex skin in Flash CS3

    Hi!
    I have installed the Flex Skin Design Extensions and
    Flex Component Kit for Flash CS3. But i cannot find the flex skin item under File > New > Templates > Flex Skins in flash. How can i find the items? I have tried everything. Restarting my computer, try to install it in another computer and installed the plugin files again. But non of it work for me. Is really getting my nervs.. Please.. can some one help me???

    Help??? any one???

  • Using dynamic text in Flash Builder

    Hi,
    I'm trying to get some dynamic text to my web page. The text is readed from .txt file
    I use AS script which i was using in a project I made with Flash Pro and now i try to implement it in Flash Builder project
    The script look like this:
    var req:URLRequest = new URLRequest("design_1.txt");
    var loader:URLLoader = new URLLoader();
    function textLoaded(event:Event):void
    design.text = loader.data;
    loader.addEventListener(Event.COMPLETE, textLoaded);
    loader.load(req);
    So first I made a project with Flash Catalyst and in there I created an area text element. Then I imported the project to Flash Builder and put the AS script in the <Script> section and gave the <RichText> an id="design".  The text is just simple text and formatting happens in richtext element.
    So, when i try to compile the FB project it give me and parse error "undefined property error req", "undefined property error loader" etc.
    So should i alter the AS script for FB or is there something else wrong? I tried to google how to use dynamic text in FB but couldn't find any easytyutorials. I'm mostly a desginer so coding isn't my speciality. But thanks for help!

    Hi Amy,
    You can customize 'New class' generation under Preferences->Editors->Flash
    Builder->FileTemplates->Action Script->New ActionScript class.
    Currently there are no template variables available constructors. But you
    can customize it as following,
    $
    ${import_declaration}
    $ {
      public function ${class_name}() {

  • How to display dynamic text in flash CS5....

    i am using flash cs5...i created a game but when i m running it...it is  showing a message saying "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts""
    and i am not getting my dynamic text output.......please hwlp me out!!!!!!

    As the error message says, you need to embed the font(s) that you use in any input or dynamic text object so that Flash will have that font to use when displaying the dynamic text. There are several different ways to accomplish this. Are you using textField objects on the stage, or are you creating instances of textFields using Actionscript?

  • Dynamic Text in Flash/Image

    Hi All,
    I cant find any simple tutorials, can anyone help me and
    explain how to very simply, display one variable of text from a
    database as flash format (or a type of dynamic image)?
    Using CS3, and ColdFusion. I'm playing games with it and
    think i'm just name the variable wrong either in a flash file or cf
    page. But anyway, any simple method to dynamically display text as
    an image will work.... please help.
    Thx,
    Mike

    probably the simplest way will be passing your text to your
    flash movie
    as the movie url's query string variable (in the
    [object]/[embed] html
    tags). inside the flash movie set a dynamic text box to
    display the
    passed variable:
    if you google "pass variable to flash" you will see a lot of
    examples of
    code involved. just make sure your flash movie is large
    enough to
    display all passed text, and the passed text is url-encoded.
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Dynamic text in Flash: a href="mailto:... tag?

    I am using an Access DB to feed text dynamically to Flash.
    Although some simple html tags work in the text, I tried putting in
    <a href="mailto:[email protected]"> link tag in and it
    didn't work. Does flash not support mailto links in dynamic text?
    Is there a workaround to get a link into the dynamic text that will
    open an email?

    Nevermind! It works - the link didn't change color so I
    hadn't realized the link actually worked... I'm a dummy. Flash is
    smart.

  • Display Dynamic HTML beside Flash Chart in Chart Region

    Hello,
    I have a vertical 3D flash chart with some categories I,II,IV... on x-axix. I have to show a legend beside the chart dynamically depending on the categories displayed like (I - PC, II - TV, IV-Laptop....) First I tried to do this with static data. I modified, Region Source of Chart region to include the legend. I am successful to create a table & put some static html code. Now I want this to be dynamic.
    I found that with shotcuts I can put dynamic HTML code. I created shortcut with PL/SQL & successfully displayed them in a 'HTML REGION WITH SHORTCUTS', but I want that in Chart Region, not as a separate region. Shortcut is not working in Chart region.
    How can I achieve this? Is there a way to call a process or substitution string or some thing from Chart Region to display my legend dynamically beside the chart.
    Experts any hint is appreciated.
    Sowji.

    Experts,
    Can you please give any hint how this can be achieved? If I keep the dynamic legend as HTML with Shortcut region, the width & height are not matching with the chart region as it is dynamic. Also, I am unable to combine both 'chart' & 'html with shortcut' region to look like one region. So I am looking for options to insert the dynamic html in to chart region.
    Sowji.

  • Dynamic website with Flash?

    I'm using Dreamweaver 8 building a coldfusion website. The
    content for
    the webpages are pulled from an MS Access database. I'm
    trying to add
    in a flash photo gallery to a few of the pages. If I put the
    flash
    code directly on the webpage it will dispaly the flash photo
    gallery.
    However, if I put that same code into the database and
    display it
    dynamically it will not display the flash photo gallery. I
    have
    checked the source code of the dynamic page after it has
    loaded and
    the code is there.
    I'm sure the problem has something to do with the slight
    delay it
    takes for the code to be pulled from the database. Does
    anyone know of
    a fix for this?
    The html for both the static and dynamic page look exactly
    the same if
    you view the source code after the page has loaded. any help
    is
    GREATLY appreciated, thanks!
    here is a chunk of the flash code that is being inserted:
    <td width="492">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://fpdownload.macromedia.com/pub/
    shockwave/cabs/flash/
    swflash.cab#version=8,0,0,0','width','474','height','454','id','CoffeeCup','align','right' ,'src','finaltemplateCoffee','quality','high','bgcolor','#ffffff','name','CoffeeCup','scal e','noscale','salign','lt','pluginspage','
    http://
    www.macromedia.com/go/getflashplayer','movie','finaltemplateCoffee'
    ); //end AC code
    </script><noscript><object
    classid="clsid:d27cdb6e-
    ae6d-11cf-96b8-444553540000"
    codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/
    swflash.cab#version=8,0,0,0"
    width="474" height="454" id="CoffeeCup" align="right">
    <param name="movie" value="finaltemplateCoffee.swf"/>
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="salign" value="lt" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="finaltemplateCoffee.swf" quality="high"
    bgcolor="#ffffff"
    width="474" height="454"
    name="CoffeeCup" scale="noscale" salign="lt" align="right"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /></
    object></noscript>
    </td></tr>

    Usually the best source of information on working with a
    template is from the site where you purchased the template. There
    may be supplimental information packaged with the downloaded files,
    or there may be comments written directly into the files
    themselves.
    Exactly how you modify the file will depend on how it was
    designed, what version of Actionscript was used, whether it uses a
    component, or an swc file, and how well it was created.

  • Can you resize Video Skins in Flash CS3

    I am inserting a Flash Video into a file and trying to
    include the automatic skin from the import dialogue box. If I have
    a small video (say around 180 pixels wide), the skin juts out
    obtrusively off to the sides. Is there a way to manage the size of
    the skin?

    I don't know about about as3 versions but the as2 versions
    can have a minimum width which I think from memory is defined in
    the skin file itself.
    You could make your own skin by copying one of the existing
    skin flas and changing it to suit , including the line of code that
    specifies the minimum width.

  • Dynamic contents to flash

    Hello, does anyone have experience implementing dynamic
    contents to load from a Database into flash? I am trying to take up
    a new project that will require data to be loaded from a DB. Any
    turorials or help files would be great.

    Hi
    Check out this
    Video Tut.
    It will get ya started.

  • Merge Flash Player Skin with Flash Video for Single Flash File

    My company uses a content management system for it's website and I am the administrator. The CMS does not require or use html code. I am a new to Flash, but I am able to produce some simple files. I have compiled a simple 2 minute video clip that I need to upload to my companies website. The Flash file requires a player skin which I was able to produce. I understand that when you output to Flash, two files are created. As I understand it, one file is for the skin and the other is for the movie along with the html code that links the two. Unfortunately, our content management system does not recognize the link between these two sets of files and I am unable to import them. I can import the flash movie clip without the player, but that does not suit my needs. I can import the player skin without the movie, but there would be no point. Is there a way to output both files into a single Flash file with the player skin embedded into the Flash movie? I have the full Adobe Master Suite CS4, is it possible another program could be used for that purpose or is this an impossibility? Any information you could provide would be appreciated...thanks...

    My company uses a content management system for it's website and I am the administrator. The CMS does not require or use html code. I am a new to Flash, but I am able to produce some simple files. I have compiled a simple 2 minute video clip that I need to upload to my companies website. The Flash file requires a player skin which I was able to produce. I understand that when you output to Flash, two files are created. As I understand it, one file is for the skin and the other is for the movie along with the html code that links the two. Unfortunately, our content management system does not recognize the link between these two sets of files and I am unable to import them. I can import the flash movie clip without the player, but that does not suit my needs. I can import the player skin without the movie, but there would be no point. Is there a way to output both files into a single Flash file with the player skin embedded into the Flash movie? I have the full Adobe Master Suite CS4, is it possible another program could be used for that purpose or is this an impossibility? Any information you could provide would be appreciated...thanks...

Maybe you are looking for

  • [SOLVED] Transparency in termite gone

    So, the title states it pretty well. Updated last night, went to bed, booted everything like normally, woah! Transparency isn't working! And I'm pretty sure termite is to blame, somehow... But I don't know why. I've tested other terminals to rule it

  • What can be done if clean edge feature in doing panoramas will not function in pse10 or 11?

    I am using photomerge in pse11 or 10 and stitching 6 images together using auto. The image has come out fantastic,but the edges will not fill in when checking use clean edge feature as i get the error message that it will not work due to too much Ram

  • 3520 All-in-One Scan Problem

    Why is there a black line on the length of my scanned documents about two inches from either side of the document.  This happens only during ADF scanning, but not when scanning on the glass.  Any help will certainly be appreciated.

  • Lost HDD space

    Hi, I was using Azureus bittorrent when I lost a couple of gigs of harddrive space. The files to be downloaded were to be put straight across to an external usb drive I have. This hasn't been a problem before but it just went crazy today and all this

  • How do I save contents from web page to iWork

    This may be the wrong community so please let me know if it is? I want to save a document from a web page in Safari to iWork on iCloud.com. The document is of my son's USA hockey membership confirmation and I don't know how to save it to iWork or whi