Im stumped with loading an id number into flash.

I have a flash file (actionscript 2) created that calls an
external text file, and loads it into a scrolling text area.
example: // send and load variables
lv.load("
http://website.com/" + id + ".txt");
the url i want to load looks like this:
http://www.website.com/1.txt
the "1" is the id number. i have multiple id numbers.
example: "2", "3", "4" , etc.
if i direct link it like: lv.load("
http://website.com/1.txt"); it
works perfect.
however, since i have multiple files, i want to determine the
url by the "embed code"
so i have something like
<param name="movie" value="events.swf?id=12" /> and
<embed src="events.swf?id=1" .....
for some reason its not work. I thought I had it right, but
apparently not.
I have been wasting hours on this. Someone please
help.

try the following:
- _root.id instead of just id
- pass the id through with <param name="FlashVars"
value="id=1"> (in addition to what you have already... different
browsers work differently in this case...)
- set a default id in case the id doesn't come through
http://www.permadi.com/tutorial/flashVars/index.html
Hope that helps.
stephank

Similar Messages

  • How to speed up the loading of live data into flash file.

    How to speed up the loading of live data into flash file if the swf file size is 1.5 MB. Flash file is using 20 web service connections to load the live data.

    Hello,
    I am also facing a similar problem wherein the SWF file takes time to load the refreshed data in Infoview i.e. after exporting the xlf file to Business Objects platform. Currently I am using Xcelcius Engage/Enterprise 2008 SP3 Windows (file name: 51038212.ZIP) version 5.3.0.0 build number 12,3,0,670. Also the SWF file is approximately 2MB in size  and it uses 42 live office connections.
    Please suggest solution as to how to decrease the time it takes to refresh the live office connections.

  • A problem with importing layered PSD file into Flash

    Hi.
    There's a problem with importing layered PSD file into Flash.
    If I import a layered PSD file, some part the color of the lower layer is shown at the edge of objects or shadows. Instead, if I crop each layers first and import them, there's no problem.
    If the higher layer has brush or transparent effects, it becomes worse.
    Any help with this problem?
    Thanks.

    How was the original art created? Was the original RGB or CMYK? What is the resolution of the Photoshop file? Flash only works well with RGB and 72 pixel per inch resolution. If your original art is not set this way, then Flash will attempt to convert it as it imports it. Flash uses the sRGB color space. You'll get the best color translation if your Photoshop file is using this color preference.

  • Loading Variables from ASP into Flash

    I can find plenty of tutorials detailing how to load
    variables from a defined asp page into Flash, but here's my
    dilemma...
    I have an asp page that is reading a URL with a unique
    identifier in it (www.sampleURL.com?id=123456), and then turns the
    id number from the URL into a variable. On the same page then, sits
    my swf where I need to use LoadVars to pull in that ASP variable
    via Actionscript. If I don't have a static asp page to pull the
    variables in from and I want to pass the variable within the same
    asp page the swf is located on, how do I do it? Many thanks in
    advance...

    "bonzomn65" <[email protected]> wrote in
    message
    news:ej0630$pjh$[email protected]..
    >I can find plenty of tutorials detailing how to load
    variables from a
    >defined
    > asp page into Flash, but here's my dilemma...
    >
    > I have an asp page that is reading a URL with a unique
    identifier in it
    > (www.sampleURL.com?id=123456), and then turns the id
    number from the URL
    > into a
    > variable. On the same page then, sits my swf where I
    need to use LoadVars
    > to
    > pull in that ASP variable via Actionscript. If I don't
    have a static asp
    > page
    > to pull the variables in from and I want to pass the
    variable within the
    > same
    > asp page the swf is located on, how do I do it? Many
    thanks in advance...
    >
    You don't need LoadVars for this at all. You can just pass
    the variable to
    your Flash movie by specifying a query string when you are
    calling the
    movie.
    If you are using the straight object, embed method then it
    would look
    something like this:
    <param name="movie" value="movie.swf?id=11111">
    <embed src="movie.swf?id=11111" ... >
    If you are using the ActiveContent JavaScript for your movie
    then you just
    leave off the .swf... so
    "name", "movie?id=11111"
    Then, in flash you can access the value of id from the _root,
    like
    var idInFlash:Number = _root.id;
    Of course in the above example you would replace 11111 with
    the proper
    syntax for printing a variable's value in ASP.

  • Help needed with Illustrator texture swatches imported into Flash

    Hey, so I  basically scanned a texture into illustrator and added it into the swatches. After drawing a character in illustrator I used the colour of the swatch I had added to colour in my character and by using the tilde button I could move the texture to see which speicifc part of the texture I wanted for certain parts.
    Once I completed my character I imported him into Flash. Here is where the problem lies in, when I attempt to use the bone tool to animate him, as soon as I move a certain limb, the specific texture I had applied for that certain area causes the texture to move and make the area that I had coloured in using the swatches look different to what I initially imported into Flash.
    This has been a huge problem I have been facing and haven't been able to find an answer anywhere, I would really appreciate if I could get some help with this. Thank you very much!
    P.S.  If i explained my situation poorly, just ask for an image and I will gladly post a few so everything's clearer and makes more sense.

    Bump

  • Load variables from XML into Flash

    I was wondering how to load variables from an XML document to
    a Flash file? I am familiar with the code to do it for a text file,
    but was wondering how to do it for XML.
    Many thanks in advance!
    JJ

    Thanks for the recommendation on the site. What I am trying
    to do is load varaibles from an XML file into text boxes in my
    flash movie.
    Here is my loading:
    var my_xml = new XML();
    my_xml.ignoreWhite = true;
    my_xml.onLoad = function(success){
    if (success) {
    gotoAndStop("slide01");
    my_xml.load("narration.xml");
    this is what I have on my frame with the text boxes (the text
    boxes are also have the variable name in the variable area)
    var narration = my_xml.picture01;
    var my_title = my_xml.my_title;
    var my_date = my_xml.my_date;
    should I do my_date.text = my_xml.my_date; instead?
    my xml doc looks like this
    <?xml version="1.0" encoding="iso-8859-1"?>
    <picture01>This is the text for picture
    01</picture01>
    <picture02>This is the text for picture
    02</picture02>
    <my_title>Las Vegas</my_title>
    <my_date>October</my_date>
    Any help on this would be GREATLY appreciated!
    Text
    my_date.text = my_xml.my_date;

  • After Long Install, Problem with Loading Desktop Screen. Keeps Flashing

    After a "Longer Than Usual" Upgrade to Windows 10, I am now unable to open the Desktop Screen.The PC lets me sign in, the Desktop Screen comes up, and then Flashes 7/8 times, and then stops.The Screen comes back on, but before my Shortcuts can load, it does it again. It keeps doing this until I push Control>Alt>Delete, and then Shut down the PC.Any help would be appreciated.

    Hello , Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More. I have read your post on how your desktop computer's screen keeps flashing after a long install of Windows 10. I would be happy to help you, but first I would encourage you to post your product number for your computer. Below is a is an HP Support document that will demonstrate how to find your computer's product number. 
    How Do I Find My Model Number or Product Number?
    Please re-post with the necessary information, this way I will be able to research this further for you. I look forward to your reply!
    Cheers!

  • Loading Captivate 3 files into Flash CS3

    I've experienced and read about making sure that streaming
    SWF you wish to unload in AS3 need to be stopped, otherwise the
    audio that you may have playing in the continues to play even
    though the SWF is no longer disaplyed. I even succussfully do this
    with a file that has audio streaming on the main timeline. However,
    I am working with some some SWF files created with Captivate 3
    (exporting to flash version 9), and I cannot detemine how to stop
    the audio from playing.
    The audio in question is what Captivate adds - the mouse
    clicks and keyboard clicks - to captures I create in a browser, or
    any other application. You can suppress these, but I'd rather
    figure out this dilemma than go to that side of things.
    I'm assuming that the sound effects in the Captivate SWF file
    are no on the main timeline, and so I cannot control the playback
    of the timeline. Perhaps the sounds are not timeline oriented, but
    instead are sound ojects, I don't know. If that were the case, I
    wouldn't know what to do to target them from the parent SWF file
    and stop them.
    Has anybody experience this or similar issues?

    Hi learning_still and welcome to our community
    Unfortunately it's not possible to do this. The best you can
    do would be to open each version of Captivate. In version 3, open
    the project you wish to "convert" to version 1. Note the dimensions
    of the project.
    In version 1, create a new blank project of the same
    dimensions.
    Now from version 3, copy the first slide. Paste into version
    1. Rinse and repeat until each slide has been copied and pasted. I
    haven't tried this, but you may be able to select *all* slides and
    paste. That would save some time.
    Note that any items that version 1 doesn't support won't be
    copied, including question slides.
    Hopefully this was helpful in some way... Rick

  • Load a director level into flash // is it possible?

    Hi,
    I am planning a complex system where eventually users will need to do immersion into 3rd dimension and also play lots of flash quizz.
    I know director can load flash which makes it obvious choice for development but coding in lingo (a non POO language) maybe a little bit of regression looking the average age of the development team that iam building. So looking forward, i wonder if it's possible to make flash load director levels.
    Thank you

    Venian,
    Director used to be considered flash's big sister: http://www.adobe.com/products/director/
    Btw i just found out that you can use javascript within Director making it then perfect choice for my project.

  • External html page into flash

    how to load external html page into flash? (AS3)

    You cannot load an html page into Flash, though you can try to load the html code that it contains into a textfield.  Flash supports only a very limited number of html tags, so it is highly likely you won't get what you are after if you are reading an html file that hasn't been edited for Flash specifically.  Just look up the TextField.htmlText property in the AS3 help documents and it lists the html tags that are supported. 
    For AS3 you need to look into the URLLoader class as far as loadng an extrernal text file goes.

  • Conversion of video files into flash files

    Hello friends..
    Can anyone tell me what to do to convert any video files(with the exception of .dat) into flash files (say .flv) in JSP?
    Can anyone send me a sample code??
    Please guide me.
    Thank you
    Message was edited by:
    Java-Manoj
    Message was edited by:
    Java-Manoj

    hang on, I'll just dig out my ancient copy of
    ConvertAnyContentTypeToAnyOtherContentType4j...^_^ LOL!!!
    Thanks... I needed that!Lage Raho Pyaare...
    Carry on...
    But do find some solution to the problem.... and not
    problem to the solution..
    Good wishes againok, look, what I'm saying - in a roundabout way - is that converting video to flash isn't as simple as just doing a few API calls in java. why you want to do it in java at all is beyond me, to be honest. your best bet is to approach the problem another way, from the flash angle. do some googling, get a copy of adobe flash, and see how to convert from video to flash, using an application, before worrying about doing it in code. and I could be wrong here, but you won't "convert" a video to flash, you'll embed the video as an object inside a flash movie
    but where java comes into the equation is anybody's guess. if you're hoping to do this on-the-fly in a JSP, as I suspect you are, forget it

  • Loading a large number of strings into memory quickly

    Hello,
    I'm working on an iPhone application where I need to load a large number of strings into memory. Currently I'm simply reading from a file where each string is stored in plain text on a single line. I read the file contents into a string using stringWithContentsOfFile and then I create an NSSet object using NSSet setWithArray:[string componentsSeparatedByString:@"\n"]];
    This works like a charm but takes around 8 seconds to load on the iPhone. I'm looking for ways to speed this up. I've already tried a few things which weren't any faster:
    1) I used [NSKeyedArchiver archiveRootObject:myList toFile:appFile]; to store the NSSet data structure. Then instead of reading the text file storage. I read this file using [NSKeyedUnarchiver unarchiveObjectWithFile:appFile]; This was actually very slow and created a strings file that was about 2x the size of the original plain text.
    2) Instead of using an NSSet, I used and NSDictionary and used writeToFile and dictionaryWithContentsOfFile. This was also no faster.
    3) Finally I tried using the NSDictionary to write to a binary file format using NSPropertyListSerialization. This was also not any faster.
    I've been thinking about using SQLite instead of the flat file read, but I haven't had a chance to prototype that out to see if it would be faster. It's important that I can do fast searches for specific strings, which is why I originally used a set.
    Does any one else have any ideas how to load this into memory faster? If all else fails, I'm simply going to load the strings into memory using a separate thread on application launch so I don't prevent the user from getting to the main menu for 8 seconds.
    Thanks,
    -Keith

    I'd need to know more about what you're doing, but from what you're describing I think you should try to change your algorithm.
    For example: Instead of distributing one flat file, split your list of strings into 256 files, based on the first two hex digits of their MD5 hashes*. (Two digits might not be enough--you might need three or four. You may also want to use folders, especially if you need more than two digits.) When testing if a string exists, first calculate its MD5 hash and extract the necessary number of digits, then load that file into memory and scan its list. (You can cache these lists in memory so that you only have to load each file once--just make sure that a didReceiveMemoryWarning message will empty those caches.)
    Properly configured, SQLite may be faster than the eight second load time you talk about, especially if you ensure it indexes the column you store the strings in. But it's probably overkill for this application.
    \* A hash is a numeric code calculated from a string; on average, changing a single bit anywhere in the string should change half the bits in the hash, so even very similar strings should generate very different hashes. I suggest using MD5 instead of -\[NSString hash\] because the hash method is not guaranteed to return the same results on Mac OS and iPhone OS, or on different releases of either OS. You could also use a different algorithm, like a CRC; these are faster but I'm not as familiar with them. This thread discusses calculating MD5 hashes on iPhone OS: http://discussions.apple.com/thread.jspa?messageID=7362074
    Message was edited by: Brent Royal-Gordon

  • I just got a new iphone 4 for att and my friend installed the sim card in it for me. the imessage function isnt connecting with the my cell number. a while back i had logged into my apple account on someone elses cell phone and their number keeps showing.

    i just got a new iphone 4 for att and my friend installed the sim card in it for me. the imessage function isnt connecting with the my cell number. a while back i had logged into my apple account on someone elses cell phone and their number keeps showing. when i try to just select my number to send and recieve imessages from it will not show up. i can send and recieve regular text but not pictures or imessage. i have tried logging off and restarting and nothing has worked.help please!!

    Did you remove your account information from the other person's iPhone?

  • HT203433 Hi! I am so stumped with having multiple apple ID accounts now when I try to do an update on my iPhoto app it tells me to log into the account I used to purchase that app. I have tried going into my other accounts. Please help.

    Hi! I am so stumped with having multiple Apple ID accounts. I did this not knowing what I was doing and now I can not update my iPhoto app because it tells me to log into the account that I used to purchase it. I thought I was trying to do this but I can't get anywhere.
    Please help!
    Flora

    Hi Florafromco,
    You can view your iTunes Store account and request assistance by following the instructions below:
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/ht2727
    I hope this information helps ....
    The following article will provide a little more information regarding using multiple Apple ID's:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    I hope this information helps ....
    Have a great day!
    Have a great day!
    - Judy

  • I've been using Elements 10 on my windows 7 machine editing RAW/NEF picture files taken with a Nikon D40X camera with no problems. I upgraded my camera to a Nikon DX7100 and can no longer load my RAW/NEF into elements 10. Is there a compatability problem

    I've been using Elements 10 on my windows 7 machine editing RAW/NEF picture files taken with a Nikon D40X camera with no problems. I upgraded my camera to a Nikon DX7100 and can no longer load my RAW/NEF into elements 10. Is there a compatability problem with my new camera? Will upgrading elements to a newqer version solve the problem?

    NEF's for the D7100 should work with the latest version PSE13
    You can download here and try free for 30 days:
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us&PID=2159997 #

Maybe you are looking for