Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 08:55
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Recent Tutorial Support
| |-+  Flash Ecards (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis)
| | |-+  Is it possible to modify for just one Ecard?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] Print
Author Topic: Is it possible to modify for just one Ecard?  (Read 6452 times)
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #15 on: 01/04/09, 14:46 »

The problem is not the flash.

If your output from the server does not look like variable=content&variable2=content2 etc., but rather contains other strings etc., falsh cannot assign the values correctly.

Free hosters often prepend your output with advertisement, so your output looks like:
<div>some advertising stuff</div>variable=content&variable2=content2 etc.

this is not readable.

Only solution is a hoster without modification of output.

Usualy this means, paying at least a little for hosting - free hosters have to refinace somehow Wink
Logged

happy flashing
Cool
Ronald
Scribbles
Server what's that
*
Posts: 12


View Profile Email
« Reply #16 on: 01/04/09, 16:06 »

Ok I just switched my server from what it was to a website on GoDaddy. the string that gets sent to my email is as follows:

http://www.mysite.com/ECards/SelectCard.php?EcardText=1231093843&ENum=

ENum is blank because I only have 1 card so its the same everytime. Is that the way it is supposed to look?
Logged
Scribbles
Server what's that
*
Posts: 12


View Profile Email
« Reply #17 on: 01/04/09, 23:54 »

I decided to try something. I changed my flash file to get the variables from a text file on my computer and ran it in Flash. It read the variables perfectly. So i figured the problem was it couldnt find the name of the file to run on my server. I decided to make a file on the server, and have the flash file run that file and try to get the variables from it.

I looked in Charles and the flash file asked for the correct file in the correct place on my server but instead of returning the variables as it had on my own computer, it still says "_level0.Test".

The part that REALLY throws me is that Charles says (in terms of running the file with the variables like flash asked it to) 404 Not Found. I know for a fact that that file is there, with the exact same name. I changed the permissions for the file around and still nothing. Why is it saying 404 not found if i KNOW it is there?

This is really aggravating seeing as what i am trying to do reeeally shouldn't be too difficult.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6162


View Profile WWW Email
« Reply #18 on: 01/05/09, 07:55 »

you are right, but your hoster does not allow you doing all this.
The problem ist not the flash side, it is the modification of the stream comming from your server, done by your hoster.
Logged

happy flashing
Cool
Ronald
Scribbles
Server what's that
*
Posts: 12


View Profile Email
« Reply #19 on: 01/06/09, 15:31 »

Oooook, well I got it all to work and I'll tell you what i did. You were right, my hoster (the free one) wasn't letting my flash retrieve the file.

I bought a new domain and new hoster and tried it there, still nothing!

So the thing that I tried changing was, the link that was sent Via Email:

From

http://www.MySite.com/ECards/dBText/SelectCard.php?EcardText=1239869886&ENum=

to


http://www.MySite.com/ECards/dBText/SingleCard.swf?EcardText=1239869886&ENum=

Pretty much what this does is skips right over the second PHP and seems to import the EcardText into the flash document perfectly. This way seems to be working amazing!

Thanks for all the help!
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!