Php style switcher + flash + IE = broken?

I am using the PHP style switcher by Chris Clark (
http://www.alistapart.com/articles/phpswitch/)
and using a small flash interface to switch styles. 4 to be
exact.
I had this working before so i know it is possible.
The problem is that when a user clicks on 1 of the style
selectors (a star shape) it does not change the style instantly
like its supposed to, it simply goes to the index.php , only after
pressing on a navigation link does the style change to whatever was
picked in the first place.
You might think its a php issue, but I have spoken with chris
and his only guess as to what is happening is that IE is caching a
over-aggressively.
I believe it might be some settings in Flash or the flash
version.
This style switcher does work perfectly in Firefox btw, Both
in flash and text links. text links also work in IE.
Is there some issue known between using a flash and a php
link in IE? Any help is appriciated...

Addendum is to use sendAndLoad and have the switcher.php
return test data to
Flash, such as the URL vars values being sent, and display in
a TextField
or if in IDE in a trace window.
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"Motion Maker" <[email protected]> wrote in
message
news:[email protected]...
> The picture is that you use a Flash movie to communicate
with a php script
> named switcher.php. It needs to send URL vars to that
page. The URL var or
> the URL value is not getting to the switcher.php script.
>
> Are you using LoadVars Actionscript class and what does
send or
> sendAndLoad line look like? Be sure syntax is correct.
>
>
> --
> Lon Hosford
> www.lonhosford.com
> Flash, Actionscript and Flash Media Server examples:
>
http://flashexamples.hosfordusa.com
> May many happy bits flow your way!
> "Nice Tan" <[email protected]> wrote in
message
> news:[email protected]...
>>I really dont think its a php header issue, mainly
because text links in
>>IE
>> work. it is just the flash that is getting it wrong
in IE.
>>
>> I have gotten the style to stick, but now the
problem is that regardless
>> of
>> what page you are on, when a style is selected it
reverts back to the
>> index
>> page.
>>
>> Like i have said before, the flash interface works
in FF. And also text
>> links
>> work in both FF and IE. It is just something with a
query string link
>> that
>> makes it go to the main domain for some reason.
>>
>> the links looks like this btw.
>>
>> [code]
>>
http://domain.com/switcher.php?set=main
>>
http://domain.com/switcher.php?set=alt1
>>
http://domain.com/switcher.php?set=alt2
>>
http://domain.com/switcher.php?set=alt3
>> [/code]
>>
>> and when a link in the flash interface is clicked,
it goes to:
>> [url]http://domain.com[/url] instead of the current
page the end user is
>> at.
>>
>> I am using php include for my content aswell. So my
pages loook like:
>> [code]
>>
http://domain.com/index.php
>>
http://domain.com/index.php?id=main
>>
http://domain.com/index.php?id=nav2
>>
http://domain.com/index.php?id=nav3
>> etc.
>> [/code]
>>
>
>
>
>
>> It just seems like Flash in IE is forcing the links
to go to the main
>> domain
>> for some reason.
>>
>
>

Similar Messages

  • How to read a .php file in flash

    Hi,
    Does anyone know if there's a possibility to read out a .php file in flash? (Like the iFrame in html) Some other webs showed me the 'loadvars' array..
    Thanx!

    So.. I do need to make a dynamic tekst block? And add to the first frame the action (as3?):
    var lo:URLLoader = new URLLoader();
    lo.load(new URLRequest("http://www.hcdbfeesten.nl/aenb/test.php"));
    lo.addEventListener(Event.COMPLETE, typeIt);
    function typeIt(e:Event){
        trace(lo.data);
    It does show me:
    http://www.hcdbfeesten.nl/aenb/test.swf
    Nothing... Instead of:
    http://www.hcdbfeesten.nl/aenb/test.php

  • Php form mailer/Flash help

    I have a php form that I am using with my Flash file. It
    works great so far, but I would like to get confirmation from the
    php in the Flash file, that the info has really been sent. I think
    it is already sent up in the php, but I don't know how to handle it
    in my Flash file. The php file is attached. Do I use the echo? How
    would I do that? What I want, is in my Flash file to say sending,
    until I get then feedback from the php, and then say, sent
    successfully.
    Thanks a lot for any help!

    It is all inside an ifStatment that is inside a function,
    which gets called by the button that send the form. Here is the
    full thing.
    function validateForm(tName:String, tEmail:String,
    tSubject:String, tMsg:String):Void {
    trace("validateForm was called");
    if (tName == "" || tName == undefined) {
    trace("tName if");
    this.showAlertMsg("Please enter your name");
    } else if (tEmail == "" || tEmail == undefined ||
    tEmail.indexOf("@") == -1 || tEmail.indexOf(".") == -1) {
    trace("Invalid email address: "+tEmail+" infexOf1:
    "+tEmail.indexOf("@")+" indexOf2: "+tEmail.indexOf("."));
    this.showAlertMsg("Invalid email address");
    } else if (tSubject == "" || tSubject == undefined) {
    trace("tSubject if");
    this.showAlertMsg("Please enter a subject");
    } else if (tMsg == "" || tMsg == undefined) {
    trace("tComments if");
    this.showAlertMsg("Please enter some comments");
    } else {
    trace("the else was called...");
    var send_lv = new LoadVars();
    //send_lv.onLoad = ShowStatus;
    //send_lv.EmailType = "Quote";
    send_lv.Name = tName;
    send_lv.FromEmail = tEmail;
    send_lv.Subject = tSubject;
    send_lv.Comments = tMsg;
    send_lv.status = "";
    send_lv.sendAndLoad("php/sendContact.php",result_lv,"Post");
    this.showAlertMsg("Sending...");
    var submitListener:Object = new Object();
    submitListener.click = function(evt:Object) {
    var result_lv:LoadVars = new LoadVars();
    result_lv.onLoad = function(success:Boolean) {
    if (success) {
    this.tf_showAlertMsg.text = "Thank you for sending us an
    email";
    } else {
    this.tf_showAlertMsg.text = "Email did not go through";
    function showAlertMsg(msg:String):Void {
    this.tf_showAlertMsg.text = "";
    this.tf_showAlertMsg.text = msg;
    this.send_btn.onRelease = function() {
    validateForm(tf_Name,tf_Email,tf_Subject,tf_Comments);
    I tried the new way Dave posted and it still does not get the
    echo from the form.
    Thanks so much to both of you for the help!

  • Php vars to flash

    I'm useing the following scripts to pass a variable from php
    to a flash combo box....problem is I get undefined in the combo box
    when i test my movie using cntrl + enter and if i try to view the
    swf on the webserver.
    Will somebody please tell me what i'm doing wrong?

    Just a couple of notes.
    1) don't use a '$' in front of the variables you are sending
    to Flash.
    "$comboData1" should be "comboData1"
    2) Not sure about using multipl "echo" statements. I never
    have but that doesn't mean you can't.
    3) Try something straightforward first, like:
    echo 'comboData1=this is data 1';
    If that works then move up to trying the variables.
    4) The last thing to note is that your PHP variables are
    surrounded by quotes.
    "$dataForCombobox_1" should be $dataForCombobox_1
    Hope these help.
    Tim

  • Loading HTML or PHP page in flash

    Hi,
    I would like someone to tell me if there is a way to load html or php page in flash just like a movieclip without actually navigating from the flash player(by using getURL code). Basically, I am wondering if there is a way to load a html file just like we load movieclips and perform all the functions of html page.
    Thanks,
    Abinash

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • How we can load external html or php file in flash?

    Hi there,
    I want to show my php's file desing in flash..
    i m getting data through database in php file and it has
    table... so I want to show that data in my flash movie...
    Please help me ..
    How can I load external html or php file in flash?
    If any other way is there then plz tell me.....
    thanx

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • Is my flash player broken? Skipping green screen glitch with sounds.

    Is my flash player broken?
    I'm getting a glitch with almost every video hosting like Youtube, Vimeo, vk.com etc. It's a glitch with green screen and the video starts skipping video in big parts, also making scary sounds, sometimes it starts doing it when the video is playing byitself,
    sometimes when i skip on a particluar part. It happens to almost every video. I'm not sure what the issue is, I get it in Mozilla and Chrome. I reinstalled flash player 5 times, cleared cache, deleted browsing hystory, tried everything.
    Please help. Here's the video of my issue:
    http://www.youtube.com/watch?v=jVJm5ArYOh4

    I did that, and worked. I was reading another thread and saw this (disabling hardware acceleration should work), then I restarted, and tried using HA and again green screen and crashing. Now I'm using without HA and so far, so good. I sent a report to AMD, because I'm using latest drivers for Radeons and obviously there is an incompatibility.

  • Safari 3 for Windows - Flash Forms broken

    I've read quite a few posts regarding Flash Forms not working
    in Safari 3 for Windows, but I have yet to hear an explanation or
    fix.
    So, are Flash Forms broken for everyone when using Safari 3
    for Windows?
    And, if so, why?
    For example, this following data grid loads for me in Safari
    - but it does NOT load any data. Data does successfully load data
    when using IE, etc.
    http://www.asfusion.com/examples/item/filtering-records-on-a-cfform-grid
    Thanks,
    David

    There seems to be a problem with how Coldfusion embeds the Flash form on a webpage:
    It errors out with this error when embedding a Flash form:
    "Unmatched </embed> encountered"
    This is really annoying as WebKit is used by many people now (iPhone, Safari and Google Chrome, etc).

  • Returning php vars to flash AS

    Hi,
    I am not able to get a variable value from PHP back into
    flash after sendAndLoad. I can only get the actual value returned
    by php. here is the detail.
    Initially from flash
    dataOut.sendAndLoad("phptest.php", dataIn, "POST");
    and the return from phptest.php
    dataIn.onLoad = function() {
    msg.text = ' returned from php is '+this.value1 + this.value2
    the code in phptest.php
    <?php
    $a = "&value1=foo&";
    $b = "&value2=";
    $c = "bar&";
    echo $a.$b.$c;
    ?>
    in response
    the msg.text reads like this
    returned from php is foo";
    It only returns the actual value of value1 and not the passed
    value of value2, but one doublequote.
    and this is what is displayed in the browser from the
    phptest.php .
    &value1=foo&&value2=bar&
    any sugggestions. ?
    Thanks for any help

    thanks kglad
    but how do you pass a variable value. For example, if you
    don't want to send 'bar 'directly as the value for value2, but want
    to use the value of a variable say $c which will have a value of
    'bar', how do you pass that back to flash. In my example it won't
    pass the value of $c as 'bar', unless I actually assign 'bar' to
    value2. I need to be able to pass the value of $c rather than send
    the assigned value. I looked at the various examples including
    those from login examples, but they didn't work. has the same
    problem. somehow AS does not seem to accept the values passed via
    variable. Any other way to do it?
    thanks

  • I'm trying to get a style switcher going for my site(for the colour scheme)

    I'd like to give my users the choice of changing the colour
    scheme of my site (
    http://chaoscoalition.net) at
    will, through css style changing buttons such as the ones on the
    forum's theme(
    http://forum.chaoscoalition.net).
    I've read many articles and tutorials on how to set up
    alternate stylesheets for a webpage, but I can't quite get it
    right. Every time I seem to have gotten it right, it either opens
    the php file that sets the cookie, or it opens the stylesheet as
    text. I want to end up with something like the forum's theme
    changing module, but for the homepage.
    I have 5 different versions of the page made, all as
    different pages(php format), but I don't understand how to link the
    buttons at the top to trigger the stylesheet change, and I don't
    even knwo if it's possible to rely on a css file to change the
    whole colour scheme of the page(which is image based).
    It'd be great if someone could walk me through this, or offer
    some tutorial that explains how to do this from scratch.
    Thank you.

    First, never use Fireworks or any graphics app to build HTML and CSS for you.  The resulting code is rigid, fragile and only good for quick comps or prototypes to show a client.  Use DW to generate actual site code.
    Secondly, external stylesheets must not contain JavaScripts or X/HTML code as your green.css does.  Only CSS rules and comments are allowed inside external stylesheets - like so:
    /**Green CSS**/
    body {
         margin:0 auto;/**this centers page**/
         padding:0;
         width: 900px;
         font-family: arial, helvetica, sans-serif;
         color: white;
         background: green; /**this is green**/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/

  • Using a rich text editor to style a Flash text field

    I've been trying to build a user interface that would allow someone to change the content of a dynamic field (loaded from a text file) using a rich text editor. However the editor inserts inline css style tags like <span style="text-decoration: underline;"> which Flash aparently can't understand. If the editor were instead to insert the following: <span class="ul"> where the stylesheet defined it as:
    .ul {
    text-decoration: underline;
    display: inline;
    then everything would be fine. But it doesn't and I can't change it.
    I am currently using a rich text editor that I access as follows:
    var myEditor1 = new YAHOO.widget.SimpleEditor('editText', {
        height: '600px',
        width: '700px',
        dompath: true, //Turns on the bar at the bottom
        handleSubmit: true
    The editor above is "applied" to a textarea within an html form. Then the text is saved to a text field with the embeded styles.
    Any ideas on how I handle this so the user doesn't have to insert css rules by hand?
    thanks much

    Does anyone know of a richtext editor that uses just html tags (not css like <span style="text-decoration: underline;">) or that uses css styling that Flash as3 can understand?

  • CSS styles in Flash Builder 4

    I'm having trouble creating custom info panels with CSS in Flash Builder 4.  I don't get any errors in Flash Builder or the Flash debugger and the styles look exactly as I expect.  When I publish the panel and try to open it in Photoshop CS5, the tab disappears when I click it.  Without CSS the panel runs fine.  It also runs fine with in-line styling.  I have tried both embedded and external CSS.
    I understand that Flash Builder 4 uses CSS namespace declarations, but since I am using the default halo theme I shouldn't need a namespace, right?  Even so, I have tried using various namespaces including:
    @namespace "http://www.adobe.com/2006/mxml";
    @namespace mx "http://www.adobe.com/2006/mxml";
    @namespace fi "com.adobe.xmp.components.*";
    Do I have to use StyleManager and load the CSS at run time?
    snippets:
    <fi:XMPForm
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%" label="XMP_TESTS">
    <mx:Style source="test.css"/>
    //Form items here
    /* CSS file */
    .workFormItem
    borderColor: #DBD5A5;
    borderStyle: solid;
    cornerRadius: 5;
    textIndent: 5;
    .imageFormItem
    borderColor: #C7D5F1;
    borderStyle: solid;
    cornerRadius: 5;
    textIndent: 5

    I'm also finding that some in-line styles that work in Flex Builder 3 (for info panels run in CS4 and CS5) but don't work in Flash Builder.  Again, these appear to be legal and don't cause an error, they either cause the compile to fail or they compile but the panel won't run in CS5.
    Two in-line styles that don't seem to work in fi:XMPTextInputMRU are cornerRadius & themeColor
    Perhaps these are conflicts with the halo theme or there is a bug in the XMP FileInfo SDK.  I'm puzzled becasue some styles work and others don't.
    For reference, I'm trying to duplicate the styles that I successfully created in my Flex Bulder 3 project (screenshot: http://metadatadeluxe.pbworks.com/w/page/27003617/VRA_beta-screen-shot:-All-Fields)
    Thanks for any help you can give.

  • PHP Connection in Flash Builder 4

    Hi
    Sorry if this is in the wrong place. I could see nowhere else to ask this question.
    I am very, very new to Flash Builder (in fact, I am following a tutorial on building a data-centric application using Flash catalyst CS5 and Flash Builder 4).
    The problem I am having is that I cannot seem to validate the data connection in Flash Builder 4.
    For my project, I click "Connect to Data/Service" then select PHP. I select Flex Server and change the "Application Server Type" to PHP.
    The page I then get asks for a Web Root and Root URL. This is where I'm having problems. No matter what I type in these boxes, when clicking the "Validate Configuration", I get the error of "Cannot access the web server".
    I have Apache and PHP installed on this Windows 7 64-bit machine.
    The Web root folder for my site is actaully held on my D drive, so web root reads.. "D:\Web Files\Site".
    The URL for this local site is http://site.local
    I can browse to http://site.local in my browser and all is well. My site shows. I can even see this fine in Flash Builder's Internal web browser.
    I have tried moving the web root folder inside the default apache root htdocs folder, but get the same problem. I have even changed the permissions on all folders to allow full control, but this doesn't help.
    I really am starting to tear my hair out now. Can someone please help me? Am I doing something obviously wrong?
    Many Thanks

    Did you install apache / php / (optionally mysql) separately or in a bundle. I would suggest using xampp bundle, because it configures everything correctly along with installing a few helpful tools like phpmyadmin, etc. Great fast setup for testing purposes. Anyway... about the URL: I think the url you should be using is something like http://localhost/yourprojectfolder/...
    Presuming you have set up a project... and selected the option PHP at application server type you would then input (in my case, using the default xampp setup):
    Web root: C:\xampp\htdocs
    Root url: http://localhost
    Output folder: C:\xampp\htdocs\<projectname_here>-debug
    The url you d input in the browser to navigate to your project would then be: http://localhost/<projectname_here>-debug
    (no index.html at the end, provided your server is setup to serve this file automatically if it exists)
    Hope this helps!

  • Please help!!! generate sample php service in flash builder 4.5

    Hi all complete noob here. I have gone trough several tutorials and this keeps popping up.
    On most of these tutorials after clicking new data service and selecting PHP the tutorials have a link generate sample php.
    I am using flash builder 4.5 for php premium and I don’t have that link. Was this link possibly moved? I really need this functionality please can someone help me?

    Hi Anju
    no wasnt what I was looking for but did find it after clicking all the buttons in the UI.
    For other users it is located on the Data/Service tab. on the right hand side is a little triangle pointing down. click on it and will have connection options. Select connect to PHP. Not sure why its not on the other tab.
    But thank you for the reply

  • Generate sample php service in flash builder 4.5.

    Hi all complete noob here. I have gone trough several tutorials and this keeps popping up.
    On most of these tutorials after clicking new data service and selecting PHP the tutorials have a link generate sample php.
    I am using flash builder 4.5 for php premium and I don’t have that link. Was this link possibly moved?
    I really need this functionality please can someone help me?

    Same here with Flash Builder 4.6 Premium for PHP, I see no way to generate a sample service!

Maybe you are looking for

  • HT5628 ctrl-alt-del logon & Bitlocker on Win8 with new MacBookAir doesn't work

    Am running the latest BootCamp and have a brand new MacBookAir and Win8. On the Windows Logon Screen I can't use ctrl+alt-del even with fn key or on-screen keyboard. The only way I can logon is by plugging in my keyboard - does any one have a tip ple

  • Anti-Spam measures on feedback form

    Originally posted using Google Groups but it has not appeared here yet: Hi there, I have seen many forums use a system that asks you to enter a code word that is displayed as an image to help prevent automatic submissions. I am having problems with a

  • Parallel approval question of the workflow process.

    Hello Expert, I have the following business process scenario which will be realized by new BPMN. My qusestion is how to do with it on BPMN? I have one human activity in one step. The condition to pass this step is that all the potential owners of thi

  • Can i use sim card internet in 4

    sir any other options for using internet.

  • Urgent: Configuring Database Polling Interval from BPEL Console

    Hi All Could we change the "Polling Interval" of a DB Adapter in a BPEL Process directly from the BPEL Console? thanks --debashis