Using variable in function for FLASH video

I have a webpage that uses PHP to pull a variable from a
MySQL database.
I would like to use that variable to tell my flash component
what flash video to play. I cant seem to figure out how to place
the variable in the function call to make it work.
Also...The main page is in the root directory of my site with
all my flash videos in a subfolder. I can't seem to get the videos
to play on my main page unless they are in the same directory. I
even tried to simply 'include' the movie into my existing page and
it doesn't work.
Any idea on either of these issues?
(Is this even the correct forum area for this? I am new to
using FLASH for this stuff)

Thanks for the advice!
Turns out I believe my answer lies in PHP, but I will check
out the LoadVars help in FLASH too!
Andrew

Similar Messages

  • Best export for flash video

    I have completed an edit of a 7 minute teaser for a feature film and need to export it to be displayed online in a flash player. The footage is HD 1080i, 29.97fps and edited in the Animation coded. My experience with best exports for flash conversion is very limited so please bare with with.
    1) Is it possible to export directly from FCP to a flash file? If yes, would that be a good idea, or should I use third party softwares for better results?
    2) Which third party softwares are recommended for flash conversion? And what export compression should I use in FCP for best flash conversion results?
    3) Any other tips and tricks to get the best quality for flash video display?
    Any help would obviously be greatly appreciated. Thank you.

    When I have quality HD video that I want to export for flash, I compress it with h.264 codec. Then, with the new version of Flash, you can swap out the .mp4 extension for .f4v and your good to go in Flash. Quality looks pretty good at a fraction of the file size.

  • Is Using the Automatic Update for Flash Player Safe? It is Installed In System Preferences On My Mac

    Hello-
    One day I noticed that there was an icon on my MacBook Pro of Adobe Flash on the last row of system Preferences.  I had never seen it before, and I had ben using Flash for a long time and updating it regularly.
    It recently told me there is a newer version.  I did not let it install it because I am having so many problems with viewing Flash Videos on websites.  I have a MacBook Pro, Mac OS X 10.6.8.  I use Safari 5.1.5, the latest as far as I know.
    In using this automatic updater for Flash (there are actually several tabs when I click the Adobe icon not just the updater) in the Advanced tab of the Flash Player icon are there any special things I should do if I click yes update?  should I close all the windows, apps, Safari?  do a restart?  I am debating if I should do a Clean Install, wipe all Flash Player off the Mac and just install the latest version rather then letting the updater install the latest version, which I think is 11.2.202.228.  I currently have 11.1.102.64 with a bunch of video issues.
    Thanks for any assistance.

    Replied via PM

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and g

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

  • How to use Spell-check functionality for textbox (like Orkut, gtalk)

    How to use Spell-check functionality for tex Hello Friends,
    I am working on a JSP application. I wanted to add Spell check for text box like we have here, when we post a message. It automatically shows red line under the word, when ever spelling is wrong. Please tell me how I can do this. If possible, the code too.
    Thanks.

    I believe the spell checking you see here, or on any other site, is the spell checking built into Firefox. At least that's what I see. Are you using Firefox?

  • Compressing for flash video setting

    Anyone out there building content for flash video? I have a client who is shooting all their footage on a sony HD cam. All footage comes to me as 1080i60. They have requested all content be converted or embedded into flash at a 400X300 canvas size.
    I have tried some differant setting but most comes up somewhat pixilated. Any ideas?
    Thanks in advance for any ideas.
    Ron Nava

    Maybe this is helpful: Flash 8 Pro comes with a Flash 8 Video Encoder. It automatically converts Quicktime files into a .flv flash video file WITH a .swf AND a playback skin.
    The cool thing about this is how Flash then plays this back as a "progressive download," therefore less waiting time for it to start playback and smoother playback and very nice quality.
    I have a sample of this at size 540x400, larger than I have made in the past with other programs, just to see how it would look. I'm still playing with the dimensions. Thinking of making it smaller, actually; but the quality really holds up, I thought. http://web.mac.com/bfkproductions/HomeOne/PowWowSample.html

  • How to create a relative path for Flash video on a CDROM

    Hello - I need to distribute a web site to a client on a
    cross-platform Hybrid CDROM so that they can edit and make
    adjustments. This website also includes 2 flash videos that need to
    be included on the CDROM.
    My problem is this: I encoded the video in the Flash Encoder
    app and brought them into the main Flash app for conversion into
    swf files. I also used the media controller parameter to add a
    control skin to the movies. I now have 2 swf files associated with
    the flv video file, and I understand that all 3 of these must stay
    together for the video to work properly. The video plays correctly
    along with the controller skin on my Mac however only the
    controller shows up but no video on the CDROM. I believe that this
    has something to do with absolute vs. relative file paths for the
    video flv file to the swf controller file.
    I do not know how to change this path - I know "where" to
    change it within the controller parameter options box but do not
    know what syntax exactly to place here. How do you specify a
    relative path here? When I try to do it I get an error saying that
    the flv file cannot be found.
    I am trying to use the following syntax: /video/welding.flv
    where video is the name of the folder and welding is the name of
    the file. I have done numerous Google searches on this subject and
    stil cannot find an answer, so any help is appreciated.

    OK - I assigned the FLVPlayback component the instance name
    of videoPlayer to keep it simple. And I copied the above code into
    an Actions - Frame on Frame 1. FYI - The name of the video has been
    changed from welding to Timet Sponge.
    Now I get the following error messages:
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = "";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
    Access of undefined property _global.
    _global.videoURI = "video/Timet Sponge.flv";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
    Access of undefined property _global.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = "";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
    Access of undefined property _global.
    _global.videoURI = "video/Timet Sponge.flv";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
    Access of undefined property _global.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = _global.videoURI;
    Total ActionScript Errors: 4, Reported Errors: 4

  • How to use embedded font (CFF) for Flash CS4?

    Hi,
    I am trying to embed "Arial Unicode MS" for use by TLF in my Flash CS4 project. As I googled around, I am using the "Flex SWC" approach, only not having any luck. Here is what I got:
    //Code in Flex ActionScript project:
    package
        public class FontEmbeds
            [Embed(source='C:/Windows/Fonts/ARIALUNI.TTF',
                    fontFamily='ArialUnicodeMS',
                    embedAsCFF='true'
            public const Font1:Class;
    When I am trying to instantiate this class, I have AS code in my Flash main timeline:
    var font:Font = new FontEmbeds_Font1();
    Flash compiler says: "1067: Implicit coercion of a value of type FontEmbeds_Font1 to an unrelated type flash.text:Font."
    Ok. Now after I changed it to:
    var font:FontEmbeds_Font1 = new FontEmbeds_Font1();
    Flash gives 3 errors:
    "VerifyError: Error #1014: Class mx.core::FontAsset could not be found.
    ReferenceError: Error #1065: Variable TextLayout is not defined.
    ReferenceError: Error #1065: Variable MainTimeline is not defined."
    I am assuming I have to create a Font1 object in order to use the embedded font. Is this assumption correct? As I've tried to use the "fontFamily" directly but Flash didn't seem to find the font at all:
    charFormat.fontFamily = "ArialUnicodeMS";
    Thanks.

    Hi Eric,
    Thanks for the info.
    I've tried to use the "fontFamily" directly but Flash didn't seem to  find the font at all:
    charFormat.fontFamily = "ArialUnicodeMS";
    In one fla where I used pure TFL, nothing gets rendered at all in the container Sprite. Flash doesn't throw any errors either. In another fla where I used a ComboBox, etc. along with TFL, it throws an error says it can't compile since "there is no ActionScript found" and I got a screen where all the Flash components were  flickering. After several attempts, Flash crashed.
    Also as a side note, the swc gets generated by Flash Builder Beta 2, at first it was 18mb and the second time I complied it become 9mb and stayed 9mb afterwards. Not sure if that's a concern.
    Geng

  • No Audio for Flash Videos in Any Browser

    I'm running Windows 7 Ultimate 64 bit with Service Pack 1 which is a 64-bit OS.
    I can play videos in all browsers (IE, Firefox, Chrome, and Opera) but do not hear any audio that use Flash. 
    Videos that use Apple's Quicktime work perfectly with audio in all 4 of these browsers!
    If I download the Flash video to my hard drive and play it, the audio works fine.
    I can play music on my desktop and all other sound works fine.
    It is not my hardware; audio works fine.
    This is the Flash Player that I have installed:
    Adobe Flash Player 11 ActiveX 64-bit Version 11.1.102.62
    Adobe Flash Player 11 Plugin 64-bit Version 11.1.102.63
    In the Control Panel – System and Security, there is an icon called “Flash Player 32-bit”.  I thought I had installed the 64-bit version.  Is this simply misnamed or a clue to the root cause of the problem?
    The problem is with Adobe's Flash Player. 
    Audio was okay when playing a video in any browser.
    I recently installed a suggested update, and then no audio! 
    This has happened several times in the past. 
    I have no audio until the next update, and then it works. 
    Next update, it is broken again. 
    It's the Adobe installation.
    My recent attempt to fix this problem:
    Uninstalled Adobe Flash Player 11 ActiveX 64-bit Version 11.1.102.62
    Uninstalled Adobe Flash Player 11 Plugin 64-bit Version 11.1.102.63
    Downloaded the latest Flash Player from Adobe
    Reinstalled the Flash Player
    Rebooted
    Tried to run videos in IE8.  No Audio!
    Tried to run videos in Firefox.  No Audio!
    The solution offered in http://helpx.adobe.com/flash-player/kb/flash-player-games-video-or.html is poorly organized and poorly written such that it is painful to follow the steps.  It is basically a 21-page run-on sentence.  Most importantly, it attempts to solve the problem by browser.  I don't believe that this is a browser-specific issue.
    Does anyone have a solution for this problem that actually works?  Lot's of people have offered solutions on forums all over the Internet from the "turn on your speakers" to "edit the registry...".  I have not found one solution that works.  I have spent hours scouring the Internet and various forums for a solution to this problem.  There are thousands of people trying to solve it.  What is the solution?

    Carl,
    This worked for all browsers! It was really easy to do as the instructions were clear and succinct.  The files that I downloaded for the installation were:
         install_flash_player_11_active_x_64bit
         install_flash_player_11_plugin_64bit
    I referred to the wrong page in error in my original post.  I was looking at this page:
    http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html
    The above page led me to download and install the following file:
         install_flashplayer11x64_mssd_aih
    Not sure what this file is or if it was part of the problem.  Thoughts?
    Thank-you so much for resolving this issue for me.  Much appreciated!

  • Having trouble with using variables in functions and after functions..

    Morning,
    I have simplified this, as it represents the core of what’s I obviously don't know how to do. 
    Problem:
    Say I populate that variable by reading in a list if IP addresses from file, finding the line that matches the hostname and place that string into the $IPAddress variable for use later throughout the script.   I did not run into a significant problem
    until I decided to convert the routine of looking up the IP address and populating the variable into a function.   As soon as I made it a function, and called that function, the $IPAddress variable only had the data in it until the function completed. 
    Once the function had done its work, and had placed the data into the variable, I expected that “new” data to be available after the function had completed..in that variable.  But it’s like the $IPAddress variable in the main script is a totally
    different data then the variable with the same name that’s used within the function. 
    So I think this demonstrates some of what’s kicking my butt.. 
    $IPAddress = "This is the wrong data”
    Function TestFunction () 
    $IPAddress  #call to display the contents of the variable at the start of the function. 
    $IPAddress = Read-Host -Prompt "Please enter the text ‘Goober’" 
    $IPAddress   #call to display the contents of the variable at the end of the function. 
    TestFunction
    $IPAddress ​
    The output I get is: 
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    This is the wrong data
    Huh? 
    I had expected:
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    Goober
    What good is the repeatability of a function if it’s output is lost? 

    THis seems to work.. IS there any reason NOT to do this?
    $Global:IPAddress= "This is the wrong data” #"
    Function TestFunction{
        Write-Host $IPAddress-fore green
          $host.ui.RawUI.FlushInputBuffer()
         $Global:IPAddress =
    Read-Host -Prompt
    "Please enter the text ‘Goober’"
        return$Global:IPAddress
    TestFunction
    return$Global:IPAddress

  • Using variables in CURL for urls.

    Hello, I am fairly new here and new to programming. I am trying to make a program that will ask for a url and store it in a character array and use that variable as the URL for the url argument, in quotations, using libcurl, of course.
    curl_easy_setopt(curl, CURLOPT_URL, "<here>");
    However, when I do it the way I would with printf()
    curl_easy_setopt(curl, CURLOPT_URL, "%c", &...);
    it says prg.c:12:53: error: macro "curl_easy_setopt" passed 4 arguments, but takes just 3
    Is there a way to do what I am trying to do?
    Last edited by fawx (2008-08-20 13:06:24)

    I don't know what u really want to do. And what I found is that there is not an overloaded function like the one you are trying to use, in fact there is no overloaded functions for that one.
    http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
    CURLcode curl_easy_setopt(CURL *handle, CURLoption option, parameter);
    If you want to pass a URL that dynamically fills the parameter variable you can first create a string and copy the info from another one then concatenate another.
    Here is an example that maybe could help you.
    char url[128];
    char *page = "hello.html";
    strcpy( url, "www.google.com" );
    strcat( url, page );
    for this you must include string.h, then you can use url to send as parameter in your function.

  • Best compression for flash videos on my webpages?

    does anyone know the best way to convert short video clips so they will work great with flash and have the best quality possible for the web. i know a lot of different ways to convert them for the web, but i am having a hard time converting them to high, high quality for flash. can anyone please help?

    you are talking about converting video, like quicktime movies, to flash right? if so, utodesk Cleaner converts abotu anythign to .flv or .swf. If you are trying to convert a worse format to flash, which is already a lower quality format (which is why it is used for web), then i'm not sure why you would.

  • Single screen for flash videos

    I have a guitar tutorial on my website. I have lots of 1 minute flash videos that can be viewed. At the moment I use javascript to open a new browser to view each video...... this means that there are different screens (video players) for each video. How do I use 1 single video player to play all the flash videos? so when I click a playlist the video shows in the same player? I m not sure if this is understandable without an example. I just want 1 video player on my page and a link or playlist to play the videos in the same player.... sorry if this doesnt make sense!!!!!
    thank you

    WWD Player
    JW Player
    FlowPlayer
    Wimpy Rave
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Message was edited by: Nancy O.  changed links

  • Reminder: Adobe needs users for Flash video & button task studies - get an Amazon gift card

    Adobe is looking for participants for a brief (~1 hour) online work observation and interview. Compensation will be a $100 Amazon gift card.
    There are two sets of criteria, each applying to a different study. Read the criteria *carefully* before responding. Also, it is important to indicate in the subject line of your response which one of the two studies you meet the criteria for and wish to participate in.
    There will be 2 studies of Flash workflows. One is about deploying video content in Flash. The other is about creating a button to perform some control of the Timeline. The studies will be conducted over the telephone and Adobe Connect (software for screen sharing).
    For the video study, participants must meet the following criteria:
    - some experience with Flash CS4
    - some experience viewing video on the Web
    - no experience using video in Flash
    - have any version of Creative Suite 4 or Flash Professional CS4 installed (with most recent updates) on a computer that can be connected to the Internet
    - ability and willingness to install and use Acrobat Connect on the same computer as the above software
    - a 90-minute block of free time between 9am and 5pm Pacific Time on a weekday.
    If you meet these requirements and would like to participate in this study, please contact me at jarmstrong [at] adobe [dot] com, with the subject line "Flash video study".
    For the button study, participants must meet the following criteria:
    - some experience with Flash CS4
    - no experience creating buttons in Flash
    - have any version of Creative Suite 4 or Flash Professional CS4 installed (with most recent updates) on a computer that can be connected to the Internet
    - ability and willingness to install and use Acrobat Connect on the same computer as the above software
    - a 90-minute block of free time between 9am and 5pm Pacific Time on a weekday
    If you meet these requirements and would like to participate in this study, please contact me at jarmstrong [at] adobe [dot] com, with the subject line "Flash button study".
    Participants in these studies will be thanked profusely in addition to receiving the Amazon gift card.
    Jay Armstrong
    Flash Professional documentation lead
    Adobe Systems

    @Karl, Thanks. If you are interested in participating, please send me an email as instructed in the original post. - Jay

Maybe you are looking for

  • VPN tunnel Problem

    Hi all , I need create VPN tunnels between two  ASAs devices . And these devices are connected through DSL . And as you know in this case we use private outside IP address , because there is  a NAT device at the outside . The problem is that no VPN t

  • Thinking of making the PC to Mac Move, questions about Photos App

    Helped my mother on her Mac a little bit and got the Photos App working for her. Now my turn, I have been a die hard Windows user, but I will never use a Windows phone. (Can never give up my iPhone) I have been taking on a huge family project of scan

  • Nokia c3-01 calibration!

    I have a big problem with mi device (Nokia c3-01)! I make a software update to the last 07.32 and and now my touch is doesn't work good! When i try to go in the menu it enters in search of wireless! I think if I could get in the menu to the calibrati

  • TS3297 This XML file does not appear to have any style information associated with it. The document tree is shown below."

    This is the message I get on top when I used BEST BUY REWARD ZONE to access itunes.  On the bottom, I get code;this happens when I use ie7 and google chrome.  I can, so far, get into iTunes directly;but for how long is anybody's guess.  Is Apple stil

  • Adding a Narrative/Journal to a book

    Has anyone seen a template or is aware of a way to place a journal or narrantive at the beginning or end of the book you're assembling? In 4.0.3, I could only have an "Introduction" that was never long enough. I'd love a space to place 3 or 4 pages o